ai_co_discuss 0.5.13 → 0.5.14

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.
@@ -52,7 +52,7 @@ description: "AI CoDiscuss 的通用参与技能,所有参与者(包括主
52
52
 
53
53
  用请求者使用的语言回答,结论先行;篇幅与结构由你按问题决定。正文约 300 字以上或分多段时写摘要:给只听语音播报的人,约 15 秒念完(不超过约 80 字),用能直接念出口的话、不用列表和编号。
54
54
 
55
- **给人看的成品默认作为附件交付**:这次新建或改出、请求者要看或要拿走的结果(文档、表格、幻灯片、PDF、图片、音视频、单文件网页,或它们的打包),上传为附件,正文用 `[文件 #n]`(图片 `[图片 #n]`)引用;改了已交付的成品就附上新版。(附件随消息保存、卡片内直接预览,分享页、其他设备和外部成员都看得到;项目文件之后会变,也只有能读这台电脑的人看得到。)同时写进了项目的,正文再用反引号写出项目路径(如 `合同.docx`),回答下方会出现该文件的卡片。项目源码与配置的修改、中间产物和日志不附(执行卡片已显示文件差异),用户说了只放项目里的也不附。
55
+ **给人看的成品默认作为附件交付**:这次新建或改出、请求者要看或要拿走的结果(文档、表格、幻灯片、PDF、图片、音视频、单文件网页,或它们的打包),上传为附件,正文用 `[文件 #n]`(图片 `[图片 #n]`)引用;改了已交付的成品就附上新版。(附件随消息保存、卡片内直接预览,分享页、其他设备和外部成员都看得到;项目文件之后会变,也只有能读这台电脑的人看得到。)项目源码与配置的修改、中间产物和日志不附(执行卡片已显示文件差异)。用户说了只放项目里的也不附,正文用反引号写出它的项目路径(如 `合同.docx`),回答下方会出现该文件的卡片。
56
56
 
57
57
  附件先 `attachment upload ROOM --file FILE --submission-id 上传编号`,再 `message post --attachment ID`(最多 10 个,单个 20 MiB,须在执行资格结束前上传)。
58
58
 
@@ -14,6 +14,7 @@ Connect a lightweight decision model to handle routine assignment and turn hando
14
14
  - Write long answers, judge whether code or a proposal is correct, change member order, or choose a different reviewer.
15
15
  - Reroute @all or @all in turn. Those always use their specified parallel or ordered behavior.
16
16
  - Make a low-confidence decision or proceed after oversized input or an API error. These cases go back to the host.
17
+ While a message without a mention awaits a decision, the transcript shows that smart scheduling is analyzing it. If the model call fails, the message shows “No model judgment” and the reason, and the host takes over.
17
18
 
18
19
  ## Providers, API keys, and pricing
19
20
 
@@ -42,15 +42,15 @@ Room work can run on several lines in parallel. Labels at the top of a card show
42
42
 
43
43
  New messages wait above the composer while the intended member or room is busy. They are sent when the recipient or room becomes available. Your answers on an answer card work the same way: while the member who asked is still busy, the answer is recorded, but the share for that member waits in the queue, marked “#N is posted; it goes to … once free”.
44
44
 
45
- - **Not waiting.** The button on a queued item says what it will do:
46
- - “Send now”: the recipient is free, so it goes at once.
47
- - “Steer”: the recipient is working and its software takes interjections, so this joins its current turn; it sees it right away and the work done so far stays.
48
- - “Interrupt and send”: the recipient is working and cannot take an interjection, so its turn is stopped first and it takes this together with the interrupted work.
49
- - When the recipient can neither take an interjection nor be stopped, the button stays “Send now”; selecting it explains why and the message stays queued.
45
+ - **Not waiting.** Select the arrow button on a queued item; hover over it to see what it will do:
46
+ - The recipient is free: it goes at once.
47
+ - 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.
48
+ - The recipient is working and cannot take an interjection: its turn is stopped first, and it takes this together with the interrupted work.
49
+ - The recipient can neither take an interjection nor be stopped: selecting it explains why and the message stays queued.
50
50
  - **Edit or delete.** In a queued, unsent item’s menu, select “Edit message” to return it to the composer for editing, or delete it.
51
51
  - **Reorder.** Drag queued items. On a phone, press and hold an item to move it.
52
52
  - **Pause and resume.** Selecting “Stop all” or stopping the service pauses the queue. It shows “Queue paused: you stopped the run”. Select “Continue” to resume. A failed message pauses the queue and shows the reason. Select “Retry”, edit, or delete the message to continue.
53
- - Queuing is always on and has no switch; to have a busy member take a message right away, use “Steer” or “Interrupt and send” on the queued item.
53
+ - Queuing is always on and has no switch; to have a busy member take a message right away, select the arrow button on the queued item.
54
54
 
55
55
  ### 4. Stop, retry, withdraw, edit, or rewind
56
56
 
@@ -14,6 +14,7 @@
14
14
  - 不生成长文本回答,不评价代码或方案对错,不自己改成员顺序、不另选评审者。
15
15
  - `@全体成员` 始终同时回答,`@全体依次` 始终按顺序回答,不经智能调度判断。
16
16
  - 置信度不够、输入超限或调用出错时,自动交回主持人处理。
17
+ 未点名消息在等待判断时显示“智能调度分析中”。如果模型调用失败,消息下方会显示“没有模型判断”和失败原因,随后由主持人处理。
17
18
 
18
19
  ## 供应商、密钥申请与计费
19
20
 
@@ -42,15 +42,15 @@
42
42
 
43
43
  成员正忙时,你发送的新消息会自动停留在输入框上方的排队区,等对应成员或房间空闲后自动发出。你在答题卡上的回答也一样:提问的成员还在忙时,回答已经记下,但交给它的那份留在排队区,写着“#N 已发出,等某某空闲后交给它”。
44
44
 
45
- - **不想等**:排队项右侧的按钮会写明点了之后会怎样:
46
- - “立即发送”:接收者空闲,马上发出。
47
- - “插话”:接收者正在执行、它的软件支持插话,这条会插进它这一轮,它当场就能看到,已做的工作不受影响。
48
- - “打断并发送”:接收者正在执行、不支持插话,先打断它这一轮,再连同被打断的工作和这条一起处理。
49
- - 接收者既不能插话也不能打断时,按钮仍是“立即发送”,点了会提示原因,消息继续排队。
45
+ - **不想等**:点排队项右侧的箭头按钮,悬停可看到点了之后会怎样:
46
+ - 接收者空闲:马上发出。
47
+ - 接收者正在执行、它的软件支持插话:这条插进它这一轮,它当场就能看到,已做的工作不受影响。
48
+ - 接收者正在执行、不支持插话:先打断它这一轮,再连同被打断的工作和这条一起处理。
49
+ - 接收者既不能插话也不能打断:点了会提示原因,消息继续排队。
50
50
  - **编辑与删除**:未发出的排队消息,在排队项菜单点“编辑消息”退回输入框修改,或点删除移除。
51
51
  - **调整顺序**:拖动排队项(手机上长按)调整发送顺序。
52
52
  - **暂停与继续**:点“全部停止”或停止运行时,队列暂停并显示“已暂停排队:你停止了运行”,点“继续”恢复发送。某条发出失败时会停住队列并显示原因,点“重试”、编辑或删除后队列继续。
53
- - 排队一直开着,没有开关;要让正忙的成员马上处理某条消息,用排队项上的“插话”或“打断并发送”。
53
+ - 排队一直开着,没有开关;要让正忙的成员马上处理某条消息,点排队项上的箭头按钮。
54
54
 
55
55
  ### 4. 停止、重试、撤回与编辑回退
56
56
 
@@ -810,6 +810,8 @@
810
810
  "其他改动 {count} 个文件": "{count} other changed files",
811
811
  "这次执行运行过命令,这些文件在执行期间有变化,但无法确认是它改的,也可能来自其他窗口或成员。": "This run used commands and these files changed meanwhile, but it can't be confirmed that it changed them. They may come from another window or member.",
812
812
  "打开文件 {value1}": "Open file {value1}",
813
+ "项目文件 · {path}": "Project file · {path}",
814
+ "在文件预览中打开 {value1}": "Open {value1} in the file preview",
813
815
  "调整文件预览宽度": "Resize file preview",
814
816
  "拖动调整文件预览宽度,也可使用左右方向键": "Drag to resize the file preview, or use the left and right arrow keys",
815
817
  "二进制文件": "Binary file",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -922,9 +922,13 @@ export class FreeRoomRunner {
922
922
  this.routing.add(request.id);
923
923
  const decision = this.mark_routing(request.message_id, true)
924
924
  .then(() => this.recommend(request, room, everyone))
925
- .catch(error => {
926
- if (!this.saved_suggestion(request.id)) this.save_suggestion(request, { action: 'host', actual_action: 'host',
927
- applied: false, model_judgment: false, reason: room_text("没有模型判断:{value1}", { value1: error.message }) });
925
+ .catch(async error => {
926
+ if (!this.saved_suggestion(request.id)) {
927
+ const reason = room_text("没有模型判断:{value1}", { value1: error.message.slice(0, 180) });
928
+ const record = await this.record_decision(request.message_id, {}, reason, false, { model_judgment: false });
929
+ this.save_suggestion(request, { action: 'host', actual_action: 'host', applied: false,
930
+ model_judgment: false, ...(record?.id ? { decision_id: record.id } : {}), reason });
931
+ }
928
932
  this.log(`智能调度 #${request.message_id} 未给出推荐:${error.message}`);
929
933
  })
930
934
  .finally(() => { this.routing.delete(request.id); return this.mark_routing(request.message_id, false); });