ai_co_discuss 0.5.19 → 0.5.21

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.
Files changed (74) hide show
  1. package/.agents/skills/discuss-participant/SKILL.md +2 -1
  2. package/.agents/skills/share-card/SKILL.md +15 -0
  3. package/.agents/skills/share-card/references/share-card.md +43 -0
  4. package/.agents/skills/workflow-creator/SKILL.md +3 -0
  5. package/backend/execution_diagnostics.py +149 -0
  6. package/backend/free_room.py +133 -40
  7. package/backend/message_queue.py +6 -4
  8. package/backend/room_trace.py +219 -0
  9. package/backend/schema.sql +7 -1
  10. package/backend/server.py +113 -8
  11. package/docs/en/guide/cli.md +20 -0
  12. package/docs/en/guide/faq.md +1 -0
  13. package/docs/en/guide/members.md +3 -1
  14. package/docs/en/guide/rooms.md +7 -3
  15. package/docs/en/guide/workflows.md +2 -0
  16. package/docs/en/guide/working.md +9 -4
  17. package/docs/guide/cli.md +20 -0
  18. package/docs/guide/faq.md +1 -0
  19. package/docs/guide/members.md +3 -1
  20. package/docs/guide/rooms.md +7 -3
  21. package/docs/guide/workflows.md +2 -0
  22. package/docs/guide/working.md +9 -4
  23. package/frontend/locales/en/app.json +8 -0
  24. package/frontend/locales/en/backend.json +5 -0
  25. package/frontend/locales/en/discussion.json +10 -3
  26. package/frontend/locales/en/execution-diagnostics.json +32 -0
  27. package/frontend/locales/en/room.json +1 -0
  28. package/frontend/locales/en/settings.json +5 -0
  29. package/package.json +3 -2
  30. package/runner/adapters/antigravity_cli.mjs +15 -1
  31. package/runner/adapters/api.mjs +27 -3
  32. package/runner/adapters/api_images.mjs +1 -1
  33. package/runner/adapters/api_pi.mjs +30 -1
  34. package/runner/adapters/cli.mjs +15 -6
  35. package/runner/adapters/codex_bridge.mjs +20 -6
  36. package/runner/adapters/codex_cli.mjs +2 -1
  37. package/runner/codiscuss.mjs +7 -0
  38. package/runner/discuss.py +24 -2
  39. package/runner/discussion_launch.mjs +1 -1
  40. package/runner/discussion_setup.mjs +1 -1
  41. package/runner/discussion_skills.mjs +1 -1
  42. package/runner/expert_prompts.mjs +4 -3
  43. package/runner/free_runner.mjs +102 -24
  44. package/runner/i18n_en.mjs +45 -2
  45. package/runner/remote_launch.mjs +2 -2
  46. package/runner/share_card.mjs +1314 -0
  47. package/runner/share_service.mjs +25 -7
  48. package/runner/share_shared.mjs +28 -7
  49. package/runner/site_deploy.mjs +125 -4
  50. package/runner/timeline_metrics.mjs +185 -0
  51. package/runner/workflows.mjs +38 -9
  52. package/web/app.js +303 -81
  53. package/web/i18n.js +3 -3
  54. package/web/modern.css +1 -1
  55. package/web/modern.js +98 -67
  56. package/workflows/decision-council/SKILL.md +2 -1
  57. package/workflows/decision-council/flow.json +15 -15
  58. package/workflows/story-serial/agents/writer.md +1 -1
  59. package/workflows/story-serial/flow.json +456 -123
  60. package/workflows/story-serial/workflows/aigc-reduce/flow.json +134 -13
  61. package/workflows/story-serial/workflows/character-play/flow.json +212 -25
  62. package/workflows/story-serial/workflows/jack-sparrow/flow.json +67 -23
  63. package/workflows/story-serial/workflows/luke-nichols/flow.json +67 -23
  64. package/workflows/story-serial/workflows/revise-episodes/flow.json +184 -23
  65. package/workflows/story-serial/workflows/tidy-docs/flow.json +256 -19
  66. package/workflows/tri-model-dev/SKILL.md +72 -0
  67. package/workflows/tri-model-dev/agents/advisor.md +22 -0
  68. package/workflows/tri-model-dev/agents/backend.md +25 -0
  69. package/workflows/tri-model-dev/agents/reviewer.md +38 -0
  70. package/workflows/tri-model-dev/flow.json +397 -0
  71. package/workflows/tri-model-dev/workflows/browser-verify/SKILL.md +22 -0
  72. package/workflows/tri-model-dev/workflows/browser-verify/agents/browser_ops.md +18 -0
  73. package/workflows/tri-model-dev/workflows/browser-verify/flow.json +136 -0
  74. package/workflows/trpg-classic/flow.json +17 -17
@@ -16,7 +16,9 @@ Message a member or host, understand main and branch work and assignment labels,
16
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.
17
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.
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.
19
+ Once the site returns a message number, known recipients appear below the message. If an automatically connected member is busy and the request must wait for its current task to finish, a one-line notice with a clock shows the member’s name and the queued message number. Hover over the notice to see how long the request has waited. The working card takes its place when the member starts. If smart scheduling needs to choose the recipient, the page shows scheduling progress.
20
+
21
+ Quick navigation on the left lists messages from users and members. Hover over a mark to preview the message or click to jump to its card.
20
22
 
21
23
  ### 2. Understand main lines, branches, and assignment labels
22
24
 
@@ -26,7 +28,7 @@ Room work can run on several lines in parallel. Labels at the top of a card show
26
28
  - A directly mentioned member starts immediately when idle. If busy, its request waits in the queue until it is free. If one message mentions both idle and busy members, idle members start at once while the busy members’ work waits.
27
29
  - When a main-line member’s turn arrives, it waits for that member to finish its active branch work.
28
30
  - Your unmentioned messages, `@all`, and `@all-seq` wait until the room is idle, then go out in order. Background work assigned by the host does not hold up your new messages.
29
- - **Where things sit on a card.** Every member card has, from top to bottom: the header, the body, what it delivers (answer summary, attachments, delivered files) and the run’s record (progress notes with step count, file changes, refused operations). The left of the header says who: the name, labels, and the model and effort this run used. The right says how this one went: status, time, number and duration, with the duration always last. A coloured status only means something went wrong (red for failed; amber for stopped, voided or skipped), and nothing is shown when all is well; on your own messages, the right shows how each member is handling it. On a phone, the buttons for retracting, editing, private chat and the like sit at the top right of the card, level with the name; the model, status, time, number and duration run from the left under the name. Stop and retry sit at the right end of the line they act on.
31
+ - **Where things sit on a card.** Every member card has, from top to bottom: the header, the body, what it delivers (answer summary, attachments, delivered files) and the run’s record (progress notes with step count, file changes, refused operations). File changes list only files the member was recorded writing during that run. The left of the header says who: the name, labels, and the model and effort this run used. The right says how this one went: status, time, number and duration, with the duration always last. A coloured status only means something went wrong (red for failed; amber for stopped, voided or skipped), and nothing is shown when all is well; on your own messages, the right shows how each member is handling it. On a phone, the buttons for retracting, editing, private chat and the like sit at the top right of the card, level with the name; the model, status, time, number and duration run from the left under the name. Stop and retry sit at the right end of the line they act on. When an answer first appears, pending project files reserve their card space. You can open them once verified.
30
32
  - **Card labels.** Where the card came from comes first, then where the work goes next. The usual channels (own message, CLI, API) are no longer labelled; only rare sources such as sent on someone’s behalf, proactive messages and auto-captured answers are.
31
33
  - “Host” identifies a message from the current host, host notes included.
32
34
  - “Main line · step {n}” is a host-arranged order. “Main line · #{n} in turn” is `@all-seq`.
@@ -46,7 +48,7 @@ New messages wait above the composer while the intended member or room is busy.
46
48
 
47
49
  - **Not waiting.** Select the arrow button on a queued item; hover over it to see what it will do:
48
50
  - The recipient is free: it goes at once.
49
- - The recipient is working and its software takes interjections: this joins its current turn; it sees it right away and the work done so far stays.
51
+ - The recipient is working and its software takes interjections: this joins its current turn; it sees it right away and the work done so far stays. A message steered directly into the same task appears indented below the original user message with a “Steer” label. A message that interrupts work first keeps its own card.
50
52
  - The recipient is working and cannot take an interjection: its turn is stopped first, and it takes this together with the interrupted work.
51
53
  - The recipient can neither take an interjection nor be stopped: selecting it explains why and the message stays queued.
52
54
  - **Edit or delete.** In a queued, unsent item’s menu, select “Edit message” to return it to the composer for editing, or delete it.
@@ -80,10 +82,13 @@ When a member needs you to make a decision, a question card appears above the co
80
82
 
81
83
  ### 7. Inspect a run and troubleshoot a room
82
84
 
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.
85
+ - 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. On desktop, the phase preview opens down and to the right when space permits, and can open above or to the left near an edge. 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**. Both **Traces** and **Concurrency** share the same zoom and replay controls at the top right: zoom with Ctrl + wheel or the zoom buttons (pinch on phones and tablets), drag to pan when zoomed, and double-click or select **Reset** to restore the full view. Select **Replay** to play back in order (with pause, speed controls 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. With **Follow** on, the view dynamically adjusts its zoom to frame the active runs and keeps the playback line in view; zooming manually locks your zoom level, dragging or selecting **Reset** turns **Follow** off, and selecting **Follow** re-enters dynamic auto-zoom and follow. **Show earlier runs** keeps paging back to the room's first run, and **Show all** lists every run in the room at once.
84
86
  - 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**.
87
+ - “Run diagnostics” shows the latest heartbeat and model or tool activity, which timeout fired, retry sources, interjection confirmations, and the workflow used at delivery. File attribution shows observed changes and tracked writes separately. Only the owner can see file paths in diagnostics. Fields without evidence show “Unknown”. Run `codiscuss execution view <ROOM_ID> <RUN_ID>` to inspect the same record in a terminal.
85
88
  - 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.
86
89
 
90
+ - To troubleshoot scrolling after sending, quick navigation, run card placement, operation receipts, or annotation inputs, add `scrolldebug` to the room URL (for example, `?room=ROOM_ID&scrolldebug`). Reopen the page, reproduce the issue once, and select **Copy browser debug log** in the upper right. The log includes IDs, states, and browser measurements. It omits message, selection, and comment text. Debugging stays active until you close the tab.
91
+
87
92
  ### 8. Deploy a page as a website
88
93
 
89
94
  A page a member delivers can go to a public address, `https://<id>.bimcanvas.com`, that people without CoDiscuss can open.
package/docs/guide/cli.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## 按场景查找命令
6
6
 
7
+ 用 `codiscuss room list --query "剧情"` 按标题片段搜索房间。结果包含房间 ID、完整标题和文件夹名称,未分组时文件夹为 `null`。
8
+
7
9
  ### 安装、配置与升级
8
10
 
9
11
  | 你想做什么 | 命令 |
@@ -49,8 +51,26 @@
49
51
  | --- | --- |
50
52
  | 检查本机或线上站点是否正常响应 | `codiscuss health --site http://127.0.0.1:8765` |
51
53
  | 查看房间事件记录(排查卡片状态或未唤醒原因) | `codiscuss room events <房间ID>` |
54
+ | 查看一次执行的心跳、活动、重试、插话确认、历史工作流和文件归因 | `codiscuss execution view <房间ID> <执行号>`,查看 `diagnostics` |
55
+ | 按消息编号追踪请求、执行、失败后的唤醒及卡片位置 | `codiscuss room trace <房间ID> --message <消息编号>` |
56
+ | 核对已托管网站的清单、激活版本和公开响应 | `codiscuss site diagnose <站点编号> [--room <房间ID>]` |
52
57
  | 检查管理面板与全部服务状态 | `codiscuss admin status --full` |
53
58
 
59
+ `room trace` 的 `history` 记录来自事件日志,`current` 记录显示当前的请求、执行、重试关联、插话和卡片位置。若返回 `next_page`,用同一房间和消息编号加 `--page <页码>` 继续。房间还在变化时,下一页可能反映较新的状态。命令沿用消息与事件的可见范围,私聊不会出现在追踪中。
60
+
61
+ `site diagnose` 使用本机已有的发布身份,只读对照房间登记、与站点关联的本机暂存记录、托管端最近清单和当前激活版本。它匿名读取入口和一个静态资源,对照实际字节的 SHA-256,并报告最后可确认的阶段。待上传版本与仍在服务的版本各自显示。旧版托管服务只提供激活版本,公开响应没有清单摘要可核对时会标为未验证。房间地址无法自动取得时,可用 `--url <房间网站地址>` 指定。
62
+
63
+ ### 分享卡封面工具
64
+
65
+ 在房间里可以直接说 `$share-card 为 <房间链接> 做分享卡,重点展示最终产品`。在目标房间内可省略链接。AI 会取材、制图,并把 PNG 附在回答中。
66
+
67
+ 供房间 AI 或本机用户在命令行定制分享卡封面;分享面板只接收成图(PNG / JPG / WebP),并自动在底部拼接二维码、链接与有效期。带房间任务凭据运行时,`materials` 只访问凭据绑定站点、`render` 受该成员的目录读写权限约束;房主在终端不带任务凭据手动运行时,沿用当前系统账号的文件权限。
68
+
69
+ | 你想做什么 | 命令 |
70
+ | --- | --- |
71
+ | 按可分享范围读取房间协作指标、并发曲线与素材索引(含截断标记) | `codiscuss share-card materials [房间ID]` |
72
+ | 将本地静态 HTML 封面导出为高清 PNG(默认 750 CSS px @2×,经进程私有管道调用系统可信安装位置的沙箱浏览器) | `codiscuss share-card render cover.html --out cover.png` |
73
+
54
74
  ### 备份、导出与导入
55
75
 
56
76
  房间的 ZIP 导出与导入在网页端完成(见[房间目录与建房](rooms.md#5-导出导入与分支房间)):房间菜单 → “导出对话”、目录选项 → “导出全部房间”和“导入房间”。独立部署 Python 服务时,停止写入后直接备份 SQLite 数据库与同级 `<数据库文件名>.attachments/` 目录(见[部署指南](../deployment.md#python-服务))。
package/docs/guide/faq.md CHANGED
@@ -42,6 +42,7 @@
42
42
 
43
43
  - **成员没反应 / 一直显示等待**:先运行 `codiscuss local status` 看本机服务是否在线;若房间有正在进行的任务,新消息可能在输入框上方的排队区等待空闲;若怀疑状态卡住,运行 `codiscuss room events <房间ID>` 查事件记录。
44
44
  - **送达失败 / 投递失败卡**:查看失败卡上的原始原因。若是登录失效,在本机对应软件(或管理面板“账号 → 命令行登录”)重新登录后点“立即重试”;倒计时最多自动重试 3 次。
45
+ - **Gemini 做到一半断网**:Antigravity CLI 确认可重试时,共议在同一张执行卡上倒计时,依次等待 10、30、60 秒,在原会话接着做。每次执行最多自动重试 3 次。倒计时期间可点“立即重试”或“停止”;次数用尽仍失败,卡片保留最后一次报错。
45
46
  - **额度用尽 / 输出超限 / 压缩失败 / 策略拒绝**:
46
47
  - 额度用尽:等重置,或在顶部“房间”页 → “成员与设置”给该成员换模型、改派其他成员。
47
48
  - 输出或上下文问题:输出达到上限时要求更短的回答或拆分任务;压缩失败时缩短输入,下次执行会自动新开会话。
@@ -10,7 +10,9 @@
10
10
 
11
11
  1. **添加本地软件成员。** 新建房间时在“谁来参与” → “添加 AI”点已配置的平台;已有房间在右栏点“邀请 AI 加入”(或在顶部“房间”页 → “成员与设置” → “邀请 AI 加入”),选好成员后点“邀请”。同一平台可添加多位,各自保持独立会话。
12
12
  2. **用角色预设一键加入。** 在“添加 AI”下方的“预设”行点一个预设,直接加入已设好描述、专属提示词、项目权限和模型的成员(内置 `Codex-review`、`Gemini-docs`、`OpenAI-image`)。点成员卡背面的书签图标可把当前配置“存为预设”;点“预设”行末尾的“管理”可删除不再使用的预设。
13
- 3. **添加模型 API 成员。** 在“添加 AI”里选 Claude、Gemini、DeepSeek、Qwen、Grok、OpenAI 或“自定义 API”。同一平台兼有本地软件和 API 时,翻到成员卡背面,在“接入”中选对应的 API。官方预设会带入服务地址。
13
+ 3. **添加模型 API 成员。** 在“添加 AI”里选 Claude、Gemini、DeepSeek、Qwen、Grok、OpenAI 或“自定义 API”。同一平台兼有本地软件和 API 时,翻到成员卡背面,在“接入”中选对应的 API。官方预设会带入服务地址。 普通本机 API 成员可以按房间编号读取同站点其他房间的概况、消息、事件和附件。
14
+ API 成员处理一次房间任务最多 45 分钟。连续 15 分钟没有模型或工具进展也会停止,执行卡会显示原因。
15
+ 排查时,在房间左栏点“执行”,进入“瀑布”,打开该次执行的“执行诊断”。最后续租由房间服务记录,最后模型或工具进展由接入软件报告。模型请求重试、适配器重启和接入程序重新投递分别记录。插话的确认时间需要软件提供对应回执。旧执行或软件未提供的记录显示“未知”。
14
16
  4. **填写 API 配置并检查。** 点成员卡正面的“设置”区域翻到背面,填写“地址”“协议”“密钥”“模型”。如果所选模型支持看图且需要它读图片附件,打开“看图”。点闪电按钮检查配置,提示“检查通过:模型已响应”即表示可用;点“完成”回到正面。
15
17
 
16
18
  ## 续接已有会话
@@ -40,7 +40,7 @@
40
40
  - **打开“文件”页**:房间顶部的标签栏点“文件”,浏览目录、文件大小与修改时间,上方可切换主目录与其他项目目录。浏览文件需要已设置项目目录。
41
41
  - **预览文件**:点击文件打开悬浮预览,支持纯文本、代码、Markdown 渲染、HTML 静态渲染并可切换源码;图片可缩放、旋转;音视频带倍速与全屏直接播放;CSV 显示为表格,字幕(SRT、VTT、ASS、LRC)显示为时间轴;Word、Excel、PowerPoint 与 PDF 只读预览;Premiere 工程显示其 XML;zip 压缩包像文件夹一样列出其中的文件夹与文件,点击其中的文件在新标签中预览。Markdown 中用相对路径引用的项目图片会直接显示。 打开房间附件或项目中的 ZIP 时先显示目录,点包内文件才读取内容。单个文件最多预览 64 MiB,也可以点“下载”保存整个压缩包。
42
42
  - **多标签、分屏与收起**:可同时打开多个文件以标签切换,在预览栏切换为右侧分屏、或点“文件位置”回到所在文件夹。HTML 预览还可以“在新标签页打开”。点标题栏“收起”缩成内容区角落的悬浮按钮,切到其他房间后点它即可回到原文件与滚动位置,关闭才清空。
43
- - **摘录批注**:在 Markdown 预览或成员回答正文中选中文字点“添加到对话”,可输入批注并回车,原文标出编号,输入框上方显示“N 条注释”。发送时自动附带文件路径+行号、成员+消息编号,或消息附件所属的消息编号与附件 ID,引用中的 `@` 不会唤醒成员。
43
+ - **摘录批注**:在 Markdown 预览或成员回答正文中选中文字点“添加到对话”,可输入批注并回车,原文标出编号,输入框上方显示“N 条注释”。在电脑上,打开注释列表,点“修改批注”,可拖动编辑框右下角调整宽高。发送时自动附带文件路径+行号、成员+消息编号,或消息附件所属的消息编号与附件 ID,引用中的 `@` 不会唤醒成员。
44
44
  - **整理文件**:点路径栏最前面的“项目”,可以打开你所有的项目和草稿。上方按钮用于新建文件夹和上传文件(单个不超过 20 MB);每行的菜单里有“下载”(文件夹为“下载文件夹”,打包成 ZIP)、“重命名”、“复制”、“剪切”、“删除”,复制或剪切后到目标文件夹点“粘贴”。删除的文件和被替换掉的旧版放进“回收区”,保留 30 天,可以还原。在源码视图点铅笔按钮可以编辑文本文件(不超过 1 MB)。项目、草稿文件夹本身,以及房间正在用作项目目录的文件夹,都不能改名、移动或删除。
45
45
 
46
46
  ### 4. 发送与查看附件
@@ -55,11 +55,15 @@
55
55
  - **导出备份**:房间菜单 → “导出对话”将当前房间的消息、历次讨论与附件打包为 ZIP;文件夹菜单 → “导出文件夹”;目录选项 → “导出全部房间”。在运行本机服务的电脑上导出,备份会附带成员的软件配置与会话标识。要续接会话,原软件的会话记录仍须保存在电脑上。
56
56
  - **分享为网页**:房间菜单 → “分享”。整理在后台进行,可以继续聊天或切换房间。再次点“分享”可查看进度,或在完成通知点“打开分享”。确认框里列出包含与不包含的内容,以及找到的疑似密钥、本机目录或联系方式(标出消息编号和前后文),核对后选一种方式:
57
57
  - “下载网页文件”会在后台生成并下载一个独立的 `.html` 文件,用浏览器直接打开即可,发出去后无法过期或撤回。
58
- - “发布链接”:大小检查通过后关闭弹窗并在后台发布。完成通知提供“查看分享卡”和“复制链接”,即使手机失焦也能手动复制,选 1、3 或 7 天后过期,到期自动删除。左侧房间列表下方的“已分享”列出所有有效的分享链接和剩余时间,可以复制、打开、续期(内容不变,有效期从现在重新计算)或撤销;房间菜单里也有“复制分享链接”“撤销分享链接”,再次“分享”可“更新链接”换成最新内容。链接跟着房间保存在电脑上,已配对的手机和平板也能管理;房间文字整理后超过 5 MB 时请改用网页文件。
58
+ - “发布链接”:大小检查通过后关闭弹窗并在后台发布。完成通知提供“查看分享卡”和“复制链接”,即使手机失焦也能手动复制,选 1、3 或 7 天后过期,到期自动删除。左侧房间列表下方的“已分享”列出所有有效的分享链接和剩余时间,可以复制、打开、续期(内容不变,有效期从现在重新计算)或撤销;房间菜单里也有“复制分享链接”“撤销分享链接”,再次“分享”可“更新链接”换成最新内容。确认撤销后该链接立即从列表和房间菜单消失;续期时立即显示新到期时间。可以接着操作其他房间,保存失败会恢复相应链接并提示原因。链接跟着房间保存在电脑上,已配对的手机和平板也能管理;房间文字整理后超过 5 MB 时请改用网页文件。
59
+
60
+ **分享卡**:在完成通知或“已分享”里点“查看分享卡”。自动封面的文字可以直接修改,也可以选择本房间的图片附件,或上传 PNG、JPG、WebP(包括其他房间制作的封面)。特别长的图片可选择保留区域。使用“更新链接”时,已选封面和手改文字会保留,其他内容随房间更新。撤销后重新发布会生成新卡。续期后重新打开,扫码栏显示最新有效期。点“保存图片”可导出 PNG。升级前未保留内容的旧链接会显示带房间标题的基础卡。分享弹窗里的“复制分享卡诊断”会记录材料截止消息和条数、封面来源、渲染进度及可确认的发布和附件状态。渲染完成后会显示 PNG 像素尺寸,旧记录缺失的字段会省略。诊断内容省略正文、图片及访问凭据。
61
+
62
+ 想让 AI 设计封面时,发一句 `$share-card 做分享卡,重点展示最终产品`。在其他房间制作时加上目标房间链接。收到 PNG 后即可用作封面。
59
63
 
60
64
  两种方式看到的都是这个房间的“消息”和“执行”两页,从头阅读,外观与本机一致,卡片和执行详情都能点开;每次进入“执行”都会从头自动回放协作过程,点“结束回放”回到最终状态。“私聊”“房间”“文件”等标签灰显,只展示示意。但不能发消息或做任何操作;内容停在生成那一刻。私聊、事件记录、调度决策、被拒操作、排队消息、本机路径、会话编号与凭据不会写进去,已撤回或回退的消息也不带;失败原因只写“执行失败”,房间项目目录在正文里改写成项目内的相对路径。消息正文其余部分原样公开,发出前请核对。
61
65
 
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 附件。下载前房间内容若有更新,会重新显示确认框。
66
+ 附件默认不带,消息里的附件标记显示为“未包含在分享中”。房间有附件时,确认框里有“包含附件”,勾选后所有附件(图片、视频、网页、文档等)原样放进分享页,读者可以查看和下载;成员回答里交付的项目文件(回答下方的文件卡片)也会作为该条回答的附件一起带上。文本类附件会一并检查疑似密钥和本机目录;图片、视频等文件的内容程序查不了,请自己核对。发布链接带上页面能预览的附件:图片、音视频、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
67
  - **导入房间**:目录选项或文件夹菜单 → “导入房间”,选择 ZIP 文件,在预览中确认要导入的房间;标为“已存在,跳过”的房间会保留原样。在同一台电脑导入后,请回成员会续接原会话(Claude Code 成员会改为手动接入,请回后在原窗口重新注册,避免会话分叉)。导入保留历史讨论记录,不会自动继续原讨论或重新唤醒成员。
64
68
  - **从某条消息分支**:AI 发言菜单 → “从这里分支”,新建一个保留截至该条发言记录的房间。支持会话分叉的接入方式会在新房间续接分叉后的会话;原房间保留。
65
69
  - **让主持人新建房间**:在“主持人权限”里勾选“新建房间”后,主持人可以把一部分工作拆到新房间:成员只用本机已配置的软件,项目权限默认只读、最高可写,项目目录只能是原房间的目录或其子目录;你没指定时由与原主持人同款的专家主持。两个房间各留一张“关联房间”卡片,点“打开房间”互相跳转。新房间的主持人权限按你的默认设置,但不能再新建房间;一个房间可新建的数量有上限(默认 3 个,可在“主持人权限”里调整)。两个关联房间的主持人可以互相发言,这些消息标注“来自房间「…」的主持人 …”,按你的消息唤醒对方房间;默认不限条数;担心两边来回不停,可在新建房间面板“高级设置”里设“关联房间互传上限”(对本机所有关联房间生效),从你上次在任一房间发言算起超过这个条数会被拒绝,你发一条消息即可让它们继续。
@@ -38,6 +38,8 @@
38
38
 
39
39
  ### 4. 画布与 `SKILL.md` 的分工
40
40
 
41
+ 在正文上方可直接编辑“一句话描述”。描述会按面板宽度换行,完整显示。
42
+
41
43
  在左栏“工作流”列表点一项,中间打开流程画布,右侧显示它的 `SKILL.md`(点“编辑”可修改,点“保存”或 `Ctrl+S` 保存。工作流在你打开之后被别处改过时,保存会被拒绝,页面提示“工作流已被修改,请重新载入”,点“重新载入”读取新版,未保存的修改会先询问是否放弃;导入的工作流和库里已有的同 ID 时,要点“覆盖保存”才会整份替换):
42
44
 
43
45
  - **画布只帮你看懂**:你可以拖动卡片、添加主持人节点、用户节点(示意需要你介入、确认或发言的位置)和条件分支节点(按条件分成多条执行分支,每个分支各有独立的右侧连线圆点,选中后可增删和重命名分支)、从节点右侧圆点拖线表示先后、并行多路或循环(金色虚线表示循环)、写连线说明,或点“自动整理”。连线和说明要先单击选中才能编辑;选中金色循环线后,按住它上下拖动可调整高度。没选中时,在连线或说明上拖动只会平移画布。**程序不执行画布连线,主持人也看不到画布。**
@@ -16,7 +16,9 @@
16
16
  - 发送图片时,当前页面沿用本机预览。消息回执和成员执行状态出现时,页面保留刚发送时的阅读位置。
17
17
  - **连续发送与失败重试**:上一条仍显示“发送中…”时可以发送下一条。房间正忙、消息预计需要排队时,每条先显示在输入框上方的排队列表里,网站确认后在原位成为正式排队项。浏览器按点击顺序提交,单条失败后继续发送后续消息。失败卡保留原文和附件,可点“重新发送”或“放弃”。切到其他房间后,发送和网络重试会继续;回到原房间还能找到失败卡。刷新或关闭页面会清除本页未发出的消息。
18
18
 
19
- 网站返回消息编号后,如果接收成员已确定,消息下方会立即显示该成员的头像、名字和等待状态。读回房间后,同一位置显示实际工作状态。需要智能调度决定接收者时,页面显示调度进度。
19
+ 网站返回消息编号后,已确定的接收成员会显示在消息下方。自动接入的成员正忙并需等当前工作结束时,这里会显示带时钟图标的一行排队提示,列出成员名和等完要处理的消息编号。把鼠标移到提示上可看已等时长。成员开工后,执行卡会在原位置出现。需要智能调度决定接收者时,页面显示调度进度。
20
+
21
+ 消息区左侧的快速导航只列出用户和成员的发言。悬停刻度可预览,点击可跳到对应卡片。
20
22
 
21
23
  ### 2. 看懂主线、支线与派活标签
22
24
 
@@ -26,7 +28,7 @@
26
28
  - 被你直接 `@` 的成员空闲就立即开始,正忙就进入排队区,一空闲立刻收到。如果一条消息同时 `@` 了空闲成员和忙碌成员,空闲的立刻开工,忙碌的那份留在排队区等它空闲。
27
29
  - 主线轮到某位成员时,会等它做完手头支线再继续。
28
30
  - 你发出的未点名消息、`@全体成员`、`@全体依次` 等整个房间空闲后再按顺序发出(主持人派出的后台任务不会阻塞你的新消息)。
29
- - **卡片的固定位置**:每张成员卡从上到下依次是卡头、正文、交付(回答摘要、附件、交付文件)、过程记录(过程说明与步数、文件改动、被拒操作)。卡头左边说“是谁”:名字、标签和这次用的模型与强度;右边说“这一次怎么样”:状态、时间、编号、耗时,耗时总在最右。带颜色的状态只表示出了问题(红色失败,琥珀色停止、作废、跳过),正常时不标;你发的消息上,右边是各成员的处理状态。手机上撤回、编辑、私聊等按钮在卡片右上角,和名字同一行;模型、状态、时间、编号、耗时在名字下方从左排起。停止、重试按钮在它作用的那一行右端。
31
+ - **卡片的固定位置**:每张成员卡从上到下依次是卡头、正文、交付(回答摘要、附件、交付文件)、过程记录(过程说明与步数、文件改动、被拒操作)。文件改动只列出能确认由该成员在本次执行中写过的文件。卡头左边说“是谁”:名字、标签和这次用的模型与强度;右边说“这一次怎么样”:状态、时间、编号、耗时,耗时总在最右。带颜色的状态只表示出了问题(红色失败,琥珀色停止、作废、跳过),正常时不标;你发的消息上,右边是各成员的处理状态。手机上撤回、编辑、私聊等按钮在卡片右上角,和名字同一行;模型、状态、时间、编号、耗时在名字下方从左排起。停止、重试按钮在它作用的那一行右端。首次显示回答时,待核实的项目文件会先以同尺寸卡片占位,确认后即可打开。
30
32
  - **卡片头部标签**:先写这张卡从哪来,再写接下来去哪。常见的发言渠道(本人发言、CLI、API)不再标出,只标代发、主动发言、自动收录这类少见来源。
31
33
  - “主持”:当前主持人的发言,主持说明卡也用它。
32
34
  - “主线 · 第 n 棒”(主持人安排的顺序)或“主线 · 第 n 位”(`@全体依次`)。
@@ -46,7 +48,7 @@
46
48
 
47
49
  - **不想等**:点排队项右侧的箭头按钮,悬停可看到点了之后会怎样:
48
50
  - 接收者空闲:马上发出。
49
- - 接收者正在执行、它的软件支持插话:这条插进它这一轮,它当场就能看到,已做的工作不受影响。
51
+ - 接收者正在执行、它的软件支持插话:这条插进它这一轮,它当场就能看到,已做的工作不受影响。 直接插入同一任务的消息缩进显示在原用户消息下,并标为“插话”。先打断再处理的消息保留独立卡片。
50
52
  - 接收者正在执行、不支持插话:先打断它这一轮,再连同被打断的工作和这条一起处理。
51
53
  - 接收者既不能插话也不能打断:点了会提示原因,消息继续排队。
52
54
  - **编辑与删除**:未发出的排队消息,在排队项菜单点“编辑消息”退回输入框修改,或点删除移除。
@@ -80,10 +82,13 @@
80
82
 
81
83
  ### 7. 查看过程与排查
82
84
 
83
- - 打开房间后,在左栏点“执行”,选“瀑布”查看执行时间线。横向时间条显示各成员何时开始、运行了多久、哪些时间花在等待上。点成员名字看这次执行的状态、开始时间和总时长;点时间条中的某一段可看该阶段已记录的细节。超过 5 分钟的空闲在“执行轨迹”里折叠成窄带;要按真实时长回顾整个过程,切到“并发全景”:顶部先给出两个比例——“自动执行”是有成员在干活的时长占整段的比例,“无需介入”是不由你的消息触发、而由主持人派活、接力或程序唤醒自动接上的执行所占的比例,“最长无人值守”是从你的一条消息起、到房间停下或你再次发消息为止,AI 连续自动推进最久的一段;从左到右一条不折叠的时间轴,上方的高度是同一时刻有几位成员在执行(按成员颜色叠加,鼠标指向色块看那次执行的详情),空闲处标出时长,下方按任务分段,点某个任务在执行轨迹中查看。Ctrl + 滚轮或右上角“− / +”缩放(手机和平板上双指捏合),放大后拖动平移,双击还原;放大后回放时画面默认跟着回放线走,手动拖动画面会关闭“跟随”,再点它即可恢复;“执行轨迹”在手机和平板上同样可以双指缩放、放大后左右拖动;点右上角“回放协作过程”按时间顺序重放最近这次任务,可调速度或拖动进度,点“结束回放”回到当前状态;有成员还在执行时也能回放,放到现在为止。点“显示更早的执行”可一直往前翻到房间第一次执行,点“显示全部”一次列出房间的所有执行。
85
+ - 打开房间后,在左栏点“执行”,选“瀑布”查看执行时间线。横向时间条显示各成员何时开始、运行了多久、哪些时间花在等待上。点成员名字看这次执行的状态、开始时间和总时长;点时间条中的某一段可看该阶段已记录的细节。桌面上,阶段详情优先向右下展开,靠近底部或右侧时可向上或向左展开。超过 5 分钟的空闲在“执行轨迹”里折叠成窄带;要按真实时长回顾整个过程,切到“并发全景”:顶部先给出两个比例——“自动执行”是有成员在干活的时长占整段的比例,“无需介入”是不由你的消息触发、而由主持人派活、接力或程序唤醒自动接上的执行所占的比例,“最长无人值守”是从你的一条消息起、到房间停下或你再次发消息为止,AI 连续自动推进最久的一段;从左到右一条不折叠的时间轴,上方的高度是同一时刻有几位成员在执行(按成员颜色叠加,鼠标指向色块看那次执行的详情),空闲处标出时长,下方按任务分段,点某个任务在执行轨迹中查看。Ctrl + 滚轮或右上角“缩小 / 放大”按钮缩放(手机和平板上双指捏合),放大后拖动平移,双击或点“还原”复原;“执行轨迹”与“并发全景”共用同一套缩放与回放控制栏,点“回放”按时间顺序重放(可暂停、调速或拖动进度),开启“跟随”时画面会按当前执行的跨度实时动态缩放并跟着回放线走,手动缩放会锁定当前倍率,手动拖动画面或点“还原”会关闭“跟随”,再点“跟随”即恢复自动缩放与跟随,点“结束回放”回到当前状态;有成员还在执行时也能回放,放到现在为止。点“显示更早的执行”可一直往前翻到房间第一次执行,点“显示全部”一次列出房间的所有执行。
84
86
  - 想处理权限拒绝,回到对话区,查看对应失败卡的执行报告。只有执行未完成、记录了可放行的规则、本机服务可用且能找回原请求时,才显示“允许并重发”。核对规则再点它,原消息会回到输入框,确认后发送。已完成执行的回答卡如中途有过被拒操作,默认折叠为次数记录,展开可核对明细,不再显示“允许并重发”。
87
+ - 执行详情的“执行诊断”还显示最近续租、模型或工具进展、已触发的时限、重试来源、插话确认和投递时的工作流绑定。文件归因分别显示观察到的文件变化和接入软件记录的写入,只有房主能在诊断中看到文件路径。缺少证据的项显示“未知”。终端可用 `codiscuss execution view <房间ID> <执行号>` 查看相同记录。
85
88
  - 排查“为什么没唤醒”或“哪一步被拒绝”时,在顶部“执行”页切到“事件”。“事件记录”按时间列出房间收到的操作、处理结果和引起的状态变化。点一行看原始记录与同一对象的相关事件。本机终端也可运行 `codiscuss room events <房间ID>` 查看。
86
89
 
90
+ - 排查消息置底、快速导航、执行卡片位置、操作回执或注释输入框时,在房间网址的查询参数中加入 `scrolldebug`(如 `?room=房间ID&scrolldebug`),重新打开后复现一次,再点右上角“复制浏览器调试记录”。记录包含编号、状态和浏览器几何数据,省略消息、选区和批注正文。调试在当前标签页持续开启,关闭标签页后结束。
91
+
87
92
  ### 8. 把网页部署成网站
88
93
 
89
94
  成员交付的网页可以发布到公网地址 `https://<编号>.bimcanvas.com`,没装共议的人也能直接打开。
@@ -1,4 +1,11 @@
1
1
  {
2
+ "自动封面": "Automatic cover",
3
+ "上传封面": "Upload cover",
4
+ "选择房间图片": "Choose a room image",
5
+ "裁剪预览": "Crop preview",
6
+ "选择保留的画面": "Choose the area to keep",
7
+ "使用此封面": "Use this cover",
8
+ "请选择 PNG、JPG 或 WebP 图片": "Choose a PNG, JPG or WebP image",
2
9
  "房间内容已更新,请核对后下载网页文件。": "The room changed. Review the updated contents before downloading the web page.",
3
10
  "需要管理员登录": "Sign in as an administrator.",
4
11
  "整理中": "Preparing",
@@ -27,6 +34,7 @@
27
34
  "正在后台发布「{name}」": "Publishing “{name}” in the background",
28
35
  "「{name}」的分享链接已发布": "The share link for “{name}” is ready",
29
36
  "查看分享卡": "View share card",
37
+ "复制分享卡诊断": "Copy share card diagnostics",
30
38
  "电脑未连接:请先与电脑配对,并确认电脑开机且运行 codiscuss": "Computer disconnected. Pair with it and make sure it is on and running codiscuss.",
31
39
  "需要登录管理员账号或使用创建该房间的浏览器": "Sign in as an administrator or use the browser that created this room",
32
40
  "示例": "Example",
@@ -7,6 +7,8 @@
7
7
  "工作流库里已有「{id}」;要整份覆盖它,请明确选择覆盖": "The library already has “{id}”; choose to overwrite it explicitly to replace it",
8
8
  "尚未绑定线上网站": "No online site is bound yet",
9
9
  "请先启动共议服务,再重连中转": "Start the CoDiscuss service before reconnecting the relay",
10
+ "API 执行达到 {minutes} 分钟上限,已停止": "API execution reached the {minutes}-minute limit and stopped",
11
+ "API 执行连续 {minutes} 分钟没有模型或工具进展,已停止": "API execution stopped after {minutes} minutes without model or tool progress",
10
12
  "会话上下文压缩失败({reason}),下次执行将改用新会话;请缩短输入或拆分任务后重试": "Context compaction failed ({reason}). The next run will use a new session; shorten the input or split the task before retrying",
11
13
  "{name} 的上下文压缩失败,处理 {messages} 的执行失败(执行 #{execution_id}):{reason}。请缩短输入或拆分任务后再决定是否重试;程序不自动重试。": "{name}'s context compaction failed while handling {messages} (run #{execution_id}): {reason}. Shorten the input or split the task before deciding whether to retry; there is no automatic retry.",
12
14
  "{name} 因安全策略拒绝,处理 {messages} 的执行失败(执行 #{execution_id}):{reason}。请核对请求内容与服务许可要求,不要原样重试;程序不自动重试。": "{name} was blocked by a safety policy while handling {messages} (run #{execution_id}): {reason}. Review the request and service access requirements; do not retry it unchanged. There is no automatic retry.",
@@ -410,6 +412,7 @@
410
412
  "本次执行已结束、被停止或已被重试,回答不能再关联它;请保留草稿,告诉用户或主持人": "This run has ended, been stopped, or been retried. The reply can no longer be associated with it. Keep your draft and inform the user or host",
411
413
  "本次执行已记录不同的停止结果": "A different stop result has already been recorded for this run",
412
414
  "本次执行没有在等待自动重试": "This run is not awaiting an automatic retry",
415
+ "原会话绑定已改变,无法继续本次执行": "The original session binding changed. This run cannot resume.",
413
416
  "本次执行没有迟到回答": "This run has no late reply",
414
417
  "本次执行的拒绝记录已记录": "Denials for this run have already been recorded",
415
418
  "本次执行的改动已记录": "Changes for this run have already been recorded",
@@ -852,6 +855,8 @@
852
855
  "两个房间的主持人自用户上次发言后已互传 {count} 条消息,达到上限;请等用户在任一房间发言后再继续": "The two rooms' hosts have passed {count} messages since the owner last spoke, which is the limit; wait for the owner to speak in either room before continuing",
853
856
  "relay.limit 须为 0–100 的整数,0 表示不限": "relay.limit must be an integer from 0 to 100; 0 means no limit",
854
857
  "分享链接格式不正确": "The share link is not in the expected format",
858
+ "分享卡格式不正确": "Invalid share card",
859
+ "分享链接已失效": "This share link is no longer active",
855
860
  "清理结果格式无效": "The cleanup report is not in the expected format",
856
861
  "自动销毁只能设为 {choices} 天(0 为不自动销毁)": "Auto-destroy can only be set to {choices} days (0 keeps the room)",
857
862
  "这个房间发布过分享链接,请先撤销分享链接再销毁": "This room has a published share link; revoke it before destroying the room",
@@ -3,6 +3,7 @@
3
3
  "等待中": "Waiting",
4
4
  "等待中:等当前执行结束": "Waiting for the current run to finish",
5
5
  "排队中:等当前执行结束": "Queued: waiting for the current run to finish",
6
+ "{member} 排队中:做完当前这件后接 #{message}": "{member} is queued to take #{message} after finishing the current task",
6
7
  "排队中:等上一轮结束": "Queued: waiting for the previous round to finish",
7
8
  "正在唤醒": "Waking up",
8
9
  "等待开始…": "Waiting to start…",
@@ -27,7 +28,7 @@
27
28
  "正在等待后台任务": "Waiting for background tasks",
28
29
  "正在撰写回答": "Writing a reply",
29
30
  "执行失联:网站已不再接受本次回答,软件停止未确认": "Run disconnected: replies are no longer accepted; stopping the app is unconfirmed",
30
- "投递未成功,等待自动重试": "Delivery unsuccessful; waiting to retry automatically",
31
+ "等待自动重试": "Waiting to retry automatically",
31
32
  "已在私聊中暂停,等你补充后接着做": "Paused in private chat; resumes after your input",
32
33
  "正在处理": "Working",
33
34
  "未采纳的回答读取失败:{value1}": "Failed to read the unaccepted reply: {value1}",
@@ -125,6 +126,7 @@
125
126
  "{value1} 条结果": "{value1} results",
126
127
  "清除筛选": "Clear filters",
127
128
  "发言快速导航": "Quick message navigation",
129
+ "复制浏览器调试记录": "Copy browser debug log",
128
130
  "{value1} 正在处理": "{value1} is working",
129
131
  "· 主持人": "· Host",
130
132
  "· 运行回执": "· Run receipt",
@@ -161,6 +163,11 @@
161
163
  " · 已执行 {value1} 步": " · {value1} steps completed",
162
164
  "已执行 {value1} 步": "{value1} steps completed",
163
165
  " · 第 {value1}/{value2} 次重试": " · Retry {value1}/{value2}",
166
+ "重试 · {value1}": "Retry · {value1}",
167
+ "上次执行 #{id} 耗时 {elapsed} 后失败,已自动重试:{reason}": "Run #{id} failed after {elapsed}, retried automatically: {reason}",
168
+ "上次执行 #{id} 耗时 {elapsed} 后失败,已自动重试": "Run #{id} failed after {elapsed}, retried automatically",
169
+ "上次执行 #{id} 失败,已自动重试:{reason}": "Run #{id} failed, retried automatically: {reason}",
170
+ "上次执行 #{id} 失败,已自动重试": "Run #{id} failed, retried automatically",
164
171
  "私聊:查看它正在做什么": "Private chat: see what it is doing",
165
172
  "私聊 {value1}:查看本次执行过程": "Private chat with {value1}: inspect this run",
166
173
  "暂停讨论,停止 {value1} 本次发言": "Pause discussion and stop this turn for {value1}",
@@ -176,8 +183,8 @@
176
183
  "正在重试": "Retrying",
177
184
  "{value1}(第 {value2}/{value3} 次)": "{value1} (attempt {value2}/{value3})",
178
185
  "立即重试": "Retry now",
179
- "立即重新投递给 {value1}": "Retry delivery to {value1} now",
180
- "停止自动重试 {value1} 的投递": "Stop automatic delivery retries for {value1}",
186
+ "立即重试 {value1} 的任务": "Retry {value1}'s task now",
187
+ "停止自动重试 {value1} 的任务": "Stop automatic retries for {value1}'s task",
181
188
  "无法投递": "Cannot deliver",
182
189
  "主持工作": "Hosting",
183
190
  "执行 #{value1}": "Run #{value1}",
@@ -0,0 +1,32 @@
1
+ {
2
+ "执行诊断": "Run diagnostics",
3
+ "最后续租": "Last heartbeat",
4
+ "最后模型或工具进展": "Last model or tool activity",
5
+ "总时限": "Total time limit",
6
+ "无进展时限": "Inactivity limit",
7
+ "触发的时限": "Timeout that fired",
8
+ "执行重试": "Run retries",
9
+ "成功": "Succeeded",
10
+ "第 {value1} 次": "Attempt {value1}",
11
+ "模型请求": "Model request",
12
+ "适配器重启": "Adapter restart",
13
+ "接入程序": "Local runner",
14
+ "重新投递": "Redeliver",
15
+ "插话确认": "Interjection confirmation",
16
+ "当次工作流绑定": "Workflow used for this run",
17
+ "文件改动归因": "File change attribution",
18
+ "续接时送交": "Passed in resumed turn",
19
+ "执行中送交": "Passed to active turn",
20
+ "送交失败": "Handoff failed",
21
+ "确认时间未知": "Confirmation time unknown",
22
+ "未绑定工作流": "No workflow assigned",
23
+ "关联技能 {value1}": "Associated skills {value1}",
24
+ "临时报告": "Provisional report",
25
+ "最终报告": "Final report",
26
+ "观察到 {value1} 个文件变化": "Observed changes in {value1} files",
27
+ "写入记录未知": "Write tracking unknown",
28
+ "记录本次写入 {value1} 个文件": "Recorded writes to {value1} files in this run",
29
+ "另有 {value1} 个文件未列出": "{value1} additional files omitted",
30
+ "记录本次写入": "Write recorded in this run",
31
+ "只有快照变化": "Change observed in snapshot"
32
+ }
@@ -235,6 +235,7 @@
235
235
  "无需介入 {value1}/{value2} 次({value3}%)": "No input needed {value1}/{value2} runs ({value3}%)",
236
236
  "最长无人值守 {value1}": "Longest unattended {value1}",
237
237
  "跟随": "Follow",
238
+ "回放时自动缩放并跟着回放线走": "Auto-zoom and follow the playback line during replay",
238
239
  "放大时让画面跟着回放线走": "Keep the view on the playback line while zoomed in",
239
240
  "从你的一条消息起,到房间停下或你再次发消息为止,AI 连续自动推进最久的一段:{value1} – {value2}": "The longest the AI kept going on its own after one of your messages, until the room stopped or you wrote again: {value1} – {value2}",
240
241
  "不是由你的消息触发、而是由主持人派活、接力、交回或程序唤醒自动接上的执行": "Runs started not by your message but by the host's dispatch, a relay, a hand-back or a wake-up",
@@ -685,6 +685,11 @@
685
685
  "主持人凭它判断何时使用": "Helps the host decide when to use it",
686
686
  "做什么、什么时候用(必填)": "What it does and when to use it (required)",
687
687
  "做什么、什么时候用": "What it does and when to use it",
688
+ "作者": "Author",
689
+ "原作者或整理者(可选)": "Original author or curator (optional)",
690
+ "出处": "Source",
691
+ "来源文章、链接或实践(可选)": "Source article, link or practice (optional)",
692
+ "作者与出处仅用于展示,不发给主持人": "Author and source are for display only and not sent to the host",
688
693
  "SKILL.md 正文": "SKILL.md contents",
689
694
  "写下主持人怎么组织这个{value1}": "Describe how the host organizes this {value1}",
690
695
  "API 成员可运行的命令({value1})": "Commands API members can run ({value1})",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.5.19",
3
+ "version": "0.5.21",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -8,7 +8,7 @@
8
8
  "dev": "npm run build && wrangler pages dev --ip 127.0.0.1 --port 8787",
9
9
  "db:local": "wrangler d1 execute DB --local --file backend/schema.sql",
10
10
  "db:remote": "wrangler d1 execute DB --remote --file backend/schema.sql",
11
- "check": "node --check backend/worker.mjs && node --check web/app.js && node --check runner/account_space.mjs && node --check runner/admin_account.mjs && node --check runner/admin_panel.mjs && node --check runner/admin_cli.mjs && node --check runner/os_users.mjs && node --check runner/tray.mjs && node --check runner/launcher.mjs && node --check runner/codiscuss.mjs && node --check runner/discussion_api.mjs && node --check runner/discussion_launch.mjs && node --check runner/discussion_local.mjs && node --check runner/discussion_runner.mjs && node --check runner/discussion_service.mjs && node --check runner/discussion_setup.mjs && node --check runner/discussion_sidecar.mjs && node --check runner/discussion_skills.mjs && node --check runner/discussion_tui.mjs && node --check runner/execution_progress.mjs && node --check runner/expert_prompts.mjs && node --check runner/files.mjs && node --check runner/free_runner.mjs && node --check runner/remote_launch.mjs && node --check runner/external_client.mjs && node --check runner/external_gateway.mjs && node --check runner/repo_read.mjs && node --check runner/remote_policy.mjs && node --check runner/device_auth.mjs && node --check runner/webauthn.mjs && node --check runner/scheduler.mjs && node --check runner/session_driver.mjs && node --check runner/workflows.mjs && node --check runner/workflow_flow.mjs && node --check runner/slash_names.mjs && node --check runner/weixin.mjs && node --check runner/adapters/antigravity_app.mjs && node --check runner/adapters/antigravity_cli.mjs && node --check runner/adapters/antigravity_sidecar.mjs && node --check runner/adapters/api.mjs && node --check runner/adapters/claude.mjs && node --check runner/adapters/cli.mjs && node --check runner/adapters/codex_app.mjs && node --check runner/adapters/codex_app_client.mjs && node --check runner/adapters/codex_cli.mjs && node --check runner/adapters/common.mjs && node --check runner/adapters/index.mjs && node --check runner/adapters/profiles.mjs",
11
+ "check": "node --check backend/worker.mjs && node --check web/app.js && node --check runner/account_space.mjs && node --check runner/admin_account.mjs && node --check runner/admin_panel.mjs && node --check runner/admin_cli.mjs && node --check runner/os_users.mjs && node --check runner/tray.mjs && node --check runner/launcher.mjs && node --check runner/codiscuss.mjs && node --check runner/discussion_api.mjs && node --check runner/discussion_launch.mjs && node --check runner/discussion_local.mjs && node --check runner/discussion_runner.mjs && node --check runner/discussion_service.mjs && node --check runner/discussion_setup.mjs && node --check runner/discussion_sidecar.mjs && node --check runner/discussion_skills.mjs && node --check runner/discussion_tui.mjs && node --check runner/execution_progress.mjs && node --check runner/expert_prompts.mjs && node --check runner/files.mjs && node --check runner/free_runner.mjs && node --check runner/remote_launch.mjs && node --check runner/external_client.mjs && node --check runner/external_gateway.mjs && node --check runner/repo_read.mjs && node --check runner/remote_policy.mjs && node --check runner/device_auth.mjs && node --check runner/webauthn.mjs && node --check runner/scheduler.mjs && node --check runner/session_driver.mjs && node --check runner/share_card.mjs && node --check runner/timeline_metrics.mjs && node --check runner/workflows.mjs && node --check runner/workflow_flow.mjs && node --check runner/slash_names.mjs && node --check runner/weixin.mjs && node --check runner/adapters/antigravity_app.mjs && node --check runner/adapters/antigravity_cli.mjs && node --check runner/adapters/antigravity_sidecar.mjs && node --check runner/adapters/api.mjs && node --check runner/adapters/claude.mjs && node --check runner/adapters/cli.mjs && node --check runner/adapters/codex_app.mjs && node --check runner/adapters/codex_app_client.mjs && node --check runner/adapters/codex_cli.mjs && node --check runner/adapters/common.mjs && node --check runner/adapters/index.mjs && node --check runner/adapters/profiles.mjs",
12
12
  "runner": "node runner/discussion_runner.mjs",
13
13
  "service": "node runner/discussion_service.mjs",
14
14
  "build:ui": "node scripts/build_share_core.mjs && vite build --config frontend/vite.config.mjs --mode i18n && vite build --config frontend/vite.config.mjs --mode markdown &&vite build --config frontend/vite.config.mjs --mode backup && vite build --config frontend/vite.config.mjs --mode office && vite build --config frontend/vite.config.mjs --mode video && vite build --config frontend/vite.config.mjs --mode admin && vite build --config frontend/vite.config.mjs",
@@ -98,6 +98,7 @@
98
98
  ".agents/skills/discuss-goal/**",
99
99
  ".agents/skills/discuss-session/**",
100
100
  ".agents/skills/discuss-report/**",
101
+ ".agents/skills/share-card/**",
101
102
  ".agents/skills/workflow-creator/**",
102
103
  ".agents/skills/local-tts-setup/**",
103
104
  ".agents/skills/local-stt-setup/**",
@@ -390,6 +390,9 @@ function lifecycle(state, event, task, bind) {
390
390
  // agy reports `error` as a plain string (1.4.x), older builds as { message }.
391
391
  const reason = typeof result.error === 'string' ? result.error : result.error?.message;
392
392
  if (!state.completed) state.error = `Antigravity CLI ${result.status || '缺少结果状态'}:${reason || result.response || '执行未成功'}`;
393
+ if (result.status === 'ERROR' && result.conversation_id && reason === 'There was a network issue connecting to the server, please try again.') {
394
+ state.network_error = state.error;
395
+ }
393
396
  // Failed before opening a conversation (sign-in, eligibility check): no turn ran, so delivering again repeats nothing.
394
397
  if (!state.completed && !state.initialized && !result.conversation_id && !result.num_turns) state.not_started = true;
395
398
  }
@@ -724,6 +727,11 @@ function abandon_sign_in(state, text) {
724
727
  if (AGY_SIGN_IN_PROMPT.test(text)) state.abandon = AGY_SIGN_IN_STOPPED;
725
728
  }
726
729
 
730
+ /** Read agy's own structured diagnostic after stdout and stderr have been split into complete lines. */
731
+ function agy_error_line(state, line) {
732
+ if (line.startsWith('AGY_ERROR: ')) state.retryable_error = json_line(line.slice('AGY_ERROR: '.length))?.retryable === true;
733
+ }
734
+
727
735
  /**
728
736
  * How a failed agy turn is classified for the room (adapter contract `on_failure(reason, {failure_class, resets,
729
737
  * reset_at})`, as Claude's): a signed-out account is `auth` (`restartable` when it may be a sign-in that failed to
@@ -757,7 +765,13 @@ export const antigravity_cli = {
757
765
  // A deleted room's session records and any legacy private agy projects are removed with it.
758
766
  cleanup: remove_agy_projects, sweep: sweep_legacy_agy_projects,
759
767
  deliver,
760
- invocation, lifecycle, events, failure_class: reason => agy_failure_class(reason), on_stderr: abandon_sign_in,
768
+ invocation, lifecycle, events, on_stderr: abandon_sign_in, stderr_line: agy_error_line,
769
+ failure_class(reason, state) {
770
+ if (state.network_error === reason && state.retryable_error && !state.stopped && !state.denial) {
771
+ return { resume_session: state.session_id };
772
+ }
773
+ return agy_failure_class(reason);
774
+ },
761
775
  session: { path: session_path, exists: session_exists, owns: session_exists, branch, settings: session_settings,
762
776
  list: list_sessions, preview: preview_session,
763
777
  remove: (id, { home = homedir() } = {}) => remove_conversation(join(home, '.gemini', 'antigravity-cli'), id),
@@ -74,9 +74,24 @@ function tool(name, description, properties = {}, required = []) {
74
74
  return { name, description, parameters: { type: 'object', properties, required, additionalProperties: false } };
75
75
  }
76
76
 
77
+ const CROSS_ROOM_TOOLS = new Set(['read_room', 'read_messages', 'read_message', 'read_events', 'read_attachment']);
78
+
79
+ function can_read_other_rooms(context) {
80
+ return !context.external_access && !context.tool_lockdown && process.env.CODISCUSS_TOOL_LOCKDOWN !== '1';
81
+ }
82
+
83
+ function room_headers(context) {
84
+ return context.cross_room_read ? { 'X-Discussion-Read-Only': '1' } : { 'X-Discussion-Token': context.token };
85
+ }
86
+
77
87
  /** Expose only tools belonging to this task's role; an external task gets only what its relay passes. */
78
88
  export function participant_tools(context) {
79
89
  const tools = role_tools(context);
90
+ if (can_read_other_rooms(context)) {
91
+ for (const item of tools.filter(item => CROSS_ROOM_TOOLS.has(item.name))) {
92
+ item.parameters.properties.room = { type: 'string', pattern: '^[A-Za-z0-9_-]+$', description: '同站点目标房间编号,省略时读取本房间' };
93
+ }
94
+ }
80
95
  return context.external_access ? tools.filter(item => EXTERNAL_TOOLS.has(item.name)) : tools;
81
96
  }
82
97
 
@@ -208,7 +223,7 @@ async function room_request(context, path, body) {
208
223
  }
209
224
  const response = await entry_fetch(`${context.site}/api/rooms/${context.room}${path}`, {
210
225
  method: body === undefined ? 'GET' : 'POST', redirect: 'error',
211
- headers: { 'Content-Type': 'application/json', 'X-Discussion-Token': context.token },
226
+ headers: { 'Content-Type': 'application/json', ...room_headers(context) },
212
227
  body: body === undefined ? undefined : JSON.stringify(body),
213
228
  signal: AbortSignal.any([context.signal, AbortSignal.timeout(SITE_TIMEOUT_MS)]),
214
229
  });
@@ -267,7 +282,7 @@ async function read_events(context, args) {
267
282
  async function room_bytes(context, path, limit) {
268
283
  context.signal.throwIfAborted();
269
284
  const response = await entry_fetch(`${context.site}/api/rooms/${context.room}${path}`, {
270
- redirect: 'error', headers: { 'X-Discussion-Token': context.token },
285
+ redirect: 'error', headers: room_headers(context),
271
286
  signal: AbortSignal.any([context.signal, AbortSignal.timeout(SITE_TIMEOUT_MS)]),
272
287
  });
273
288
  if (!response.ok) {
@@ -400,6 +415,15 @@ async function run_tool(context, call) {
400
415
  try { args = typeof call.arguments === 'string' ? JSON.parse(call.arguments) : call.arguments || {}; }
401
416
  catch { return { result: { error: '工具参数必须为 JSON 对象' } }; }
402
417
  if (!args || typeof args !== 'object' || Array.isArray(args)) return { result: { error: '工具参数必须为 JSON 对象' } };
418
+ if (args.room !== undefined) {
419
+ if (!CROSS_ROOM_TOOLS.has(call.name) || !can_read_other_rooms(context)
420
+ || typeof args.room !== 'string' || !/^[A-Za-z0-9_-]+$/.test(args.room)) {
421
+ return { result: { error: '此工具无法读取指定房间' } };
422
+ }
423
+ if (args.room !== context.room) {
424
+ context = { ...context, room: args.room, token: undefined, execution_id: undefined, cross_room_read: true };
425
+ }
426
+ }
403
427
  if (is_file_tool(call.name)) {
404
428
  const result = run_file_tool(context.project, call.name, args);
405
429
  if (WRITE_TOOLS.includes(call.name) && typeof args.file_path === 'string') context.on_edits?.([resolve(context.project.root, args.file_path)]);
@@ -810,7 +834,7 @@ async function api_chat(profile, binding, task) {
810
834
  export function api_lockdown(task) {
811
835
  if (!task.tool_lockdown) return task;
812
836
  const { cwd, workdir, extra_directories, commands, image_generation, ...room } = task.api_context || {};
813
- return { ...task, api_context: { ...room, project_access: 'read', no_web: true } };
837
+ return { ...task, api_context: { ...room, tool_lockdown: true, project_access: 'read', no_web: true } };
814
838
  }
815
839
 
816
840
  /** The model API's behaviour; its static facts are in profiles.mjs. */
@@ -147,7 +147,7 @@ async function image_body(context, name, args) {
147
147
  /** Call the Images API; a refusal comes back with the provider's own reason so the model can correct the call. */
148
148
  async function images_request(context, name, path, body) {
149
149
  let response, data = null;
150
- const heartbeat = setInterval(() => context.on_activity?.('tool', name), HEARTBEAT_MS);
150
+ const heartbeat = setInterval(() => context.on_activity?.('tool', name, undefined, { synthetic: true }), HEARTBEAT_MS);
151
151
  try {
152
152
  try {
153
153
  response = await fetch(`${context.image.base_url}${path}`, { method: 'POST', redirect: 'error',
@@ -36,6 +36,11 @@ const STOP_GRACE_MS = 3000;
36
36
  const EXIT_GRACE_MS = 5000;
37
37
  // A long tool (an image request) shows no events; the runner still hears from it at its lease-renewal pace.
38
38
  const TOOL_HEARTBEAT_MS = 30_000;
39
+ const MINUTE_MS = 60_000;
40
+ const EXECUTION_MINUTES = 45;
41
+ const IDLE_MINUTES = 15;
42
+ const PROGRESS_EVENTS = new Set(['turn_start', 'message_update', 'message_end', 'tool_execution_start',
43
+ 'tool_execution_update', 'tool_execution_end', 'compaction_start', 'compaction_end']);
39
44
  const DIAGNOSTIC_CHARS = 1200;
40
45
  const REPLY_EXCERPT_CHARS = 300;
41
46
  // What a tool call's progress note shows of its arguments: what it targets, never content it writes.
@@ -233,14 +238,38 @@ export function pi_delivery({ cli, profile, key, binding, task, context_file, sy
233
238
  setTimeout(() => child.kill(), STOP_GRACE_MS).unref();
234
239
  return true;
235
240
  };
241
+ const started_at = Date.now();
242
+ let last_progress = started_at;
243
+ task.on_diagnostic?.({ timeout_limits: { total_ms: EXECUTION_MINUTES * MINUTE_MS, idle_ms: IDLE_MINUTES * MINUTE_MS } });
236
244
  const heartbeat = setInterval(() => {
245
+ if (state.stopped) return;
246
+ const now = Date.now();
247
+ const deadline = now - started_at >= EXECUTION_MINUTES * MINUTE_MS;
248
+ if (deadline || now - last_progress >= IDLE_MINUTES * MINUTE_MS) {
249
+ clearInterval(heartbeat);
250
+ if (!state.terminal) task.on_diagnostic?.({ timeout_kind: deadline ? 'total' : 'idle' });
251
+ if (!state.terminal) fail(deadline ? room_text('API 执行达到 {minutes} 分钟上限,已停止', { minutes: EXECUTION_MINUTES })
252
+ : room_text('API 执行连续 {minutes} 分钟没有模型或工具进展,已停止', { minutes: IDLE_MINUTES }),
253
+ { failure_class: 'execution_timeout', retryable: false });
254
+ send({ type: 'abort' });
255
+ setTimeout(() => child.kill(), STOP_GRACE_MS).unref();
256
+ return;
257
+ }
237
258
  const running = [...state.tools.values()].at(-1);
238
- if (running) task.on_activity?.(WRITE_TOOLS.includes(running.name) ? 'editing' : 'tool', running.name);
259
+ if (running) task.on_activity?.(WRITE_TOOLS.includes(running.name) ? 'editing' : 'tool', running.name, undefined, { synthetic: true });
239
260
  }, TOOL_HEARTBEAT_MS);
240
261
  heartbeat.unref();
241
262
  on_records(child.stdout, line => {
242
263
  const event = json(line);
243
264
  if (!event) return;
265
+ if (PROGRESS_EVENTS.has(event.type)) {
266
+ last_progress = Date.now();
267
+ task.on_diagnostic?.({ last_activity_at: last_progress });
268
+ }
269
+ if (event.type === 'auto_retry_start' || event.type === 'auto_retry_end') {
270
+ const state = event.type === 'auto_retry_start' ? 'started' : event.success === true ? 'succeeded' : event.success === false ? 'failed' : 'ended';
271
+ task.on_diagnostic?.({ retry: { layer: 'model', state, attempt: Number.isSafeInteger(event.attempt) ? event.attempt : null } });
272
+ }
244
273
  if (event.type !== 'message_update') log(`${line}\n`);
245
274
  handle_event(event);
246
275
  });