ai_co_discuss 0.5.2 → 0.5.4
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-host/references/control.md +9 -3
- package/.agents/skills/discuss-host/references/workflow.md +4 -1
- package/.agents/skills/discuss-participant/SKILL.md +3 -2
- package/.agents/skills/discuss-participant/references/interactive-html.md +93 -0
- package/.agents/skills/discuss-participant/references/writing.md +1 -1
- package/.agents/skills/workflow-creator/SKILL.md +10 -2
- package/.agents/skills/workflow-creator/references/model-selection.md +1 -1
- package/backend/free_room.py +123 -12
- package/backend/message_queue.py +1 -1
- package/backend/schema.sql +27 -0
- package/backend/server.py +76 -4
- package/docs/deployment.md +22 -0
- package/docs/en/deployment.md +22 -0
- package/docs/en/guide/admin.md +4 -3
- package/docs/en/guide/external-members.md +1 -1
- package/docs/en/guide/faq.md +11 -6
- package/docs/en/guide/members.md +4 -4
- package/docs/en/guide/rooms.md +14 -4
- package/docs/en/guide/scheduling.md +3 -4
- package/docs/en/guide/workflows.md +6 -3
- package/docs/en/guide/working.md +9 -5
- package/docs/guide/admin.md +4 -3
- package/docs/guide/external-members.md +1 -1
- package/docs/guide/faq.md +11 -6
- package/docs/guide/members.md +4 -4
- package/docs/guide/rooms.md +15 -5
- package/docs/guide/scheduling.md +3 -4
- package/docs/guide/workflows.md +6 -3
- package/docs/guide/working.md +9 -5
- package/frontend/locales/en/admin.json +33 -2
- package/frontend/locales/en/app.json +107 -1
- package/frontend/locales/en/backend.json +15 -1
- package/frontend/locales/en/core.json +14 -3
- package/frontend/locales/en/discussion.json +18 -2
- package/frontend/locales/en/room.json +37 -2
- package/frontend/locales/en/settings.json +13 -6
- package/gateway/gateway.mjs +11 -0
- package/gateway/login_page.mjs +77 -9
- package/package.json +3 -3
- package/runner/adapters/index.mjs +10 -0
- package/runner/adapters/profiles.mjs +23 -0
- package/runner/admin_cli.mjs +21 -5
- package/runner/admin_panel.mjs +64 -19
- package/runner/discuss.py +11 -2
- package/runner/discussion_launch.mjs +241 -44
- package/runner/discussion_local.mjs +2 -1
- package/runner/discussion_service.mjs +15 -7
- package/runner/discussion_skills.mjs +8 -0
- package/runner/expert_prompts.mjs +1 -2
- package/runner/files.mjs +17 -2
- package/runner/free_runner.mjs +23 -9
- package/runner/host_permissions.mjs +57 -0
- package/runner/hosting_tunnel.mjs +25 -7
- package/runner/i18n_en.mjs +39 -1
- package/runner/instance_recovery.mjs +78 -0
- package/runner/os_users.mjs +6 -1
- package/runner/relay_channel.mjs +121 -30
- package/runner/relay_health.mjs +100 -0
- package/runner/relay_health_text.mjs +44 -0
- package/runner/remote_launch.mjs +24 -14
- package/runner/scheduler.mjs +45 -102
- package/runner/session_driver.mjs +3 -4
- package/runner/workflow_flow.mjs +32 -2
- package/runner/workflows.mjs +84 -21
- package/web/admin.css +1 -1
- package/web/admin.js +3 -3
- package/web/app.js +974 -194
- package/web/backup.js +1 -1
- package/web/i18n.js +4 -4
- package/web/markdown.js +2 -2
- package/web/modern.css +1 -1
- package/web/modern.js +78 -63
- package/workflows/story-serial/SKILL.md +7 -5
- package/workflows/story-serial/agents/recorder.md +6 -5
- package/workflows/story-serial/agents/writer.md +1 -1
- package/workflows/story-serial/commands.json +1 -1
- package/workflows/story-serial/templates/README.md +3 -3
- package/workflows/story-serial/templates//344/270/226/347/225/214.md +1 -1
- package/workflows/story-serial/templates//345/267/245/344/275/234/345/217/260.md +3 -3
- package/workflows/story-serial/templates//346/216/222/347/272/277/350/241/250.md +2 -2
- package/workflows/story-serial/templates//346/226/207/351/243/216.md +1 -1
- package/workflows/story-serial/templates//347/212/266/346/200/201//344/270/273/350/247/222.yaml +2 -2
- package/workflows/story-serial/templates//347/212/266/346/200/201//344/272/272/347/211/251.yaml +1 -1
- package/workflows/story-serial/templates//347/212/266/346/200/201//345/210/206/351/233/206/350/256/260/345/275/225.yaml +1 -1
- package/workflows/story-serial/templates//347/212/266/346/200/201//346/215/256/347/202/271.yaml +1 -1
- package/workflows/story-serial/templates//347/212/266/346/200/201//347/211/251/350/265/204.yaml +3 -3
- package/workflows/story-serial/templates//347/212/266/346/200/201//347/272/277/347/264/242.yaml +4 -3
- package/workflows/story-serial/tools//347/212/266/346/200/201/346/243/200/346/237/245.py +81 -7
- package/workflows/story-serial/workflows/revise-episodes/SKILL.md +9 -4
- package/workflows/story-serial/workflows/revise-episodes/flow.json +93 -0
- package/workflows/story-serial/workflows/tidy-docs/SKILL.md +55 -0
- package/workflows/story-serial/workflows/tidy-docs/flow.json +74 -0
- package/workflows/story-serial/workflows/tidy-docs/references//346/226/207/346/241/243/346/240/207/345/207/206.md +97 -0
package/backend/server.py
CHANGED
|
@@ -41,7 +41,7 @@ from .free_room import convert_suggestion, message_suggestions, save_suggestions
|
|
|
41
41
|
from .free_room import adopt_recommendation, recommend_member, register_member, require_member
|
|
42
42
|
from .private_chat import chat_action, member_chat
|
|
43
43
|
from .external_members import external_api, guard_route as guard_external_route, is_external_path, owner_api as external_owner_api
|
|
44
|
-
from .free_room import describe_members, execution_notes, label_members, set_host_checkin, withdraw_dispatch, member_descriptions, member_display_names, member_handles, member_labels, reorder_speakers, resolve_member_fields, set_chain_rounds, speaking_order, stop_room, stop_room_work
|
|
44
|
+
from .free_room import describe_members, execution_notes, label_members, check_relay, record_room_link, save_message_relay, set_host_checkin, withdraw_dispatch, member_descriptions, member_display_names, member_handles, member_labels, reorder_speakers, resolve_member_fields, set_chain_rounds, speaking_order, stop_room, stop_room_work
|
|
45
45
|
from .free_room import (ADAPTER_VALUE, LAYOUT_AFTER_SQL, LAYOUT_AT_SQL, continue_chain, execution_timeline, group_route_plan, retract_message, rewind_plan, rewind_room,
|
|
46
46
|
host_event, host_hidden_event, room_event_log, withdrawals)
|
|
47
47
|
from .free_room import review_capability, review_roster, checked_review_plan, save_review_plan, check_review_retry
|
|
@@ -214,8 +214,14 @@ COALESCE(details.submitted_by, CASE WHEN messages.source IN ('cli','api','url','
|
|
|
214
214
|
THEN messages.author ELSE '用户' END) AS submitted_by,
|
|
215
215
|
COALESCE(summaries.text,'') AS summary, COALESCE(summaries.author,'') AS summary_by, timing.elapsed_seconds,
|
|
216
216
|
answered.execution_id, answered.request_message_id, answered.layout_after, answered.layout_at, COALESCE(withdrawn.kind,'') AS withdrawn,
|
|
217
|
-
EXISTS(SELECT 1 FROM proactive_messages p WHERE p.message_id=messages.id) AS proactive
|
|
217
|
+
EXISTS(SELECT 1 FROM proactive_messages p WHERE p.message_id=messages.id) AS proactive,
|
|
218
|
+
relay.source_room_id AS relay_room, relay.host AS relay_host,
|
|
219
|
+
(SELECT l.other_room_id FROM room_links l WHERE l.message_id=messages.id) AS link_room,
|
|
220
|
+
(SELECT l.relation FROM room_links l WHERE l.message_id=messages.id) AS link_relation,
|
|
221
|
+
(SELECT r.title FROM room_links l JOIN rooms r ON r.id=l.other_room_id WHERE l.message_id=messages.id) AS link_title,
|
|
222
|
+
(SELECT r.title FROM rooms r WHERE r.id=relay.source_room_id) AS relay_title
|
|
218
223
|
FROM messages LEFT JOIN message_details AS details ON details.message_id=messages.id
|
|
224
|
+
LEFT JOIN message_relays AS relay ON relay.message_id=messages.id
|
|
219
225
|
LEFT JOIN message_withdrawals AS withdrawn ON withdrawn.message_id=messages.id
|
|
220
226
|
LEFT JOIN message_summaries AS summaries ON summaries.message_id=messages.id
|
|
221
227
|
LEFT JOIN message_timings AS timing ON timing.message_id=messages.id
|
|
@@ -918,12 +924,57 @@ def list_rooms(connection, params=None):
|
|
|
918
924
|
GROUP BY rooms.id ORDER BY rooms.created_at, rooms.id""", (int(time.time()), *((identifier,) if identifier else ())))
|
|
919
925
|
directory = {row["room_id"]: dict(row) for row in connection.execute("SELECT * FROM room_directory")}
|
|
920
926
|
assignments = {row["room_id"]: row["folder_id"] for row in connection.execute("SELECT room_id,folder_id FROM room_folder_assignments")}
|
|
927
|
+
# Only the public part of a live share link; the manage token stays behind the owner-only share-link read.
|
|
928
|
+
links = {row["room_id"]: {"url": row["url"], "expires_at": row["expires_at"]} for row in connection.execute(
|
|
929
|
+
"SELECT room_id,url,expires_at FROM room_share_links WHERE expires_at>?", (utc_iso_now(),))}
|
|
921
930
|
rooms = [{**dict(row), "archived": bool(directory[row["id"]]["archived"]), "running": bool(row["running"]),
|
|
922
|
-
"folder_id": assignments[row["id"]], "texts": room_display_texts(connection, dict(row))
|
|
931
|
+
"folder_id": assignments[row["id"]], "texts": room_display_texts(connection, dict(row)),
|
|
932
|
+
"share_link": links.get(row["id"])} for row in rows]
|
|
923
933
|
return {"rooms": sorted(rooms, key=lambda room: directory[room["id"]]["position"]),
|
|
924
934
|
**folder_directory(connection)}
|
|
925
935
|
|
|
926
936
|
|
|
937
|
+
SHARE_ID = re.compile(r"[A-Za-z0-9_-]{22}")
|
|
938
|
+
SHARE_TOKEN = re.compile(r"[A-Za-z0-9_-]{20,200}")
|
|
939
|
+
SHARE_URL_MAX = 300
|
|
940
|
+
# The official share site (web/app.js SHARE_SITE); a link kept with a room must point there.
|
|
941
|
+
SHARE_SITE_HOST = "share.codiscuss.com"
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
def utc_iso_now():
|
|
945
|
+
"""Now as the share site writes times: ISO 8601 in UTC with milliseconds, so strings compare in time order."""
|
|
946
|
+
return datetime.now(timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", "Z")
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
def share_link_record(connection, room_id):
|
|
950
|
+
"""The room's live share link with its manage token, or None when it has none or it expired."""
|
|
951
|
+
require_room(connection, room_id)
|
|
952
|
+
row = connection.execute("SELECT share_id,url,manage_token,expires_at,updated_at FROM room_share_links "
|
|
953
|
+
"WHERE room_id=? AND expires_at>?", (room_id, utc_iso_now())).fetchone()
|
|
954
|
+
return {"link": dict(row) if row else None}
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
def save_share_link(connection, room_id, payload):
|
|
958
|
+
"""Keep the room's share link as the share site gave it, or forget it when `link` is null (revoked or gone)."""
|
|
959
|
+
require_room(connection, room_id)
|
|
960
|
+
link = payload.get("link")
|
|
961
|
+
if link is None:
|
|
962
|
+
connection.execute("DELETE FROM room_share_links WHERE room_id=?", (room_id,))
|
|
963
|
+
return {"link": None}
|
|
964
|
+
if not isinstance(link, dict):
|
|
965
|
+
raise ValueError(Text('分享链接格式不正确'))
|
|
966
|
+
share_id, url, token, expires = (link.get(key) for key in ("share_id", "url", "manage_token", "expires_at"))
|
|
967
|
+
valid = (isinstance(share_id, str) and SHARE_ID.fullmatch(share_id) and isinstance(token, str) and SHARE_TOKEN.fullmatch(token)
|
|
968
|
+
and isinstance(url, str) and len(url) <= SHARE_URL_MAX and url == f"https://{SHARE_SITE_HOST}/s/{share_id}"
|
|
969
|
+
and isinstance(expires, str) and re.fullmatch(r"\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?Z", expires))
|
|
970
|
+
if not valid:
|
|
971
|
+
raise ValueError(Text('分享链接格式不正确'))
|
|
972
|
+
connection.execute("""INSERT INTO room_share_links (room_id,share_id,url,manage_token,expires_at,updated_at) VALUES (?,?,?,?,?,?)
|
|
973
|
+
ON CONFLICT(room_id) DO UPDATE SET share_id=excluded.share_id,url=excluded.url,manage_token=excluded.manage_token,
|
|
974
|
+
expires_at=excluded.expires_at,updated_at=excluded.updated_at""", (room_id, share_id, url, token, expires, utc_iso_now()))
|
|
975
|
+
return share_link_record(connection, room_id)
|
|
976
|
+
|
|
977
|
+
|
|
927
978
|
def last_room(connection):
|
|
928
979
|
"""The room last opened by the site's manager on any device, or '' when none or it no longer exists."""
|
|
929
980
|
row = connection.execute("""SELECT p.value FROM site_preferences p JOIN rooms r ON r.id=p.value
|
|
@@ -1695,6 +1746,9 @@ def append_free_message(connection, room, payload, actor):
|
|
|
1695
1746
|
room_id = room["id"]
|
|
1696
1747
|
if actor == "用户" and (author != "用户" or payload.get("submitted_by", "用户") != "用户"):
|
|
1697
1748
|
raise PermissionError(Text('房间控制凭据只能以用户身份发言'))
|
|
1749
|
+
if payload.get("relay") is not None and actor != "用户":
|
|
1750
|
+
# Another room's host speaks here through `host-control room-post`, only with the owner credential.
|
|
1751
|
+
raise PermissionError(Text('只有房间控制凭据能代其他房间的主持人发言'))
|
|
1698
1752
|
submitted_by = author
|
|
1699
1753
|
source = payload.get("source") if payload.get("source") in ("api", "auto") else "cli"
|
|
1700
1754
|
expected = {"author": author, "text": text, "reply_to": reply_to, "kind": "chat", "submitted_by": submitted_by,
|
|
@@ -1713,6 +1767,8 @@ def append_free_message(connection, room, payload, actor):
|
|
|
1713
1767
|
return {"message": previous, "duplicate": True}
|
|
1714
1768
|
if room["archived"]:
|
|
1715
1769
|
raise ValueError(Text('房间已存档;恢复后才能继续协作'))
|
|
1770
|
+
if payload.get("relay") is not None:
|
|
1771
|
+
check_relay(connection, room_id, payload["relay"])
|
|
1716
1772
|
check_message_references(connection, room_id, expected)
|
|
1717
1773
|
check_message_attachments(connection, room_id, submitted_by, identifiers)
|
|
1718
1774
|
# `/goal` and `/discuss` are commands: checked before saving, never queued, and not routed to members.
|
|
@@ -1734,6 +1790,8 @@ def append_free_message(connection, room, payload, actor):
|
|
|
1734
1790
|
connection.execute("INSERT INTO message_summaries (message_id,text,author) VALUES (?,?,?)",
|
|
1735
1791
|
(cursor.lastrowid, expected["summary"], expected["summary_by"]))
|
|
1736
1792
|
link_message_attachments(connection, room_id, cursor.lastrowid, identifiers, text, payload)
|
|
1793
|
+
if payload.get("relay") is not None:
|
|
1794
|
+
save_message_relay(connection, room_id, cursor.lastrowid, payload["relay"])
|
|
1737
1795
|
# A captured reply keeps its text, but its mentions wake nobody: only a submitted answer may ask for a host.
|
|
1738
1796
|
if expected["source"] != "auto":
|
|
1739
1797
|
save_suggestions(connection, room_id, cursor.lastrowid, actor, payload)
|
|
@@ -3338,12 +3396,24 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3338
3396
|
result = queue_action(connection, room_id, token, self.read_payload(), post_queued, check_queued, interrupt_for_message)
|
|
3339
3397
|
connection.commit()
|
|
3340
3398
|
return self.respond(result)
|
|
3341
|
-
if parts[3:4] in (["inbox"], ["executions"], ["members"], ["chats"], ["suggestions"], ["recommendations"], ["stop"], ["dispatches"], ["host-checkin"]):
|
|
3399
|
+
if parts[3:4] in (["inbox"], ["executions"], ["members"], ["chats"], ["suggestions"], ["recommendations"], ["stop"], ["dispatches"], ["host-checkin"], ["room-link"]):
|
|
3342
3400
|
return self.handle_free_api(connection, parts, method)
|
|
3343
3401
|
if parts[3:4] == ["attachments"]:
|
|
3344
3402
|
return self.handle_attachments(connection, parts, params, method)
|
|
3345
3403
|
if parts[3:4] in (["scheduler-decisions"], ["scheduler-routing"]):
|
|
3346
3404
|
return self.handle_scheduler_api(connection, parts, method)
|
|
3405
|
+
if parts[3:] == ["share-link"] and method in ("GET", "POST"):
|
|
3406
|
+
# The manage token can renew, revoke or replace a public page: owner only. A request carrying a credential must
|
|
3407
|
+
# carry the owner's, so a member AI using its own command line cannot read or rewrite it even on a local site.
|
|
3408
|
+
if token:
|
|
3409
|
+
require_owner(connection, room_id, token)
|
|
3410
|
+
else:
|
|
3411
|
+
self.require_entry_owner(connection, room_id, token)
|
|
3412
|
+
if method == "GET":
|
|
3413
|
+
return self.respond(share_link_record(connection, room_id))
|
|
3414
|
+
result = save_share_link(connection, room_id, self.read_payload())
|
|
3415
|
+
connection.commit()
|
|
3416
|
+
return self.respond(result)
|
|
3347
3417
|
free_actor = None
|
|
3348
3418
|
if method == "POST" and len(parts) == 4 and (parts[3] in DIRECTORY_OPERATIONS
|
|
3349
3419
|
or parts[3] in ADMIN_OPERATIONS and self.admin_session(connection)):
|
|
@@ -3658,6 +3728,8 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3658
3728
|
result = withdraw_dispatch(connection, room_id, token, int(parts[4]))
|
|
3659
3729
|
elif parts[3:] == ["host-checkin"] and method == "POST":
|
|
3660
3730
|
result = set_host_checkin(connection, room_id, token, self.read_payload())
|
|
3731
|
+
elif parts[3:] == ["room-link"] and method == "POST":
|
|
3732
|
+
result = record_room_link(connection, room_id, token, self.read_payload())
|
|
3661
3733
|
else:
|
|
3662
3734
|
raise LookupError(Text('地址不存在'))
|
|
3663
3735
|
if not self.read_only_request():
|
package/docs/deployment.md
CHANGED
|
@@ -187,3 +187,25 @@ npx wrangler deploy --config deploy/entry.wrangler.jsonc
|
|
|
187
187
|
|
|
188
188
|
- **`no such table`**:所连接的数据库尚未执行 schema,先核对配置文件指向的数据库。
|
|
189
189
|
- **端口被占用**:服务拒绝两个实例监听同一端口,改用其他端口。
|
|
190
|
+
|
|
191
|
+
## 官方房间分享站(运营方)
|
|
192
|
+
|
|
193
|
+
在线分享由独立的 Worker、D1 和自定义域名提供。访客无需安装,发布者无需自行部署。以下命令从源码仓库根目录运行,需要运营方的 Cloudflare 账号和该账号已接管的域名。
|
|
194
|
+
|
|
195
|
+
1. 运行 `npm ci`、`npm run build` 和 `npx wrangler login`。把 `deploy/share.wrangler.jsonc` 复制为同目录的 `deploy/wrangler.local.jsonc`,保留原有绑定与 Cron 配置;若该私有文件已用于其他服务,请为分享站另选私有路径并调整下列命令。
|
|
196
|
+
2. 创建独立数据库,将返回的 ID 写入私有配置的 `d1_databases[0].database_id`。在该配置顶层添加 `"routes": [{ "pattern": "<分享站完整主机名>", "custom_domain": true }]`,并将 `web/app.js` 的 `SHARE_SITE` 指向同一 HTTPS 域名。使用与配对和登录站点隔离的主机名。
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
npx wrangler d1 create codiscuss-share --config deploy/wrangler.local.jsonc
|
|
200
|
+
npx wrangler d1 execute DB --remote --file backend/share_schema.sql --config deploy/wrangler.local.jsonc
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
3. 用下列交互命令分别录入两段独立生成的随机 secret。`ADMIN_TOKEN` 只给运营方审核工具,`SOURCE_SALT` 用于给来源 IP 做 HMAC,保持稳定。确认域名和数据库后部署。Cron 每小时删除到期分享,访客访问在到期时即返回 410。
|
|
204
|
+
|
|
205
|
+
```sh
|
|
206
|
+
npx wrangler secret put ADMIN_TOKEN --config deploy/wrangler.local.jsonc
|
|
207
|
+
npx wrangler secret put SOURCE_SALT --config deploy/wrangler.local.jsonc
|
|
208
|
+
npx wrangler deploy --config deploy/wrangler.local.jsonc
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
程序按原始快照字节限制单份 5 MiB、每个来源 20 份及 50 MiB、全站 5 GB。免费 D1 的单库物理上限是 500 MB,账号合计 5 GB;压缩后的数据、索引和其他记录都占用单库空间。部署使用一个库,先达到的平台限额会先影响写入。分享页面每次检查状态,撤销或下架后停止提供内容;已由读者保存的副本无法收回。[Cloudflare D1 限额](https://developers.cloudflare.com/d1/platform/limits/)
|
package/docs/en/deployment.md
CHANGED
|
@@ -185,3 +185,25 @@ To connect a hosted computer: in the admin panel of your computer (the one that
|
|
|
185
185
|
|
|
186
186
|
- **`no such table`** — the connected database has no schema yet; check which database your configuration points to.
|
|
187
187
|
- **Port already in use** — the service refuses to share a port; choose another one.
|
|
188
|
+
|
|
189
|
+
## Official room sharing site (operators)
|
|
190
|
+
|
|
191
|
+
The online sharing service uses a dedicated Worker, D1 database and custom domain. Visitors can read links without installing the app, and publishers use the operator's service. Run the following from the repository root with a Cloudflare account that manages the chosen domain.
|
|
192
|
+
|
|
193
|
+
1. Run `npm ci`, `npm run build` and `npx wrangler login`. Copy `deploy/share.wrangler.jsonc` to `deploy/wrangler.local.jsonc`, retaining its bindings and Cron configuration. If that private file is already used by another service, choose a separate private path and adjust the commands below.
|
|
194
|
+
2. Create the dedicated database and enter the returned ID in `d1_databases[0].database_id` in the private configuration. Add `"routes": [{ "pattern": "<full-share-hostname>", "custom_domain": true }]` at the top level, and set `SHARE_SITE` in `web/app.js` to that HTTPS origin. Use a hostname separate from the pairing and sign-in sites.
|
|
195
|
+
|
|
196
|
+
```sh
|
|
197
|
+
npx wrangler d1 create codiscuss-share --config deploy/wrangler.local.jsonc
|
|
198
|
+
npx wrangler d1 execute DB --remote --file backend/share_schema.sql --config deploy/wrangler.local.jsonc
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
3. Enter two independently generated random secrets at the prompts below. Give `ADMIN_TOKEN` only to the operator's moderation tool. Keep `SOURCE_SALT` stable for source IP hashing. Verify the domain and database before deploying. An hourly Cron removes expired shares. Views return 410 as soon as a link expires.
|
|
202
|
+
|
|
203
|
+
```sh
|
|
204
|
+
npx wrangler secret put ADMIN_TOKEN --config deploy/wrangler.local.jsonc
|
|
205
|
+
npx wrangler secret put SOURCE_SALT --config deploy/wrangler.local.jsonc
|
|
206
|
+
npx wrangler deploy --config deploy/wrangler.local.jsonc
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
The service limits raw snapshot data to 5 MiB per share, 20 shares and 50 MiB per source, and 5 GB across the site. Free D1 allows 500 MB of physical storage per database and 5 GB across the account. Compressed data, indexes and other records occupy space in the single configured database. Platform limits can therefore stop writes earlier. Every page request checks visibility. Revocation or moderation stops subsequent views, while copies already saved by readers remain available to them. [Cloudflare D1 limits](https://developers.cloudflare.com/d1/platform/limits/)
|
package/docs/en/guide/admin.md
CHANGED
|
@@ -8,11 +8,12 @@ Use the local management panel or the corresponding codiscuss admin commands to
|
|
|
8
8
|
- **Overview:**
|
|
9
9
|
- **This computer:** Check the CoDiscuss service status, start, restart, stop, or select **Open site**. When hosting is enabled, this page also shows **Program copies** used by isolated accounts.
|
|
10
10
|
- **Administrator entry / Online site:** View the local and linked online site addresses. Select **Bind**, **Unbind**, or **Generate access code**.
|
|
11
|
+
**Online site** and `codiscuss admin status` show **Relay connected** after a heartbeat reply on the current connection, explain disconnects, retries or consecutive HTTP failures, and show **Status unknown** if the service is stopped or its observations are stale. After 3 minutes without heartbeat confirmation, the service rebuilds that site’s connection. Select **Reconnect now** or run `codiscuss admin site reconnect` to request it immediately.
|
|
11
12
|
- **Hosted account entry** (shown when hosting is enabled): Start or stop the **Sign-in entry**, enable **Through the online site**, or configure your **Own domain** using Cloudflare Tunnel.
|
|
12
13
|
- **Settings:** View the installed version, select **Check for updates** or **Update and restart** (which also updates room skills and isolated accounts), enable **Start when signing in to Windows**, and change the panel language.
|
|
13
14
|
- **Account:**
|
|
14
15
|
- **Local account** is listed by default. When hosting is enabled, the page also lists **Hosted accounts** and a **New account** button.
|
|
15
|
-
- Select the administrator or a hosted account to manage its **CLI sign-ins** (Claude Code, Codex, and Gemini status, sign-in method, or sign-out; Setup Token is recommended for Claude Code), **API keys**, **Skills** (select from **Skill library** or import a ZIP/folder), **bundled workflows**, and **system prompt**.
|
|
16
|
+
- Select the administrator or a hosted account to manage its **CLI sign-ins** (Claude Code, Codex, and Gemini status, sign-in method, or sign-out; Setup Token is recommended for Claude Code), **API keys**, **Skills** (select from **Skill library** or import a ZIP/folder), **bundled workflows**, and **system prompt**. Updating the program leaves installed workflows unchanged; the workflows section always shows **Check** and **Sync to latest**. **Check** compares the library with the bundled versions and lists missing workflows and those that differ; **Sync to latest** installs the missing ones and replaces those that differ (each replaced copy is first backed up to `backups/workflows` in that account's service folder, and changes made there are replaced too). It is greyed out when everything matches.
|
|
16
17
|
|
|
17
18
|
## Hosted accounts for other people
|
|
18
19
|
|
|
@@ -27,7 +28,7 @@ On Windows, open the panel from the tray. On macOS and Linux, use the command-li
|
|
|
27
28
|
3. **Configure remote access** using either or both options:
|
|
28
29
|
- **Through the online site, without your own domain:** Follow the [deployment guide](../deployment.md#entry-for-hosted-accounts-optional) to deploy the entry Worker. On the deployment computer, generate an access code under **Overview** → **This computer** → **Online site**. On this computer, bind the online site and turn on **Through the online site** under **Hosted account entry**. You can also run codiscuss admin entry join <access-code>.
|
|
29
30
|
- **Own domain:** Under **Hosted account entry** → **Own domain**, authorize a Cloudflare tunnel and connect a domain hosted on Cloudflare. The CLI equivalent is codiscuss admin entry tunnel <domain>.
|
|
30
|
-
4. **Manage the account:** Start or stop its instance, enable, disable or remove the account, reset its password, and provide API keys. Users see **Provided by admin** for administrator-provided keys and cannot view or change them. To invite external experts, the account needs an online relay.
|
|
31
|
+
4. **Manage the account:** Start or stop its instance, enable, disable or remove the account, reset its password, and provide API keys. Users see **Provided by admin** for administrator-provided keys and cannot view or change them. To invite external experts, the account needs an online relay. The panel checks instances requested to run every minute and restarts them if their port refuses connections, up to 3 times in 10 minutes. After repeated failures, the account row shows the last error. Check `codiscuss admin status` for the latest attempt and start the instance manually after fixing the cause to resume recovery.
|
|
31
32
|
|
|
32
33
|
### macOS and Linux
|
|
33
34
|
|
|
@@ -44,7 +45,7 @@ Every command in the table is prefixed by codiscuss admin and returns JSON. Thes
|
|
|
44
45
|
| Link/unlink online site and create access code | `site status`, `site connect <access-code\|site>`, `site disconnect`, `entry code` |
|
|
45
46
|
| Manage sign-in entry and tunnel | `entry start\|stop`, `entry join <access-code>`, `entry open\|close relay\|tunnel`, `entry tunnel <domain>` |
|
|
46
47
|
| Manage hosted account lifecycle | `account list`, `account add <name>`, `account start\|stop\|disable\|enable\|remove\|password <name>`, `account isolate\|protect <name>` |
|
|
47
|
-
| Manage sign-ins, keys, skills, workflows, and prompts | `login status <target>`, `key add <target> --base-url … --key …`, `skill install <target> <skill>`, `workflow install <target>`, `prompt set <target> --file …` |
|
|
48
|
+
| Manage sign-ins, keys, skills, workflows, and prompts | `login status <target>`, `key add <target> --base-url … --key …`, `skill install <target> <skill>`, `workflow install <target>`, `workflow update <target>`, `prompt set <target> --file …` |
|
|
48
49
|
|
|
49
50
|
Use owner as <target> for the administrator, or use a hosted account name. If account add fails partway, fix the issue and run the same command again to resume the missing steps.
|
|
50
51
|
|
|
@@ -37,7 +37,7 @@ Invite an AI running on another computer to your room. It can read the project f
|
|
|
37
37
|
|
|
38
38
|
- **Renew from the lending computer:** Change the loan duration in the external room’s right sidebar. The new duration starts when saved and can also shorten the loan. After natural expiry, select **Renew**, choose a duration, and select **Save** to rejoin. A loan revoked by the room owner cannot be renewed.
|
|
39
39
|
- **Pause or leave from the lending computer:** In the external room’s right sidebar, select **Pause** or **Resume**. Use the room menu to **Leave room**. After the room ends, **Delete record** removes it from the local list. Paired phones and tablets can also change these settings.
|
|
40
|
-
- **Inspect access and revoke from the room owner’s computer:** In the right sidebar, open the member menu and select **Read log and access**. The same controls appear on the external expert card under **Room → Members and settings** in the
|
|
40
|
+
- **Inspect access and revoke from the room owner’s computer:** In the right sidebar, open the member menu and select **Read log and access**. The same controls appear on the external expert card under **Room → Members and settings** in the tabs at the top of the room. Review the files it read, narrow access to **Messages only**, or select **Revoke** to end access. For a seat still awaiting check-in, select “Remove seat”.
|
|
41
41
|
- **Invite again:** Ended members appear dimmed below the active list with a reason. If the invitee left or you revoked access, select **Invite back** to make a new link. The member name and history remain.
|
|
42
42
|
|
|
43
43
|
## What the other computer can and cannot read
|
package/docs/en/guide/faq.md
CHANGED
|
@@ -53,10 +53,10 @@ Shutdown and sleep interrupt local execution. During an internet outage, the loc
|
|
|
53
53
|
|
|
54
54
|
- **A member does not respond or keeps waiting.** Run `codiscuss local status`. If other work is in progress, look for the new message in the queue above the composer. For a stuck room, run `codiscuss room events <ROOM_ID>` to see what happened.
|
|
55
55
|
- **Delivery failed.** Read the original cause on the failure card. If sign-in has expired, sign in again in the AI tool or under **Account → CLI sign-ins** in the admin panel, then choose **Retry now**. Delivery can retry automatically up to three times.
|
|
56
|
-
- **Quota exhausted.** Wait for the quota to reset, switch the member's model under **Room → Members and settings** in the
|
|
56
|
+
- **Quota exhausted.** Wait for the quota to reset, switch the member's model under **Room → Members and settings** in the tabs at the top of the room, or reassign the work.
|
|
57
57
|
- **Output limit or context compression failure.** For an output limit, ask for a shorter answer or split the task. For a compression failure, shorten the input. The next run starts a fresh session.
|
|
58
58
|
- **Provider policy refusal.** Review the content and the provider's requirements before trying again. Policy refusals and compression failures do not trigger automatic retries.
|
|
59
|
-
- **Codex reports that the session is in use.** Codex App may already have the conversation open. Switch the connection to Codex App in the right sidebar or under **Room → Members and settings** in the
|
|
59
|
+
- **Codex reports that the session is in use.** Codex App may already have the conversation open. Switch the connection to Codex App in the right sidebar or under **Room → Members and settings** in the tabs at the top of the room, or use a fresh session.
|
|
60
60
|
- **A run has an unknown outcome after restart.** If the original process has exited, the service checks the records. It collects an eligible answer when it can confirm normal completion. If you see **Unable to confirm the previous run outcome after restart**, check the original conversation before retrying.
|
|
61
61
|
- **Windows reports two data directories.** Manage the service from a regular terminal, or set `DISCUSS_SERVICE_HOME` explicitly so both processes use the same directory.
|
|
62
62
|
|
|
@@ -68,9 +68,14 @@ Shutdown and sleep interrupt local execution. During an internet outage, the loc
|
|
|
68
68
|
| Account | Display name, Change avatar, Site sessions, Change password | Manage the administrator account on a self-hosted Python site. At `127.0.0.1` you have administrator access automatically. |
|
|
69
69
|
| Account → Paired devices | Add device, Temporary device (1 day of access), Allow access without a passkey, Pair this device, Activity, Unpair | [Pair a phone or tablet](remote.md#2-pair-your-phone-or-tablet-while-at-the-computer) |
|
|
70
70
|
| Appearance | Channel, Channel · Light | Choose a theme. Changes take effect immediately. |
|
|
71
|
-
| Language · 语言 | 简体中文, English | Choose the display language. Changes take effect immediately. |
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
71
|
+
| Appearance → Language · 语言 | 简体中文, English | Choose the display language. Changes take effect immediately. |
|
|
72
|
+
| Appearance → Visual effects | Full, Compact | Compact turns off background blur and layered shadows for smoother scrolling on slower devices. |
|
|
73
|
+
| Reading → Conversation width | Narrow, Default, Wide | Set the width of the conversation for reading. |
|
|
74
|
+
| Reading → Card text size | Small, Medium, Large | Text size inside message cards. Medium is the default; the choice applies to this device only. |
|
|
75
|
+
| Reading → Folding long answers | Relaxed, Standard, Eager | How long an answer must be before it folds, measured against the screen height. Relaxed is the default; the choice applies to this device only. |
|
|
76
|
+
| Reading → Lines shown when folded | Fewer, Medium, More | A folded answer keeps about 0.15, 0.3 or 0.5 of the screen, converted to lines from the screen height, so phones, tablets and computers each differ. Medium is the default; the choice applies to this device only. |
|
|
77
|
+
| Room preferences → Host's project access | Read-only, Can write, Automatic, Full access | The project access the first member added to a new room (the host by default) starts with; Read-only by default. If its software doesn't support the chosen level, it stays read-only. Saved in the local service, kept across updates; needs the local service connected. |
|
|
75
78
|
| Speech | Text-to-speech service, General voice, voices by platform and for files, Speed, Tone, Voice input, Local process | [Local and cloud speech](voice.md#read-aloud-and-voice-input-local-and-cloud-options) |
|
|
76
79
|
| WeChat notifications | Scan to link, Send test, Unlink | [WeChat notifications](voice.md#wechat-notifications) |
|
|
80
|
+
|
|
81
|
+
The site controls animations for work status, member card flips, and opening, minimizing, or switching the layout of the file preview window. Your system's reduced-motion setting does not change these animations. The hosted sign-in page always plays its brand animation.
|
package/docs/en/guide/members.md
CHANGED
|
@@ -6,7 +6,7 @@ Manage room members: invite local apps or model APIs, resume existing sessions,
|
|
|
6
6
|
|
|
7
7
|
### Steps
|
|
8
8
|
|
|
9
|
-
1. **Add a local app.** When creating a room, open “Who takes part” and choose a configured app under “Add AI”. In an existing room, select “Invite AI” from the right sidebar or under **Room → Members and settings** in the
|
|
9
|
+
1. **Add a local app.** When creating a room, open “Who takes part” and choose a configured app under “Add AI”. In an existing room, select “Invite AI” from the right sidebar or under **Room → Members and settings** in the tabs at the top of the room. Choose one or more members and select “Invite”. You can add several members from the same app. Each has its own session.
|
|
10
10
|
2. **Add a role preset.** Choose a preset in the “Presets” row below “Add AI”. It adds a member with a preset description, private prompt, project access, and model. Built-in presets include `Codex-review`, `Gemini-docs`, and `OpenAI-image`. On the back of a member card, select the bookmark to “Save as preset”. Select “Manage” at the end of the presets row to delete presets.
|
|
11
11
|
3. **Add a model API.** Under “Add AI”, choose Claude, Gemini, DeepSeek, Qwen, Grok, OpenAI, or “Custom”. If a provider offers both a local app and an API, flip the member card and select the API under “Connection”. Official presets fill in the service address.
|
|
12
12
|
4. **Configure and check the API.** Flip the card using its “Settings” area and fill in “Address”, “Protocol”, “Key”, and “Model”. If the selected model supports images and should read image attachments, enable “Images”. Select the lightning button to check the configuration. “Check passed: the model responded” means it is ready. Select “Done” to return to the front of the card.
|
|
@@ -29,13 +29,13 @@ Use “History” to bring context from an existing local AI conversation into a
|
|
|
29
29
|
|
|
30
30
|
## Change a model, name, or private prompt
|
|
31
31
|
|
|
32
|
-
- **Model and reasoning effort.** Set these on the back of a member card when creating a room or inviting a member. In an existing room, open **Room → Members and settings** in the
|
|
33
|
-
- **Display name and role description.** Open the member menu in the right sidebar and select “Name and description”. When adding a member, use the name and description button on the card. On cards that flip, these settings are on the back. Change the room display name and role description. The host and smart scheduling use the description to route work. You can also save it as the app’s default description.
|
|
32
|
+
- **Model and reasoning effort.** Set these on the back of a member card when creating a room or inviting a member. In an existing room, open **Room → Members and settings** in the tabs at the top of the room and find the member. Change the model or effort, or refresh the model list. Changes take effect on the next run. For app connections, choose the model and effort in the app itself. Where supported, you can switch between CLI and app connections here.
|
|
33
|
+
- **Display name and role description.** Open the member menu in the right sidebar and select “Name and description”. When adding a member, use the name and description button on the card. On cards that flip, these settings are on the back. Change the room display name and role description. Inside a room there are quicker ways: double-click a member’s name in the right sidebar or on the members and settings page to rename it in place (Enter or clicking elsewhere saves, Esc cancels); click the description under the name, or “Add description” shown when you point at a member without one, to open the editor. In the editor, click a common kind of work to add it. The host and smart scheduling use the description to route work. You can also save it as the app’s default description.
|
|
34
34
|
- **Private prompt.** Flip the member card and select “Expert prompt” on its back. Write instructions for this member alone, such as “Start with the conclusion”. This does not change its permissions. Restore the app’s default prompt at any time.
|
|
35
35
|
|
|
36
36
|
## Set the host, pause participation, invite back, or remove
|
|
37
37
|
|
|
38
|
-
- **Choose the host.** When creating a room, select the crown on a member card. In an existing room, open the member menu and select “Make host”. Changing the host during a discussion pauses it.
|
|
38
|
+
- **Choose the host.** When creating a room, select the crown on a member card. In an existing room, open the member menu and select “Make host”. Changing the host during a discussion pauses it. The new host's project access is raised to match the previous host: it gets the highest level its own software supports that does not exceed the previous host's (for example, if the previous host had “Automatic” and the new host's software has no such level, it gets “Can write”). Access is only ever raised, a notice in the lower right says what changed, and the previous host keeps its own. Change it back in the member table if that is not what you want.
|
|
39
39
|
- **“Leave”.** In the right sidebar, open the member menu and select “Leave”. The member becomes “Away”, stops receiving work, and its pending requests are canceled. Its session is kept.
|
|
40
40
|
- **Invite an away member back.** Select “Invite” from that member’s menu, or open “Invite AI”, select the away member, and select “Invite”. The member returns with its existing session.
|
|
41
41
|
- **“Remove”.** In the right sidebar, open the member menu and select “Remove” to take the member out of the room. During a discussion, the current host cannot leave or be removed.
|
package/docs/en/guide/rooms.md
CHANGED
|
@@ -15,7 +15,7 @@ In the sidebar, select “New room”. To create one inside a folder, select the
|
|
|
15
15
|
- Select “Add AI” to add members. Select the crown on a member card to make it the host.
|
|
16
16
|
- Optionally configure “Smart scheduling”, “Image generation” (add an OpenAI Images card and enter an endpoint, API key, and image model), and “Web search” (enter a DeepSeek API key shared across rooms).
|
|
17
17
|
3. **“How to work (optional)”**
|
|
18
|
-
- Optionally enable “Full host control”. This lets the host manage members, retry or interrupt work, start discussions and Goals, and save workflows.
|
|
18
|
+
- Optionally enable “Full host control”. This lets the host manage members, retry or interrupt work, start discussions and Goals, and save workflows. To allow only part of it, expand “Items” and tick just the ones you need.
|
|
19
19
|
- Under “After creation”, choose “Off”, “Start discussion”, or “Start Goal”.
|
|
20
20
|
4. **“Advanced settings”** lets you set the “Assignment round limit” (10 by default, from 1 to 100 or unlimited) and “API request limit”.
|
|
21
21
|
5. Select “Create and connect”, “Create room” for an all-manual setup, “Create and start discussion”, or “Create and start Goal”, as applicable.
|
|
@@ -33,27 +33,37 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
33
33
|
|
|
34
34
|
### 3. Set project directories and browse project files
|
|
35
35
|
|
|
36
|
-
- **Add or remove directories.** A room supports one primary directory and up to eight additional directories. After creating a room, open the
|
|
37
|
-
- **Open Files.** In the
|
|
36
|
+
- **Add or remove directories.** A room supports one primary directory and up to eight additional directories. After creating a room, open the “Room” tab at the top of the room and find “Project folder”. Add or remove additional directories there. Changes apply from each member’s next run and do not interrupt a session. A primary directory cannot be changed after it is set. If the room was created without one, you can set it once in the same section. Members can access all room directories subject to their individual project permissions.
|
|
37
|
+
- **Open Files.** In the tabs at the top of the room, select “Files” to browse directories, file sizes, and modification times. Switch between the primary and additional directories at the top. A project directory is required.
|
|
38
38
|
- **Preview files.** Select a file to open its floating preview. Supported previews include plain text, code, rendered Markdown, static HTML with a source view, zoomable and rotatable images, audio and video with speed and full-screen controls, CSV tables, subtitle timelines (SRT, VTT, ASS, LRC), read-only Word, Excel, PowerPoint and PDF, and Premiere project XML. Relative project images in Markdown display inline.
|
|
39
39
|
- **Tabs, split view, and collapse.** Open multiple files and switch between tabs. Use the preview controls to split the view on the right or use “File location” to return to the containing folder. HTML previews also offer “Open in new tab”. Select “Collapse” in the title bar to keep the preview as a floating button in the corner. It restores the same file and scroll position when you return to the room. Close it to clear the preview.
|
|
40
|
-
- **Quote and annotate.** Select text in a Markdown preview or a member’s answer and choose “Add to conversation”. Enter a note and press Enter. The source is marked with a number and the composer shows the number of notes. Sending the message adds a file path and line number,
|
|
40
|
+
- **Quote and annotate.** Select text in a Markdown preview or a member’s answer and choose “Add to conversation”. Enter a note and press Enter. The source is marked with a number and the composer shows the number of notes. Sending the message adds a file path and line number, the member and message ID, or for a message attachment its message ID and attachment ID. An `@` inside a quote does not wake a member.
|
|
41
41
|
- **Manage project files.** Select “Project” at the start of the path bar to open your projects and drafts. Use the top controls to create folders and upload files (up to 20 MB each). File menus offer “Download”, “Rename”, “Copy”, “Cut”, and “Delete”. Paste into the destination folder. Deleted files and replaced versions go to “Recycle bin” for 30 days, where they can be restored. In source view, the pencil button edits text files up to 1 MB. Project and draft roots, and folders currently used as room project directories, cannot be renamed, moved, or deleted.
|
|
42
42
|
|
|
43
43
|
### 4. Send and view attachments
|
|
44
44
|
|
|
45
45
|
- **Attach files.** Paste or drag files into the composer, or use the paperclip button at the bottom-left. Each message can contain up to 10 files, 20 MiB each. Thumbnails appear above the composer. A placeholder such as `[Image #1]` or `[File #2]` is inserted at the cursor. Removing the thumbnail or deleting its placeholder with Backspace removes both.
|
|
46
46
|
- **View attachments.** After sending a message, select its placeholder or attachment card. Images can be enlarged full-screen, zoomed, rotated, and saved. Audio and video play in the message. Documents and code open in the file preview.
|
|
47
|
+
- **Use HTML in an answer.** On desktop, a self-contained `.html` attachment that a member references with a file placeholder appears at that point in the answer and follows the room theme. It runs when you scroll to it. “Collapse” saves your choice. The row below also lets you open a larger preview, view the source, or download the file. The larger preview, mobile full-screen preview, and “Open in new tab” also use the room theme. Unreferenced HTML attachments still have an “Expand in message” button. For files over 2 MiB or files that fail to load, use the file preview. On a phone, select the attachment card for a full-screen preview.
|
|
47
48
|
- **Member access to attachments.** For supported automatic runs, the local service downloads the file and passes its information to the receiving member. Claude Code and Codex CLI can view images directly. For API members, enable “Images” on the member card to view images. UTF-8 text attachments can be read on request. Members will say when they cannot read a format such as PDF.
|
|
48
49
|
|
|
49
50
|
### 5. Export, import, and branch rooms
|
|
50
51
|
|
|
51
52
|
- **Export a backup.** A room’s “Export conversation” menu item creates a ZIP containing the room’s messages, discussion history, and attachments. Use a folder menu to “Export folder”, or directory options to “Export all rooms”. Export on the computer running the local service. The archive includes member software settings and session identifiers. The original software’s session history must still be present on that computer to resume a session.
|
|
53
|
+
- **Share as a web page.** In a room’s menu, select “Share as web page…”. The room is read and cleaned first; the confirmation lists what is included and left out, and anything that looks like a key, a folder on this computer or contact details, with its message number and nearby text. After checking, choose one:
|
|
54
|
+
- “Download web page” gives you a single `.html` file that opens in any browser. Once sent, it cannot expire or be taken back.
|
|
55
|
+
- “Publish link” uploads it to the official share site and copies the link. Choose whether it expires in 1, 3 or 7 days; it is deleted when it expires. “Shared” then appears below the room list, listing every live share link with its time left, to copy, open, renew (same content, a new lifetime from now) or revoke. The room’s menu also offers “Copy share link” and “Revoke share link”, and “Share as web page…” again offers “Update link” to show the latest content. Links are kept with the room on the computer, so paired phones and tablets can manage them too. Rooms over 5 MB after cleaning need the web page file instead.
|
|
56
|
+
|
|
57
|
+
Either way, readers see the room’s **Messages** and **Runs** views from the beginning, as they look here: cards, run details and the run replay open, but nothing can be sent or changed, and the page shows the room as it was when it was made. Private chats, the event log, scheduling decisions, refused actions, queued messages, paths on this computer, session IDs and credentials are left out, as are retracted or rewound messages; failure reasons read only “Run failed”, and the room’s project folders are rewritten in message text as paths inside the project. The rest of the message text is shared as written, so check it before sending.
|
|
58
|
+
|
|
59
|
+
Attachments are left out by default, and attachment tags in messages read “not included in the share”. When the room has attachments, the confirmation offers “Include attachments”: ticked, every attachment (images, videos, web pages, documents and so on) goes into the page as it is, for readers to view and download. Text attachments are checked for keys and local folders too; the contents of images, videos and other files cannot be checked, so look through them yourself. Attachments count toward the 5 MB limit for share links; above it, untick them or use the web page file.
|
|
52
60
|
- **Import rooms.** In directory options or a folder menu, select “Import rooms…” and choose a ZIP. Review the preview and confirm the rooms to import. A room marked “Already exists; skipped” is left as is. On the same computer, invite members back to resume their sessions. Claude Code members switch to manual connection on import. Re-register them from their original window to avoid splitting the session. Imported discussion history is kept, but discussions are not restarted and members are not woken automatically.
|
|
53
61
|
- **Branch from a message.** In an AI message menu, select “Branch from here” to create a room containing the history through that message. Connections that support session branching resume from the branched session in the new room. The original room is kept.
|
|
62
|
+
- **Let the host create rooms.** With “Create rooms” ticked in “Host permissions”, the host can move part of the work into a new room. Members use only software configured on this computer, with read-only project access by default and at most write. The project folder must be the original room’s folder or a folder inside it. Unless you name another host, the new room is hosted by the same expert as the original host. Each room gets a “Linked room” card; select “Open room” to go to the other one. The new room takes your default host permissions, except that it cannot create rooms. A room can create a limited number of rooms (3 by default, adjustable in “Host permissions”). The hosts of two linked rooms can speak in each other’s room; those messages are labelled “From host … of room "…"” and wake the other room like your own messages. There is no limit by default. To cap it, set “Linked-room message limit” under “Advanced settings” in the new-room form (it applies to every linked room on this computer); counting from your last message in either room, messages beyond it are refused until you send a message.
|
|
54
63
|
|
|
55
64
|
## Notes
|
|
56
65
|
|
|
66
|
+
- **Notice when a room's work ends.** When all work in another room ends (it changes from "Running" to idle) and stays ended for a few seconds, the page shows "Work in room \"Room name\" has ended" in the lower-right corner. The room you are viewing is not announced, and neither is work that stops and resumes at once, as with an interjection or a retry. The page must be open.
|
|
57
67
|
- **Shared directories are not locked.** If members edit the same project file at once, the page shows a conflict notification while the room is open. It is not added to the message history and does not wake the host.
|
|
58
68
|
- **Preview and transfer limits.** Text previews show at most the first 128 KB. When another device accesses media and documents through the computer, each file is limited to 64 MB. The web app first attempts to compress videos larger than 3 MiB. Links pointing outside a project directory appear disabled and are rejected.
|
|
59
69
|
- **A branch does not copy project files.** Branched and original rooms share the same project directory. Branching requires a connection to the local service.
|
|
@@ -20,17 +20,16 @@ Connect a lightweight decision model to handle routine assignment and turn hando
|
|
|
20
20
|
| Provider | Endpoint and default model | API key and pricing | Notes |
|
|
21
21
|
| --- | --- | --- | --- |
|
|
22
22
|
| **TypeSafe Jev** | `https://api.typesafe.ai/v1`, `jev-latest` | Create an API key in the [TypeSafe console](https://console.typesafe.ai/). As of 2026-11-20, the listed price is $0.042 per million input tokens. [Jev pricing](https://typesafe.ai/) | Dedicated decision model. |
|
|
23
|
-
| **OpenAI Decisions** | `https://api.openai.com/v1`, `gpt-6-luna` | Use an OpenAI API key. A saved key for the official OpenAI service can be reused. As of 2026-11-20, standard uncached input costs $0.10 per million tokens and output is free. Cache, long-context, and regional processing rates can differ. [API keys](https://platform.openai.com/api-keys) · [Decisions pricing](https://developers.openai.com/api/docs/guides/decisions#pricing-and-availability) | CoDiscuss marks this integration experimental because it has not yet evaluated room-scheduling scenarios with a real OpenAI key. It calls `/v1/decisions`. Use the configuration check below to verify account access.
|
|
23
|
+
| **OpenAI Decisions** | `https://api.openai.com/v1`, `gpt-6-luna` | Use an OpenAI API key. A saved key for the official OpenAI service can be reused. As of 2026-11-20, standard uncached input costs $0.10 per million tokens and output is free. Cache, long-context, and regional processing rates can differ. [API keys](https://platform.openai.com/api-keys) · [Decisions pricing](https://developers.openai.com/api/docs/guides/decisions#pricing-and-availability) | CoDiscuss marks this integration experimental because it has not yet evaluated room-scheduling scenarios with a real OpenAI key. It calls `/v1/decisions`. Use the configuration check below to verify account access. |
|
|
24
24
|
|
|
25
25
|
## How to use it
|
|
26
26
|
|
|
27
27
|
### 1. Enable and configure smart scheduling
|
|
28
28
|
|
|
29
29
|
1. **When creating a room:** Under “Who takes part,” find “Smart scheduling” and choose a provider. Only one can be active. Choosing another replaces it.
|
|
30
|
-
2. **In an existing room:** Open **Room → Members and settings** in the
|
|
30
|
+
2. **In an existing room:** Open **Room → Members and settings** in the tabs at the top of the room. Under “Collaboration settings,” turn on “Enable” for “Smart scheduling.” If the settings are collapsed, click “Settings.”
|
|
31
31
|
3. **Set the model and key:** Click “Settings” on the decision-model card to flip it over. Confirm the “Model,” then enter the provider’s API key under “Key”. The key is stored locally. Move focus away from the field or press `Enter` to save.
|
|
32
32
|
4. **Check the configuration:** Click the lightning icon, “Check smart scheduling configuration.” CoDiscuss sends a very short yes-or-no question to test the provider, model, and key. “Check passed: decision model responded” confirms success. Click “Done” to return.
|
|
33
|
-
5. **Choose a “Decision method”:** The card offers “引导(试验)” by default, which is still being refined and can make mistakes, or “稳定” (stable), which checks rules in a fixed order and has passed regression evaluation.
|
|
34
33
|
|
|
35
34
|
Adding clear role descriptions for members can improve routing. Open the member menu in the right panel and choose “Name and description.”
|
|
36
35
|
|
|
@@ -38,7 +37,7 @@ Adding clear role descriptions for members can improve routing. Open the member
|
|
|
38
37
|
|
|
39
38
|
- **Decision cards:** Each judgment appears in the transcript. Cards show whom the model selected or why it returned the request to the host. In recommendation mode, click “Accept” when the host is idle to dispatch the recommendation. If the host is busy, first choose how to handle its current work. “Cancel acceptance” closes the pending choice. It cannot withdraw a request that has already been sent.
|
|
40
39
|
- **Inspect the input:** Click “Model input” on a decision card to review the prompt, context, and candidate options the model saw. Confidence appears beside the decision title.
|
|
41
|
-
- **Rate the result:** Room owners can click 👍 (“Good decision”) or 👎 (“Poor decision”). When giving a negative rating, you can add the member who should have answered and a note.
|
|
40
|
+
- **Rate the result:** Room owners can click 👍 (“Good decision”) or 👎 (“Poor decision”). When giving a negative rating, you can add the member who should have answered and a note. This feedback is used to improve how scheduling decides.
|
|
42
41
|
|
|
43
42
|
## Things to know
|
|
44
43
|
|
|
@@ -21,12 +21,12 @@ Rerunning setup replaces selected bundled workflows with the package versions. B
|
|
|
21
21
|
|
|
22
22
|
### 2. Enable, refresh, and end a room workflow
|
|
23
23
|
|
|
24
|
-
1. **Allow the host to enable workflows:** When creating a room, turn on “Full host control” under “How to work (optional)”. In an existing room, open **Room → Members and settings** in the
|
|
24
|
+
1. **Allow the host to enable workflows:** When creating a room, turn on “Full host control” under “How to work (optional)”. In an existing room, open **Room → Members and settings** in the tabs at the top of the room and turn it on under “Collaboration settings.” The host then has permission to enable a workflow and invite its members.
|
|
25
25
|
2. **Enable a workflow:** Type / in the composer, choose a saved workflow, add what you want done, and send the message to the host. The composer inserts /workflow-id. The host enables it, adds any missing workflow members, and assigns work according to the workflow.
|
|
26
26
|
- Each card in the main workflow defines a role, including its description, member prompt, software, model, effort, and project access. Members already mapped to a card and present in the room keep their identity. Away members are invited back. Sub-workflow roles join when used. Workflow prompts are read-only in a room. Edit them on the Workflows page.
|
|
27
27
|
3. **Add new roles:** If you add cards to a workflow later, existing rooms do not add those members automatically. The host adds them when needed, or you can click the refresh icon on the workflow row in the right panel.
|
|
28
28
|
4. **Use a sub-workflow:** While a workflow is active, type / in the composer and choose an item under “Sub-workflows of ‘name’.” Send it to the host to run that procedure. Members used only by the sub-workflow are marked away when it is done. Their sessions are kept.
|
|
29
|
-
5. **End a workflow in a room:** On the workflow row under “Collaboration settings” in **Room → Members and settings** in the
|
|
29
|
+
5. **End a workflow in a room:** On the workflow row under “Collaboration settings” in **Room → Members and settings** in the tabs at the top of the room, click the dismiss-members control. Workflow members leave, the host stays, and active work stops. Their sessions are kept, and selecting that workflow again can bring the members back. To disable a workflow in your local library, open the “…” menu beside it on the Workflows page and choose “Disable.”
|
|
30
30
|
|
|
31
31
|
### 3. Create or edit workflows with workflow-creator
|
|
32
32
|
|
|
@@ -40,8 +40,10 @@ You can create or import a ZIP file or folder with the “+” on the Workflows
|
|
|
40
40
|
|
|
41
41
|
Select a workflow on the Workflows page. The canvas opens in the center, and its SKILL.md appears on the right. Click “Edit,” then “Save” or press Ctrl+S to save changes.
|
|
42
42
|
|
|
43
|
-
- **The canvas is a diagram:** You can move cards, add host nodes, connect nodes to show order or loops, add notes to connections, or choose “Auto arrange.” The program does not execute canvas connections, and the host cannot see the canvas.
|
|
43
|
+
- **The canvas is a diagram:** You can move cards, add host nodes, connect nodes to show order or loops, add notes to connections, or choose “Auto arrange.” Click a connection or its note to select it before editing; once a gold loop is selected, drag it up or down to change its height. Dragging an unselected connection or note just pans the canvas. The program does not execute canvas connections, and the host cannot see the canvas.
|
|
44
44
|
- **The host follows SKILL.md:** The skill file defines order, parallel work, when to return to the host, and when to revise. The host follows those written instructions. When workflow-creator creates or edits a workflow, it updates the canvas to reflect the skill file.
|
|
45
|
+
- **Steps and attached sub-workflows:** The canvas can group nodes into steps, shown as named dashed frames that list the sub-workflows attached to each step. Steps and attachments live in flow.json and in each sub-workflow's SKILL.md (workflow-creator maintains them). Like the canvas they are only a diagram; the host still decides from SKILL.md whether to use a sub-workflow at that step.
|
|
46
|
+
- **Several members for one card:** The host can bring in several members for the same card under different display names, for example one member per character. A display name applies to this room only, and asking for the same name again brings back the same member with its own session.
|
|
45
47
|
|
|
46
48
|
### 5. “Full host control” and workflows
|
|
47
49
|
|
|
@@ -53,4 +55,5 @@ Select a workflow on the Workflows page. The canvas opens in the center, and its
|
|
|
53
55
|
|
|
54
56
|
- **Changes reach active rooms:** Rooms using a workflow read its latest instructions and member prompts on their next run. Existing members’ models, effort, and project access remain room settings.
|
|
55
57
|
- **Review imported workflows:** Importing a ZIP or folder shows a canvas preview. Cards that can write files are imported read-only until you enable them individually. If a workflow includes commands.json to register local commands for read-only API members, the editor shows the full commands. They run only after you enable “Allow these commands to run on this computer.” The host cannot add or remove local commands while drafting or editing a workflow.
|
|
58
|
+
- **Allow only part of it:** Expand “Items” under “Full host control” and tick them one by one: “Handle execution problems”, “Adjust member settings”, “Change project access”, “Manage the member list”, “How work proceeds”, “Workflows” and “Create rooms”. Saving and enabling workflows needs “Workflows”; an action whose item is not ticked is refused, and the host is told which item is missing.
|
|
56
59
|
- **You keep key decisions:** Even with “Full host control,” only you can change the host, approve assignment rounds above the limit, grant project access above write, change project folders, withdraw your messages, or use private chat.
|
package/docs/en/guide/working.md
CHANGED
|
@@ -12,6 +12,8 @@ Message a member or host, understand main and branch work and assignment labels,
|
|
|
12
12
|
- **Ask all members.** Type `@all` to have everyone present answer in parallel. Type `@all-seq` to have members answer in the order shown in the sidebar’s “Speaking order”.
|
|
13
13
|
- **Reply, search, and filter.** Use “Reply” in a message menu to link a reply to the original. Use “View original” to read its full text and summary. At the top of the room, “Search messages” searches the conversation and “Filter messages and cards” filters by author, host, mentions, or card type.
|
|
14
14
|
|
|
15
|
+
- **Send several messages in a row.** You can send the next message while the previous one still shows “Sending…”. If the room is busy and a message is expected to queue, it appears immediately above the composer. The confirmed queue entry takes its place. The browser submits messages in order and continues if one fails. The failed card keeps the original text and attachments so you can resend or discard it. Sending and network retries continue if you switch rooms. Return to the original room to find its failed cards. Refreshing or closing the page clears unsent messages held by that page.
|
|
16
|
+
|
|
15
17
|
### 2. Understand main lines, branches, and assignment labels
|
|
16
18
|
|
|
17
19
|
Room work can run on several lines in parallel. Labels at the top of a card show which line the work belongs to and what should happen when it finishes.
|
|
@@ -20,10 +22,12 @@ Room work can run on several lines in parallel. Labels at the top of a card show
|
|
|
20
22
|
- With message queuing enabled, a directly mentioned member starts immediately when idle. If busy, its request waits in the queue until it is free. If one message mentions both idle and busy members, idle members start at once while the busy members’ work waits.
|
|
21
23
|
- When a main-line member’s turn arrives, it waits for that member to finish its active branch work.
|
|
22
24
|
- With message queuing enabled, your unmentioned messages, `@all`, and `@all-seq` wait until the room is idle, then go out in order. Background work assigned by the host does not hold up your new messages.
|
|
23
|
-
- **
|
|
24
|
-
|
|
25
|
+
- **Where things sit on a card.** Every member card has, from top to bottom: the header, the body, what it delivers (answer summary, attachments, delivered files) and the run’s record (progress notes with step count, file changes, refused operations). The left of the header says who: the name, labels, and the model and effort this run used. The right says how this one went: status, time, number and duration, with the duration always last. A coloured status only means something went wrong (red for failed; amber for stopped, voided or skipped), and nothing is shown when all is well; on your own messages, the right shows how each member is handling it. On a phone, the second line has the model at the left and the status and time at the right. Stop and retry sit at the right end of the line they act on.
|
|
26
|
+
- **Card labels.** Where the card came from comes first, then where the work goes next. The usual channels (own message, CLI, API) are no longer labelled; only rare sources such as sent on someone’s behalf, proactive messages and auto-captured answers are.
|
|
27
|
+
- “Host” identifies a message from the current host, host notes included.
|
|
25
28
|
- “Main line · step {n}” is a host-arranged order. “Main line · #{n} in turn” is `@all-seq`.
|
|
26
|
-
- “Branch” marks a directly mentioned member’s work
|
|
29
|
+
- “Branch” marks a directly mentioned member’s work that started while another member was working. Mentioning a member in an idle room is not marked. Failed and stopped cards keep these labels.
|
|
30
|
+
- **Model and reasoning effort**: a member’s answer card, working card, failed card and stopped card show the model and effort that run actually used (for example `gpt-6.2-sol · medium`) after the name and labels, and so does a run’s detail on the Runs page. It records what was used at the time, so changing the member’s model later does not change older cards; when it cannot be read (an external member, for example) nothing is shown. On a phone, when space runs short only the start of the model ID is cut, keeping its end and the effort.
|
|
27
31
|
- **Labels on the host’s work assignments.**
|
|
28
32
|
- “Back to the host when done”: wake the host when all assigned members finish, including failures, so the host can decide what to do next.
|
|
29
33
|
- “Straight to you when done”: give you the member’s answers without returning to the host. Failures still go back to the host.
|
|
@@ -46,7 +50,7 @@ With queuing enabled, new messages wait above the composer while the intended me
|
|
|
46
50
|
|
|
47
51
|
- **Stop a run.** Select “Stop” on an in-progress card, or select “Stop” from a member’s menu in the right sidebar, to stop that member’s current run. Select “Stop all” in the sidebar to stop all members and cancel requests not yet delivered. When the local service confirms process exit, the card shows “Stopped”. If it cannot confirm, it shows “Stop unconfirmed”. If an app or manual session cannot be stopped, it shows “The previous run is invalidated but may still be generating”. A late answer does not enter the conversation. The room owner can expand “Unaccepted reply” on the canceled card to inspect it.
|
|
48
52
|
- **Retry or resend.** During the delivery-failure countdown, select “Retry now” or “Stop” on the delivery card. On a run-failure card, select “Resend” to put the original user message back in the composer for confirmation and sending. If an operation failed because permission was denied, expand the card’s run report to see whether “Allow and resend” is available.
|
|
49
|
-
- **Withdraw a message.** If no member has started work on it, “Withdraw” returns the original text to the composer. You can also withdraw the latest message after work has started. This stops that work and rewinds the conversation to the previous message. If the composer is empty, press `Esc` twice to withdraw the most recent message.
|
|
53
|
+
- **Withdraw a message.** If no member has started work on it, “Withdraw” returns the original text, files and reply to the composer. You can also withdraw the latest message after work has started. This stops that work and rewinds the conversation to the previous message. If the composer is empty, press `Esc` twice to withdraw the most recent message.
|
|
50
54
|
- **Edit and rewind.** Select “Edit” on a processed user message, change it, and send again. The message and everything after it are folded under “Rolled back”, so the AI no longer sees them. Before confirming, review how each member session will be handled. Project files already changed by a member remain as they are.
|
|
51
55
|
|
|
52
56
|
### 5. Private chat and interruptions during a run
|
|
@@ -68,7 +72,7 @@ When a member needs you to make a decision, a question card appears above the co
|
|
|
68
72
|
|
|
69
73
|
### 7. Inspect a run and troubleshoot a room
|
|
70
74
|
|
|
71
|
-
- Open **Runs** in the
|
|
75
|
+
- Open **Runs** in the tabs at the top of the room and select **Waterfall**. The timeline shows when each member started, how long it ran, and where it spent time waiting. Select a member's name for the run's status, start time, and duration. Select a segment to inspect the recorded details for that phase.
|
|
72
76
|
- To handle a permission denial, return to the conversation and expand the run report on its failure or reply card. **Allow and resend** appears when the report includes a rule that can be allowed, the local service is available, and the original request can be found. Review the rule before selecting it. The original message returns to the composer for you to confirm and send.
|
|
73
77
|
- If a member never woke up or an action was rejected, open **Runs → Events**. The **Event log** shows operations in time order, their outcomes, and the resulting state changes. Select a row to inspect its original record and related events. From a terminal on the local computer, run `codiscuss room events <ROOM_ID>` to read the same log.
|
|
74
78
|
|
package/docs/guide/admin.md
CHANGED
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
- **“概览”页**:
|
|
9
9
|
- **本机**:查看“共议服务”运行状态,点启动、重启、停止或“打开网站”;开启托管管理后还显示供隔离账号使用的“程序副本”。
|
|
10
10
|
- **管理员入口 / 线上网站**:查看本地网页和已绑定的线上网站地址,可“绑定”、“解绑”或“生成接入码”。
|
|
11
|
+
“线上网站”和 `codiscuss admin status` 均在收到本次连接的心跳回应后显示“中转已连接”,遇到断线、重连或连续 HTTP 请求失败会说明原因,服务停止或记录过期时显示“状态未知”。中转连续 3 分钟未获心跳确认时,服务会重建该网站的连接。也可以点“立即重连”或运行 `codiscuss admin site reconnect`。
|
|
11
12
|
- **托管账号入口**(开启托管管理后显示):启停“登录入口”,开关“经线上网站中转”或配置“自有域名”(Cloudflare Tunnel)。
|
|
12
13
|
- **设置**:查看当前版本、“检查更新”与“更新并重启”(同步更新房间技能和隔离账号)、开关“登录 Windows 时自动启动”,以及切换管理面板语言。
|
|
13
14
|
- **“账号”页**:
|
|
14
15
|
- 左侧默认有“管理员(本机账号)”,开启托管管理后下方列出所有“托管账号”和“新建账号”按钮。
|
|
15
|
-
- 选中“管理员”或某个托管账号,可统一管理它的**命令行登录**(Claude Code / Codex / Gemini 登录状态、切换登录方式或退出,Claude Code 推荐 Setup Token)、**API 密钥**、**技能**(从“技能库”勾选安装或拖入 `.zip
|
|
16
|
+
- 选中“管理员”或某个托管账号,可统一管理它的**命令行登录**(Claude Code / Codex / Gemini 登录状态、切换登录方式或退出,Claude Code 推荐 Setup Token)、**API 密钥**、**技能**(从“技能库”勾选安装或拖入 `.zip`/文件夹导入)、**随包工作流**与**系统提示词**。程序更新不会改动已装的工作流;工作流区右上角常驻“检查”和“同步到最新版”:“检查”对比随包版本,列出缺少的和与最新版不同的;“同步到最新版”补装缺少的、用最新版替换不同的(被替换的旧版先备份到该账号服务目录的 `backups/workflows`,在这里做过的修改也会被替换),都一致时按钮变灰。
|
|
16
17
|
|
|
17
18
|
## 托管账号:给别人开账号用这台电脑上的 AI
|
|
18
19
|
|
|
@@ -29,7 +30,7 @@ Windows 可以从托盘打开面板。macOS 和 Linux 的命令行入口见下
|
|
|
29
30
|
3. **配置外网入口(二选一或同时开启)**:
|
|
30
31
|
- **经线上网站中转(无需自有域名)**:先按[部署指南](../deployment.md#托管账号的入口可选)部署好入口 Worker;在部署电脑的“概览 → 本机 → 线上网站”生成接入码后,在这台电脑的管理面板“概览 → 线上网站”绑定并打开“托管账号入口”里的“经线上网站中转”(命令行一步完成:`codiscuss admin entry join <接入码>`)。
|
|
31
32
|
- **自有域名**:在“托管账号入口 → 自有域名”点配置,按提示授权 Cloudflare 隧道并绑定托管在 Cloudflare 上的域名(命令行 `codiscuss admin entry tunnel <域名>`)。
|
|
32
|
-
4. **管理账号**:在托管账号页面可以启动/停止实例、停用/启用账号、重设密码、删除账号、配置由管理员提供的 API
|
|
33
|
+
4. **管理账号**:在托管账号页面可以启动/停止实例、停用/启用账号、重设密码、删除账号、配置由管理员提供的 API 密钥(对方界面只显示“管理员提供”,无法查看或更换),并复制登录地址与账号发给对方。邀请外部专家需要该实例具备可用的线上中转入口。面板每分钟检查已要求运行的实例,端口拒绝连接时自动重启,10 分钟内最多 3 次。达到上限仍失败时,账号行显示最后原因,`codiscuss admin status` 可查最近一次尝试。修好原因后手动启动可恢复巡检。
|
|
33
34
|
|
|
34
35
|
### macOS 和 Linux 能不能用?
|
|
35
36
|
|
|
@@ -46,7 +47,7 @@ Windows 可以从托盘打开面板。macOS 和 Linux 的命令行入口见下
|
|
|
46
47
|
| 绑定/解绑线上网站、生成接入码 | `codiscuss admin site status`、`site connect <接入码\|站点>`、`site disconnect`、`entry code` |
|
|
47
48
|
| 托管入口与隧道 | `codiscuss admin entry start\|stop`、`entry join <接入码>`、`entry open\|close relay\|tunnel`、`entry tunnel <域名>` |
|
|
48
49
|
| 托管账号生命周期 | `codiscuss admin account list`、`account add <名>`、`account start\|stop\|disable\|enable\|remove\|password <名>`、`account isolate\|protect <名>` |
|
|
49
|
-
| 登录、密钥、技能与提示词 | `codiscuss admin login status <对象>`、`key add <对象> --base-url … --key …`、`skill install <对象> <技能>`、`workflow install <对象>`、`prompt set <对象> --file …` |
|
|
50
|
+
| 登录、密钥、技能与提示词 | `codiscuss admin login status <对象>`、`key add <对象> --base-url … --key …`、`skill install <对象> <技能>`、`workflow install <对象>`、`workflow update <对象>`、`prompt set <对象> --file …` |
|
|
50
51
|
|
|
51
52
|
注:`<对象>` 填 `owner` 代表管理员自己,填托管账号名代表对应托管账号。`account add` 中途失败时,解决问题后重跑同一命令会自动从缺少的步骤续做。
|
|
52
53
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
- **续期(对方电脑)**:在外部房间右栏调整借出时间,从调整时起重新计时,也可改短;**自然到期后,在原外部房间右栏点“续期”,选好借出时间并点“保存”,即可回到对方房间**(被房主撤销的不能自行续期)。命令行用 `codiscuss invited lend <ID> 1h|today|3d`。
|
|
40
40
|
- **暂停与退出(对方电脑)**:在外部房间右栏点“暂停唤醒”/“恢复唤醒”,或在外部房间菜单点“退出房间”;房间结束后可点“删除记录”清理本机列表。已配对的手机和平板也能调整上述选项。
|
|
41
|
-
- **查看读取记录与撤销(你的电脑)**:右栏 → 成员菜单 →
|
|
41
|
+
- **查看读取记录与撤销(你的电脑)**:右栏 → 成员菜单 → “读取记录与权限”(或在顶部“房间”页 → “成员与设置”对应外部专家卡片里),查看它读过的每个文件,可将权限降为“改为只看消息”,或点“撤销授权”立即终止(待签到时为“移除席位”)。
|
|
42
42
|
- **重新邀请(你的电脑)**:已结束(到期、退出或撤销)的外部成员会灰显在名单下方并标明原因。被撤销或对方退出的,点“重新邀请”生成新链接把原成员请回,名字和历史不变。
|
|
43
43
|
|
|
44
44
|
## 对方能读到什么,读不到什么
|