ai_co_discuss 0.3.61 → 0.3.63

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.61",
3
+ "version": "0.3.63",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -30,7 +30,7 @@ export const ROUTE_PROMPT_VERSION = 14;
30
30
  export const SCHEDULER_MODES = { guided: '引导(试验)', stable: '稳定' };
31
31
  export const DEFAULT_SCHEDULER_MODE = 'guided';
32
32
  /** The guided wording has its own version, so its ratings are never mixed with the stable checklist's. */
33
- export const ROUTE_GUIDED_PROMPT_VERSION = 9;
33
+ export const ROUTE_GUIDED_PROMPT_VERSION = 10;
34
34
  /** The routing prompt version that a decision in this mode was made with. */
35
35
  export function route_prompt_version(mode) {
36
36
  return mode === 'stable' ? ROUTE_PROMPT_VERSION : ROUTE_GUIDED_PROMPT_VERSION;
@@ -225,7 +225,7 @@ const ROUTE_GUIDED_GUIDE = ['这是 AI CoDiscuss 的协作房间。用户是房
225
225
  const ROUTE_GUIDED_STEM = '用户发来上面这条消息,没有 @ 任何人。请你像熟悉这个房间的成员一样读懂它:用户想让谁来回应?'
226
226
  + '用户心里已经有明确的对象时,直接交给对方,省掉主持人转一手的时间;需要有人先理解、拆分或协调时交给主持人。'
227
227
  + '用户想听每个人各自说一句时,交给全体能让大家同时开始,比主持人逐个点名快得多;但大家看不到彼此的回答。每人只需按顺序接着前一位说一次时,交给全体依次回应;需要互相接话、讨论的事仍要主持人安排。用户只是表示收到或感谢时,不必唤醒任何人。'
228
- + '两种容易看错的情况:向在场的各位问好,是在等每个人回一声,和只对房间说一句“hi”不同;用户问“谁是……”“谁能……”时是在找符合条件的人,只需要符合的人出来回应(哪怕说“自己说一下”),成员信息里(含主持人)只有一位符合就交给他。';
228
+ + '两种容易看错的情况:用“你们”“大家”“各位”这类指所有人的称呼问好,是在等每个人回一声,和不带称呼地对房间说一句“hi”“你好”不同;用户问“谁是……”“谁能……”时是在找符合条件的人,只需要符合的人出来回应(哪怕说“自己说一下”),成员信息里(含主持人)只有一位符合就交给他。';
229
229
 
230
230
  /** The routing question in one mode: option texts, the stem, and what the state adds about the members. */
231
231
  /** Every group of two or more among the members the text names, so "these few each answer" is one choice. */
package/web/app.js CHANGED
@@ -59,8 +59,9 @@ const RELAY_CIPHER_INFO = "codiscuss-relay-v1";
59
59
  const RELAY_PROTOCOL = "codiscuss-relay";
60
60
  const RELAY_PING_MS = 25000;
61
61
  const ROOM_RELAY_PATH = /^\/api\/(rooms|folders|revisions)(\/|\?|$)/;
62
- // One part of a file sent to the computer stays well inside the relay's 1 MiB frame once encoded and encrypted.
63
- const RELAY_UPLOAD_PART_BYTES = 384 * 1024;
62
+ // One part is base64-encoded, encrypted and base64-encoded again (about 16/9 of its size), and the sealed request
63
+ // must stay inside the hosted site's 512 KiB request limit (backend/worker.mjs MAX_BODY_BYTES).
64
+ const RELAY_UPLOAD_PART_BYTES = 256 * 1024;
64
65
  const COMPUTER_UNREACHABLE = "电脑未连接:请先与电脑配对,并确认电脑开机且运行 codiscuss";
65
66
  let local_connection = null;
66
67
  let computer_connecting = false;