ai_co_discuss 0.5.52 → 0.5.53

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.
@@ -12,8 +12,8 @@ Message a member or host, understand main and branch work and assignment labels,
12
12
  - **Ask all members.** Type `@all` to have everyone present answer in parallel. If the room has a host, it first answers on its own like everyone else, then, once all answers are in, sums up where they agree and differ and arranges follow-up work if needed. Type `@all-seq` to have members answer in the order shown in the sidebar’s “Speaking order”.
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. Clicking a `#number` anywhere (in messages, the brief, executions or the event log) jumps to that message in the conversation; click “Back to where you were” to return. A number from another room opens that room at the message; click “Back to “room name”” at the bottom to return to the room and place you jumped from. At the top of the room, “Filter messages and cards” filters by author, host, mentions, or card type.
15
- - **Find in a room.** The find box at the top of the room (`Ctrl+F` focuses it) searches message text and `#numbers`, the progress and failure reasons on run cards, and attachment names; private chats and withdrawn messages are not searched. Its three switches are “Match case”, “Match whole word” and “Use regular expression”. To the right it shows which match you are on out of how many; `Enter`, `Shift+Enter` or the up and down arrows step through them. Every match is marked and the current one is darker. “Show only matches” uses the same words and switches to narrow the message list to the messages with a match (including ones matched only on a run card or an attachment name); `Esc` or × clears it. In a narrow window, the find box folds into one search button and opens over the tab bar. On a phone there is no separate search button: tap the filter button at the top right and choose the first item, “Search messages”, to open the find box; the filter button stays highlighted while there are search words.
16
- - **Search all rooms.** Turn on the fourth switch in the find box (the layers icon; its tooltip names the current scope: on is all rooms, off is this room), or press `Ctrl+Shift+F` to open the find box on all rooms, and the same words and switches search the collaboration rooms and MOSS on this computer, archived rooms included (external rooms are not on this computer and are not searched). The results float under the find box, grouped by room with the room name and match count in each heading; each shows the author, the time and the words around the match, and the list scrolls when it is long. The count is the number of results you can step through, with + after it when some room was cut short. Clicking a result opens the room it is in, shows it there and closes the list; `Enter` or the up and down arrows then step on to the next result, opening its room when it is in another one, with the switch staying on. `Esc` first closes the list, and a second press clears the search; clicking back in the find box, or changing the words or a switch, opens the list again. Each room lists at most 50 results; when there are more, click “… more in this room” under it to open that room, back in this-room scope with the same words, and step through all of them there. The scope switch is not remembered: the page opens on this room next time.
15
+ - **Find in a room.** The find box at the top of the room (`Ctrl+F` opens it) searches message text and `#numbers`, the progress and failure reasons on run cards, and attachment names; private chats and withdrawn messages are not searched. Its three switches are “Match case”, “Match whole word” and “Use regular expression”. To the right it shows which match you are on out of how many; `Enter`, `Shift+Enter` or the up and down arrows step through them. Every match is marked and the current one is darker. “Show only matches” uses the same words and switches to narrow the message list to the messages with a match (including ones matched only on a run card or an attachment name); `Esc` or × clears it and closes the find box. The find box stays folded into one search button at the top of the room; click it or press `Ctrl+F` to open it over the tab bar. × or `Esc` clears and closes it, and clicking elsewhere does not close it while it has search words. On a phone there is no separate search button: tap the filter button at the top right and choose the first item, “Search messages”, to open the find box; the filter button stays highlighted while there are search words.
16
+ - **Search all rooms.** Turn on the fourth switch in the find box (the layers icon; its tooltip names the current scope: on is all rooms, off is this room), or press `Ctrl+Shift+F` to open the find box on all rooms, and the same words and switches search the collaboration rooms and MOSS on this computer, archived rooms included (external rooms are not on this computer and are not searched). The results float under the find box, grouped by room with the room name and match count in each heading; each shows the author, the time and the words around the match, and the list scrolls when it is long. The count is the number of results you can step through, with + after it when some room was cut short. Clicking a result opens the room it is in, shows it there and closes the list; `Enter` or the up and down arrows then step on to the next result, opening its room when it is in another one, with the switch staying on. `Esc` first closes the list, and a second press clears the search and closes the find box; clicking back in the find box, or changing the words or a switch, opens the list again. Each room lists at most 50 results; when there are more, click “… more in this room” under it to open that room, back in this-room scope with the same words, and step through all of them there. The scope switch is not remembered: the page opens on this room next time.
17
17
 
18
18
  - When you send an image, the page keeps its local preview. The message receipt and member status updates preserve your reading position after sending.
19
19
  - **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.
@@ -42,7 +42,7 @@ Room work can run on several lines in parallel. Labels at the top of a card show
42
42
  - “Background, not handed back”: no one waits for this background work. On success, it is not returned; on failure, the host is notified.
43
43
  - “Relay, back to the host at the end”: hand work from one member to the next in order, then return the final result to the host.
44
44
  - If an assignment also includes background members, it shows “Also in the background: {value1}”.
45
- - **Rate the host’s assignments.** A host assignment card ends with “Rate dispatch”. Room owners can click 👍 (“Good dispatch”) or 👎 (“Poor dispatch”); clicking it again withdraws the rating. With 👎 you can add “Who should it have gone to” and a reason, or leave both blank; “Save and send to developers” in that form saves, then sends the assignment, the original text of nearby messages and the host version to the official service. Click “See what will be sent” to read it first. Hosts and members who can read the room can see ratings. Share pages omit them. When you destroy a room on a personal site, rated assignments are kept with nearby messages and final outcomes for later review. Hosted accounts delete these records with the room.
45
+ - **Rate the host’s assignments.** A host assignment card ends with two buttons, 👍 and 👎, with no label (at the right end of the process line when there is one). Room owners can click 👍 (“Good dispatch”) or 👎 (“Poor dispatch”); clicking it again withdraws the rating. With 👎 you can add a comment, or leave it blank (an assignment is a whole set of arrangements, so there is only an open comment, no “who should it have gone to” choice); “Save and send to developers” in that form saves, then sends the assignment, the original text of nearby messages and the host version to the official service. Click “See what will be sent” to read it first. Hosts and members who can read the room can see ratings. Share pages omit them. When you destroy a room on a personal site, rated assignments are kept with nearby messages and final outcomes for later review. Hosted accounts delete these records with the room.
46
46
  - **Continuous assignment limit.** A message can let the host continue for up to 10 rounds by default. At the limit, it stops automatically. Select “Continue” in the sidebar to proceed. If the host requests more rounds in advance, the sidebar shows its reason. Select “Approve” to allow the requested continuation.
47
47
 
48
48
  ### 3. Manage queued messages
@@ -12,8 +12,8 @@
12
12
  - **让全体回答**:输入 `@全体成员` 让在场成员各自并行回答,房间有主持人时,它先和大家一样独立回答,所有人答完后再汇总共识与分歧、需要时安排后续工作;输入 `@全体依次` 按右栏“发言顺序”逐个回答。
13
13
  - **发之前看提示**:输入框下方的一行会按当前谁在忙说明这条发出后会怎样,比如被 @ 的成员空闲时写“立即发给某某,与正在进行的工作并行(支线)”,它正忙时写这条会先排队;没 @ 人而房间正忙时,会提示你可以 @ 一位空闲成员让它马上开工。
14
14
  - **回复、搜索与筛选**:消息菜单点“回复”关联原消息;点任何地方的 `#编号`(消息、简报、执行、事件记录里)会跳到消息里该条的位置,看完点“返回原位置”回到原处;编号属于其他房间时会切到那个房间并定位,点底部的“返回「原房间名」”回到跳转前的房间与位置;房间顶部可按作者、主持、点名与卡片类型“筛选消息与卡片”。
15
- - **在房间内查找**:房间顶部的查找框(`Ctrl+F` 聚焦)搜消息正文与 `#编号`、执行卡片上的进展和失败原因、附件文件名,不搜私聊和已撤回的消息。框内三个开关是“区分大小写”“全字匹配”“使用正则表达式”;右侧显示第几处/共几处,`Enter`、`Shift+Enter` 或上下箭头逐处跳转,所有命中都会标出、当前一处颜色更深;“只显示命中”按同样的关键词和开关,把消息列表收窄到有命中的消息(只在执行卡片或附件名里命中的也算);`Esc` 或 × 清空。窗口较窄时,查找框收成一个搜索按钮,点开后浮在标签栏上方;手机上没有单独的搜索按钮,点右上角的筛选按钮,选第一项“搜索消息”打开查找框,有查找词时筛选按钮会高亮。
16
- - **搜索全部房间**:打开查找框里的第四个开关(叠层图标,悬停提示当前范围,开着是“全部房间”,关着是“本房间”),或按 `Ctrl+Shift+F` 直接以全部房间打开查找框,同一个关键词和开关就改为搜这台电脑上的协作房间和 MOSS(含已存档房间,外部房间不在本机、不搜)。结果浮在查找框下方,按房间分组,组头写房间名和命中数,每条显示作者、时间和命中前后的片段,太长时在浮层里滚动;计数是能逐条跳到的结果数,有房间被截断时后面加 +。点一条会进入那条所在的房间并定位到它,同时收起浮层;之后用 `Enter`、上下箭头接着逐条跳,下一条在别的房间就进那个房间,开关保持打开。`Esc` 先收起浮层,再按一次清空;收起后点回查找框,或改关键词、拨开关,浮层重新展开。每个房间最多列出 50 条,超出时点该房间下的“还有 N 条”,会进入那个房间、切回本房间范围并保留关键词,在那里逐条看全部。范围开关不会记住,下次打开网页仍是本房间。
15
+ - **在房间内查找**:房间顶部的查找框(`Ctrl+F` 打开)搜消息正文与 `#编号`、执行卡片上的进展和失败原因、附件文件名,不搜私聊和已撤回的消息。框内三个开关是“区分大小写”“全字匹配”“使用正则表达式”;右侧显示第几处/共几处,`Enter`、`Shift+Enter` 或上下箭头逐处跳转,所有命中都会标出、当前一处颜色更深;“只显示命中”按同样的关键词和开关,把消息列表收窄到有命中的消息(只在执行卡片或附件名里命中的也算);`Esc` 或 × 清空并收起查找框。查找框平时收成房间顶部的一个搜索按钮,点它或按 `Ctrl+F` 打开,浮在标签栏上方;× 或 `Esc` 清空并收起,框里有查找词时点别处不会收起;手机上没有单独的搜索按钮,点右上角的筛选按钮,选第一项“搜索消息”打开查找框,有查找词时筛选按钮会高亮。
16
+ - **搜索全部房间**:打开查找框里的第四个开关(叠层图标,悬停提示当前范围,开着是“全部房间”,关着是“本房间”),或按 `Ctrl+Shift+F` 直接以全部房间打开查找框,同一个关键词和开关就改为搜这台电脑上的协作房间和 MOSS(含已存档房间,外部房间不在本机、不搜)。结果浮在查找框下方,按房间分组,组头写房间名和命中数,每条显示作者、时间和命中前后的片段,太长时在浮层里滚动;计数是能逐条跳到的结果数,有房间被截断时后面加 +。点一条会进入那条所在的房间并定位到它,同时收起浮层;之后用 `Enter`、上下箭头接着逐条跳,下一条在别的房间就进那个房间,开关保持打开。`Esc` 先收起浮层,再按一次清空并收起查找框;收起后点回查找框,或改关键词、拨开关,浮层重新展开。每个房间最多列出 50 条,超出时点该房间下的“还有 N 条”,会进入那个房间、切回本房间范围并保留关键词,在那里逐条看全部。范围开关不会记住,下次打开网页仍是本房间。
17
17
 
18
18
  - 发送图片时,当前页面沿用本机预览。消息回执和成员执行状态出现时,页面保留刚发送时的阅读位置。
19
19
  - **连续发送与失败重试**:上一条仍显示“发送中…”时可以发送下一条。房间正忙、消息预计需要排队时,每条先显示在输入框上方的排队列表里,网站确认后在原位成为正式排队项。浏览器按点击顺序提交,单条失败后继续发送后续消息。失败卡保留原文和附件,可点“重新发送”或“放弃”。切到其他房间后,发送和网络重试会继续;回到原房间还能找到失败卡。刷新或关闭页面会清除本页未发出的消息。
@@ -42,7 +42,7 @@
42
42
  - “后台,不交回”:后台进行,谁也不等它;做完不交回,失败时通知主持人。
43
43
  - “接力,最后交回主持”:按顺序一棒接一棒,最后一棒做完交回主持人。
44
44
  - 派活同时带了后台成员时,还会显示“另有后台:成员名”。
45
- - **评价主持人的派活**:主持人派活消息的卡片底部有“派活评价”,房主可以点 👍(“派得好”)或 👎(“派得不好”),再点一次撤销;点踩时可补充“应该派给谁”和原因,也可以不填;表单里的“保存并发给开发者”会在保存后把这次派活、前后几条消息原文和主持人版本发到官方服务,点“查看将发送的内容”可先看原文。能读房间的成员和主持人都能看到评价,分享页不显示。个人站点销毁房间时会保留评过分的派活原文、前后几条消息和最后的执行结果,供以后复盘调度,托管账号会一并清除。
45
+ - **评价主持人的派活**:主持人派活消息的卡片底部(有过程那一行时在它的右端)有 👍👎 两个按钮(不带文字),房主可以点 👍(“派得好”)或 👎(“派得不好”),再点一次撤销;点踩时可以写一段意见(派活是一整套安排,所以只有开放式输入,不选“应该派给谁”),也可以不填;表单里的“保存并发给开发者”会在保存后把这次派活、前后几条消息原文和主持人版本发到官方服务,点“查看将发送的内容”可先看原文。能读房间的成员和主持人都能看到评价,分享页不显示。个人站点销毁房间时会保留评过分的派活原文、前后几条消息和最后的执行结果,供以后复盘调度,托管账号会一并清除。
46
46
  - **连续派活轮数上限**:你的一条消息默认最多让主持人连续推进 10 轮,到限自动停下,右栏点“继续”接着推进;主持人预先申请更多轮数时,右栏会显示申请理由,点“批准”即可一次跑完。
47
47
 
48
48
  ### 3. 管理排队消息
@@ -1,4 +1,8 @@
1
1
  {
2
+ "含已删除的房间": "including deleted rooms",
3
+ "仅现存的房间": "existing rooms only",
4
+ "范围:{period}({dates},时区 {tz}),{rooms}。": "Scope: {period} ({dates}, time zone {tz}), {rooms}.",
5
+ "范围:{period}(时区 {tz}),{rooms}。": "Scope: {period} (time zone {tz}), {rooms}.",
2
6
  "免介入率": "Unassisted rate",
3
7
  "样本不足 10 条,仅显示次数": "Under 10 samples; showing counts only",
4
8
  "现存 {count} 个房间,含归档,不含已删除": "{count} existing rooms, including archived, excluding deleted",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "房间:{title}(ID {id})": "Room: {title} (ID {id})",
2
3
  "MOSS 当前为只读。此技能需要运行命令或写入本机文件。请先在 MOSS 设置中把项目权限调到“自动”,再重试。": "MOSS is currently read-only. This skill needs to run commands or write local files. Set project access to Auto in MOSS settings and try again.",
3
4
  "MOSS 建房成员设置无效,主持人须在成员名单中": "Invalid MOSS room roster. The host must be in its member list.",
4
5
  "MOSS": "MOSS",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.5.52",
3
+ "version": "0.5.53",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -97,7 +97,6 @@ export default {
97
97
  "UTC 时段 | 站点 | 请求 | 失败 | 断线 | 手机/网站/中转链路 p50,p90 毫秒 | 最高 p90": "UTC period | Site | Requests | Failed | Disconnects | Mobile/site/link p50,p90 ms | Highest p90",
98
98
  "所选时段没有已写入的五分钟摘要": "No completed five-minute summaries in this interval",
99
99
  "访客邀请需要已绑定的线上站点。托管账号也可由管理员开启自有域名隧道,并为该账号开通直连。": "Guest invitations require a linked online site. For a hosted account, the administrator can also enable the custom-domain tunnel and provision direct access for the account.",
100
- '用户已确认本次安装、配置或部署。': 'The user confirmed this installation, configuration, or deployment.',
101
100
  '请先在“MOSS”页面选择软件': 'Choose software on MOSS page first',
102
101
  '请先用 codiscuss steward settings --adapter 选择软件': 'First choose software with codiscuss steward settings --adapter.',
103
102
  '按当前请求在 steward_skill_catalog 中匹配技能,按需读对应 SKILL.md。直接收到会更改本机或远端的安装、配置或部署请求时,用户未确认就先询问。': 'Match the request to a skill in steward_skill_catalog and read its SKILL.md when needed. For direct installation, configuration, or deployment requests that change this computer or a remote service, ask first if the user has not confirmed.',
@@ -161,7 +160,16 @@ export default {
161
160
  '查资料和短答自己做。深挖、生成文档或网页、图像视频、部署等交给群委托房间。CLI 用 launch host-control create-room --preset task,API 用 create_task_room。等程序回报后再整理给群里。': 'Handle quick research and brief answers here. Delegate in-depth research, documents, websites, images, videos, and deployment to a group task room. Use launch host-control create-room --preset task in the CLI or create_task_room in the API. Wait for the result, then summarize it for the group.',
162
161
  '当前软件在收窄档没有公共网页工具。需要联网查资料时走群委托。': 'The current software has no public web tools in restricted mode. Delegate requests that require web research.',
163
162
  'MOSS 未获准使用技能,或本机未安装此技能:{skill}': 'The MOSS is not allowed to use this skill, or it is not installed: {skill}',
164
- '请使用指定技能处理本次平台事务,并在这里交付结果。': 'Use the specified skill to handle this platform task and deliver the result here.',
163
+ '请用这个技能处理,结果在这里回复我。': 'Please handle this with the skill and reply to me here.',
164
+ '帮我配置通知渠道。我还没选渠道,先看现状、推荐合适的渠道并讲清前提,等我选定再动手。': 'Help me set up notification channels. I haven’t picked one yet: check the current status, recommend suitable channels with their requirements, and wait for my choice before making changes.',
165
+ '我同意你为此更改本机的通知设置。': 'I agree to let you change this computer’s notification settings for this.',
166
+ '帮我分析这段时间主持人的派活情况。': 'Help me analyze how the host has been assigning work over this period.',
167
+ '帮我给这个房间做一张分享卡。': 'Help me make a share card for this room.',
168
+ '帮我安装本机语音输入。': 'Help me install local voice input.',
169
+ '帮我安装本机朗读。': 'Help me install local read-aloud.',
170
+ '我同意你为此在本机安装和配置所需程序。': 'I agree to let you install and configure the required programs on this computer for this.',
171
+ '帮我部署线上站点。': 'Help me deploy the online site.',
172
+ '我同意你为此更改本机配置和 Cloudflare 上的部署。': 'I agree to let you change this computer’s configuration and the Cloudflare deployment for this.',
165
173
  '任务上下文:\n{context}': 'Task context:\n{context}',
166
174
  '请先配置MOSS的本机软件': 'Configure MOSS’s local software first',
167
175
  'MOSS 设置和请求只能由用户发起': 'Only the user can configure or send requests to MOSS',
@@ -230,14 +230,29 @@ export function sync_steward_platform_skills(home, project = PROJECT, refresh =
230
230
  }
231
231
  }
232
232
 
233
+ /** What the owner asks for when starting a skill from a page button, written in the owner's own voice. */
234
+ const SKILL_REQUESTS = {
235
+ 'dispatch-analysis': locale => [t('帮我分析这段时间主持人的派活情况。', {}, locale), ''],
236
+ 'share-card': locale => [t('帮我给这个房间做一张分享卡。', {}, locale), ''],
237
+ 'notify-setup': locale => [t('帮我配置通知渠道。我还没选渠道,先看现状、推荐合适的渠道并讲清前提,等我选定再动手。', {}, locale),
238
+ t('我同意你为此更改本机的通知设置。', {}, locale)],
239
+ 'local-stt-setup': locale => [t('帮我安装本机语音输入。', {}, locale), t('我同意你为此在本机安装和配置所需程序。', {}, locale)],
240
+ 'local-tts-setup': locale => [t('帮我安装本机朗读。', {}, locale), t('我同意你为此在本机安装和配置所需程序。', {}, locale)],
241
+ 'cloudflare-deploy': locale => [t('帮我部署线上站点。', {}, locale), t('我同意你为此更改本机配置和 Cloudflare 上的部署。', {}, locale)],
242
+ };
243
+
233
244
  /** Build the ordinary user message, with the skill on its own first line. */
234
245
  export function steward_message(skill, context, lang, confirmed = false) {
235
246
  const locale = /^en(?:-|$)/i.test(lang || '') ? 'en' : 'zh-CN';
236
- const instruction = t('请使用指定技能处理本次平台事务,并在这里交付结果。', {}, locale);
237
- const detail = context == null || context === '' ? '' : typeof context === 'string' ? context : JSON.stringify(context, null, 2);
238
- const confirmation = confirmed === true && CONFIRMATION_SKILLS.includes(skill)
239
- ? t('用户已确认本次安装、配置或部署。', {}, locale) : '';
240
- return [`/${skill}`, instruction, confirmation, detail && t('任务上下文:\n{context}', { context: detail }, locale)]
247
+ const empty = context == null || context === '' || (typeof context === 'object' && !Object.keys(context).length);
248
+ const words = typeof context === 'string' && !empty;
249
+ const [request, consent] = SKILL_REQUESTS[skill]?.(locale)
250
+ || [words ? context : t('请用这个技能处理,结果在这里回复我。', {}, locale), ''];
251
+ // A sentence from the caller is shown as written; structured data from scripts keeps its labelled JSON block.
252
+ const detail = empty || request === context ? '' : words ? context
253
+ : t('任务上下文:\n{context}', { context: JSON.stringify(context, null, 2) }, locale);
254
+ const confirmation = confirmed === true ? consent : '';
255
+ return [`/${skill}`, [request, confirmation].filter(Boolean).join(locale === 'en' ? ' ' : ''), detail]
241
256
  .filter(Boolean).join('\n\n');
242
257
  }
243
258