ai_co_discuss 0.5.38 → 0.5.39

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.
@@ -51,7 +51,7 @@ When viewing a project image through the relay on another device, supported imag
51
51
  - **Preview files.** Select a file to open its floating preview. Supported previews include plain text, code, rendered Markdown, static HTML with a source view, zoomable and rotatable images, audio and video with speed and full-screen controls, CSV tables, subtitle timelines (SRT, VTT, ASS, LRC), read-only Word, Excel, PowerPoint and PDF, Premiere project XML, and zip archives listed like a folder, where selecting a file inside opens it in a new tab. Images in Markdown display inline the way message images do; select one to zoom. Paths are accepted as common editors accept them: relative paths, project paths starting with `/`, absolute paths inside the room's project directories (such as `D:\Project\art\a.png` or `file:///D:/Project/art/a.png`), and web addresses. Files outside the room's project directories are not read. Images load as you scroll near them; landscape images fill the width and portrait images fit the window height. Other devices get a copy the computer compressed. Opening a ZIP attachment or project file loads the directory first. Select an entry to read it (up to 64 MiB), or choose “Download” to save the archive.
52
52
  - **Tabs, split view, and collapse.** Open multiple files and switch between tabs. Use the preview controls to split the view on the right or use “File location” to return to the containing folder. HTML previews also offer “Open in new tab”. Select “Collapse” in the title bar to keep the preview as a floating button in the corner. It restores the same file and scroll position when you return to the room. Close it to clear the preview.
53
53
  - **Quote and annotate.** Select text in a Markdown preview or a member’s answer and choose “Add to conversation”. Enter a note and press Enter. The source is marked with a number and the composer shows the number of notes. On a computer, open the notes list, choose “Edit annotation”, and drag the bottom-right corner of the editor to resize it. Sending the message adds a file path and line number, the member and message ID, or for a message attachment its message ID and attachment ID. An `@` inside a quote does not wake a member.
54
- - **Manage project files.** Select “Project” at the start of the path bar to open your projects and drafts. Use the top controls to create folders and upload files (up to 20 MB each). File menus offer “Download” (“Download folder” for a folder, packed as a ZIP), “Rename”, “Copy”, “Cut”, and “Delete”. Paste into the destination folder. Deleted files and replaced versions go to “Recycle bin” for 30 days, where they can be restored. In source view, the pencil button edits text files up to 1 MB. Project and draft roots, and folders currently used as room project directories, cannot be renamed, moved, or deleted.
54
+ - **Manage project files.** Select “Project” at the start of the path bar to open your projects and drafts. Use the top controls to create folders and upload files (up to 20 MB each). File menus offer “Download” (“Download folder” for a folder, packed as a ZIP), “Rename”, “Copy”, “Cut”, and “Delete”. Paste into the destination folder. Deleted files and replaced versions go to “Recycle bin” for 30 days, where they can be restored (“More actions” → “Recycle bin” at the top right; “Refresh” is there too, though the list refreshes itself). In source view, the pencil button edits text files up to 1 MB. Project and draft roots, and folders currently used as room project directories, cannot be renamed, moved, or deleted.
55
55
 
56
56
  ### 4. Send and view attachments
57
57
 
@@ -49,7 +49,7 @@
49
49
  - **预览文件**:点击文件打开悬浮预览,支持纯文本、代码、Markdown 渲染、HTML 静态渲染并可切换源码;图片可缩放、旋转;音视频带倍速与全屏直接播放;CSV 显示为表格,字幕(SRT、VTT、ASS、LRC)显示为时间轴;Word、Excel、PowerPoint 与 PDF 只读预览;Premiere 工程显示其 XML;zip 压缩包像文件夹一样列出其中的文件夹与文件,点击其中的文件在新标签中预览。Markdown 中的图片与消息里的图片显示方式相同,在正文中直接显示,点击可放大查看。支持常见编辑器的写法:相对路径、以 `/` 开头的项目内路径、房间项目目录内的绝对路径(如 `D:\项目\插图\a.png`、`file:///D:/项目/插图/a.png`)与网络地址;房间项目目录之外的文件不会读取。滚动到附近才载入,横图铺满宽度、竖图按窗口高度显示;在其他设备上看到的是电脑压缩过的版本。打开房间附件或项目中的 ZIP 时先显示目录,点包内文件才读取内容。单个文件最多预览 64 MiB,也可以点“下载”保存整个压缩包。
50
50
  - **多标签、分屏与收起**:可同时打开多个文件以标签切换,在预览栏切换为右侧分屏、或点“文件位置”回到所在文件夹。HTML 预览还可以“在新标签页打开”。点标题栏“收起”缩成内容区角落的悬浮按钮,切到其他房间后点它即可回到原文件与滚动位置,关闭才清空。
51
51
  - **摘录批注**:在 Markdown 预览或成员回答正文中选中文字点“添加到对话”,可输入批注并回车,原文标出编号,输入框上方显示“N 条注释”。在电脑上,打开注释列表,点“修改批注”,可拖动编辑框右下角调整宽高。发送时自动附带文件路径+行号、成员+消息编号,或消息附件所属的消息编号与附件 ID,引用中的 `@` 不会唤醒成员。
52
- - **整理文件**:点路径栏最前面的“项目”,可以打开你所有的项目和草稿。上方按钮用于新建文件夹和上传文件(单个不超过 20 MB);每行的菜单里有“下载”(文件夹为“下载文件夹”,打包成 ZIP)、“重命名”、“复制”、“剪切”、“删除”,复制或剪切后到目标文件夹点“粘贴”。删除的文件和被替换掉的旧版放进“回收区”,保留 30 天,可以还原。在源码视图点铅笔按钮可以编辑文本文件(不超过 1 MB)。项目、草稿文件夹本身,以及房间正在用作项目目录的文件夹,都不能改名、移动或删除。
52
+ - **整理文件**:点路径栏最前面的“项目”,可以打开你所有的项目和草稿。上方按钮用于新建文件夹和上传文件(单个不超过 20 MB);每行的菜单里有“下载”(文件夹为“下载文件夹”,打包成 ZIP)、“重命名”、“复制”、“剪切”、“删除”,复制或剪切后到目标文件夹点“粘贴”。删除的文件和被替换掉的旧版放进“回收区”,保留 30 天,可以还原(右上角“更多操作”→“回收区”;“刷新”也在这里,平时列表会自动刷新)。在源码视图点铅笔按钮可以编辑文本文件(不超过 1 MB)。项目、草稿文件夹本身,以及房间正在用作项目目录的文件夹,都不能改名、移动或删除。
53
53
 
54
54
  ### 4. 发送与查看附件
55
55
 
@@ -462,7 +462,7 @@
462
462
  "共议数据": "CoDiscuss data",
463
463
  "正在统计存储占用…": "Measuring storage usage…",
464
464
  "读取存储占用失败:{reason}": "Could not read storage usage: {reason}",
465
- "本机 .codiscuss 数据已占 {used}(不含语音模型),接近 {limit} 上限(预警线 {warn})。请及时清理临时文件或旧草稿。": "Local .codiscuss data uses {used}, excluding speech models. It is nearing the {limit} limit, with a warning threshold of {warn}. Clear temporary files or old drafts.",
465
+ "本机 .codiscuss 数据已占 {used},接近 {limit} 上限(预警线 {warn})。请及时清理临时文件或旧草稿。": "Local .codiscuss data uses {used} and is nearing the {limit} limit (warning at {warn}). Clear temporary files or old drafts.",
466
466
  "本机 .codiscuss 数据": "Local .codiscuss data",
467
467
  "{used} / {limit}": "{used} / {limit}",
468
468
  "超过 {limit} 文件上限": "File limit of {limit} exceeded",
@@ -487,7 +487,7 @@
487
487
  "已清理 {count} 个临时目录": "Cleared {count} temporary folders.",
488
488
  "存储上限通过定期采样检查(有执行时每 2 秒查磁盘余量、每 30 秒扫描占用),并非文件系统写入层硬拦截,无法保证磁盘绝不写满。": "Storage limits are enforced by periodic sampling (disk space every 2s and folder size every 30s while runs are active), not by a filesystem write-layer hard quota, so they cannot guarantee the drive will never fill.",
489
489
  "存储占用已超过上限或磁盘剩余空间低于安全线,新的派活已暂停。房间被拦截时请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 清理旧草稿,或清理下方临时文件;房间记录与附件需手动销毁旧房间。": "New runs are paused because storage exceeded a limit or disk free space fell below the safety reserve. While a room is blocked, run $codiscuss-draft-cleanup in an AI chat outside the room to clean old drafts, or clear temporary files below; room records and attachments are reclaimed by destroying old rooms.",
490
- "本机 .codiscuss 数据已占 {used}(不含语音模型),接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或清理临时文件。": "Local .codiscuss data uses {used} (excluding speech models), approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files.",
490
+ "本机 .codiscuss 数据已占 {used},接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或清理临时文件。": "Local .codiscuss data uses {used}, approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files.",
491
491
  "有 {count} 处目录或文件因权限无法读取(例如沙箱创建的目录),未计入配额,清理按钮也无法删除;磁盘安全线仍会保护系统盘。": "{count} folders or files could not be read due to permissions (such as sandbox-created directories). They are excluded from quotas and cannot be removed by the clean button; the disk safety reserve still protects the drive.",
492
492
  "{count} 处不可读": "{count} unreadable",
493
493
  "草稿合计 {draft} / {draft_limit} · 房间记录与附件 {local}(不含语音模型)": "Drafts {draft} / {draft_limit} · Room records & attachments {local} (excluding speech models)",
@@ -646,7 +646,7 @@
646
646
  "{count} 个文件 · {size}": "{count} files · {size}",
647
647
  "第 {version} 版 · {count} 个文件 · {size}": "Version {version} · {count} files · {size}",
648
648
  "{time} 到期": "expires {time}",
649
- "本机 .codiscuss 数据已占 {used}(不含语音模型),接近 {limit} 上限,请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或清理临时文件。": "Local .codiscuss data uses {used} (excluding speech models), approaching the {limit} limit. Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files.",
649
+ "本机 .codiscuss 数据已占 {used},接近 {limit} 上限,请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或清理临时文件。": "Local .codiscuss data uses {used}, approaching the {limit} limit. Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files.",
650
650
  "固定「{value1}」": "Pinning “{value1}”",
651
651
  "取消固定「{value1}」": "Unpinning “{value1}”"
652
652
  }
@@ -481,6 +481,7 @@
481
481
  "重新读取目录": "Reload folder",
482
482
  "此文件夹为空": "This folder is empty",
483
483
  "列表视图": "List view",
484
+ "返回文件夹": "Back to folder",
484
485
  "图标视图": "Icon view",
485
486
  "{value1} 项": "{value1} items",
486
487
  ",已显示 {value1} 项": "; {value1} shown",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai_co_discuss",
3
- "version": "0.5.38",
3
+ "version": "0.5.39",
4
4
  "bin": {
5
5
  "codiscuss": "runner/codiscuss.mjs"
6
6
  },
@@ -750,12 +750,12 @@ export default {
750
750
  "本房间草稿占用 {used},超过 {limit} 上限(目录 drafts/{room}),已停止派活。房间被拦截时请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 清理可重建副本,或在管理面板“存储”页清理临时文件。": "This room's drafts use {used}, exceeding the {limit} limit (folder drafts/{room}). Dispatching has stopped. While the room is blocked, run $codiscuss-draft-cleanup in an AI chat outside the room to remove rebuildable copies, or clear temporary files in the management panel Storage tab.",
751
751
  "全机草稿占用 {used},超过 {limit} 上限(目录 drafts/),已停止派活。请运行 $codiscuss-draft-cleanup 清理旧草稿后再继续。": "Total drafts use {used}, exceeding the {limit} limit (folder drafts/). Dispatching has stopped. Run $codiscuss-draft-cleanup to clean old drafts before continuing.",
752
752
  "全机草稿占用 {used},超过 {limit} 上限(目录 drafts/),已停止派活。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 清理旧草稿,或在管理面板“存储”页清理临时文件。": "Total drafts use {used}, exceeding the {limit} limit (folder drafts/). Dispatching has stopped. Run $codiscuss-draft-cleanup in an AI chat outside the room to clean old drafts, or clear temporary files in the management panel Storage tab.",
753
- "本机 .codiscuss 数据占用 {used}(不含语音模型),超过 {limit} 上限,已停止派活。请运行 $codiscuss-draft-cleanup 或 codiscuss service clean 清理旧草稿与旧房间后再继续。": "Local .codiscuss data uses {used} (excluding speech models), exceeding the {limit} limit. Dispatching has stopped. Run $codiscuss-draft-cleanup or codiscuss service clean to remove old drafts and rooms before continuing.",
754
- "本机 .codiscuss 数据占用 {used}(不含语音模型;草稿 {draft},房间记录与附件 {local}),超过 {limit} 上限,已停止派活。房间记录与附件不会自动删除,请先销毁不需要的旧房间;清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup。": "Local .codiscuss data uses {used} (excluding speech models; drafts {draft}, room records and attachments {local}), exceeding the {limit} limit. Dispatching has stopped. Room records and attachments are never deleted automatically—destroy old rooms you no longer need; to clean old drafts, run $codiscuss-draft-cleanup in an AI chat outside the room.",
755
- "本机 .codiscuss 数据占用 {used}(不含语音模型;草稿 {draft}),超过 {limit} 上限,已停止派活。清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup,或在管理面板“存储”页清理临时文件;若由房间记录与附件占满,请销毁旧房间。": "Local .codiscuss data uses {used} (excluding speech models; drafts {draft}), exceeding the {limit} limit. Dispatching has stopped. To clean old drafts, run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files in the management panel Storage tab; if room records and attachments fill the limit, destroy old rooms.",
756
- "本机 .codiscuss 数据已占 {used}(不含语音模型),接近 {limit} 上限(预警线 {warn})。建议运行 $codiscuss-draft-cleanup 或 codiscuss service clean 及时清理。": "Local .codiscuss data uses {used} (excluding speech models), approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup or codiscuss service clean to free space.",
757
- "本机 .codiscuss 数据已占 {used}(不含语音模型,另有 {unreadable} 处因权限无法读取未计入),接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。": "Local .codiscuss data uses {used} (excluding speech models; {unreadable} unreadable entries excluded), approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files in the management panel Storage tab.",
758
- "本机 .codiscuss 数据已占 {used}(不含语音模型),接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。": "Local .codiscuss data uses {used} (excluding speech models), approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files in the management panel Storage tab.",
753
+ "本机 .codiscuss 数据占用 {used},超过 {limit} 上限,已停止派活。请运行 $codiscuss-draft-cleanup 或 codiscuss service clean 清理旧草稿与旧房间后再继续。": "Local .codiscuss data uses {used}, exceeding the {limit} limit. Dispatching has stopped. Run $codiscuss-draft-cleanup or codiscuss service clean to remove old drafts and rooms before continuing.",
754
+ "本机 .codiscuss 数据占用 {used}(草稿 {draft},房间记录与附件 {local}),超过 {limit} 上限,已停止派活。房间记录与附件不会自动删除,请先销毁不需要的旧房间;清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup。": "Local .codiscuss data uses {used} (drafts {draft}, room records and attachments {local}), exceeding the {limit} limit. Dispatching has stopped. Room records and attachments are never deleted automatically—destroy old rooms you no longer need; to clean old drafts, run $codiscuss-draft-cleanup in an AI chat outside the room.",
755
+ "本机 .codiscuss 数据占用 {used}(草稿 {draft}),超过 {limit} 上限,已停止派活。清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup,或在管理面板“存储”页清理临时文件;若由房间记录与附件占满,请销毁旧房间。": "Local .codiscuss data uses {used} (drafts {draft}), exceeding the {limit} limit. Dispatching has stopped. To clean old drafts, run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files in the management panel Storage tab; if room records and attachments fill the limit, destroy old rooms.",
756
+ "本机 .codiscuss 数据已占 {used},接近 {limit} 上限(预警线 {warn})。建议运行 $codiscuss-draft-cleanup 或 codiscuss service clean 及时清理。": "Local .codiscuss data uses {used}, approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup or codiscuss service clean to free space.",
757
+ "本机 .codiscuss 数据已占 {used}(另有 {unreadable} 处因权限无法读取未计入),接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。": "Local .codiscuss data uses {used} ({unreadable} unreadable entries excluded), approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files in the management panel Storage tab.",
758
+ "本机 .codiscuss 数据已占 {used},接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。": "Local .codiscuss data uses {used}, approaching the {limit} limit (warning at {warn}). Run $codiscuss-draft-cleanup in an AI chat outside the room or clear temporary files in the management panel Storage tab.",
759
759
  "磁盘余量下降后复扫发现不可读项增至 {count} 处,已暂停派活,下次扫描将重新判断。": "After free disk space dropped, the number of unreadable entries rose to {count}. Dispatch is paused until the next scan reassesses usage.",
760
760
  "本房间草稿已用 {used}(上限 {limit}),达到 80%,已暂停向无法确认可停止的成员派活。请先清理本房间草稿。": "Room drafts use {used} of {limit}, reaching the 80% threshold. New runs without confirmed stop support are paused. Clear room drafts first.",
761
761
  "无法检查本机存储与磁盘空间,已暂停派活({reason})。请检查 .codiscuss 目录权限或稍后重试。": "Could not check local storage or disk space; dispatching is paused ({reason}). Check permissions on .codiscuss or retry shortly.",
@@ -358,10 +358,10 @@ export function block_reason(snapshot, room_key = '', disk = null, options = {})
358
358
  if (Number(snapshot.total_bytes || 0) > home_limit) {
359
359
  const local_bytes = Number(snapshot.local_bytes || 0);
360
360
  if (local_bytes > 0) {
361
- return t('本机 .codiscuss 数据占用 {used}(不含语音模型;草稿 {draft},房间记录与附件 {local}),超过 {limit} 上限,已停止派活。房间记录与附件不会自动删除,请先销毁不需要的旧房间;清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup。',
361
+ return t('本机 .codiscuss 数据占用 {used}(草稿 {draft},房间记录与附件 {local}),超过 {limit} 上限,已停止派活。房间记录与附件不会自动删除,请先销毁不需要的旧房间;清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup。',
362
362
  { used: format_bytes(snapshot.total_bytes), draft: format_bytes(snapshot.draft_bytes), local: format_bytes(local_bytes), limit: format_bytes(home_limit) }, locale);
363
363
  }
364
- return t('本机 .codiscuss 数据占用 {used}(不含语音模型;草稿 {draft}),超过 {limit} 上限,已停止派活。清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup,或在管理面板“存储”页清理临时文件;若由房间记录与附件占满,请销毁旧房间。',
364
+ return t('本机 .codiscuss 数据占用 {used}(草稿 {draft}),超过 {limit} 上限,已停止派活。清理旧草稿请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup,或在管理面板“存储”页清理临时文件;若由房间记录与附件占满,请销毁旧房间。',
365
365
  { used: format_bytes(snapshot.total_bytes), draft: format_bytes(snapshot.draft_bytes), limit: format_bytes(home_limit) }, locale);
366
366
  }
367
367
  if (snapshot.uncertain_growth && !options.running) {
@@ -387,10 +387,10 @@ export function warn_reason(snapshot, options = {}) {
387
387
  if (!snapshot || Number(snapshot.total_bytes || 0) < home_warn) return '';
388
388
  const unreadable = Number(snapshot.unreadable || 0);
389
389
  if (unreadable > 0) {
390
- return t('本机 .codiscuss 数据已占 {used}(不含语音模型,另有 {unreadable} 处因权限无法读取未计入),接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。',
390
+ return t('本机 .codiscuss 数据已占 {used}(另有 {unreadable} 处因权限无法读取未计入),接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。',
391
391
  { used: format_bytes(snapshot.total_bytes), unreadable, limit: format_bytes(home_limit), warn: format_bytes(home_warn) }, locale);
392
392
  }
393
- return t('本机 .codiscuss 数据已占 {used}(不含语音模型),接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。',
393
+ return t('本机 .codiscuss 数据已占 {used},接近 {limit} 上限(预警线 {warn})。请在房间外的 AI 对话中运行 $codiscuss-draft-cleanup 或在管理面板“存储”页清理临时文件。',
394
394
  { used: format_bytes(snapshot.total_bytes), limit: format_bytes(home_limit), warn: format_bytes(home_warn) }, locale);
395
395
  }
396
396