ai_co_discuss 0.5.10 → 0.5.11
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/backend/free_room.py +20 -8
- package/backend/message_queue.py +22 -0
- package/backend/questions.py +16 -3
- package/backend/server.py +3 -3
- package/docs/deployment.md +1 -1
- package/docs/en/deployment.md +1 -1
- package/docs/en/guide/faq.md +1 -1
- package/docs/en/guide/members.md +1 -1
- package/docs/en/guide/rooms.md +4 -4
- package/docs/en/guide/workflows.md +2 -2
- package/docs/en/guide/working.md +7 -3
- package/docs/guide/faq.md +1 -1
- package/docs/guide/members.md +1 -1
- package/docs/guide/rooms.md +4 -4
- package/docs/guide/workflows.md +2 -2
- package/docs/guide/working.md +7 -3
- package/frontend/locales/en/app.json +10 -1
- package/frontend/locales/en/backend.json +4 -1
- package/frontend/locales/en/core.json +9 -8
- package/frontend/locales/en/room.json +5 -0
- package/frontend/locales/en/settings.json +20 -4
- package/package.json +1 -1
- package/runner/discussion_launch.mjs +33 -5
- package/runner/discussion_local.mjs +2 -1
- package/runner/discussion_service.mjs +16 -1
- package/runner/image_service.mjs +18 -1
- package/runner/remote_launch.mjs +1 -1
- package/runner/room_destruction.mjs +36 -2
- package/web/admin.js +1 -1
- package/web/app.js +171 -35
- package/web/i18n.js +2 -2
- package/web/modern.css +1 -1
- package/web/modern.js +64 -60
package/backend/free_room.py
CHANGED
|
@@ -3933,25 +3933,37 @@ def interrupt_member(connection, room_id, member_id, token, by_host=""):
|
|
|
3933
3933
|
|
|
3934
3934
|
|
|
3935
3935
|
def interrupt_for_message(connection, room_id, message_id):
|
|
3936
|
-
"""The owner's "send now" of a queued message
|
|
3936
|
+
"""The owner's "send now" of a queued message to members still at work (user 2026-11-23, #7819): a member whose
|
|
3937
|
+
software takes an interjection hears of it in its running turn, which then also answers it; any other is
|
|
3938
|
+
interrupted and takes it, with the interrupted work, next.
|
|
3937
3939
|
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
+
The interjection only points at the message (red line 6); the request joins the running execution, so the answer
|
|
3941
|
+
that ends the turn closes it. Members whose software can neither take an interjection nor stop are left alone:
|
|
3942
|
+
voiding their turn would only discard its answer. Unlike the owner's stop, the rest of the queue is not paused.
|
|
3940
3943
|
|
|
3941
3944
|
Raises:
|
|
3942
|
-
FileExistsError: a recipient is busy and
|
|
3945
|
+
FileExistsError: a recipient is busy and can neither be interjected nor stopped; the caller keeps the message queued.
|
|
3943
3946
|
"""
|
|
3944
|
-
busy = connection.execute("""SELECT
|
|
3947
|
+
busy = connection.execute("""SELECT r.id AS request_id, r.member_id, m.name, c.stoppable, c.steer, c.resume, e.id AS execution_id,
|
|
3948
|
+
(SELECT COUNT(*) FROM execution_interjections i WHERE i.execution_id=e.id) AS interjections FROM member_requests r
|
|
3945
3949
|
JOIN room_members m ON m.id=r.member_id
|
|
3946
3950
|
JOIN member_executions e ON e.member_id=r.member_id AND e.status IN ('dispatched','started')
|
|
3947
3951
|
LEFT JOIN execution_capabilities c ON c.execution_id=e.id
|
|
3948
3952
|
WHERE r.room_id=? AND r.message_id=? AND r.status='pending'""", (room_id, message_id)).fetchall()
|
|
3949
|
-
|
|
3953
|
+
steerable = [row for row in busy if (row["steer"] or row["resume"]) and row["interjections"] < MAX_INTERJECTIONS]
|
|
3954
|
+
stopped = [row for row in busy if row not in steerable]
|
|
3955
|
+
blocked = [row["name"] for row in stopped if row["stoppable"] == 0]
|
|
3950
3956
|
if blocked:
|
|
3951
3957
|
raise FileExistsError(Text("{value1} 正在执行且无法打断,这条消息继续排队,等它答完后发送", value1='、'.join(blocked)))
|
|
3952
|
-
|
|
3958
|
+
now = int(time.time())
|
|
3959
|
+
for row in steerable:
|
|
3960
|
+
execution = connection.execute("SELECT * FROM member_executions WHERE id=?", (row["execution_id"],)).fetchone()
|
|
3961
|
+
add_interjection(connection, room_id, execution, {"text": str(Text("用户刚发来消息 #{message_id},请先读原文,在这一轮的回答里一并处理。", message_id=message_id)),
|
|
3962
|
+
"submission_id": f"queue-{message_id}-{row['member_id']}"}, now)
|
|
3963
|
+
connection.execute("UPDATE member_requests SET status='delivering',execution_id=? WHERE id=?", (row["execution_id"], row["request_id"]))
|
|
3964
|
+
for row in stopped:
|
|
3953
3965
|
stop_member_work(connection, row["member_id"], Text("已打断:你立即发送了新消息,它会连同这条一起处理"), "user_stop", keep_pending=True, requeue=True)
|
|
3954
|
-
if
|
|
3966
|
+
if stopped:
|
|
3955
3967
|
settle_batches(connection, room_id)
|
|
3956
3968
|
|
|
3957
3969
|
|
package/backend/message_queue.py
CHANGED
|
@@ -55,6 +55,7 @@ def queue_view(connection, room_id):
|
|
|
55
55
|
item["to"] = payload["to"]
|
|
56
56
|
if payload.get("message_id"):
|
|
57
57
|
item.update(message_id=payload["message_id"], waiting_for=payload.get("to", []))
|
|
58
|
+
item["send_mode"] = send_mode(connection, room_id, payload)
|
|
58
59
|
items.append(item)
|
|
59
60
|
paused = connection.execute("SELECT 1 FROM queued_message_pauses WHERE room_id=?", (room_id,)).fetchone() is not None
|
|
60
61
|
busy_members = [row["name"] for row in connection.execute("SELECT id,name FROM room_members WHERE room_id=? AND status='active'", (room_id,))
|
|
@@ -63,6 +64,27 @@ def queue_view(connection, room_id):
|
|
|
63
64
|
"host_busy": host_busy(connection, room_id), "busy_members": busy_members}
|
|
64
65
|
|
|
65
66
|
|
|
67
|
+
def send_mode(connection, room_id, payload):
|
|
68
|
+
"""What "send now" would do with a queued message, so its button says so before it is clicked (user 2026-11-23):
|
|
69
|
+
`send` (its recipients are free), `steer` (every busy recipient takes an interjection), `interrupt` (a busy one is
|
|
70
|
+
stopped first) or `wait` (a busy one can do neither; the message stays queued).
|
|
71
|
+
|
|
72
|
+
Recipients are the named members, or the host for a message the room as a whole waits for."""
|
|
73
|
+
named = named_members(connection, room_id, payload)
|
|
74
|
+
if named is None and payload.get("message_id"):
|
|
75
|
+
return "send"
|
|
76
|
+
ids = list(named.values()) if named else [row[0] for row in connection.execute(
|
|
77
|
+
"SELECT id FROM room_members WHERE room_id=? AND role='host' AND status='active'", (room_id,))]
|
|
78
|
+
modes = set()
|
|
79
|
+
for member_id in ids:
|
|
80
|
+
live = connection.execute("""SELECT c.stoppable,c.steer,c.resume FROM member_executions e
|
|
81
|
+
LEFT JOIN execution_capabilities c ON c.execution_id=e.id
|
|
82
|
+
WHERE e.member_id=? AND e.status IN ('dispatched','started')""", (member_id,)).fetchone()
|
|
83
|
+
if live:
|
|
84
|
+
modes.add("steer" if live["steer"] or live["resume"] else "wait" if live["stoppable"] == 0 else "interrupt")
|
|
85
|
+
return "wait" if "wait" in modes else "interrupt" if "interrupt" in modes else "steer" if modes else "send"
|
|
86
|
+
|
|
87
|
+
|
|
66
88
|
def named_members(connection, room_id, payload):
|
|
67
89
|
"""The present members a side question names, as {name: id}; None for a message the whole room waits for."""
|
|
68
90
|
named = payload.get("to")
|
package/backend/questions.py
CHANGED
|
@@ -20,6 +20,7 @@ import json
|
|
|
20
20
|
import re
|
|
21
21
|
import time
|
|
22
22
|
|
|
23
|
+
from .message_queue import enqueue_share, member_busy
|
|
23
24
|
from .runtime import begin_write, require_owner
|
|
24
25
|
from .texts import Text
|
|
25
26
|
|
|
@@ -622,12 +623,24 @@ def live_check(connection, row):
|
|
|
622
623
|
raise QuestionClosed(Text("接力已停止或已离开这个检查点,迟到的回答不会重启它"))
|
|
623
624
|
|
|
624
625
|
|
|
626
|
+
def hand_to(connection, room_id, member_id, message_id):
|
|
627
|
+
"""Give the owner's answer message to a member: at once when it is free, else as a share in the owner's message queue
|
|
628
|
+
(user 2026-11-23, #7819), where the owner decides to wait, interject or interrupt, as for any message of theirs."""
|
|
629
|
+
if not member_busy(connection, member_id):
|
|
630
|
+
free().insert_request(connection, room_id, member_id, message_id, message_id, "ask", "user")
|
|
631
|
+
return
|
|
632
|
+
member = connection.execute("SELECT name FROM room_members WHERE id=?", (member_id,)).fetchone()
|
|
633
|
+
message = connection.execute("SELECT text,submission_id FROM messages WHERE id=?", (message_id,)).fetchone()
|
|
634
|
+
enqueue_share(connection, room_id, {"author": "用户", "text": message["text"], "submission_id": message["submission_id"]},
|
|
635
|
+
message_id, [member["name"]])
|
|
636
|
+
|
|
637
|
+
|
|
625
638
|
def to_host(connection, room_id, message_id):
|
|
626
639
|
"""Hand the owner's request for a recommendation or a decision to the present host, on the owner's message."""
|
|
627
640
|
host = connection.execute("SELECT id FROM room_members WHERE room_id=? AND role='host' AND status='active'", (room_id,)).fetchone()
|
|
628
641
|
if not host:
|
|
629
642
|
raise FileExistsError(Text("房间当前没有主持人,无法请主持人推荐或决定"))
|
|
630
|
-
|
|
643
|
+
hand_to(connection, room_id, host["id"], message_id)
|
|
631
644
|
|
|
632
645
|
|
|
633
646
|
def settle_answer(connection, row, record, message_id):
|
|
@@ -653,12 +666,12 @@ def settle_answer(connection, row, record, message_id):
|
|
|
653
666
|
return
|
|
654
667
|
asker = connection.execute("SELECT id,status FROM room_members WHERE id=?", (row["asker_id"],)).fetchone()
|
|
655
668
|
if asker and asker["status"] == "active":
|
|
656
|
-
|
|
669
|
+
hand_to(connection, room_id, asker["id"], message_id)
|
|
657
670
|
return
|
|
658
671
|
# The asker left: the answer stays, and the host decides what follows.
|
|
659
672
|
host = connection.execute("SELECT id FROM room_members WHERE room_id=? AND role='host' AND status='active'", (room_id,)).fetchone()
|
|
660
673
|
if host:
|
|
661
|
-
|
|
674
|
+
hand_to(connection, room_id, host["id"], message_id)
|
|
662
675
|
|
|
663
676
|
|
|
664
677
|
def event(connection, question_id, kind, detail):
|
package/backend/server.py
CHANGED
|
@@ -1255,7 +1255,7 @@ ROOM_TEXT_OWNERS = (
|
|
|
1255
1255
|
# Receipt item states: removed and checked gone, not on this computer, deliberately kept, failed (retried).
|
|
1256
1256
|
DESTRUCTION_STATES = ("deleted", "elsewhere", "kept", "failed")
|
|
1257
1257
|
# What a runner may report about its computer, beyond the website's own records and attachments.
|
|
1258
|
-
RUNNER_DESTRUCTION_KINDS = ("sessions", "runtime_files", "kept_sessions", "software_stores")
|
|
1258
|
+
RUNNER_DESTRUCTION_KINDS = ("sessions", "runtime_files", "kept_sessions", "software_stores", "draft_space")
|
|
1259
1259
|
DESTRUCTION_LIST_LIMIT = 20
|
|
1260
1260
|
|
|
1261
1261
|
|
|
@@ -3165,7 +3165,7 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3165
3165
|
site = self.local_request_site(method)
|
|
3166
3166
|
route = parts[2:]
|
|
3167
3167
|
if method == "OPTIONS" and route in (["settings"], ["launch"], ["wipe-histories"], ["room-models"], ["room-skills"], ["room-files"], ["room-page"], ["room-media"], ["execution-details"], ["room-member"], ["room-member-access"], ["room-member-allow"], ["room-member-adapter"], ["room-member-model"], ["room-profiles"], ["room-restore"], ["room-fork"], ["models"], ["sessions"], ["api-key"], ["api-check"],
|
|
3168
|
-
["scheduler-check"], ["image-settings"], ["tts-settings"], ["tts"], ["tts-release"], ["local-speech"], ["stt"], ["weixin"], ["pick-directory"], ["browse-directory"], ["projects"], ["presets"], ["workflows"], ["room-workflow"], ["room-settings"], ["machine-link"], ["device-pairing"], ["devices"]) or (method == "OPTIONS" and len(route) == 1 and route[0] in INVITE_COMMANDS + INVITED_COMMANDS):
|
|
3168
|
+
["scheduler-check"], ["image-check"], ["image-settings"], ["tts-settings"], ["tts"], ["tts-release"], ["local-speech"], ["stt"], ["weixin"], ["pick-directory"], ["browse-directory"], ["projects"], ["presets"], ["workflows"], ["room-workflow"], ["room-settings"], ["machine-link"], ["device-pairing"], ["devices"]) or (method == "OPTIONS" and len(route) == 1 and route[0] in INVITE_COMMANDS + INVITED_COMMANDS):
|
|
3169
3169
|
return self.respond({"ok": True})
|
|
3170
3170
|
if route == ["settings"] and method in ("GET", "POST"):
|
|
3171
3171
|
command = "settings"
|
|
@@ -3185,7 +3185,7 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3185
3185
|
command = "api-check"
|
|
3186
3186
|
elif route == ["scheduler-check"] and method == "POST":
|
|
3187
3187
|
command = "scheduler-check"
|
|
3188
|
-
elif route in (["image-settings"], ["tts-settings"], ["tts"], ["tts-release"], ["local-speech"], ["stt"], ["weixin"]) and method == "POST":
|
|
3188
|
+
elif route in (["image-check"], ["image-settings"], ["tts-settings"], ["tts"], ["tts-release"], ["local-speech"], ["stt"], ["weixin"]) and method == "POST":
|
|
3189
3189
|
command = route[0]
|
|
3190
3190
|
elif route in (["room-member"], ["room-member-access"], ["room-member-allow"], ["room-member-adapter"], ["room-member-model"]) and method == "POST":
|
|
3191
3191
|
command = route[0]
|
package/docs/deployment.md
CHANGED
|
@@ -208,4 +208,4 @@ npx wrangler secret put SOURCE_SALT --config deploy/wrangler.local.jsonc
|
|
|
208
208
|
npx wrangler deploy --config deploy/wrangler.local.jsonc
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
程序按原始快照字节限制单份 5 MiB、每个来源 20 份及 50 MiB、全站 5 GB
|
|
211
|
+
程序按原始快照字节限制单份 5 MiB、每个来源 20 份及 50 MiB、全站 5 GB。勾选“包含附件”发布时,附件作为文件存进 R2 存储桶(绑定名 `FILES`):单份合计 100 MiB,每个来源的有效分享合计 500 MB,全站 8 GB(R2 免费额度 10 GB);撤销、更新或到期时一并删除。部署前先开通 R2 并执行 `npx wrangler r2 bucket create codiscuss-share-files --config deploy/wrangler.local.jsonc`,私有配置里保留 `r2_buckets` 绑定。免费 D1 的单库物理上限是 500 MB,账号合计 5 GB;压缩后的数据、索引和其他记录都占用单库空间。部署使用一个库,先达到的平台限额会先影响写入。分享页面每次检查状态,撤销或下架后停止提供内容;已由读者保存的副本无法收回。[Cloudflare D1 限额](https://developers.cloudflare.com/d1/platform/limits/)
|
package/docs/en/deployment.md
CHANGED
|
@@ -206,4 +206,4 @@ npx wrangler secret put SOURCE_SALT --config deploy/wrangler.local.jsonc
|
|
|
206
206
|
npx wrangler deploy --config deploy/wrangler.local.jsonc
|
|
207
207
|
```
|
|
208
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/)
|
|
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. Shares published with “Include attachments” keep their attachments as files in an R2 bucket (binding `FILES`): at most 100 MiB per share, 500 MB across one source’s live shares and 8 GB across the site (R2’s free tier is 10 GB); they are deleted with the share when it is revoked, updated or expires. Before deploying, enable R2 and run `npx wrangler r2 bucket create codiscuss-share-files --config deploy/wrangler.local.jsonc`, keeping the `r2_buckets` binding in the private config. 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/faq.md
CHANGED
|
@@ -74,7 +74,7 @@ Shutdown and sleep interrupt local execution. During an internet outage, the loc
|
|
|
74
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
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
76
|
| Reading → Lines shown when folded | Fewer, Medium, More | A folded answer keeps about 0.35, 0.6 or 0.9 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
|
|
77
|
+
| Room preferences → Host's default 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. |
|
|
78
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) |
|
|
79
79
|
| WeChat notifications | Scan to link, Send test, Unlink | [WeChat notifications](voice.md#wechat-notifications) |
|
|
80
80
|
|
package/docs/en/guide/members.md
CHANGED
|
@@ -29,7 +29,7 @@ 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 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.
|
|
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. A manually connected member that is now woken by this computer shows “Existing session” next to its connection. It keeps its original session’s project access, but you can still change its model and effort here.
|
|
33
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). Member rows in the right sidebar do not show descriptions: point at a member with the mouse and its member card floats out on the left with the description and an “Edit name and description” button. 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
|
|
package/docs/en/guide/rooms.md
CHANGED
|
@@ -13,7 +13,7 @@ In the sidebar, select “New room”. To create one inside a folder, select the
|
|
|
13
13
|
- Optionally choose a folder under “Project folder (optional)”. If you do not, the service creates a dedicated folder in the draft workspace (by default, `~/.codiscuss-workspace`). After choosing a primary directory, select “Add another project folder” to add up to eight more.
|
|
14
14
|
2. **“Who takes part”**
|
|
15
15
|
- Select “Add AI” to add members. Select the crown on a member card to make it the host.
|
|
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).
|
|
16
|
+
- Optionally configure “Smart scheduling”, “Image generation” (add an OpenAI Images card and enter an endpoint, API key, and image model; the lightning button on the back of the card checks the endpoint, key, and model without generating an image or incurring charges), and “Web search” (enter a DeepSeek API key shared across rooms).
|
|
17
17
|
3. **“How to work (optional)”**
|
|
18
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”.
|
|
@@ -29,7 +29,7 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
29
29
|
- **Sort rooms.** Open the directory options in the top-right corner. Choose “Manual order” (drag items or use the arrow keys) or “Recent activity”.
|
|
30
30
|
- **Folders.** Select “New folder” to group rooms by project. A folder can have a default project directory, which is used for new rooms created inside it. Its menu offers “Edit”, “Move up”, “Move down”, “Archive folder”, and “Remove folder”. You can remove just the folder or delete its rooms as well.
|
|
31
31
|
- **Room actions.** Open a room’s menu to “Rename”, “Edit topic”, “Move to folder”, “Copy reading link”, “Refresh messages”, “Archive room”, or “Destroy room”. “Edit topic” and “Refresh messages” apply to the currently open room.
|
|
32
|
-
- **Destroy a room.** Select “Destroy room” in the room’s menu. The dialog lists what is deleted and what is kept. You can first select “Export package” to download a copy with messages, private chats, attachments, a “讨论记录.html” page that opens with a double click, and the files members wrote in their draft folders (in “草稿”; beyond 50 MB only their names are listed). After “Destroy now” and then “Destroy” in “Confirm destroying again” (every way of destroying asks twice), the room’s records, attachments, the AI sessions its members started in this room, and its run files and drafts are deleted from this computer,
|
|
32
|
+
- **Destroy a room.** Select “Destroy room” in the room’s menu. The dialog lists what is deleted and what is kept. You can first select “Export package” to download a copy with messages, private chats, attachments, a “讨论记录.html” page that opens with a double click, and the files members wrote in their draft folders (in “草稿”; beyond 50 MB only their names are listed). After “Destroy now” and then “Destroy” in “Confirm destroying again” (every way of destroying asks twice), the room’s records, attachments, the AI sessions its members started in this room, and its run files and drafts are deleted from this computer: the dialog closes, a notice says the room is being destroyed and it dims in the sidebar. Once every item is checked, the room dissolves into particles and a notice shows what was removed. The draft folder made when the room was created (under “Drafts” in “Project”) is deleted with its files too; the package keeps them in “草稿空间”. A project folder you chose is not deleted. Sessions taken over from your own windows or shared with other rooms are kept. Content already sent to model providers stays under their policies and cannot be deleted from here. A published share page is taken down first. If an item cannot be removed yet, the room stays dimmed in the sidebar and you can select “Retry” in the dialog. Files in members’ draft folders are deleted with the room; export the package first if you need them.
|
|
33
33
|
- **Destruction records and destroying all rooms.** Open “…” at the top right of the room list and select “Destruction records” to see what each destruction deleted and kept (the room name is cleared once it finishes). Select “Retry” on an unfinished one. “Destroy all rooms” at the bottom asks you to type a confirmation word, then destroys every room, archived ones included, one by one; project files are kept. A hosted account running as its own Windows user then also deletes every conversation in its AI software and the preferences the AI remembered, keeping logins. “Export all rooms” leaves drafts out; export rooms one at a time to include them.
|
|
34
34
|
- **Auto-destroy.** Choose it under “Advanced settings” when creating a room, or later in the “Room” tab at the top of the room, set “Auto-destroy” to destroy the room after 1, 7, or 30 days without activity; the time left is shown beside it. The count starts when you set it and restarts with each new message or private chat. Archived rooms, rooms with members at work or queued work, an open question for you, or a published share page are not destroyed automatically. The page warns once when less than a day is left, and again after a room is destroyed. The default is “Keep”.
|
|
35
35
|
- **Restore or clear archived rooms.** Open “Archived”. Filter by keyword or whether rooms contain messages. Select “Restore” to return a room to the active list. To delete one permanently, select “Delete for good” and confirm. “Delete all” applies to the current filtered results.
|
|
@@ -55,11 +55,11 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
55
55
|
- **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.
|
|
56
56
|
- **Share as a web page.** In a room’s menu, select “Share”. 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:
|
|
57
57
|
- “Download web page” gives you a single `.html` file that opens in any browser. Once sent, it cannot expire or be taken back.
|
|
58
|
-
- “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” 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.
|
|
58
|
+
- “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” 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 whose text comes to over 5 MB after cleaning need the web page file instead.
|
|
59
59
|
|
|
60
60
|
Either way, readers see the room’s **Messages** and **Runs** views from the beginning, as they look here: cards and run details open; each time **Runs** is opened it replays the session from the start, and “End replay” returns to the final state. The other tabs, such as **Private**, **Room** and **Files**, are dimmed and show only a sample; 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.
|
|
61
61
|
|
|
62
|
-
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. A share link carries the attachments the page can preview — images, audio, video, PDF, Word/Excel/PowerPoint (docx, xlsx, pptx), text and code, and web pages — for readers to open right in the page; scripts that run on a double click, such as js, bat and ps1, go with .txt added to their names.
|
|
62
|
+
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; project files a member’s answer delivered (the file cards under the answer) come along too, as attachments of that answer. 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. A share link carries the attachments the page can preview — images, audio, video, PDF, Word/Excel/PowerPoint (docx, xlsx, pptx), text and code, zip archives, and web pages — for readers to open right in the page; scripts that run on a double click, such as js, bat and ps1, go with .txt added to their names. Programs and old doc/xls/ppt files stay off the share site and their messages read “not included in the share”, while a downloaded web page file still carries them. Web page attachments run on the share page as they do in the room, and demos a member’s answer refers to show inside the message; they run in an isolated frame that cannot read the share page, send requests or submit forms. Attachments do not count toward the 5 MB of text: a share link uploads them one by one, up to 100 MB in all, with the publish button showing the progress; above that, untick them or use the web page file, which also carries at most 100 MB of attachments.
|
|
63
63
|
- **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.
|
|
64
64
|
- **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.
|
|
65
65
|
- **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.
|
|
@@ -34,7 +34,7 @@ You can create or import a ZIP file or folder with the “+” on the Workflows
|
|
|
34
34
|
|
|
35
35
|
- **Ask the host in a room:** Enable “Full host control,” then describe the division of work you want. You can also type / and choose “Create / edit workflow” under platform skills. The host uses the skill to create SKILL.md, role cards, and a canvas, validates them, saves, and enables the workflow.
|
|
36
36
|
- **Ask an AI in an external session:** In a Claude Code or Codex session with the CoDiscuss skills installed, ask it to create or edit a workflow with workflow-creator. It validates a folder with codiscuss launch workflow-check --dir <directory>. After you approve, it saves the workflow with codiscuss launch workflow-save --dir <directory>. If the library already has that ID, the save is refused unless it explicitly overwrites (--overwrite) or names the revision it read (--revision).
|
|
37
|
-
- **Where workflows are stored:** The local service keeps them under ~/.codiscuss/workflows/<workflow-id>/. On the Workflows page, open the “…” menu and choose “
|
|
37
|
+
- **Where workflows are stored:** The local service keeps them under ~/.codiscuss/workflows/<workflow-id>/. On the Workflows page, open the “…” menu and choose “Export” to download a workflow as a zip (<workflow-id>.zip, holding its whole folder) to share; others import it with “+” on the Workflows page. Files that are not text or are too large are left out, and a notice says which.
|
|
38
38
|
|
|
39
39
|
### 4. The canvas and SKILL.md
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ Select a workflow on the Workflows page. The canvas opens in the center, and its
|
|
|
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
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
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.
|
|
47
|
-
- **Experts with skills:** A workflow expert can be a folder instead of a file: agents/<card-id>/ holds its definition <card-id>.md (the same format as a card file) and skills/<skill>/, each skill a SKILL.md plus references/. The member playing that card may read and write its own skills while the rest of the workflow stays read-only; its writing does not change the workflow’s revision, and ordinary saves from the page or the command line keep the skills as they are; only an explicit overwrite or an import replaces them with the folder’s. Exporting the expert gives exactly that folder.
|
|
47
|
+
- **Experts with skills:** A workflow expert can be a folder instead of a file: agents/<card-id>/ holds its definition <card-id>.md (the same format as a card file) and skills/<skill>/, each skill a SKILL.md plus references/. The member playing that card may read and write its own skills while the rest of the workflow stays read-only; its writing does not change the workflow’s revision, and ordinary saves from the page or the command line keep the skills as they are; only an explicit overwrite or an import replaces them with the folder’s. Exporting the expert gives exactly that folder. “Experts” is a large dialog: every card on the left, and on the right three tabs, “Basics”, “Prompt” and “Skills”. Changes to basics and prompts are written to the workflow by “Save” at the bottom of the dialog (the same save as the Workflows page’s); skill files are saved one at a time. On a phone you pick an expert from the list first, then open its settings, with a back button at the top left. Every expert with skills, in the main flow or a sub-workflow, is listed under Advisors, marked with where it sits; its “Skills” tab shows its skills and files on the left and the chosen file’s editor on the right (one level at a time on a phone), to view and edit each skill’s SKILL.md and references and to create or delete skills and reference files. These edits are written to the expert’s folder at once, without saving the workflow or changing its revision; a file the expert changed meanwhile is refused with a reload offered, never overwritten. On another expert, the “Skills” tab takes its first skill’s name and description (“Add skill”); after you save the workflow it becomes a folder with skills. “Import expert package” below the list puts an md, zip or folder into the main flow or the sub-workflow open on the canvas. Removing an expert with skills, replacing its skills by an overwrite, or deleting the workflow first backs its folder up into backups in the service folder. codiscuss launch expert-import --from <path> --workflow <id> [--sub <sub-workflow-id>] puts an expert package into a workflow and refuses a card ID that exists. A panel expert has skills of its own in experts/<id>/skills/ in the service folder, never shared with a workflow’s; “Save as preset” in “Experts” copies them there; skills already on this computer are kept, and the notice offers to replace them with the workflow’s. On the new-room panel, a preset expert with skills (an advisor) shows only the basic settings on its back, like any other expert, plus an “Advanced settings” button that opens the same dialog as the workflow’s, for its own skills in the service folder. If a preset of that name exists, choose “Replace the preset of this name” to replace it; skills already there are kept. In the page, “Import / export experts” under “添加 AI” on the new-room panel imports an .md, a zip or a folder and exports any preset; “Export” in a workflow’s “Experts” exports the current card as saved. Without skills you get one md, otherwise a zip. On import, a preset of the same name asks you to “Replace” or cancel; skills already on this computer are kept unless you choose “Use the imported one (the current one is backed up)”; ignored files and access lowered to read-only are listed. On the command line, codiscuss launch expert-export exports an expert and codiscuss launch expert-import imports one as a preset; an existing preset or skills are never replaced silently. When an expert names software this computer has not set up, or a model missing from this computer’s list for that software, the import still succeeds and its notice says so; the panel button is then greyed (software) or the card is marked “… is not available here and cannot run” (model), and starting a room or inviting it is refused until the software is set up or the model changed to a listed one (empty means the software default). Only a model list already read here counts: no list yet, a failed read or no model at all is never flagged, and Claude’s list, being only its model picker, never blocks.
|
|
48
48
|
|
|
49
49
|
### 5. “Full host control” and workflows
|
|
50
50
|
|
package/docs/en/guide/working.md
CHANGED
|
@@ -40,13 +40,17 @@ Room work can run on several lines in parallel. Labels at the top of a card show
|
|
|
40
40
|
|
|
41
41
|
### 3. Manage queued messages
|
|
42
42
|
|
|
43
|
-
New messages wait above the composer while the intended member or room is busy. They are sent when the recipient or room becomes available.
|
|
43
|
+
New messages wait above the composer while the intended member or room is busy. They are sent when the recipient or room becomes available. Your answers on an answer card work the same way: while the member who asked is still busy, the answer is recorded, but the share for that member waits in the queue, marked “#N is posted; it goes to … once free”.
|
|
44
44
|
|
|
45
|
-
- **
|
|
45
|
+
- **Not waiting.** The button on a queued item says what it will do:
|
|
46
|
+
- “Send now”: the recipient is free, so it goes at once.
|
|
47
|
+
- “Steer”: the recipient is working and its software takes interjections, so this joins its current turn; it sees it right away and the work done so far stays.
|
|
48
|
+
- “Interrupt and send”: the recipient is working and cannot take an interjection, so its turn is stopped first and it takes this together with the interrupted work.
|
|
49
|
+
- When the recipient can neither take an interjection nor be stopped, the button stays “Send now”; selecting it explains why and the message stays queued.
|
|
46
50
|
- **Edit or delete.** In a queued, unsent item’s menu, select “Edit message” to return it to the composer for editing, or delete it.
|
|
47
51
|
- **Reorder.** Drag queued items. On a phone, press and hold an item to move it.
|
|
48
52
|
- **Pause and resume.** Selecting “Stop all” or stopping the service pauses the queue. It shows “Queue paused: you stopped the run”. Select “Continue” to resume. A failed message pauses the queue and shows the reason. Select “Retry”, edit, or delete the message to continue.
|
|
49
|
-
- Queuing is always on and has no switch; to have a busy member take a message right away, use “
|
|
53
|
+
- Queuing is always on and has no switch; to have a busy member take a message right away, use “Steer” or “Interrupt and send” on the queued item.
|
|
50
54
|
|
|
51
55
|
### 4. Stop, retry, withdraw, edit, or rewind
|
|
52
56
|
|
package/docs/guide/faq.md
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
| **阅读 → 卡片文字大小** | “小” / “中” / “大” | 消息卡片里正文的字号;默认“中”,只对当前设备生效 |
|
|
67
67
|
| **阅读 → 长回答折叠** | “宽松” / “标准” / “紧凑” | 回答多长才收起,按屏幕高度计算;默认“宽松”,只对当前设备生效 |
|
|
68
68
|
| **阅读 → 折叠后显示** | “少” / “中” / “多” | 收起后保留开头约 0.35 / 0.6 / 0.9 屏,按屏幕高度换算成行数,手机、平板、电脑各不相同;默认“中”,只对当前设备生效 |
|
|
69
|
-
| **房间偏好 →
|
|
69
|
+
| **房间偏好 → 主持人默认权限** | “只读” / “可写” / “自动” / “全放开” | 新建房间时第一位加入的成员(默认主持人)的项目权限,默认“只读”;该软件不支持所选档位时仍为只读。保存在本机服务里,升级不丢,需连接本机服务 |
|
|
70
70
|
| **语音** | 朗读服务 / 音色(通用、各平台、文件)/ 语速 / 语气 / 语音输入服务 / “本机进程” | [语音与通知](voice.md#朗读与语音输入本机与云端的区别) |
|
|
71
71
|
| **微信通知** | “扫码绑定” / “发送测试” / “解除绑定” | [语音与通知](voice.md#微信通知) |
|
|
72
72
|
|
package/docs/guide/members.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
## 更换模型、名称与专属提示词
|
|
31
31
|
|
|
32
|
-
- **改模型与思考强度**:新建房间或邀请时在成员卡背面设置;已有房间在顶部“房间”页 → “成员与设置”里找到该成员,调整模型、思考强度,或点刷新重新读取模型列表(更改从下一次执行生效)。App 接入的成员在原 App 聊天里选模型与强度,网页不覆盖。支持切换入口的软件也可在这里切换 CLI 与 App
|
|
32
|
+
- **改模型与思考强度**:新建房间或邀请时在成员卡背面设置;已有房间在顶部“房间”页 → “成员与设置”里找到该成员,调整模型、思考强度,或点刷新重新读取模型列表(更改从下一次执行生效)。App 接入的成员在原 App 聊天里选模型与强度,网页不覆盖。支持切换入口的软件也可在这里切换 CLI 与 App。由手动接入转为本机唤醒的成员,“接入”后会标“接管已有会话”:它的项目权限沿用原会话,模型与思考强度同样可以在这里改。
|
|
33
33
|
- **改显示名与分工描述**:右栏 → 成员菜单 → “名称与描述”(建房或邀请时点成员卡的名称与描述按钮,可翻面的卡片在背面设置),修改房间里的“显示名称”和分工说明。在房间里还有更快的入口:双击右栏或“成员与设置”页里的成员名称直接改名(Enter 或点别处保存,Esc 取消)。右栏的成员行不显示描述:鼠标指向某位成员,左侧浮出它的成员卡片,显示描述,并可点“编辑名称与描述”。编辑框里可点常见分工快速填入。分工说明会发给主持人和智能调度,帮助更准确地派活,也可存为该软件的默认描述。
|
|
34
34
|
- **设专属提示词**:翻开成员卡,点背面的“专属提示词”按钮,写下只发给这位成员的要求(例如“回答先给结论”)。专属提示词不改变权限,也可随时恢复软件预设。
|
|
35
35
|
|
package/docs/guide/rooms.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- 按需选择“项目目录(可选)”;不选时,程序会在草稿空间(默认 `~/.codiscuss-workspace`)为这个房间单独建一个文件夹。选好主目录后,可点“添加其他项目目录”再挂最多 8 个目录。
|
|
14
14
|
2. **“谁来参与”**
|
|
15
15
|
- 点“添加 AI”加入成员,点卡片上的皇冠指定主持人。
|
|
16
|
-
- 按需配置下方的“智能调度”、“生图”(添加“OpenAI Images”卡片并填地址、API Key
|
|
16
|
+
- 按需配置下方的“智能调度”、“生图”(添加“OpenAI Images”卡片并填地址、API Key 和图片模型;点卡片背面的闪电按钮可检查地址、密钥与模型,不生成图片、不计费)以及“联网搜索”(填 DeepSeek API Key,所有房间共用)。
|
|
17
17
|
3. **“协作方式(可选)”**
|
|
18
18
|
- 按需勾选“主持人完整权限”,允许主持人自行管理成员、重试或打断执行、开启讨论与 Goal 及保存工作流。不想全部放开时,展开“具体权限”只勾选需要的几项。
|
|
19
19
|
- 在“创建后”选择“不开启”、“开启讨论”或“开启 Goal”。
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
- **排序**:点目录右上角选项,在“手动排序”(拖动或用上下方向键调序)和“最近发言”之间切换。
|
|
30
30
|
- **文件夹**:点“新建文件夹”按项目归集房间,可为文件夹设置默认项目目录,之后在该文件夹里建房会自动带入。点文件夹菜单可“编辑”、“上移”、“下移”、“存档文件夹”或“移除文件夹”(可选择仅移除文件夹,或连同其中房间一并删除)。
|
|
31
31
|
- **房间操作**:点房间右侧菜单,可以“重命名”、“编辑议题”、“移至文件夹”、“复制阅读入口”、“刷新消息”、“存档房间”或“销毁房间”。“编辑议题”和“刷新消息”用于当前打开的房间。
|
|
32
|
-
- **销毁房间**:在房间菜单点“销毁房间”。确认框列出会删除和保留的内容,可先点“导出资料包”下载一份:含消息、私聊、附件、可双击打开的“讨论记录.html”,以及成员写在草稿目录里的文件(“草稿”文件夹,超过 50 MB 的部分只列出文件名)。点“立即销毁”,再在“再次确认销毁”里点“确认销毁”后(所有销毁入口都要这样确认两次),这台电脑上的房间记录、附件、成员在本房间新建的 AI
|
|
32
|
+
- **销毁房间**:在房间菜单点“销毁房间”。确认框列出会删除和保留的内容,可先点“导出资料包”下载一份:含消息、私聊、附件、可双击打开的“讨论记录.html”,以及成员写在草稿目录里的文件(“草稿”文件夹,超过 50 MB 的部分只列出文件名)。点“立即销毁”,再在“再次确认销毁”里点“确认销毁”后(所有销毁入口都要这样确认两次),这台电脑上的房间记录、附件、成员在本房间新建的 AI 会话记录、运行文件和草稿会被删除:确认框随即关闭,右下角提示正在销毁,房间在左栏变暗;全部核验通过后,房间化成粒子消散,右下角显示删除了多少。建房时自动创建的草稿文件夹(左侧“项目”里的“草稿”)连同其中文件也会删除,资料包里放在“草稿空间”文件夹;你选的项目文件夹不会删除;沿用你原有窗口的会话、与其他房间共用的会话会保留;已发给模型服务商的内容按其政策保留,无法从这里删除。房间发布过分享网页时,销毁前会先撤销它。某项暂时没删掉时,房间会变暗留在左栏,可在确认框点“重试”。成员草稿目录里的文件会随房间删除,需要的先导出资料包。
|
|
33
33
|
- **销毁记录与销毁全部房间**:点左栏房间目录右上角“…”里的“销毁记录”,查看每次销毁删除了什么、保留了什么(房间名在完成后清除),未完成的可点“重试”。底部“销毁全部房间”须输入“销毁全部”确认,会逐个销毁全部房间(含已存档),项目文件保留;以独立 Windows 用户运行的托管账号随后还会删除各 AI 软件里的全部会话记录和 AI 记住的偏好,登录信息保留。“导出全部房间”不含草稿,需要草稿请逐个房间导出。
|
|
34
34
|
- **自动销毁**:新建房间时在“高级设置”里选,或之后在房间顶部的“房间”页,把“自动销毁”设为无活动 1 天、7 天或 30 天后销毁,旁边显示还剩多久;从设定时起算,房间里有新消息或私聊会重新计时;已存档、有成员在工作或排队、有待你回答的提问、发布着分享网页的房间不会自动销毁。剩余不足一天时网页会提示一次,销毁后也会提示。默认“长期保留”。
|
|
35
35
|
- **恢复与清理存档**:打开“已存档”,按关键词或有无消息筛选,对选中房间点“恢复”放回活跃列表,单个房间点“彻底删除”并确认;“全部删除”针对当前筛选结果。
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
- **导出备份**:房间菜单 → “导出对话”将当前房间的消息、历次讨论与附件打包为 ZIP;文件夹菜单 → “导出文件夹”;目录选项 → “导出全部房间”。在运行本机服务的电脑上导出,备份会附带成员的软件配置与会话标识。要续接会话,原软件的会话记录仍须保存在电脑上。
|
|
56
56
|
- **分享为网页**:房间菜单 → “分享”。程序先读取并整理房间,确认框里列出包含与不包含的内容,以及找到的疑似密钥、本机目录或联系方式(标出消息编号和前后文),核对后选一种方式:
|
|
57
57
|
- “下载网页文件”:得到一个单独的 `.html` 文件,用浏览器直接打开即可,发出去后无法过期或撤回。
|
|
58
|
-
- “发布链接”:上传到官方分享站,得到一个链接并自动复制,选 1、3 或 7
|
|
58
|
+
- “发布链接”:上传到官方分享站,得到一个链接并自动复制,选 1、3 或 7 天后过期,到期自动删除。之后左侧房间列表下方出现“已分享”,列出所有有效的分享链接和剩余时间,可以复制、打开、续期(内容不变,有效期从现在重新计算)或撤销;房间菜单里也有“复制分享链接”“撤销分享链接”,再次“分享”可“更新链接”换成最新内容。链接跟着房间保存在电脑上,已配对的手机和平板也能管理;房间文字整理后超过 5 MB 时请改用网页文件。
|
|
59
59
|
|
|
60
60
|
两种方式看到的都是这个房间的“消息”和“执行”两页,从头阅读,外观与本机一致,卡片和执行详情都能点开;每次进入“执行”都会从头自动回放协作过程,点“结束回放”回到最终状态。“私聊”“房间”“文件”等标签灰显,只展示示意。但不能发消息或做任何操作;内容停在生成那一刻。私聊、事件记录、调度决策、被拒操作、排队消息、本机路径、会话编号与凭据不会写进去,已撤回或回退的消息也不带;失败原因只写“执行失败”,房间项目目录在正文里改写成项目内的相对路径。消息正文其余部分原样公开,发出前请核对。
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
附件默认不带,消息里的附件标记显示为“未包含在分享中”。房间有附件时,确认框里有“包含附件”,勾选后所有附件(图片、视频、网页、文档等)原样放进分享页,读者可以查看和下载;成员回答里交付的项目文件(回答下方的文件卡片)也会作为该条回答的附件一起带上。文本类附件会一并检查疑似密钥和本机目录;图片、视频等文件的内容程序查不了,请自己核对。发布链接带上页面能预览的附件:图片、音视频、PDF、Word/Excel/PowerPoint(docx、xlsx、pptx)、文本与代码、zip 压缩包和网页,读者在分享页里直接打开;js、bat、ps1 等双击就会运行的脚本改名为 .txt 后带上。程序和旧版 doc/xls/ppt 不放到分享站,消息里显示“未包含在分享中”,下载的网页文件仍会带上。网页附件在分享页里照常运行,成员回答里引用的演示直接显示在消息中;它在隔离的框架里运行,读不到分享页,也不能联网请求或提交表单。附件不计入文字的 5 MB,发布链接时逐个上传,合计最多 100 MB,发布按钮会显示上传进度;超过时取消勾选或改用网页文件(同样最多带 100 MB 附件)。
|
|
63
63
|
- **导入房间**:目录选项或文件夹菜单 → “导入房间”,选择 ZIP 文件,在预览中确认要导入的房间;标为“已存在,跳过”的房间会保留原样。在同一台电脑导入后,请回成员会续接原会话(Claude Code 成员会改为手动接入,请回后在原窗口重新注册,避免会话分叉)。导入保留历史讨论记录,不会自动继续原讨论或重新唤醒成员。
|
|
64
64
|
- **从某条消息分支**:AI 发言菜单 → “从这里分支”,新建一个保留截至该条发言记录的房间。支持会话分叉的接入方式会在新房间续接分叉后的会话;原房间保留。
|
|
65
65
|
- **让主持人新建房间**:在“主持人权限”里勾选“新建房间”后,主持人可以把一部分工作拆到新房间:成员只用本机已配置的软件,项目权限默认只读、最高可写,项目目录只能是原房间的目录或其子目录;你没指定时由与原主持人同款的专家主持。两个房间各留一张“关联房间”卡片,点“打开房间”互相跳转。新房间的主持人权限按你的默认设置,但不能再新建房间;一个房间可新建的数量有上限(默认 3 个,可在“主持人权限”里调整)。两个关联房间的主持人可以互相发言,这些消息标注“来自房间「…」的主持人 …”,按你的消息唤醒对方房间;默认不限条数;担心两边来回不停,可在新建房间面板“高级设置”里设“关联房间互传上限”(对本机所有关联房间生效),从你上次在任一房间发言算起超过这个条数会被拒绝,你发一条消息即可让它们继续。
|
package/docs/guide/workflows.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
- **在房间里让主持人建**:打开“主持人完整权限”后,直接对主持人说你要什么分工(或说“把这个房间的做法存成工作流”),也可以在输入框打 `/` 选平台技能里的“新建 / 修改工作流”。主持人会调用 `workflow-creator` 生成 `SKILL.md`、角色卡片与画布,校验通过后保存并启用。
|
|
36
36
|
- **在外部 AI 对话里建**:在任意已装好共议技能的 Claude Code / Codex 窗口,请它按 `workflow-creator` 技能为你新建或修改工作流。它先用 `codiscuss launch workflow-check --dir <目录>` 校验,待你确认后用 `codiscuss launch workflow-save --dir <目录>` 保存。库里已有同 ID 的工作流时,须明确选择覆盖(`--overwrite`)或带上读取时的修订号(`--revision`),否则不会保存。
|
|
37
|
-
- **存在哪里**:所有工作流都保存在本机服务目录的 `workflows/` 文件夹下(默认 `~/.codiscuss/workflows/<工作流ID>/`),一个工作流一个文件夹。在左栏工作流列表点“…” →
|
|
37
|
+
- **存在哪里**:所有工作流都保存在本机服务目录的 `workflows/` 文件夹下(默认 `~/.codiscuss/workflows/<工作流ID>/`),一个工作流一个文件夹。在左栏工作流列表点“…” → “导出”,把这个工作流下载成一个压缩包(`<工作流ID>.zip`,里面是整个文件夹),可以分享给别人,对方在工作流页“+”里导入;不是文本或太大的文件不会放进去,导出后会提示。
|
|
38
38
|
|
|
39
39
|
### 4. 画布与 `SKILL.md` 的分工
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
- **主持人按 `SKILL.md` 派活**:谁先谁后、哪些成员并行、什么时候交回主持人把关、什么条件返工,都由 `SKILL.md` 写明并由主持人照做。用 `workflow-creator` 生成或修改工作流时,AI 会按 `SKILL.md` 同步更新画布。
|
|
45
45
|
- **步骤分组与挂靠**:画布可以把节点分成几个步骤,显示为带名字的虚线框,框上标出挂在这一步的子工作流。步骤和挂靠写在 `flow.json` 与子工作流的 `SKILL.md` 里(由 `workflow-creator` 维护),和画布一样只是示意,主持人仍按 `SKILL.md` 判断这一步用不用。
|
|
46
46
|
- **一张卡片请多位成员**:同一张卡片可以由主持人按不同显示名请进多位成员,例如每位人物一位成员;显示名只在本房间有效,同一个名字请回的是原来那位成员和它的会话。
|
|
47
|
-
- **带技能的专家**:工作流里的专家可以是一个文件夹而不是一个文件:`agents/<卡片ID>/` 里放定义 `<卡片ID>.md`(和普通卡片文件同一格式)和 `skills/<技能名>/`,每条技能一份 `SKILL.md` 加 `references/`。担任这张卡片的成员可以读写自己的 skills
|
|
47
|
+
- **带技能的专家**:工作流里的专家可以是一个文件夹而不是一个文件:`agents/<卡片ID>/` 里放定义 `<卡片ID>.md`(和普通卡片文件同一格式)和 `skills/<技能名>/`,每条技能一份 `SKILL.md` 加 `references/`。担任这张卡片的成员可以读写自己的 skills,工作流的其他部分照旧只读;他写技能不改变工作流的修订号,网页和命令行的普通保存都原样保留这些技能,只有整份覆盖和导入会用文件夹里带的替换。导出这位专家得到的就是这个文件夹。“专家配置”是一个大弹窗:左边列出所有卡片,右边分“基础”“提示词”“技能”三个标签页;基础和提示词改完点弹窗底部的“保存”写入工作流(和工作流页的“保存”是同一次保存),技能文件逐个保存。手机上先在列表里选专家,再进入他的配置,左上角返回。带技能的专家不论在主线还是子工作流,都归在“顾问”一组,条目上标着他属于哪里;选中后切到“技能”,左边是技能和文件,右边编辑选中的文件(手机上逐层进入),可以查看和修改每条技能的 SKILL.md 和资料,新建、删除技能和资料文件。这些修改直接写进专家的文件夹,不用保存工作流,也不改工作流的修订号;专家同时改过的文件会拒绝保存并提示重新载入,不会被覆盖。普通专家在“技能”标签页写下第一条技能的名字和描述,点“添加技能”,保存工作流后它就变成带技能的文件夹。列表下方的“导入专家包”把一个 md、压缩包或文件夹放进主线或画布当前所在的子工作流。删掉一位带技能的专家、整份覆盖替换了技能、删除整个工作流时,原来的文件夹会先备份到服务目录的 backups 下。命令行 `codiscuss launch expert-import --from <路径> --workflow <ID> [--sub <子工作流ID>]` 把专家包放进工作流,卡片 ID 已存在时拒绝。面板上的专家各有一份技能,在本机服务目录 `experts/<ID>/skills/`,和工作流里的不共用;在“专家配置”里把卡片“存为面板预设”时会复制过去,同名预设已存在时要点“覆盖同名预设”才会替换;本机已有这位专家的技能时默认保留,提示后可点“用工作流里的技能替换本机的”。新建房间面板上,带技能的预设专家(顾问)卡片背面和其他专家一样只放基础配置,另有一个“高级配置”按钮,打开和工作流同一个配置弹窗,查看和修改的是本机服务目录里的那份技能。网页上,新建房间面板“添加 AI”下方的“导入导出专家”可以导入 .md、压缩包或文件夹,也可以导出任一预设;工作流“专家配置”里的“导出”导出当前卡片(已保存的版本)。没有技能下载一个 md,有技能下载一个压缩包。导入时同名预设会让你选“覆盖”或“取消”;本机已有这位专家的技能时默认保留本机的,可选“用导入的替换(原来的会备份)”;被忽略的文件和被降为只读的权限会在提示里列出。命令行同样可以:`codiscuss launch expert-export` 导出,`codiscuss launch expert-import` 导入成面板预设;同名预设和已有的技能都不会被静默替换。专家带着的软件本机没有配置,或者本机这个软件的模型列表里没有他写的模型时,导入照样成功,提示里会说明;这时面板上的按钮变灰(软件)或卡片上标出“本机没有……,不能调用”(模型),建房和请进都会被拒,配好软件、或把模型改成列表里的(留空即用软件默认)之后恢复。是否“没有”只看本机已经读到的模型列表:还没读过列表、读取失败或没写模型都不算;Claude 的列表只是它的模型选单,不据此拦。
|
|
48
48
|
|
|
49
49
|
### 5. “主持人完整权限”与工作流的关系
|
|
50
50
|
|
package/docs/guide/working.md
CHANGED
|
@@ -40,13 +40,17 @@
|
|
|
40
40
|
|
|
41
41
|
### 3. 管理排队消息
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
成员正忙时,你发送的新消息会自动停留在输入框上方的排队区,等对应成员或房间空闲后自动发出。你在答题卡上的回答也一样:提问的成员还在忙时,回答已经记下,但交给它的那份留在排队区,写着“#N 已发出,等某某空闲后交给它”。
|
|
44
44
|
|
|
45
|
-
-
|
|
45
|
+
- **不想等**:排队项右侧的按钮会写明点了之后会怎样:
|
|
46
|
+
- “立即发送”:接收者空闲,马上发出。
|
|
47
|
+
- “插话”:接收者正在执行、它的软件支持插话,这条会插进它这一轮,它当场就能看到,已做的工作不受影响。
|
|
48
|
+
- “打断并发送”:接收者正在执行、不支持插话,先打断它这一轮,再连同被打断的工作和这条一起处理。
|
|
49
|
+
- 接收者既不能插话也不能打断时,按钮仍是“立即发送”,点了会提示原因,消息继续排队。
|
|
46
50
|
- **编辑与删除**:未发出的排队消息,在排队项菜单点“编辑消息”退回输入框修改,或点删除移除。
|
|
47
51
|
- **调整顺序**:拖动排队项(手机上长按)调整发送顺序。
|
|
48
52
|
- **暂停与继续**:点“全部停止”或停止运行时,队列暂停并显示“已暂停排队:你停止了运行”,点“继续”恢复发送。某条发出失败时会停住队列并显示原因,点“重试”、编辑或删除后队列继续。
|
|
49
|
-
-
|
|
53
|
+
- 排队一直开着,没有开关;要让正忙的成员马上处理某条消息,用排队项上的“插话”或“打断并发送”。
|
|
50
54
|
|
|
51
55
|
### 4. 停止、重试、撤回与编辑回退
|
|
52
56
|
|
|
@@ -445,6 +445,13 @@
|
|
|
445
445
|
"附件原样公开。文本类附件已一并检查;图片、视频和其他文件的内容程序查不了,请自己核对。": "Attachments are published as they are. Text attachments were checked too; the contents of images, videos and other files cannot be checked, so look through them yourself.",
|
|
446
446
|
"不包含时,消息里的附件标记显示为“未包含在分享中”。": "Without them, attachment tags in messages read “not included in the share”.",
|
|
447
447
|
"正在检查文本类附件…": "Checking text attachments…",
|
|
448
|
+
"附件读取失败({status})": "Could not read the attachment ({status})",
|
|
449
|
+
"附件 {name} 在发布期间有变化,请重新打开“分享为网页…”再发布": "The attachment {name} changed while publishing; open “Share as web page…” again and publish",
|
|
450
|
+
"附件 {name} 上传失败:{value1}": "Uploading the attachment {name} failed: {value1}",
|
|
451
|
+
"附件合计 {size},超过分享链接 100 MB 的上限;请取消“包含附件”,或改用“下载网页文件”。": "The attachments total {size}, more than the 100 MB a share link can carry; untick “Include attachments” or use “Download web page file”.",
|
|
452
|
+
"这个房间的文字整理后有 {size},超过分享链接 5 MB 的上限;请改用“下载网页文件”。": "The room’s text comes to {size} after cleaning, more than the 5 MB a share link can carry; use “Download web page file” instead.",
|
|
453
|
+
"链接已发布,但附件没有传完,读者会看到“附件读取失败”;可再点“更新链接”重传。{value1}": "The link is published, but not all attachments were sent, so readers will see “Could not read the attachment”; click “Update link” to send them again. {value1}",
|
|
454
|
+
"正在上传附件 {done}/{total}": "Uploading attachments {done}/{total}",
|
|
448
455
|
"{names} 不能放到分享站:发布链接时不带,消息里显示“未包含在分享中”;下载网页文件仍会带上。": "{names} cannot go on the share site: a published link leaves them out and their messages read “not included in the share”; a downloaded web page file still carries them.",
|
|
449
456
|
" 等 {count} 个": " and others, {count} in all",
|
|
450
457
|
"读取失败,没能检查,请自己核对": "Could not be read or checked; look through it yourself",
|
|
@@ -526,5 +533,7 @@
|
|
|
526
533
|
"全部房间已销毁,各 AI 软件的会话记录与记忆已删除 {count} 处(登录信息保留)。": "All rooms are destroyed, and {count} places holding the AI software's conversations and memories are deleted (logins kept).",
|
|
527
534
|
"房间已建好,但自动销毁没有设置成功,可在“房间”页重新设置:{value1}": "The room was created, but auto-destroy could not be set; set it again in the “Room” tab: {value1}",
|
|
528
535
|
"这个文件夹有 {count} 个文件、共 {size},超过一次下载的上限({files} 个文件、{limit});请下载其中的子文件夹。": "This folder has {count} files, {size} in all, more than one download takes ({files} files, {limit}); download its subfolders instead.",
|
|
529
|
-
"已读取 {done} / {count} 个文件": "Read {done} of {count} files"
|
|
536
|
+
"已读取 {done} / {count} 个文件": "Read {done} of {count} files",
|
|
537
|
+
"正在销毁「{name}」:记录与附件已删除,其余各项核验完成后房间会消散。": "Destroying “{name}”: records and attachments are deleted; the room dissolves once the remaining items are checked.",
|
|
538
|
+
"「{name}」还在清理,可在房间目录“…”里的“销毁记录”查看进度或重试。": "“{name}” is still being cleaned up; follow it or retry under “Destruction records” in the room list's “…” menu."
|
|
530
539
|
}
|
|
@@ -185,6 +185,7 @@
|
|
|
185
185
|
"这条排队消息已发出或已删除": "This queued message was sent or deleted",
|
|
186
186
|
"排队消息已变化,请刷新后再调整顺序": "Queued messages changed; refresh before reordering",
|
|
187
187
|
"点名的成员已不在房间": "The members it names are no longer in the room",
|
|
188
|
+
"用户刚发来消息 #{message_id},请先读原文,在这一轮的回答里一并处理。": "The owner just sent message #{message_id}; read it and handle it in this turn's answer as well.",
|
|
188
189
|
"这条消息已发出,只是还在等忙碌的成员;可以删除后重新发送": "This message is already posted and only waits for busy members; delete it and send again instead",
|
|
189
190
|
"action 须为 {value1} 之一": "action must be one of {value1}",
|
|
190
191
|
"enabled 须为 true 或 false": "enabled must be true or false",
|
|
@@ -851,5 +852,7 @@
|
|
|
851
852
|
"技能文件 {path} 在你读取之后变了(专家可能刚写过),请重新载入后再改": "The skill file {path} changed after you read it (the expert may have just written it); reload before changing it",
|
|
852
853
|
"工作流「{id}」里已有卡片 {card};不会替换它,要换请先删掉原卡片": "The workflow “{id}” already has the card {card}; it is not replaced: delete that card first to change it",
|
|
853
854
|
"导入的内容须正好有一个专家定义 .md,现有 {count} 个": "The import must hold exactly one expert definition .md; it has {count}",
|
|
854
|
-
"{name} 的模型 {model} 不在本机这个软件的模型列表里,不能调用:请在专家配置或卡片背面把模型改成列表里的(或留空用软件默认),或在模型下拉旁刷新列表后再试": "The model {model} of {name} is not in this computer’s list for its software, so it cannot run: pick a listed model (or leave it empty for the software default) in Experts or on the card’s back, or refresh the list beside the model menu and try again"
|
|
855
|
+
"{name} 的模型 {model} 不在本机这个软件的模型列表里,不能调用:请在专家配置或卡片背面把模型改成列表里的(或留空用软件默认),或在模型下拉旁刷新列表后再试": "The model {model} of {name} is not in this computer’s list for its software, so it cannot run: pick a listed model (or leave it empty for the software default) in Experts or on the card’s back, or refresh the list beside the model menu and try again",
|
|
856
|
+
"请先填写生图 API Key": "Enter the image generation API key first",
|
|
857
|
+
"地址与密钥可用,但这个密钥的模型列表里没有 {model},请核对模型 ID 或账号是否已开通": "The address and key work, but {model} is not in this key's model list; check the model ID or whether the account has access to it"
|
|
855
858
|
}
|