ai_co_discuss 0.3.95 → 0.3.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.3.95",
3
+ "version": "0.3.96",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -48,7 +48,7 @@ export const REVIEW_PROMPT_VERSION = 1;
48
48
  export const REVIEW_CONFIDENCE = 0.85;
49
49
  export const MAX_REVIEW_INPUT = 60000;
50
50
  /** A loop's checkpoint: another pass costs every member a run, so going on needs the review threshold; ending only wakes the host. */
51
- export const SEQUENCE_PROMPT_VERSION = 2;
51
+ export const SEQUENCE_PROMPT_VERSION = 3;
52
52
  export const SEQUENCE_CONFIDENCE = 0.85;
53
53
  const HOST_CHOICE = '__host__';
54
54
  const NOTE_CHOICE = '__note__';
@@ -409,8 +409,10 @@ export async function decide_sequence_checkpoint(home, scheduler, sequence, fetc
409
409
  const group = lasts.length > 1;
410
410
  const questions = [{ type: 'choice', name: 'checkpoint',
411
411
  instructions: `主持人安排成员按固定顺序(${sequence.order.map(step_name).join(' → ')})循环接力,第 ${sequence.pass} 圈已走完。根据本圈最后一${group ? '棒(' : '位('}${last.member}${group ? ',同时完成' : ''})回答里表达的结论,判断是否按主持人的安排再走一圈。只识别回答表达的结论,不自行评价工作质量,不选择成员,不改变顺序。`, choices: [
412
- { value: 'continue', description: `再走一圈:${last.member}${group ? ' 中任一位' : ''} 明确要求返工,或指出必须修改后才能采用的问题,下一圈由 ${first} 按这些意见修改` },
413
- { value: HOST_CHOICE, description: `交给主持人:${last.member}${group ? ' 都' : ''} 认可当前结果,或只剩可以不采纳的建议;需要主持人或用户裁定取舍;成员之间有分歧;回答没有明确结论` }] }];
412
+ { value: 'continue', description: `再走一圈:${last.member}${group ? ' 中任一位' : ''} 明确要求返工,或指出必须修改后才能采用的问题${group ? ',且没有人要求主持人或用户裁定' : ''},下一圈由 ${first} 按这些意见修改` },
413
+ { value: HOST_CHOICE, description: group
414
+ ? `交给主持人:${last.member} 中任一位要求主持人或用户裁定(即使另一位要求返工);都认可当前结果,或只剩可以不采纳的建议;成员之间有分歧;回答没有明确结论`
415
+ : `交给主持人:${last.member} 认可当前结果,或只剩可以不采纳的建议;需要主持人或用户裁定取舍;成员之间有分歧;回答没有明确结论` }] }];
414
416
  const state = JSON.stringify({ arrangement: sequence.origin, order: sequence.order, pass: sequence.pass,
415
417
  answers: answers_of_pass.map(({ member, text }) => ({ member, text })) });
416
418
  if (JSON.stringify({ state, questions }).length > MAX_REVIEW_INPUT) return fallback('本圈回答原文超过 60000 字符,交给主持人');