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
@@ -78,8 +78,9 @@ export default {
78
78
  "连不上 {host}:连接被断开({reason}),请检查这台电脑的网络或代理后重试": "Cannot connect to {host}: the connection was closed ({reason}). Check this computer's network or proxy and try again",
79
79
  "实例启动失败(退出码 {code})": "Instance failed to start (exit code {code})",
80
80
  "实例停止失败(退出码 {code})": "Instance failed to stop (exit code {code})",
81
- "AI CoDiscuss CLI\n\n用法:codiscuss [命令] [选项]\n\n (无命令) 在当前终端启动服务,Ctrl+C 停止\n install / setup 安装持久命令并配置 / 配置已有安装\n local COMMAND 管理本机网站,或 connect 连接线上站点\n token 生成线上网站的一次性管理员注册令牌\n panel [open|start|stop] 打开本机管理面板(托管用户、命令行登录、API 密钥)\n admin COMMAND 以命令行完成管理面板的全部操作(启动、退出、更新、托管账号等)\n launcher 生成“共议.exe”与桌面、开始菜单快捷方式,双击即可启动(Windows)\n service COMMAND 启动、停止、查询服务,或登记房间\n launch COMMAND 保存启动配置,或从 AI 对话启动讨论\n room COMMAND 创建、读取或更新讨论房间\n message COMMAND 检索原文、提交观点\n attachment COMMAND 上传、查询与下载讨论附件\n turn COMMAND 安排发言、读取待办与回答\n state COMMAND 读取或保存共享状态\n run COMMAND 配置、启动或暂停网站上的讨论\n execution COMMAND 进入或查询一次 AI 执行\n health 检查网站健康状态\n schema [COMMAND] 离线查看命令与参数\n api PATH 访问尚未封装的网站接口\n join LINK|CODE 用本机 AI 加入另一台电脑上的房间(外部成员)\n invited COMMAND 查看外部房间,调整信任等级、同意或拒绝唤醒、退出\n repo COMMAND 外部成员只读查看对方电脑开放的项目\n site COMMAND 预检、发布、续期、回滚或撤销房间静态网站(公开发布须经用户明确授权)\n\n codiscuss service --help\n codiscuss room --help\n codiscuss health --site http://127.0.0.1:8765\n\n网站操作使用 --site、DISCUSS_URL 或 --access-file 中的站点,并需要 Python 3.10+。\n原有 start、status、stop、add 等服务命令继续兼容。\n": "AI CoDiscuss CLI\n\nUsage: codiscuss [command] [options]\n\n (no command) Run the service in this terminal; Ctrl+C to stop\n install / setup Install the persistent command and configure / configure an existing installation\n local COMMAND Manage the local site, or connect to an online site\n token Generate a single-use admin registration token for an online site\n panel [open|start|stop] Open the local admin panel (hosting, CLI sign-ins, API keys)\n admin COMMAND Manage everything in the admin panel from the command line\n launcher Create “共议.exe” and desktop / Start menu shortcuts (Windows)\n service COMMAND Start, stop or inspect the service, or register a room\n launch COMMAND Save launch settings or start a discussion from an AI chat\n room COMMAND Create, read or update rooms\n message COMMAND Read original messages or submit a reply\n attachment COMMAND Upload, inspect or download room attachments\n turn COMMAND Schedule turns, read pending work and answer\n state COMMAND Read or save shared state\n run COMMAND Configure, start or pause discussions on the site\n execution COMMAND Enter or inspect an AI run\n health Check site health\n schema [COMMAND] View commands and arguments offline\n api PATH Access site endpoints without a dedicated command\n join LINK|CODE Join a room on another computer with this computer's AI (external member)\n invited COMMAND List external rooms, set trust levels, approve or refuse wake-ups, leave\n repo COMMAND Read the project another computer opened to you (external members)\n site COMMAND Stage, publish, renew, rollback or revoke static websites (public publishing requires explicit user authorization)\n\n codiscuss service --help\n codiscuss room --help\n codiscuss health --site http://127.0.0.1:8765\n\nSite commands use --site, DISCUSS_URL or the site in --access-file, and require Python 3.10+.\nLegacy service commands such as start, status, stop and add remain supported.\n",
81
+ "AI CoDiscuss CLI\n\n用法:codiscuss [命令] [选项]\n\n (无命令) 在当前终端启动服务,Ctrl+C 停止\n install / setup 安装持久命令并配置 / 配置已有安装\n local COMMAND 管理本机网站,或 connect 连接线上站点\n token 生成线上网站的一次性管理员注册令牌\n panel [open|start|stop] 打开本机管理面板(托管用户、命令行登录、API 密钥)\n admin COMMAND 以命令行完成管理面板的全部操作(启动、退出、更新、托管账号等)\n launcher 生成“共议.exe”与桌面、开始菜单快捷方式,双击即可启动(Windows)\n service COMMAND 启动、停止、查询服务,或登记房间\n launch COMMAND 保存启动配置,或从 AI 对话启动讨论\n room COMMAND 创建、读取或更新讨论房间\n message COMMAND 检索原文、提交观点\n attachment COMMAND 上传、查询与下载讨论附件\n turn COMMAND 安排发言、读取待办与回答\n state COMMAND 读取或保存共享状态\n run COMMAND 配置、启动或暂停网站上的讨论\n execution COMMAND 进入或查询一次 AI 执行\n health 检查网站健康状态\n schema [COMMAND] 离线查看命令与参数\n api PATH 访问尚未封装的网站接口\n join LINK|CODE 用本机 AI 加入另一台电脑上的房间(外部成员)\n invited COMMAND 查看外部房间,调整信任等级、同意或拒绝唤醒、退出\n repo COMMAND 外部成员只读查看对方电脑开放的项目\n site COMMAND 预检、发布、续期、回滚或撤销房间静态网站(公开发布须经用户明确授权)\n share-card COMMAND 读取房间可分享协作指标与素材,或将本地静态 HTML 封面导出为 PNG\n\n codiscuss service --help\n codiscuss room --help\n codiscuss health --site http://127.0.0.1:8765\n\n网站操作使用 --site、DISCUSS_URL 或 --access-file 中的站点,并需要 Python 3.10+。\n原有 start、status、stop、add 等服务命令继续兼容。\n": "AI CoDiscuss CLI\n\nUsage: codiscuss [command] [options]\n\n (no command) Run the service in this terminal; Ctrl+C to stop\n install / setup Install the persistent command and configure / configure an existing installation\n local COMMAND Manage the local site, or connect to an online site\n token Generate a single-use admin registration token for an online site\n panel [open|start|stop] Open the local admin panel (hosting, CLI sign-ins, API keys)\n admin COMMAND Manage everything in the admin panel from the command line\n launcher Create “共议.exe” and desktop / Start menu shortcuts (Windows)\n service COMMAND Start, stop or inspect the service, or register a room\n launch COMMAND Save launch settings or start a discussion from an AI chat\n room COMMAND Create, read or update rooms\n message COMMAND Read original messages or submit a reply\n attachment COMMAND Upload, inspect or download room attachments\n turn COMMAND Schedule turns, read pending work and answer\n state COMMAND Read or save shared state\n run COMMAND Configure, start or pause discussions on the site\n execution COMMAND Enter or inspect an AI run\n health Check site health\n schema [COMMAND] View commands and arguments offline\n api PATH Access site endpoints without a dedicated command\n join LINK|CODE Join a room on another computer with this computer's AI (external member)\n invited COMMAND List external rooms, set trust levels, approve or refuse wake-ups, leave\n repo COMMAND Read the project another computer opened to you (external members)\n site COMMAND Stage, publish, renew, rollback or revoke static websites (public publishing requires explicit user authorization)\n share-card COMMAND Read shareable room collaboration metrics and materials, or render a local static HTML cover to PNG\n\n codiscuss service --help\n codiscuss room --help\n codiscuss health --site http://127.0.0.1:8765\n\nSite commands use --site, DISCUSS_URL or the site in --access-file, and require Python 3.10+.\nLegacy service commands such as start, status, stop and add remain supported.\n",
82
82
  "AI CoDiscuss 讨论服务\n\n用法:codiscuss service [命令] [选项]\n\n (无命令) / run 在当前终端运行,Ctrl+C 停止\n start 在后台启动,已运行时复用\n status 查看服务与房间状态\n stop 暂停托管中的讨论并停止服务\n add --config FILE 登记房间的私有接入配置\n remove --config FILE 移除已登记配置\n list 列出已登记配置\n clean 立即清理无房间使用的启动目录、草稿与超长日志(服务每 6 小时自动清理一次)\n open 后台启动并打开讨论网站\n shortcut 创建 Windows 桌面快捷方式\n autostart on|off 开启或关闭 Windows 登录自启\n\n --json 以 JSON 输出命令结果(前台运行除外)\n -h, --help 显示帮助\n\n登记或启动服务不会自动开始讨论,仍需在网页明确启动。\n": "AI CoDiscuss discussion service\n\nUsage: codiscuss service [command] [options]\n\n (no command) / run Run in this terminal; Ctrl+C to stop\n start Start in the background; reuse if already running\n status Show service and room status\n stop Pause managed discussions and stop the service\n add --config FILE Register a room's private connection configuration\n remove --config FILE Remove a registered configuration\n list List registered configurations\n clean Remove unused launch folders, drafts and oversized logs now (also runs every 6 hours)\n open Start in the background and open the discussion site\n shortcut Create a Windows desktop shortcut\n autostart on|off Enable or disable starting at Windows sign-in\n\n --json Output command results as JSON (except foreground runs)\n -h, --help Show help\n\nRegistering or starting the service does not start a discussion; start it explicitly on the site.\n",
83
+ "排障速查\n 按标题找房间 codiscuss room list --query \"标题片段\"\n 追踪消息的处理 codiscuss room trace ROOM --message MESSAGE_ID\n 查看执行详情 codiscuss execution view ROOM EXECUTION_ID\n 核对站点版本 codiscuss site diagnose SITE_ID\n": "Troubleshooting\n Find a room by title codiscuss room list --query \"part of title\"\n Trace a message codiscuss room trace ROOM --message MESSAGE_ID\n Inspect an execution codiscuss execution view ROOM EXECUTION_ID\n Check a deployed version codiscuss site diagnose SITE_ID\n",
83
84
  "运行中": "running",
84
85
  "已暂停": "paused",
85
86
  "等待启动": "waiting to start",
@@ -640,8 +641,50 @@ export default {
640
641
  "请提供有效的 10 位站点编号(site_id)": "Provide a valid 10-character site ID (site_id)",
641
642
  "本机尚未注册发布身份,无法操作该站点": "This computer has not registered a publishing identity yet and cannot manage this site",
642
643
  "未知的站点命令:{command}": "Unknown site command: {command}",
643
- "AI CoDiscuss 网站部署\n\n注意:发布到公网须有用户在本房间的明确授权;未经用户明确要求发布时,仅使用 stage 在本机预检登记。\n\n用法:\n codiscuss site stage (--dir 目录 | --file 文件.html) [--room 房间] [--title 标题] [--exclude 路径]\n codiscuss site publish (--dir 目录 | --file 文件.html | --stage 编号) [--site 站点编号] [--room 房间] [--title 标题] [--exclude 路径]\n codiscuss site list [--room 房间]\n codiscuss site renew <站点编号> [--room 房间]\n codiscuss site rollback <站点编号> [--version 版本号] [--room 房间]\n codiscuss site revoke <站点编号> [--room 房间]\n\n选项:\n --access-file FILE 任务凭据文件(默认读取 DISCUSS_ACCESS_FILE)\n --room ROOM 房间编号(凭据绑定时自动补齐)\n --url SITE 本机/房间网站地址(凭据绑定时自动补齐)\n --dir PATH 要发布的本机构建目录\n --file PATH 要发布的单个 HTML 文件\n --stage ID 对已预检的待部署编号执行发布\n --site ID 更新已有 10 位站点编号\n --title TEXT 站点标题\n --exclude PATH 排除的相对文件路径(可重复传多次)\n --version N 回滚目标版本号(省略则回滚到上一版)\n --json 以 JSON 输出(默认)\n -h, --help 显示帮助\n": "AI CoDiscuss Website Deployment\n\nNotice: publishing to the public internet requires explicit user authorization in this room; without it, only run `stage` for local preflight.\n\nUsage:\n codiscuss site stage (--dir DIR | --file FILE.html) [--room ROOM] [--title TITLE] [--exclude PATH]\n codiscuss site publish (--dir DIR | --file FILE.html | --stage ID) [--site SITE_ID] [--room ROOM] [--title TITLE] [--exclude PATH]\n codiscuss site list [--room ROOM]\n codiscuss site renew <SITE_ID> [--room ROOM]\n codiscuss site rollback <SITE_ID> [--version N] [--room ROOM]\n codiscuss site revoke <SITE_ID> [--room ROOM]\n\nOptions:\n --access-file FILE Task credential file (defaults to DISCUSS_ACCESS_FILE)\n --room ROOM Room ID (auto-filled when bound by credential)\n --url SITE Local/room site URL (auto-filled when bound by credential)\n --dir PATH Local build directory to deploy\n --file PATH Single HTML file to deploy\n --stage ID Publish a previously staged record\n --site ID Update an existing 10-character site ID\n --title TEXT Site title\n --exclude PATH Relative file path to exclude (repeatable)\n --version N Target version for rollback (defaults to previous version)\n --json Output JSON (default)\n -h, --help Show help\n",
644
+ "站点不属于当前房间": "This site does not belong to the current room",
645
+ "站点诊断须使用凭据绑定的房间和网站": "Site diagnostics must use the room and server bound to the credential",
646
+ "AI CoDiscuss 网站部署\n\n注意:发布到公网须有用户在本房间的明确授权;未经用户明确要求发布时,仅使用 stage 在本机预检登记。\n\n用法:\n codiscuss site stage (--dir 目录 | --file 文件.html) [--room 房间] [--title 标题] [--exclude 路径]\n codiscuss site publish (--dir 目录 | --file 文件.html | --stage 编号) [--site 站点编号] [--room 房间] [--title 标题] [--exclude 路径]\n codiscuss site list [--room 房间]\n codiscuss site diagnose <站点编号> [--room 房间]\n codiscuss site renew <站点编号> [--room 房间]\n codiscuss site rollback <站点编号> [--version 版本号] [--room 房间]\n codiscuss site revoke <站点编号> [--room 房间]\n\n选项:\n --access-file FILE 任务凭据文件(默认读取 DISCUSS_ACCESS_FILE)\n --room ROOM 房间编号(凭据绑定时自动补齐)\n --url SITE 本机/房间网站地址(凭据绑定时自动补齐)\n --dir PATH 要发布的本机构建目录\n --file PATH 要发布的单个 HTML 文件\n --stage ID 对已预检的待部署编号执行发布\n --site ID 更新已有 10 位站点编号\n --title TEXT 站点标题\n --exclude PATH 排除的相对文件路径(可重复传多次)\n --version N 回滚目标版本号(省略则回滚到上一版)\n --json 以 JSON 输出(默认)\n -h, --help 显示帮助\n": "AI CoDiscuss Website Deployment\n\nNotice: publishing to the public internet requires explicit user authorization in this room; without it, only run `stage` for local preflight.\n\nUsage:\n codiscuss site stage (--dir DIR | --file FILE.html) [--room ROOM] [--title TITLE] [--exclude PATH]\n codiscuss site publish (--dir DIR | --file FILE.html | --stage ID) [--site SITE_ID] [--room ROOM] [--title TITLE] [--exclude PATH]\n codiscuss site list [--room ROOM]\n codiscuss site diagnose <SITE_ID> [--room ROOM]\n codiscuss site renew <SITE_ID> [--room ROOM]\n codiscuss site rollback <SITE_ID> [--version N] [--room ROOM]\n codiscuss site revoke <SITE_ID> [--room ROOM]\n\nOptions:\n --access-file FILE Task credential file (defaults to DISCUSS_ACCESS_FILE)\n --room ROOM Room ID (auto-filled when bound by credential)\n --url SITE Local/room site URL (auto-filled when bound by credential)\n --dir PATH Local build directory to deploy\n --file PATH Single HTML file to deploy\n --stage ID Publish a previously staged record\n --site ID Update an existing 10-character site ID\n --title TEXT Site title\n --exclude PATH Relative file path to exclude (repeatable)\n --version N Target version for rollback (defaults to previous version)\n --json Output JSON (default)\n -h, --help Show help\n",
644
647
  "未知子命令:{sub};运行 codiscuss site --help 查看用法": "Unknown subcommand: {sub}; run `codiscuss site --help` for usage",
648
+ "本次运行已收窄,不能使用 share-card 命令": "This run is restricted and cannot use the share-card command",
649
+ "凭据文件不存在:{path}": "Credential file does not exist: {path}",
650
+ "凭据文件不是有效的 JSON 对象": "Credential file is not a valid JSON object",
651
+ "DISCUSS_ACCESS 不是有效的 JSON 对象": "DISCUSS_ACCESS is not a valid JSON object",
652
+ "站点地址无效,请使用 http(s)://主机[:端口],不带路径、凭据或查询": "Invalid site URL; use http(s)://host[:port] with no path, credentials, or query",
653
+ "请用 --site、DISCUSS_URL 或任务凭据指定目标站点": "Specify the target site via --site, DISCUSS_URL, or a task credential",
654
+ "凭据文件不属于本次站点": "Credential file does not belong to this site",
655
+ "凭据文件中的 token 无效": "Invalid token in credential file",
656
+ "读取房间数据失败(HTTP {status})": "Failed to read room data (HTTP {status})",
657
+ "交互式可视化": "Interactive visual",
658
+ "项目目录": "project folder",
659
+ "请提供有效的房间编号(可经 --room 或任务凭据自动补齐)": "Provide a valid room ID (via --room or automatically from the task credential)",
660
+ "统计按可分享范围计算:排除已撤回消息及其关联执行和外部执行,并按分页回溯历史时间线;网页“并发全景”默认仅展示最近 100 次且不剔除撤回执行,两者数字可能略有差异。": "Metrics follow the shareable scope: withdrawn messages, their executions, and external executions are excluded while paginating through history; the web Concurrency view loads the latest 100 runs by default without excluding withdrawn runs, so totals may differ slightly.",
661
+ "分享面板会自动在封面下方拼接统一的扫码底栏(二维码、域名和最新有效期),并可吸取封面底边颜色;封面 HTML 中请勿绘制二维码、分享链接或有效期。": "The share dialog appends a unified QR footer (QR code, domain, and latest expiry) below the cover and can match the cover's bottom color; do not draw a QR code, share URL, or expiry date in the cover HTML.",
662
+ "无法确认成员的文件权限,已拒绝渲染": "Could not verify the member's file permissions; rendering refused",
663
+ "凭据中的成员不在房间配置内,已拒绝渲染": "The credential's member is not in the room configuration; rendering refused",
664
+ "无权读取该 HTML 文件:路径超出成员允许的目录范围": "Not allowed to read this HTML file: path is outside the member's permitted directories",
665
+ "无权写入该输出路径:请输出到成员有写权限的目录或自己的草稿目录": "Not allowed to write to this output path: write to a directory the member may edit or to its own draft folder",
666
+ "背景色必须是 6 位十六进制颜色,例如 #12141c": "Background color must be a 6-digit hex color, such as #12141c",
667
+ "浏览器未输出有效的 PNG 图片": "The browser did not produce a valid PNG image",
668
+ "本机浏览器的操作系统沙箱不可用(例如 Linux 以 root 运行或禁用了 user namespace),出于安全要求不会关闭沙箱;请改用启用沙箱的普通用户重试,或直接提供 PNG/JPG/WebP 图片。": "The local browser's OS sandbox is unavailable (for example, running as root on Linux or with user namespaces disabled). For security, the sandbox is never disabled; retry as a regular user with sandboxing enabled, or provide a PNG/JPG/WebP image directly.",
669
+ "浏览器渲染命令失败": "Browser rendering command failed",
670
+ "浏览器渲染步骤超时:{method}": "Browser rendering step timed out: {method}",
671
+ "向本地浏览器发送渲染指令失败:{reason}": "Failed to send rendering command to the local browser: {reason}",
672
+ "等待页面加载完成超时": "Timed out waiting for the page to finish loading",
673
+ "浏览器连接已关闭": "Browser connection closed",
674
+ "无法启动本地浏览器:{reason}": "Could not start the local browser: {reason}",
675
+ "未知": "unknown",
676
+ "本地浏览器提前退出(退出码 {code})": "Local browser exited early (exit code {code})",
677
+ "请指定要导出的本地 HTML 文件路径": "Specify the local HTML file path to render",
678
+ "请通过 --out 指定输出 PNG 文件路径": "Specify the output PNG file path with --out",
679
+ "HTML 文件不存在:{path}": "HTML file does not exist: {path}",
680
+ "HTML 文件超过 10 MiB 上限,无法导出": "HTML file exceeds the 10 MiB limit and cannot be rendered",
681
+ "宽度须为 {min}–{max} 之间的整数像素": "Width must be an integer between {min} and {max} pixels",
682
+ "最大高度须为 {min}–{max} 之间的整数像素": "Max height must be an integer between {min} and {max} pixels",
683
+ "高度须为 {min}–{max} 之间的整数像素": "Height must be an integer between {min} and {max} pixels",
684
+ "缩放倍率(--scale)须在 1 到 3 之间": "Scale (--scale) must be between 1 and 3",
685
+ "未在系统可信安装位置找到可用的本地浏览器(Edge / Chrome / Chromium),无法将 HTML 导出为 PNG。请安装 Edge、Chrome 或 Chromium;也可以直接提供 PNG/JPG/WebP 图片。": "No local browser (Edge / Chrome / Chromium) was found in trusted system install locations to export HTML to PNG. Install Edge, Chrome, or Chromium, or provide a PNG/JPG/WebP image directly.",
686
+ "AI CoDiscuss 分享卡封面工具\n\n用法:\n codiscuss share-card materials [房间ID] [--site URL] [--access-file FILE] [--max-highlights N] [--max-steps N]\n codiscuss share-card render <HTML文件> --out <PNG文件> [--width 750] [--height N] [--max-height 1500] [--scale 2] [--background #12141c]\n\n子命令:\n materials 按可分享范围读取房间的协作指标、并发曲线与必要素材索引(排除已撤回消息、私聊与敏感片段,输出截断标记)\n render 使用系统可信安装位置的隔离沙箱浏览器(进程私有控制通道、无 TCP 调试端口)将本地静态 HTML 导出为高清 PNG 封面图\n\n选项:\n --room ROOM 目标房间编号(省略时取凭据绑定的房间;传其他房间编号可跨房间只读取材)\n --site, --url SITE 站点地址(带任务凭据时须与凭据绑定站点一致)\n --access-file FILE 任务凭据文件(默认读取 DISCUSS_ACCESS_FILE)\n --max-highlights N 返回的代表发言索引上限(默认 12)\n --max-steps N 并发曲线最大时间步数(默认 240,超出时按峰值采样)\n --out, -o FILE render 输出的 PNG 路径(持任务凭据时须在允许写入的目录或自己的草稿目录内;本机房主手动运行时沿用当前账号文件权限)\n --width N render CSS 宽度(像素,默认 750,范围 320–1500)\n --height N render 固定 CSS 高度(省略时按内容自适应)\n --max-height N render 最大 CSS 高度(默认 1500,范围 200–2400)\n --scale N render 像素倍率(默认 2,750×2 = 1500px 宽)\n --background HEX render 默认底色(默认 #12141c)\n --json 以 JSON 输出(默认)\n -h, --help 显示帮助\n": "AI CoDiscuss Share-Card Cover Tool\n\nUsage:\n codiscuss share-card materials [ROOM_ID] [--site URL] [--access-file FILE] [--max-highlights N] [--max-steps N]\n codiscuss share-card render <HTML_FILE> --out <PNG_FILE> [--width 750] [--height N] [--max-height 1500] [--scale 2] [--background #12141c]\n\nSubcommands:\n materials Read shareable collaboration metrics, concurrency curve and material index (excludes withdrawn messages, private chats and flagged sensitive snippets, with truncation flags)\n render Export a local static HTML cover to a high-DPI PNG via an isolated, sandboxed browser from trusted system locations (private process pipe, no TCP debug port)\n\nOptions:\n --room ROOM Target room ID (defaults to the credential's room; pass another room ID to read cross-room)\n --site, --url SITE Site URL (must match the bound site when a task credential is present)\n --access-file FILE Task credential file (defaults to DISCUSS_ACCESS_FILE)\n --max-highlights N Max representative messages returned (default 12)\n --max-steps N Max concurrency-curve time buckets (default 240; peak-sampled above limit)\n --out, -o FILE Output PNG path for render (members with task credentials must write inside permitted directories or their own draft folder; manual terminal runs use the local user's OS permissions)\n --width N Render CSS width in px (default 750, range 320–1500)\n --height N Fixed render CSS height in px (auto-fits content when omitted)\n --max-height N Max render CSS height in px (default 1500, range 200–2400)\n --scale N Render pixel scale factor (default 2; 750×2 = 1500px wide)\n --background HEX Default render background color (default #12141c)\n --json Output JSON (default)\n -h, --help Show help\n",
687
+ "未知子命令:{sub};运行 codiscuss share-card --help 查看用法": "Unknown subcommand: {sub}; run `codiscuss share-card --help` for usage",
645
688
  "出于安全考虑,手机、平板等其他设备只能使用这台电脑“常用项目”里的目录,「{path}」不在其中,所以没有执行。请回到这台电脑上打开共议网页:在“新建房间”的项目目录里填入这个路径,点路径右侧的“加入常用项目”,之后其他设备就能直接选它;也可以加入它的上级目录。": "For security, phones, tablets and other devices can only use folders in this computer's “Saved projects”, and “{path}” is not one of them, so nothing was done. On this computer, open CoDiscuss, enter this path as the project folder under “New room”, then click “Add to saved projects” next to it; other devices can then pick it. You can also add a parent folder.",
646
689
  "出于安全考虑,其他设备只能查看这台电脑“常用项目”目录里的会话,「{path}」不在其中。请回到这台电脑上打开共议网页,在“新建房间”的项目目录里填入这个路径并点“加入常用项目”,之后再试。": "For security, other devices can only view sessions in this computer's “Saved projects” folders, and “{path}” is not one of them. On this computer, open CoDiscuss, enter this path as the project folder under “New room”, click “Add to saved projects”, then try again.",
647
690
  };
@@ -31,12 +31,12 @@ const LAUNCH_SCRIPT = fileURLToPath(new URL('./discussion_launch.mjs', import.me
31
31
  // What a connected browser may ask the local bridge for, minus the folder dialog nobody would see and pairing itself.
32
32
  export const RELAYED_ACTIONS = new Set(['settings', 'launch', 'wipe-histories', 'room-models', 'room-member', 'room-member-access', 'room-member-allow', 'room-member-adapter',
33
33
  'room-member-model', 'room-profiles', 'room-skills', 'room-files', 'share-job', 'room-page', 'room-media', 'execution-details', 'room-restore', 'room-fork', 'models', 'sessions', 'api-key', 'api-check', 'scheduler-check', 'image-check', 'image-settings', 'tts-settings', 'tts', 'tts-release', 'local-speech', 'stt', 'weixin', 'projects', 'presets', 'workflows', 'room-workflow', 'room-settings', 'browse-directory', 'room-invite', 'room-invites', 'room-invite-revoke',
34
- 'site-stage', 'site-publish', 'site-list', 'site-renew', 'site-rollback', 'site-revoke',
34
+ 'site-stage', 'site-publish', 'site-list', 'site-diagnose', 'site-renew', 'site-rollback', 'site-revoke',
35
35
  // Rooms on other computers this one was invited to (runner/external_client.mjs): its paired devices manage them as here.
36
36
  'invited-list', 'invited-join', 'invited-trust', 'invited-ai', 'invited-pause', 'invited-approve', 'invited-refuse', 'invited-lend', 'invited-leave', 'invited-remove', 'invited-room']);
37
37
  export const ROOM_ACTIONS = new Set(['launch', 'room-models', 'room-member', 'room-member-access', 'room-member-allow', 'room-member-adapter',
38
38
  'room-member-model', 'room-profiles', 'room-skills', 'room-files', 'share-job', 'room-page', 'room-media', 'execution-details', 'room-restore', 'room-fork', 'room-workflow', 'room-settings', 'workflows',
39
- 'site-stage', 'site-publish', 'site-list', 'site-renew', 'site-rollback', 'site-revoke',
39
+ 'site-stage', 'site-publish', 'site-list', 'site-diagnose', 'site-renew', 'site-rollback', 'site-revoke',
40
40
  // Invites to members on other computers: paired devices issue them as this computer does (PLAN §4.2 item 1).
41
41
  'room-invite', 'room-invites', 'room-invite-revoke']);
42
42