ai_co_discuss 0.5.17 → 0.5.19
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/workflow-creator/SKILL.md +16 -0
- package/backend/server.py +87 -8
- package/docs/en/guide/members.md +6 -0
- package/docs/en/guide/rooms.md +5 -5
- package/docs/en/guide/workflows.md +1 -1
- package/docs/en/guide/working.md +2 -1
- package/docs/guide/members.md +6 -0
- package/docs/guide/rooms.md +5 -5
- package/docs/guide/workflows.md +1 -1
- package/docs/guide/working.md +2 -1
- package/frontend/locales/en/app.json +31 -5
- package/frontend/locales/en/backend.json +3 -0
- package/frontend/locales/en/core.json +13 -15
- package/frontend/locales/en/room.json +3 -0
- package/frontend/locales/en/settings.json +21 -1
- package/package.json +2 -2
- package/runner/discussion_launch.mjs +49 -3
- package/runner/discussion_service.mjs +6 -3
- package/runner/i18n.mjs +3 -2
- package/runner/i18n_en.mjs +35 -0
- package/runner/project_files.mjs +107 -0
- package/runner/relay_channel.mjs +10 -1
- package/runner/remote_launch.mjs +2 -2
- package/runner/share_service.mjs +392 -0
- package/runner/share_shared.mjs +447 -0
- package/runner/workflow_flow.mjs +74 -23
- package/web/admin.js +1 -1
- package/web/app.js +844 -507
- package/web/i18n.js +3 -3
- package/web/modern.css +1 -1
- package/web/modern.js +48 -48
|
@@ -92,6 +92,22 @@ agents/
|
|
|
92
92
|
- **保存**:专家写技能不改变工作流的修订号;网页和命令行的普通保存、主持人草稿都原样保留这些技能。只有明确的整份覆盖(`workflow-save --overwrite`)和导入成新工作流时,才用文件夹里带的技能替换。删掉这张卡片、整份覆盖替换技能、删除整个工作流时,程序先把它的文件夹备份到服务目录的 backups 下。用户也可以在工作流页“专家配置”的“技能”里直接查看和修改,不经过工作流保存。
|
|
93
93
|
- **导出导入**:`codiscuss launch expert-export --workflow <ID> --card <卡片ID> --dir <目录>` 导出的就是这个文件夹(没有技能的卡片导出一个 md)。`codiscuss launch expert-import --from <md 或文件夹> --workflow <ID> [--sub <子工作流ID>]` 把专家包放进工作流或子工作流的 `agents/`;卡片 ID 已存在时拒绝,不替换。不带 `--workflow` 时导入成面板预设(见下)。
|
|
94
94
|
- **面板上的专家各是各的**:面板预设的技能在本机服务目录 `experts/<ID>/skills/`,和工作流里的互不共用。专家配置里“存为面板预设”会把技能复制过去;本机已有时默认保留,选择替换才覆盖(原来的先备份)。`expert-import` 导入面板预设时同名预设要加 `--overwrite-preset`,已有技能要加 `--replace-knowledge` 才替换。
|
|
95
|
+
### 流程画布(flow.json)
|
|
96
|
+
|
|
97
|
+
`flow.json` 是给用户看懂协作关系的示意图(程序不执行连线,主持人仍按 SKILL.md 派活),结构为 `{ "nodes": [...], "edges": [...], "stages": [...] }`(最多 60 个节点、120 条连线、20 个步骤);节点坐标可全写 `0, 0`,画布首次打开会自动按层排版。
|
|
98
|
+
|
|
99
|
+
- **节点类型**:
|
|
100
|
+
- `start`:起点,`{"id": "start", "type": "start"}`。
|
|
101
|
+
- `card`:成员卡片,`{"id": "writer", "type": "card", "card": "<卡片ID>"}`(同一卡片可出现多次,示意多次出场)。
|
|
102
|
+
- `host`:主持人节点,`{"id": "accept", "type": "host", "label": "验收"}`(`label` 可选,不换行,最多 12 字)。
|
|
103
|
+
- `user`:用户节点,`{"id": "confirm", "type": "user", "label": "确认大纲"}`(示意需要用户介入、确认、拍板或发言的地方;`label` 可选,不换行,最多 16 字)。
|
|
104
|
+
- `branch`:条件分支节点,`{"id": "route", "type": "branch", "label": "判断路线", "branches": [{"id": "normal", "label": "日常集"}, {"id": "key", "label": "关键集"}]}`(示意按条件分成 1—20 条执行分支;节点 `label` 与每条分支 `label` 均可选,不换行,最多 16 字;各分支 `id` 在该节点内不重复)。
|
|
105
|
+
- `sub`:子工作流入口(仅主线画布可用),`{"id": "sub_1", "type": "sub", "sub": "<子工作流ID>"}`。
|
|
106
|
+
- **连线(`edges`)**:`{"source": "节点ID", "target": "节点ID", "label": "可选说明"}`(`label` 不换行,最多 16 字)。
|
|
107
|
+
- **条件分支连线**:从 `branch` 节点出发的连线必须写 `"branch": "<分支ID>"` 指向该节点上的对应分支;同一 `branch` 节点的不同分支可分别连向不同节点,也可汇聚到同一目标节点;非 `branch` 节点不能写 `branch`。
|
|
108
|
+
- **多路并行 / N 个执行分支**:任意节点(含 `branch` 节点的某一条分支)都可直接拉出多条连线同时指向 N 个目标节点,表示并行派活或同时触发多条执行分支。
|
|
109
|
+
- **循环**:指向前面节点的回边会自动画成金色虚线。
|
|
110
|
+
|
|
95
111
|
### 步骤与挂靠
|
|
96
112
|
|
|
97
113
|
步骤和挂靠都是软约束:程序只画出来、告诉主持人、校验编号,主持人照 SKILL.md 的文字执行。
|
package/backend/server.py
CHANGED
|
@@ -19,6 +19,8 @@ import subprocess
|
|
|
19
19
|
import threading
|
|
20
20
|
import time
|
|
21
21
|
import uuid
|
|
22
|
+
import zipfile
|
|
23
|
+
import zlib
|
|
22
24
|
from functools import lru_cache
|
|
23
25
|
from contextlib import closing
|
|
24
26
|
from datetime import datetime, timedelta, timezone
|
|
@@ -1771,6 +1773,63 @@ SVG_START = re.compile(rb"^(?:\xef\xbb\xbf)?\s*(?:<\?xml[^>]*>\s*)?(?:<!--.*?-->
|
|
|
1771
1773
|
SVG_SNIFF_BYTES = 4096
|
|
1772
1774
|
|
|
1773
1775
|
|
|
1776
|
+
ZIP_ENTRY_LIMIT = 64 * 1024 * 1024
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
def zip_preview_path(info):
|
|
1780
|
+
"""Decode the archive spelling and return a safe file path for display and lookup."""
|
|
1781
|
+
name = info.orig_filename
|
|
1782
|
+
if not info.flag_bits & 0x800:
|
|
1783
|
+
raw = name.encode("cp437")
|
|
1784
|
+
try:
|
|
1785
|
+
name = raw.decode("utf-8")
|
|
1786
|
+
except UnicodeDecodeError:
|
|
1787
|
+
name = raw.decode("gbk", errors="replace")
|
|
1788
|
+
name = name.replace("\\", "/")
|
|
1789
|
+
parts = name.split("/")
|
|
1790
|
+
if any(part in ("", ".", "..", "__MACOSX", ".DS_Store") for part in parts) or re.search(r"[\x00-\x1f\x7f:]", name):
|
|
1791
|
+
return None
|
|
1792
|
+
return name
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
def zip_preview(path, entry=None):
|
|
1796
|
+
"""List central-directory metadata or read one bounded entry into memory."""
|
|
1797
|
+
try:
|
|
1798
|
+
with zipfile.ZipFile(path) as archive:
|
|
1799
|
+
files = {}
|
|
1800
|
+
for info in archive.infolist():
|
|
1801
|
+
name = zip_preview_path(info)
|
|
1802
|
+
if name:
|
|
1803
|
+
files.setdefault(name, info)
|
|
1804
|
+
if entry is None:
|
|
1805
|
+
entries = []
|
|
1806
|
+
for name, info in files.items():
|
|
1807
|
+
try:
|
|
1808
|
+
modified = datetime(*info.date_time).astimezone(timezone.utc).isoformat()
|
|
1809
|
+
except (ValueError, OverflowError, OSError):
|
|
1810
|
+
modified = ""
|
|
1811
|
+
entries.append({"path": name, "size": info.file_size, "modified_at": modified, "encrypted": bool(info.flag_bits & 1)})
|
|
1812
|
+
return {"entries": entries}
|
|
1813
|
+
info = files.get(entry)
|
|
1814
|
+
if not info or info.flag_bits & 1 or info.compress_type not in (zipfile.ZIP_STORED, zipfile.ZIP_DEFLATED):
|
|
1815
|
+
raise ValueError(Text('无法读取这个压缩包条目'))
|
|
1816
|
+
if info.file_size > ZIP_ENTRY_LIMIT:
|
|
1817
|
+
raise ValueError(Text('压缩包内单个文件最多预览 64 MiB'))
|
|
1818
|
+
with archive.open(info) as source:
|
|
1819
|
+
data = source.read(ZIP_ENTRY_LIMIT + 1)
|
|
1820
|
+
if len(data) != info.file_size:
|
|
1821
|
+
raise ValueError(Text('无法读取这个压缩包条目'))
|
|
1822
|
+
return data
|
|
1823
|
+
except (zipfile.BadZipFile, UnicodeError, RuntimeError, EOFError, zlib.error, NotImplementedError, OSError) as error:
|
|
1824
|
+
raise ValueError(Text('无法读取 ZIP 压缩包')) from error
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
@lru_cache(maxsize=1)
|
|
1828
|
+
def zip_entry_bytes(path, sha256, entry):
|
|
1829
|
+
"""Reuse immutable attachment bytes across consecutive relay ranges after checking room access."""
|
|
1830
|
+
return zip_preview(path, entry)
|
|
1831
|
+
|
|
1832
|
+
|
|
1774
1833
|
def attachment_content_type(data):
|
|
1775
1834
|
"""Allow inline preview only for recognized images and PDF bytes.
|
|
1776
1835
|
|
|
@@ -3347,9 +3406,11 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3347
3406
|
|
|
3348
3407
|
def handle_local_launch(self, parts, method):
|
|
3349
3408
|
"""Forward authenticated browser requests to the shared Node entrypoint and pin their website."""
|
|
3350
|
-
site = self.local_request_site(method)
|
|
3351
3409
|
route = parts[2:]
|
|
3352
|
-
if
|
|
3410
|
+
if route == ["share-job"] and method == "POST" and not self.server.local_launch:
|
|
3411
|
+
return self.respond({"enabled": False})
|
|
3412
|
+
site = self.local_request_site(method)
|
|
3413
|
+
if method == "OPTIONS" and route in (["settings"], ["launch"], ["wipe-histories"], ["room-models"], ["room-skills"], ["room-files"], ["share-job"], ["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"],
|
|
3353
3414
|
["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 + SITE_COMMANDS):
|
|
3354
3415
|
return self.respond({"ok": True})
|
|
3355
3416
|
if route == ["settings"] and method in ("GET", "POST"):
|
|
@@ -3374,7 +3435,7 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3374
3435
|
command = route[0]
|
|
3375
3436
|
elif route in (["room-member"], ["room-member-access"], ["room-member-allow"], ["room-member-adapter"], ["room-member-model"]) and method == "POST":
|
|
3376
3437
|
command = route[0]
|
|
3377
|
-
elif route in (["room-profiles"], ["room-skills"], ["room-files"], ["room-page"], ["room-media"], ["execution-details"], ["room-restore"], ["room-fork"]) and method == "POST":
|
|
3438
|
+
elif route in (["room-profiles"], ["room-skills"], ["room-files"], ["share-job"], ["room-page"], ["room-media"], ["execution-details"], ["room-restore"], ["room-fork"]) and method == "POST":
|
|
3378
3439
|
command = route[0]
|
|
3379
3440
|
elif route == ["pick-directory"] and method == "POST":
|
|
3380
3441
|
command = "pick-directory"
|
|
@@ -3406,10 +3467,10 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3406
3467
|
if self.headers.get_content_type() != "application/json":
|
|
3407
3468
|
raise ValueError(Text('本机操作须使用 application/json'))
|
|
3408
3469
|
payload = self.read_payload(MAX_FILE_PART_BODY_BYTES if command == "room-files" else MAX_BODY_BYTES)
|
|
3409
|
-
if command in ("start", "room-config", "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", "room-workflow", "room-settings", "workflows") + SITE_COMMANDS:
|
|
3470
|
+
if command in ("start", "room-config", "room-models", "room-skills", "room-files", "share-job", "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", "room-workflow", "room-settings", "workflows") + SITE_COMMANDS:
|
|
3410
3471
|
payload.pop("access_file", None)
|
|
3411
3472
|
payload.update(site=site, entry="web")
|
|
3412
|
-
if command in ("room-skills", "room-files", "room-page", "room-media", "execution-details", "room-workflow", "room-settings", "room-member", "room-member-access", "room-member-allow", "room-member-model", "room-member-adapter") + SITE_COMMANDS and payload.get("room_id") and not payload.get("token") and not self.bridge_origin:
|
|
3473
|
+
if command in ("room-skills", "room-files", "share-job", "room-page", "room-media", "execution-details", "room-workflow", "room-settings", "room-member", "room-member-access", "room-member-allow", "room-member-model", "room-member-adapter") + SITE_COMMANDS and payload.get("room_id") and not payload.get("token") and not self.bridge_origin:
|
|
3413
3474
|
with closing(connect_db(self.server.database)) as connection:
|
|
3414
3475
|
self.admin_as_owner(connection, payload.get("room_id", ""))
|
|
3415
3476
|
payload["token"] = self.headers.get("X-Discussion-Token", "")
|
|
@@ -3422,6 +3483,10 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
3422
3483
|
with closing(connect_db(self.server.database)) as connection:
|
|
3423
3484
|
self.admin_as_owner(connection, payload.get("source_room_id", ""))
|
|
3424
3485
|
payload["source_token"] = self.headers.get("X-Discussion-Token", "")
|
|
3486
|
+
if command == "share-job" and payload.get("op") == "list" and not self.bridge_origin:
|
|
3487
|
+
with closing(connect_db(self.server.database)) as connection:
|
|
3488
|
+
if not self.admin_session(connection):
|
|
3489
|
+
raise PermissionError(Text('需要管理员登录'))
|
|
3425
3490
|
if command == "machine-link":
|
|
3426
3491
|
payload = {"site": site}
|
|
3427
3492
|
if command == "room-config" and "participants" in payload:
|
|
@@ -4049,6 +4114,17 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
4049
4114
|
return self.respond(attachment)
|
|
4050
4115
|
if parts[5] == "content":
|
|
4051
4116
|
return self.respond_attachment(attachment, params.get("download") == "1")
|
|
4117
|
+
if parts[5] == "zip":
|
|
4118
|
+
path = attachment_path(self.server.database, attachment)
|
|
4119
|
+
if not path.is_file():
|
|
4120
|
+
raise LookupError(Text('附件不存在'))
|
|
4121
|
+
entries = parse_qs(urlsplit(self.path).query, keep_blank_values=True).get("entry")
|
|
4122
|
+
if entries is None:
|
|
4123
|
+
return self.respond(zip_preview(path))
|
|
4124
|
+
entry = entries[-1]
|
|
4125
|
+
data = (zip_entry_bytes(path, attachment["sha256"], entry) if self.headers.get("Range")
|
|
4126
|
+
else zip_preview(path, entry))
|
|
4127
|
+
return self.send_file(None, "application/octet-stream", entry.split("/")[-1], "attachment", data=data)
|
|
4052
4128
|
raise LookupError(Text('地址不存在'))
|
|
4053
4129
|
|
|
4054
4130
|
def import_attachment(self, connection, room_id, attachment_id):
|
|
@@ -4072,12 +4148,12 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
4072
4148
|
disposition = "attachment" if download or attachment["content_type"] == "application/octet-stream" else "inline"
|
|
4073
4149
|
self.send_file(path, attachment["content_type"], attachment["file_name"], disposition, {"X-Content-SHA256": attachment["sha256"]})
|
|
4074
4150
|
|
|
4075
|
-
def send_file(self, path, content_type, file_name, disposition, extra=None):
|
|
4151
|
+
def send_file(self, path, content_type, file_name, disposition, extra=None, data=None):
|
|
4076
4152
|
"""Send one stored file, or the single byte range a player asks for, never as executable content."""
|
|
4077
|
-
size = path.stat().st_size
|
|
4153
|
+
size = path.stat().st_size if data is None else len(data)
|
|
4078
4154
|
start, end, status = 0, size - 1, 200
|
|
4079
4155
|
match = re.fullmatch(r"bytes=(\d*)-(\d*)", self.headers.get("Range", "").strip())
|
|
4080
|
-
if match and (match[1] or match[2]):
|
|
4156
|
+
if match and (match[1] or match[2]) and (data is None or size > 0):
|
|
4081
4157
|
if match[1]:
|
|
4082
4158
|
start, end = int(match[1]), min(int(match[2]), size - 1) if match[2] else size - 1
|
|
4083
4159
|
else:
|
|
@@ -4103,6 +4179,9 @@ class DiscussionHandler(BaseHTTPRequestHandler):
|
|
|
4103
4179
|
self.send_header("Cache-Control", "no-store")
|
|
4104
4180
|
self.send_header("Referrer-Policy", "no-referrer")
|
|
4105
4181
|
self.end_headers()
|
|
4182
|
+
if data is not None:
|
|
4183
|
+
self.wfile.write(memoryview(data)[start:end + 1])
|
|
4184
|
+
return
|
|
4106
4185
|
with path.open("rb") as source:
|
|
4107
4186
|
source.seek(start)
|
|
4108
4187
|
left = end - start + 1
|
package/docs/en/guide/members.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Manage room members: invite local apps or model APIs, resume existing sessions, change models and permissions, choose a host, or let an already-open local AI conversation join manually.
|
|
4
4
|
|
|
5
|
+
On the Room tab you can update several members in succession. Access, model and attendance changes appear immediately. If a save fails, the page restores the previous setting and explains why.
|
|
6
|
+
|
|
5
7
|
## Invite members
|
|
6
8
|
|
|
7
9
|
### Steps
|
|
@@ -35,6 +37,10 @@ Use “History” to bring context from an existing local AI conversation into a
|
|
|
35
37
|
|
|
36
38
|
## Set the host, pause participation, invite back, or remove
|
|
37
39
|
|
|
40
|
+
The Room tab lists present members first. Members who have stepped away appear in a separate group below, expanded by default. Select its heading to collapse or expand it. Each card still offers actions such as inviting the member back.
|
|
41
|
+
|
|
42
|
+
To change the default speaking order, drag a present member’s handle and release it at the insertion line. The handle is on the right of the card header on phones and on the left on desktop. With the handle focused, press Up or Down to move the member one place. Press Esc during a drag to cancel.
|
|
43
|
+
|
|
38
44
|
- **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
45
|
- **“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
46
|
- **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.
|
package/docs/en/guide/rooms.md
CHANGED
|
@@ -38,7 +38,7 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
38
38
|
|
|
39
39
|
- **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.
|
|
40
40
|
- **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.
|
|
41
|
-
- **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, Premiere project XML, and zip archives listed like a folder, where selecting a file inside opens it in a new tab. Relative project images in Markdown display inline.
|
|
41
|
+
- **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, Premiere project XML, and zip archives listed like a folder, where selecting a file inside opens it in a new tab. Relative project images in Markdown display inline. Opening a ZIP attachment or project file loads the directory first. Select an entry to read it (up to 64 MiB), or choose “Download” to save the archive.
|
|
42
42
|
- **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.
|
|
43
43
|
- **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.
|
|
44
44
|
- **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” (“Download folder” for a folder, packed as a ZIP), “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.
|
|
@@ -53,13 +53,13 @@ You can also send a message from the blank home page to create a room and send i
|
|
|
53
53
|
### 5. Export, import, and branch rooms
|
|
54
54
|
|
|
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
|
-
- **Share as a web page.** In a room’s menu, select “Share”.
|
|
57
|
-
- “Download web page”
|
|
58
|
-
- “Publish link”
|
|
56
|
+
- **Share as a web page.** In a room’s menu, select “Share”. Preparation runs in the background while you chat or switch rooms. Select “Share” again to see progress, or use “Open share” in the completion notice. 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
|
+
- “Download web page” builds and downloads a single `.html` file in the background that opens in any browser. Once sent, it cannot expire or be taken back.
|
|
58
|
+
- “Publish link” closes the dialog after the size checks and publishes in the background. Use “View share card” or “Copy link” in the completion notice, including after returning to the page on a phone. Choose whether it expires in 1, 3 or 7 days; it is deleted when it expires. “Shared” below the room list shows 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; 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.
|
|
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. Select “Filter files” to choose attachments by type or individually. The filters expand automatically above 300 MB. Files appear newest message first. Each file shows the message number, sender, time and size. Click its name or “Preview” and close the preview to continue selecting. Published links allow 5 MB of text plus up to 300 MB of attachments, with a 100 MB limit per file. The computer’s background service prepares and uploads the share even if you lock your phone, close the page or switch to another paired device. Under “Shared”, open “Share jobs” to review a draft, check uploaded files and bytes, cancel, retry or adjust attachments. Completed jobs offer the share card, a copy-link button and dismissal. When the service is offline, keep the browser page open until the transfer finishes. A downloaded web page file carries at most 100 MB of attachments. If the room changes before download, review the updated contents in the confirmation dialog.
|
|
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.
|
|
@@ -40,7 +40,7 @@ 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. If the workflow was changed elsewhere after you opened it, saving is refused and the page says “The workflow was changed elsewhere; reload it”; “Reload” reads the new version and first asks before discarding unsaved edits. An imported workflow whose ID is already in the library is saved only after you choose “Save and replace.”
|
|
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.” 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.
|
|
43
|
+
- **The canvas is a diagram:** You can move cards, add host nodes, user nodes (to show where you step in, confirm, or speak), and conditional branch nodes (splitting into multiple named branches, each with its own output dot on the right; select to add, rename, or remove branches), connect nodes to show order, parallel branches, 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
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.
|
package/docs/en/guide/working.md
CHANGED
|
@@ -13,6 +13,7 @@ Message a member or host, understand main and branch work and assignment labels,
|
|
|
13
13
|
- **Check the hint before sending.** The line under the composer says what sending will do, given who is busy right now: when the mentioned member is free it reads “Goes to … now, alongside the work in progress (a branch)”; when it is busy it says the message waits in the queue; with nobody mentioned while the room is busy, it suggests mentioning a free member to have it start right away.
|
|
14
14
|
- **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.
|
|
15
15
|
|
|
16
|
+
- When you send an image, the page keeps its local preview. The message receipt and member status updates preserve your reading position after sending.
|
|
16
17
|
- **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.
|
|
17
18
|
|
|
18
19
|
Once the site returns a message number, each known recipient appears below the message with their avatar, name and waiting status. The same row shows their actual work status when the room refreshes. If smart scheduling needs to choose the recipient, the page shows scheduling progress.
|
|
@@ -80,7 +81,7 @@ When a member needs you to make a decision, a question card appears above the co
|
|
|
80
81
|
### 7. Inspect a run and troubleshoot a room
|
|
81
82
|
|
|
82
83
|
- 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. Idle stretches longer than 5 minutes are collapsed into narrow bands in **Traces**; to review the whole process at its real length, switch to **Concurrency**: at the top, **Running on its own** is the share of the span with a member at work, and **No input needed** is the share of runs started by the host, a relay or a wake-up rather than by your message, and **Longest unattended** is the longest the AI kept going after one of your messages, until the room stopped or you wrote again; one left-to-right axis with nothing collapsed, where the height above shows how many members were running at once (stacked by member color; point at a block for that run's details), idle stretches are labeled with their length, and tasks are shown as bands below. Select a task to view it in **Traces**. Zoom with Ctrl + wheel or the **− / +** buttons (pinch on phones and tablets), drag to pan when zoomed, and double-click to reset. While zoomed in, a replay keeps the view on the playback line; dragging the view turns **Follow** off, and selecting **Follow** turns it back on. **Traces** also supports pinch to zoom and sideways drag on phones and tablets. Select “Replay the session” at the top right to play the latest task back in order, with adjustable speed and a scrubber, and “End replay” to return to the current state; it also works while a member is still running, playing up to now. **Show earlier runs** keeps paging back to the room's first run, and **Show all** lists every run in the room at once.
|
|
83
|
-
- To handle a permission denial, return to the conversation and
|
|
84
|
+
- To handle a permission denial, return to the conversation and check the run report on its failure card. **Allow and resend** appears when the run did not complete, 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. On a completed reply card, any mid-run denials fold quietly into a count you can expand to inspect, without **Allow and resend**.
|
|
84
85
|
- 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.
|
|
85
86
|
|
|
86
87
|
### 8. Deploy a page as a website
|
package/docs/guide/members.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
管理房间里的成员:邀请本地软件或模型 API、续接已有会话、更换模型与权限、设置主持人,以及通过手动接入让已打开的本地 AI 对话加入房间。
|
|
4
4
|
|
|
5
|
+
在“房间”页可以连续调整多位成员。权限、模型和离开状态会先显示你的选择,保存失败时会提示原因并恢复。
|
|
6
|
+
|
|
5
7
|
## 邀请成员
|
|
6
8
|
|
|
7
9
|
### 怎么操作
|
|
@@ -35,6 +37,10 @@
|
|
|
35
37
|
|
|
36
38
|
## 设为主持人、离开、请回与移除
|
|
37
39
|
|
|
40
|
+
“房间”页先列出在场成员,暂离成员集中在下方默认展开的“已离开”分组。点分组标题可收起或展开,成员卡片仍提供“请回”等操作。
|
|
41
|
+
|
|
42
|
+
调整默认发言顺序时,可拖动在场成员卡片的手柄,看到落点指示线后松手。手机手柄在卡片头部右侧,电脑手柄在左侧。键盘聚焦手柄后可用上下方向键移动一位,拖动时按 Esc 可取消。
|
|
43
|
+
|
|
38
44
|
- **设为主持人**:建房时点成员卡上的皇冠;已有房间在右栏 → 成员菜单 → “设为主持人”。讨论进行中更换主持人会暂停讨论。新主持人的项目权限会随原主持人提高:取它的软件支持的、不高于原主持人的最高一档(例如原主持人是“自动”而新主持人的软件没有这一档,就是“可写”),只升不降,改动时右下角会提示;原主持人的权限不变。不想要这个结果时,在成员表里改回去。
|
|
39
45
|
- **“离开”**:右栏 → 成员菜单 → “离开”。状态变为“已离开”,不再被唤醒,待处理请求会取消,会话保留。
|
|
40
46
|
- **“请回”**:右栏 → 成员菜单 → “请回”(或在“邀请 AI 加入”里选中已离开的成员,再点“邀请”),续接原会话回到房间。
|
package/docs/guide/rooms.md
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
- **增删项目目录**:一个房间可有 1 个主项目目录和最多 8 个其他项目目录。建房后打开顶部“房间”页,在“项目目录”区域可增删其他目录,保存后从各成员下一次执行起生效,不中断会话。主目录设置后不能更改;建房时未设的,可在同一行补设一次。成员按各自项目权限读写全部目录。
|
|
40
40
|
- **打开“文件”页**:房间顶部的标签栏点“文件”,浏览目录、文件大小与修改时间,上方可切换主目录与其他项目目录。浏览文件需要已设置项目目录。
|
|
41
|
-
- **预览文件**:点击文件打开悬浮预览,支持纯文本、代码、Markdown 渲染、HTML 静态渲染并可切换源码;图片可缩放、旋转;音视频带倍速与全屏直接播放;CSV 显示为表格,字幕(SRT、VTT、ASS、LRC)显示为时间轴;Word、Excel、PowerPoint 与 PDF 只读预览;Premiere 工程显示其 XML;zip 压缩包像文件夹一样列出其中的文件夹与文件,点击其中的文件在新标签中预览。Markdown 中用相对路径引用的项目图片会直接显示。
|
|
41
|
+
- **预览文件**:点击文件打开悬浮预览,支持纯文本、代码、Markdown 渲染、HTML 静态渲染并可切换源码;图片可缩放、旋转;音视频带倍速与全屏直接播放;CSV 显示为表格,字幕(SRT、VTT、ASS、LRC)显示为时间轴;Word、Excel、PowerPoint 与 PDF 只读预览;Premiere 工程显示其 XML;zip 压缩包像文件夹一样列出其中的文件夹与文件,点击其中的文件在新标签中预览。Markdown 中用相对路径引用的项目图片会直接显示。 打开房间附件或项目中的 ZIP 时先显示目录,点包内文件才读取内容。单个文件最多预览 64 MiB,也可以点“下载”保存整个压缩包。
|
|
42
42
|
- **多标签、分屏与收起**:可同时打开多个文件以标签切换,在预览栏切换为右侧分屏、或点“文件位置”回到所在文件夹。HTML 预览还可以“在新标签页打开”。点标题栏“收起”缩成内容区角落的悬浮按钮,切到其他房间后点它即可回到原文件与滚动位置,关闭才清空。
|
|
43
43
|
- **摘录批注**:在 Markdown 预览或成员回答正文中选中文字点“添加到对话”,可输入批注并回车,原文标出编号,输入框上方显示“N 条注释”。发送时自动附带文件路径+行号、成员+消息编号,或消息附件所属的消息编号与附件 ID,引用中的 `@` 不会唤醒成员。
|
|
44
44
|
- **整理文件**:点路径栏最前面的“项目”,可以打开你所有的项目和草稿。上方按钮用于新建文件夹和上传文件(单个不超过 20 MB);每行的菜单里有“下载”(文件夹为“下载文件夹”,打包成 ZIP)、“重命名”、“复制”、“剪切”、“删除”,复制或剪切后到目标文件夹点“粘贴”。删除的文件和被替换掉的旧版放进“回收区”,保留 30 天,可以还原。在源码视图点铅笔按钮可以编辑文本文件(不超过 1 MB)。项目、草稿文件夹本身,以及房间正在用作项目目录的文件夹,都不能改名、移动或删除。
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
### 5. 导出、导入与分支房间
|
|
54
54
|
|
|
55
55
|
- **导出备份**:房间菜单 → “导出对话”将当前房间的消息、历次讨论与附件打包为 ZIP;文件夹菜单 → “导出文件夹”;目录选项 → “导出全部房间”。在运行本机服务的电脑上导出,备份会附带成员的软件配置与会话标识。要续接会话,原软件的会话记录仍须保存在电脑上。
|
|
56
|
-
- **分享为网页**:房间菜单 →
|
|
57
|
-
-
|
|
58
|
-
-
|
|
56
|
+
- **分享为网页**:房间菜单 → “分享”。整理在后台进行,可以继续聊天或切换房间。再次点“分享”可查看进度,或在完成通知点“打开分享”。确认框里列出包含与不包含的内容,以及找到的疑似密钥、本机目录或联系方式(标出消息编号和前后文),核对后选一种方式:
|
|
57
|
+
- “下载网页文件”会在后台生成并下载一个独立的 `.html` 文件,用浏览器直接打开即可,发出去后无法过期或撤回。
|
|
58
|
+
- “发布链接”:大小检查通过后关闭弹窗并在后台发布。完成通知提供“查看分享卡”和“复制链接”,即使手机失焦也能手动复制,选 1、3 或 7 天后过期,到期自动删除。左侧房间列表下方的“已分享”列出所有有效的分享链接和剩余时间,可以复制、打开、续期(内容不变,有效期从现在重新计算)或撤销;房间菜单里也有“复制分享链接”“撤销分享链接”,再次“分享”可“更新链接”换成最新内容。链接跟着房间保存在电脑上,已配对的手机和平板也能管理;房间文字整理后超过 5 MB 时请改用网页文件。
|
|
59
59
|
|
|
60
60
|
两种方式看到的都是这个房间的“消息”和“执行”两页,从头阅读,外观与本机一致,卡片和执行详情都能点开;每次进入“执行”都会从头自动回放协作过程,点“结束回放”回到最终状态。“私聊”“房间”“文件”等标签灰显,只展示示意。但不能发消息或做任何操作;内容停在生成那一刻。私聊、事件记录、调度决策、被拒操作、排队消息、本机路径、会话编号与凭据不会写进去,已撤回或回退的消息也不带;失败原因只写“执行失败”,房间项目目录在正文里改写成项目内的相对路径。消息正文其余部分原样公开,发出前请核对。
|
|
61
61
|
|
|
62
|
-
附件默认不带,消息里的附件标记显示为“未包含在分享中”。房间有附件时,确认框里有“包含附件”,勾选后所有附件(图片、视频、网页、文档等)原样放进分享页,读者可以查看和下载;成员回答里交付的项目文件(回答下方的文件卡片)也会作为该条回答的附件一起带上。文本类附件会一并检查疑似密钥和本机目录;图片、视频等文件的内容程序查不了,请自己核对。发布链接带上页面能预览的附件:图片、音视频、PDF、Word/Excel/PowerPoint(docx、xlsx、pptx)、文本与代码、zip 压缩包和网页,读者在分享页里直接打开;js、bat、ps1 等双击就会运行的脚本改名为 .txt 后带上。程序和旧版 doc/xls/ppt
|
|
62
|
+
附件默认不带,消息里的附件标记显示为“未包含在分享中”。房间有附件时,确认框里有“包含附件”,勾选后所有附件(图片、视频、网页、文档等)原样放进分享页,读者可以查看和下载;成员回答里交付的项目文件(回答下方的文件卡片)也会作为该条回答的附件一起带上。文本类附件会一并检查疑似密钥和本机目录;图片、视频等文件的内容程序查不了,请自己核对。发布链接带上页面能预览的附件:图片、音视频、PDF、Word/Excel/PowerPoint(docx、xlsx、pptx)、文本与代码、zip 压缩包和网页,读者在分享页里直接打开;js、bat、ps1 等双击就会运行的脚本改名为 .txt 后带上。程序和旧版 doc/xls/ppt 不放到分享站,消息里显示“未包含在分享中”,下载的网页文件仍会带上。网页附件在分享页里照常运行,成员回答里引用的演示直接显示在消息中;它在隔离的框架里运行,读不到分享页,也不能联网请求或提交表单。勾选后点“筛选附件”可按类型或逐个选择;合计超过 300 MB 时筛选自动展开。文件按最新消息在前排列。每项显示消息编号、发送者、时间及大小,点文件名或“预览”核对内容,关闭预览即可继续勾选。发布时文字最多 5 MB,每个附件最多 100 MB、附件合计最多 300 MB。电脑上的常驻服务负责整理和上传,手机锁屏、关闭页面或换一台已配对设备都可以继续。在左侧“已分享”的“分享任务”里可以打开确认、查看已传文件数和字节数、取消、重试或调整附件。完成后可查看分享卡、复制链接或清除任务记录。常驻服务未运行时由浏览器处理,此时须保持页面打开。网页文件最多带 100 MB 附件。下载前房间内容若有更新,会重新显示确认框。
|
|
63
63
|
- **导入房间**:目录选项或文件夹菜单 → “导入房间”,选择 ZIP 文件,在预览中确认要导入的房间;标为“已存在,跳过”的房间会保留原样。在同一台电脑导入后,请回成员会续接原会话(Claude Code 成员会改为手动接入,请回后在原窗口重新注册,避免会话分叉)。导入保留历史讨论记录,不会自动继续原讨论或重新唤醒成员。
|
|
64
64
|
- **从某条消息分支**:AI 发言菜单 → “从这里分支”,新建一个保留截至该条发言记录的房间。支持会话分叉的接入方式会在新房间续接分叉后的会话;原房间保留。
|
|
65
65
|
- **让主持人新建房间**:在“主持人权限”里勾选“新建房间”后,主持人可以把一部分工作拆到新房间:成员只用本机已配置的软件,项目权限默认只读、最高可写,项目目录只能是原房间的目录或其子目录;你没指定时由与原主持人同款的专家主持。两个房间各留一张“关联房间”卡片,点“打开房间”互相跳转。新房间的主持人权限按你的默认设置,但不能再新建房间;一个房间可新建的数量有上限(默认 3 个,可在“主持人权限”里调整)。两个关联房间的主持人可以互相发言,这些消息标注“来自房间「…」的主持人 …”,按你的消息唤醒对方房间;默认不限条数;担心两边来回不停,可在新建房间面板“高级设置”里设“关联房间互传上限”(对本机所有关联房间生效),从你上次在任一房间发言算起超过这个条数会被拒绝,你发一条消息即可让它们继续。
|
package/docs/guide/workflows.md
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
在左栏“工作流”列表点一项,中间打开流程画布,右侧显示它的 `SKILL.md`(点“编辑”可修改,点“保存”或 `Ctrl+S` 保存。工作流在你打开之后被别处改过时,保存会被拒绝,页面提示“工作流已被修改,请重新载入”,点“重新载入”读取新版,未保存的修改会先询问是否放弃;导入的工作流和库里已有的同 ID 时,要点“覆盖保存”才会整份替换):
|
|
42
42
|
|
|
43
|
-
-
|
|
43
|
+
- **画布只帮你看懂**:你可以拖动卡片、添加主持人节点、用户节点(示意需要你介入、确认或发言的位置)和条件分支节点(按条件分成多条执行分支,每个分支各有独立的右侧连线圆点,选中后可增删和重命名分支)、从节点右侧圆点拖线表示先后、并行多路或循环(金色虚线表示循环)、写连线说明,或点“自动整理”。连线和说明要先单击选中才能编辑;选中金色循环线后,按住它上下拖动可调整高度。没选中时,在连线或说明上拖动只会平移画布。**程序不执行画布连线,主持人也看不到画布。**
|
|
44
44
|
- **主持人按 `SKILL.md` 派活**:谁先谁后、哪些成员并行、什么时候交回主持人把关、什么条件返工,都由 `SKILL.md` 写明并由主持人照做。用 `workflow-creator` 生成或修改工作流时,AI 会按 `SKILL.md` 同步更新画布。
|
|
45
45
|
- **步骤分组与挂靠**:画布可以把节点分成几个步骤,显示为带名字的虚线框,框上标出挂在这一步的子工作流。步骤和挂靠写在 `flow.json` 与子工作流的 `SKILL.md` 里(由 `workflow-creator` 维护),和画布一样只是示意,主持人仍按 `SKILL.md` 判断这一步用不用。
|
|
46
46
|
- **一张卡片请多位成员**:同一张卡片可以由主持人按不同显示名请进多位成员,例如每位人物一位成员;显示名只在本房间有效,同一个名字请回的是原来那位成员和它的会话。
|
package/docs/guide/working.md
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- **发之前看提示**:输入框下方的一行会按当前谁在忙说明这条发出后会怎样,比如被 @ 的成员空闲时写“立即发给某某,与正在进行的工作并行(支线)”,它正忙时写这条会先排队;没 @ 人而房间正忙时,会提示你可以 @ 一位空闲成员让它马上开工。
|
|
14
14
|
- **回复、搜索与筛选**:消息菜单点“回复”关联原消息,“查看原文”看完整正文与摘要;房间顶部可“搜索消息”或按作者、主持、点名与卡片类型“筛选消息与卡片”。
|
|
15
15
|
|
|
16
|
+
- 发送图片时,当前页面沿用本机预览。消息回执和成员执行状态出现时,页面保留刚发送时的阅读位置。
|
|
16
17
|
- **连续发送与失败重试**:上一条仍显示“发送中…”时可以发送下一条。房间正忙、消息预计需要排队时,每条先显示在输入框上方的排队列表里,网站确认后在原位成为正式排队项。浏览器按点击顺序提交,单条失败后继续发送后续消息。失败卡保留原文和附件,可点“重新发送”或“放弃”。切到其他房间后,发送和网络重试会继续;回到原房间还能找到失败卡。刷新或关闭页面会清除本页未发出的消息。
|
|
17
18
|
|
|
18
19
|
网站返回消息编号后,如果接收成员已确定,消息下方会立即显示该成员的头像、名字和等待状态。读回房间后,同一位置显示实际工作状态。需要智能调度决定接收者时,页面显示调度进度。
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
### 7. 查看过程与排查
|
|
81
82
|
|
|
82
83
|
- 打开房间后,在左栏点“执行”,选“瀑布”查看执行时间线。横向时间条显示各成员何时开始、运行了多久、哪些时间花在等待上。点成员名字看这次执行的状态、开始时间和总时长;点时间条中的某一段可看该阶段已记录的细节。超过 5 分钟的空闲在“执行轨迹”里折叠成窄带;要按真实时长回顾整个过程,切到“并发全景”:顶部先给出两个比例——“自动执行”是有成员在干活的时长占整段的比例,“无需介入”是不由你的消息触发、而由主持人派活、接力或程序唤醒自动接上的执行所占的比例,“最长无人值守”是从你的一条消息起、到房间停下或你再次发消息为止,AI 连续自动推进最久的一段;从左到右一条不折叠的时间轴,上方的高度是同一时刻有几位成员在执行(按成员颜色叠加,鼠标指向色块看那次执行的详情),空闲处标出时长,下方按任务分段,点某个任务在执行轨迹中查看。Ctrl + 滚轮或右上角“− / +”缩放(手机和平板上双指捏合),放大后拖动平移,双击还原;放大后回放时画面默认跟着回放线走,手动拖动画面会关闭“跟随”,再点它即可恢复;“执行轨迹”在手机和平板上同样可以双指缩放、放大后左右拖动;点右上角“回放协作过程”按时间顺序重放最近这次任务,可调速度或拖动进度,点“结束回放”回到当前状态;有成员还在执行时也能回放,放到现在为止。点“显示更早的执行”可一直往前翻到房间第一次执行,点“显示全部”一次列出房间的所有执行。
|
|
83
|
-
-
|
|
84
|
+
- 想处理权限拒绝,回到对话区,查看对应失败卡的执行报告。只有执行未完成、记录了可放行的规则、本机服务可用且能找回原请求时,才显示“允许并重发”。核对规则再点它,原消息会回到输入框,确认后发送。已完成执行的回答卡如中途有过被拒操作,默认折叠为次数记录,展开可核对明细,不再显示“允许并重发”。
|
|
84
85
|
- 排查“为什么没唤醒”或“哪一步被拒绝”时,在顶部“执行”页切到“事件”。“事件记录”按时间列出房间收到的操作、处理结果和引起的状态变化。点一行看原始记录与同一对象的相关事件。本机终端也可运行 `codiscuss room events <房间ID>` 查看。
|
|
85
86
|
|
|
86
87
|
### 8. 把网页部署成网站
|
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
+
"房间内容已更新,请核对后下载网页文件。": "The room changed. Review the updated contents before downloading the web page.",
|
|
3
|
+
"需要管理员登录": "Sign in as an administrator.",
|
|
4
|
+
"整理中": "Preparing",
|
|
5
|
+
"上传 {done}/{total}": "Uploading {done}/{total}",
|
|
6
|
+
"待确认": "Awaiting confirmation",
|
|
7
|
+
"{count} 待确认": "{count} awaiting confirmation",
|
|
8
|
+
"{count} 失败": "{count} failed",
|
|
9
|
+
"分享任务": "Share jobs",
|
|
10
|
+
"上传进度": "Upload progress",
|
|
11
|
+
"打开确认": "Review share",
|
|
12
|
+
"调整附件": "Adjust attachments",
|
|
13
|
+
"清除": "Dismiss",
|
|
14
|
+
"分享失败:{reason}": "Sharing failed: {reason}",
|
|
15
|
+
"可在左侧“已分享”查看进度": "Open Shared in the sidebar to see progress.",
|
|
16
|
+
"正在生成网页文件…": "Building the web page…",
|
|
17
|
+
"筛选附件": "Filter files",
|
|
18
|
+
"附件排序": "Attachment order",
|
|
19
|
+
"最新在前": "Newest first",
|
|
20
|
+
"按大小": "By size",
|
|
21
|
+
"正在后台整理「{name}」": "Preparing “{name}” in the background",
|
|
22
|
+
"「{name}」已整理好": "“{name}” is ready to share",
|
|
23
|
+
"打开分享": "Open share",
|
|
24
|
+
"正在后台生成「{name}」的网页文件": "Building the web page for “{name}” in the background",
|
|
25
|
+
"重试 / 查看": "Retry / view",
|
|
26
|
+
"电脑上的上传任务已中断,请重试": "The upload on the computer stopped. Retry the upload.",
|
|
27
|
+
"正在后台发布「{name}」": "Publishing “{name}” in the background",
|
|
28
|
+
"「{name}」的分享链接已发布": "The share link for “{name}” is ready",
|
|
29
|
+
"查看分享卡": "View share card",
|
|
2
30
|
"电脑未连接:请先与电脑配对,并确认电脑开机且运行 codiscuss": "Computer disconnected. Pair with it and make sure it is on and running codiscuss.",
|
|
3
31
|
"需要登录管理员账号或使用创建该房间的浏览器": "Sign in as an administrator or use the browser that created this room",
|
|
4
32
|
"示例": "Example",
|
|
@@ -367,7 +395,6 @@
|
|
|
367
395
|
"备份中没有该文件": "This file is not in the backup",
|
|
368
396
|
"{value1} 个附件原文件缺失,消息中的这些附件无法打开": "{value1} attachment originals are missing. These attachments cannot be opened from messages.",
|
|
369
397
|
"未放入文件夹:{value1}": "Could not place in folder: {value1}",
|
|
370
|
-
"上一个操作仍在处理中,请稍候": "The previous operation is still running. Please wait.",
|
|
371
398
|
"这里还没有频道。": "No channels here yet.",
|
|
372
399
|
"拖动排序;上下方向键移动": "Drag to reorder; arrow keys move",
|
|
373
400
|
"浏览器无法播放这个文件的格式,请点下面的文件名下载后用本机软件打开。": "Your browser cannot play this format. Click the filename below to download it and open it with local software.",
|
|
@@ -444,10 +471,12 @@
|
|
|
444
471
|
"消息、卡片、执行时间线与过程说明,停在此刻;读者只能看,不能操作。": "Messages, cards, the run timeline and progress notes, as they are now. Readers can look but not change anything.",
|
|
445
472
|
"不含私聊、事件记录、调度决策、排队消息、会话与凭据;本机用户目录写作 ~,项目目录写成相对路径,失败原因只写“执行失败”。": "Private chats, the event log, scheduling decisions, queued messages, sessions and credentials are left out; home folders are written as ~, project folders as paths inside the project, and failure reasons read only “Run failed”.",
|
|
446
473
|
"包含附件({count} 个,共 {size})": "Include attachments ({count}, {size} in all)",
|
|
474
|
+
"包含附件(已选 {selected}/{count} 个,共 {size})": "Include attachments ({selected}/{count} selected, {size} in all)",
|
|
447
475
|
"附件原样公开。文本类附件已一并检查;图片、视频和其他文件的内容程序查不了,请自己核对。": "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.",
|
|
448
476
|
"不包含时,消息里的附件标记显示为“未包含在分享中”。": "Without them, attachment tags in messages read “not included in the share”.",
|
|
449
477
|
"正在检查文本类附件…": "Checking text attachments…",
|
|
450
478
|
"{kind} {count} 个 · {size}": "{kind} · {count} · {size}",
|
|
479
|
+
"{kind} {selected}/{count} 个 · {size}": "{kind} · {selected}/{count} · {size}",
|
|
451
480
|
"已选 {size};发布链接最多带 300 MB 附件(单个 100 MB),网页文件最多 100 MB。": "{size} selected; a share link carries at most 300 MB of attachments (100 MB per file), and a web page file at most 100 MB.",
|
|
452
481
|
"文本与代码": "Text and code",
|
|
453
482
|
"逐个选择": "Choose files",
|
|
@@ -526,10 +555,7 @@
|
|
|
526
555
|
"可留空": "Optional",
|
|
527
556
|
"卡片上的成果": "Outcome on the card",
|
|
528
557
|
"「{value1}」销毁失败,房间未改变:{value2}": "Could not destroy “{value1}”; the room is unchanged: {value2}",
|
|
529
|
-
"已销毁「{name}
|
|
530
|
-
"沿用或共用的会话 {count} 个": "{count} taken-over or shared sessions",
|
|
531
|
-
"AI 软件自身的索引与数据库": "the AI software's own indexes and databases",
|
|
532
|
-
"保留:{items}。": "Kept: {items}.",
|
|
558
|
+
"已销毁「{name}」:已删除 {messages} 条消息、{files} 个附件、{sessions} 个会话(项目文件保留)。": "Destroyed “{name}”: {messages} messages, {files} attachments, {sessions} sessions deleted (project files kept).",
|
|
533
559
|
"「{name}」已按自动销毁设置销毁。": "“{name}” was destroyed by its auto-destroy setting.",
|
|
534
560
|
"「{name}」将在 {hours} 小时内自动销毁;要保留,请在“房间”页把“自动销毁”改为“长期保留”。": "“{name}” will be destroyed within {hours} hours. To keep it, set “Auto-destroy” to “Keep” in the “Room” tab.",
|
|
535
561
|
"你上次打开后,有 {count} 个房间按自动销毁设置销毁了。": "Since you last opened this page, {count} rooms were destroyed by their auto-destroy setting.",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"无法读取 ZIP 压缩包": "Could not read the ZIP archive",
|
|
3
|
+
"无法读取这个压缩包条目": "Could not read this archive entry",
|
|
4
|
+
"压缩包内单个文件最多预览 64 MiB": "Individual archive entries can be previewed up to 64 MiB",
|
|
2
5
|
"面板上已有预设「{name}」;要用这张卡片替换它,请明确选择覆盖": "The panel already has a preset “{name}”; choose to replace it explicitly to use this card",
|
|
3
6
|
"工作流「{id}」已被修改,请重新载入后再保存": "Workflow “{id}” was changed since you loaded it; reload it before saving",
|
|
4
7
|
"工作流库里已有「{id}」;要整份覆盖它,请明确选择覆盖": "The library already has “{id}”; choose to overwrite it explicitly to replace it",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
"条": "messages",
|
|
478
478
|
"主持人新建的房间与原房间之间,两边主持人从你上次发言起最多互传几条消息;对本机所有关联房间生效。": "How many messages the hosts of a room and the rooms its host created may pass each other after your last message; applies to every linked room on this computer.",
|
|
479
479
|
"销毁房间": "Destroy room",
|
|
480
|
-
"
|
|
480
|
+
"销毁后无法恢复。": "This cannot be undone.",
|
|
481
481
|
"已删除并复查": "Deleted and checked",
|
|
482
482
|
"未完成,可重试": "Not finished, can retry",
|
|
483
483
|
"保留": "Kept",
|
|
@@ -492,14 +492,12 @@
|
|
|
492
492
|
"沿用你原有的会话,或与其他房间共用的会话 {count} 个": "{count} sessions taken over from your own windows or shared with other rooms",
|
|
493
493
|
"{software} 自身共用的索引与数据库(未改动)": "{software}'s own shared indexes and databases (left unchanged)",
|
|
494
494
|
"已发给模型服务商的内容": "Content already sent to model providers",
|
|
495
|
-
"
|
|
496
|
-
"
|
|
497
|
-
"
|
|
495
|
+
"已发给模型服务商的内容按其政策保留,无法删除。": "Content sent to model providers is kept under their policies and cannot be deleted.",
|
|
496
|
+
"已开始下载,请确认浏览器已保存。": "Download started; check that your browser saved it.",
|
|
497
|
+
"销毁前导出消息、私聊与附件?(不含草稿文件)": "Export messages, private chats and attachments first? (Excludes draft files)",
|
|
498
498
|
"导出资料包": "Export package",
|
|
499
499
|
"立即销毁": "Destroy now",
|
|
500
|
-
"
|
|
501
|
-
"资料包含消息、私聊和附件,不含成员写在草稿目录里、没有发进房间的文件;需要的先让成员发进房间或存进项目目录。": "The package has messages, private chats and attachments, but not files members wrote in their draft folders and never posted; ask members to post them or save them to the project folder first.",
|
|
502
|
-
"销毁记录": "Destruction records",
|
|
500
|
+
"已发布的分享网页会先撤销。": "Published share pages will be taken down first.",
|
|
503
501
|
"销毁记录": "Destruction records",
|
|
504
502
|
"查看销毁回执:删除了什么、保留了什么;未完成的可以重试。": "See each destruction's receipt: what was deleted and what was kept. Retry any that are unfinished.",
|
|
505
503
|
"你评过的调度记录 {count} 条": "{count} scheduling decisions you rated",
|
|
@@ -517,20 +515,20 @@
|
|
|
517
515
|
"下载文件夹": "Download folder",
|
|
518
516
|
"查看记录、恢复房间或销毁。": "Read records, restore rooms, or destroy them.",
|
|
519
517
|
"全部销毁({count})": "Destroy all ({count})",
|
|
520
|
-
"
|
|
518
|
+
"将销毁这 {count} 个房间的记录、附件、AI 会话与草稿(项目文件保留),无法恢复;需留底请先导出。": "Records, attachments, AI sessions and drafts of these {count} rooms will be destroyed (project files kept). This cannot be undone; export first to keep a copy.",
|
|
521
519
|
"销毁 {name}": "Destroy {name}",
|
|
522
|
-
"销毁「{name}
|
|
523
|
-
"也可以连同其中的 {count}
|
|
524
|
-
"正在销毁 {count}
|
|
520
|
+
"销毁「{name}」的记录、附件、AI 会话与草稿(项目文件保留),无法恢复。": "Destroy “{name}”'s records, attachments, AI sessions and drafts (project files kept). This cannot be undone.",
|
|
521
|
+
"也可以连同其中的 {count} 个房间一起销毁(项目文件保留),无法恢复。": "You can also destroy its {count} rooms (project files kept). This cannot be undone.",
|
|
522
|
+
"正在销毁 {count} 个房间,可在“销毁记录”查看进度。": "Destroying {count} rooms; check progress under “Destruction records”.",
|
|
525
523
|
"连同 {count} 个房间销毁": "Destroy with its {count} rooms",
|
|
526
524
|
"再次确认销毁": "Confirm destroying again",
|
|
527
|
-
"
|
|
525
|
+
"确定销毁这 {count} 个房间?记录、附件、AI 会话与草稿将永久删除,无法恢复。": "Destroy these {count} rooms? Records, attachments, AI sessions and drafts will be deleted for good and cannot be recovered.",
|
|
528
526
|
"确认销毁": "Destroy",
|
|
529
527
|
"销毁": "Destroy",
|
|
530
528
|
"返回": "Back",
|
|
531
|
-
"
|
|
532
|
-
"
|
|
533
|
-
"
|
|
529
|
+
"确定销毁此房间?记录、附件、AI 会话与草稿将永久删除,无法恢复。": "Destroy this room? Records, attachments, AI sessions and drafts will be deleted for good and cannot be recovered.",
|
|
530
|
+
"删除:消息、私聊、附件、本房间新建的 AI 会话与草稿。": "Deleted: messages, private chats, attachments, new AI sessions and drafts.",
|
|
531
|
+
"保留:项目目录、沿用或共用的会话、AI 软件共用索引。": "Kept: project folder, adopted or shared sessions, and AI apps' shared indexes.",
|
|
534
532
|
"草稿文件夹(其他房间还在用)": "Draft folder (another room still uses it)",
|
|
535
533
|
"草稿文件夹": "Draft folder"
|
|
536
534
|
}
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
"继续 Goal": "Continue Goal",
|
|
47
47
|
"展开或收起详情": "Expand or collapse details",
|
|
48
48
|
"被拒操作": "Denied operations",
|
|
49
|
+
"{count} 次": "{count} times",
|
|
50
|
+
"收起被拒操作": "Collapse denied operations",
|
|
51
|
+
"展开 {count} 次被拒操作": "Expand {count} denied operations",
|
|
49
52
|
"允许并重发": "Allow and resend",
|
|
50
53
|
"把这些操作加入该成员的放行规则(下次执行起生效),并把原消息填回输入框": "Allow these operations for this member starting with the next run, and restore the original message in the composer",
|
|
51
54
|
"添加批注(可选)": "Add a comment (optional)",
|