ai_co_discuss 0.5.53 → 0.5.55
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/.agents/steward-skills/moss-core/SKILL.md +1 -1
- package/docs/en/guide/members.md +3 -3
- package/docs/en/guide/rooms.md +2 -2
- package/docs/en/guide/steward.md +2 -2
- package/docs/en/guide/workflows.md +1 -1
- package/docs/guide/members.md +3 -3
- package/docs/guide/rooms.md +2 -2
- package/docs/guide/steward.md +2 -2
- package/docs/guide/workflows.md +1 -1
- package/frontend/locales/en/app.json +3 -1
- package/frontend/locales/en/core.json +1 -0
- package/frontend/locales/en/steward.json +2 -0
- package/package.json +1 -1
- package/runner/adapters/antigravity_cli.mjs +6 -4
- package/runner/discussion_service.mjs +5 -3
- package/runner/free_runner.mjs +7 -21
- package/web/admin.js +1 -1
- package/web/app.js +3 -2
- package/web/guest.js +1 -1
- package/web/i18n.js +2 -2
- package/web/modern.css +1 -1
- package/web/modern.js +61 -61
|
@@ -7,7 +7,7 @@ description: "MOSS 每次任务的房间职责、权限与跨房操作约定。R
|
|
|
7
7
|
|
|
8
8
|
1. **按顺序自动分流。** 决定在哪做后直接执行,不为分流本身先问。以下顺序不改变各项操作原有的确认要求。
|
|
9
9
|
- 安装、部署、配置、盘点、查状态、答疑等平台事务,在主对话处理。
|
|
10
|
-
- 要改项目文件或需要多位 AI
|
|
10
|
+
- 要改项目文件或需要多位 AI 时,只有在接续某个已有项目房间正在做或刚做完的工作(如对它刚交付的结果再改一处),或用户点名该房间时,才用 `room-post` 交给它;其他新任务一律新建项目房间,`--cwd` 选同一项目。拿不准时新建(无关任务混进已有房间会污染它的会话与记录,且不挂在 MOSS 下)。
|
|
11
11
|
- 其余事项,用户明说“开个任务”或“后台做完回我”时,直接开任务房间。用户没明说时,只有同时需要可单独验收的成品、且交付前须重新查找和交叉核对多份原始材料,才开任务房间。
|
|
12
12
|
- 都不满足或拿不准时,在主对话处理。
|
|
13
13
|
- 分出去后告知放在哪个房间、做完会回报、想在这里做就说一声。用户明确说“在这里做”时,改在主对话办,不因此自动存档子房间。
|
package/docs/en/guide/members.md
CHANGED
|
@@ -47,10 +47,10 @@ Use “History” to bring context from an existing local AI conversation into a
|
|
|
47
47
|
## See context and usage limits
|
|
48
48
|
|
|
49
49
|
- **Context.** It belongs to each member's own session. After each run, the room records how much of it is in use, shown as a thin progress bar with a percentage, fuller as more is used: grey normally, amber from 80% and red from 95% (software usually compacts before it is full) (rings only ever mean account limits, so a bar is always context): at the end of the member's status line in the right sidebar's speaking order, on the “Context” row at the end of each member card on **Members and settings**, and under the private chat's input box. It is not shown on a working card, since it is read only after a run ends. Click the bar to see the tokens used against the window size. When the window size is unknown the bar is a dashed line with no percentage and the details say “489K used, window size unknown”.
|
|
50
|
-
- **Account usage limits.** How much of the 5-hour, 7-day or other windows is used and when each resets; a prepaid model API shows its balance. Limits belong to an account, so several members of one software show it once: the right end of the grey line under the message box keeps up to 3 pinned lines, the windows named once and each account given two figures (such as “5h / 7d Claude 65% / 33% Codex ∞ / 45% Gemini ∞ / 5%”; a model group shows by its group name; ∞ where there is no such limit, — where nothing was read yet). Clicking it opens a table with one line per account: 5h and 7d as the share used and reset time over a thin bar, and
|
|
50
|
+
- **Account usage limits.** How much of the 5-hour, 7-day or other windows is used and when each resets; a prepaid model API shows its balance. Limits belong to an account, so several members of one software show it once: the right end of the grey line under the message box keeps up to 3 pinned lines, the windows named once and each account given two figures (such as “5h / 7d Claude 65% / 33% Codex ∞ / 45% Gemini ∞ / 5%”; a model group shows by its group name; ∞ where there is no such limit, — where nothing was read yet). Clicking it opens a table with one line per account: 5h and 7d as the share used and reset time over a thin bar, and, under the name, how long ago it was read once that is over an hour. Drag the handle on each line to reorder; the first 3 lines are the ones shown under the message box (those below the dashed rule are not), one order for every room and device. The send and new-line keys appear when you point at the send button. A member's line carries no limit figures, only “Limit running low” from 80% and “Limit used up · back at 14:00” once used up. Phones hide that grey line, and on tablets or narrow windows the limits leave it too; instead a button sits beside the paper clip in the message box with a pair of rings for each of the first 3 lines in the panel, in the same order (an account with only a balance gets none): the outer ring is 7 days and the inner ring 5 hours, green while there is room, amber from 80% and red when used up, dashed where there is no such limit. A small dot appears when an account not shown runs low. Tap it for the full table. When creating a room or inviting a member, the front of the member card has a “Usage limits” row to help choose the software. A group with a 7-day window but no 5-hour one shows “5h no limit”.
|
|
51
51
|
- **Token usage.** At the end of the answer card's “Process” row (or a “Usage” row of its own when there is none), the tokens that turn took are given; click it for the cache hit rate and the uncached input, cache reads, cache writes and output.
|
|
52
|
-
- **Colours.** The bar and the limit rings are green while there is room, amber from 80% and red at 100%, since the next task would fail. A reading older than
|
|
53
|
-
- **Where the readings come from.**
|
|
52
|
+
- **Colours.** The bar and the limit rings are green while there is room, amber from 80% and red at 100%, since the next task would fail. A reading older than an hour says how long ago it was read in its details.
|
|
53
|
+
- **Where the readings come from.** Limits are read only after a member finishes a turn, never on a timer in the background: Claude Code and Codex bring theirs back while they run, and Antigravity CLI and DeepSeek are read once after their member's turn (after a failed agy read, not again for 6 hours, because agy may open a sign-in page when the network drops). So a software not used for a while shows an older reading. When a Claude Code error says one model's own limit (such as Fable) is used up, the table gains a line for that model, shown as used up with the reset time the error gave, and it leaves by itself at that time; only members on that model show “Limit used up”. All of this comes from Claude Code's own error text, without reading its sign-in credentials, so that model's usage is not visible before it runs out. Claude Code does not report its context window; past 200K it is counted against 1M, otherwise only the tokens used are shown. Among model APIs, only DeepSeek's official address reports a balance; other APIs and app connections show no limits. The host can read the same values in the room state and use them when handing out work.
|
|
54
54
|
|
|
55
55
|
## Set the host, pause participation, invite back, or remove
|
|
56
56
|
|
package/docs/en/guide/rooms.md
CHANGED
|
@@ -31,7 +31,7 @@ Rooms created by a host inherit its folder. Select the arrow to the left of the
|
|
|
31
31
|
|
|
32
32
|
- **Sort rooms.** Open the directory options in the top-right corner. Choose “Manual order” (drag items or use the arrow keys) or “Recent activity”. Existing rooms reorder when the pointer and keyboard focus are both outside the directory. New rooms still appear at the top of their group immediately.
|
|
33
33
|
- On desktop, room tabs leave the center width unchanged while the right panel is open. During an active or paused discussion, select “Host brief” to read it without moving the room content.
|
|
34
|
-
- **Folders.** Select “New folder” to group rooms by project. A folder can have a default project directory, which is used for new rooms created inside it. Its menu offers “Edit”, “Move up”, “Move down”, “Archive folder”, and “Remove folder”. You can remove just the folder or delete its rooms as well.
|
|
34
|
+
- **Folders.** Select “New folder” next to the “Rooms” heading (on phones, the top item of the “…” menu there) to group rooms by project. A folder can have a default project directory, which is used for new rooms created inside it. Its menu offers “Edit”, “Move up”, “Move down”, “Archive folder”, and “Remove folder”. You can remove just the folder or delete its rooms as well.
|
|
35
35
|
- **Child rooms.** A room the host creates stays in the current folder, nested under its parent room. Select the arrow left of the parent’s title to expand or collapse it. A child room moved to another folder, or whose parent is archived or destroyed, is listed on its own. To keep a child room in the same folder but list it like an ordinary room, open its menu and select “Make standalone room”. The link between the two rooms is kept, and “Nest under parent room” puts it back.
|
|
36
36
|
- **Room actions.** Open a room’s menu to “Rename”, “Share” (with “Share room”, “Copy share link”, “Revoke share link”, and “Export conversation”), “Move to folder”, “Pin room”, “Archive room”, or “Destroy room”. To show an archive button when hovering a room on desktop, set “Settings → Appearance → Archive button in room list” to “Show on hover” (the default is “Menu only”). To reorder rooms, drag the handle on the left of a room. On a phone, selecting “Archive room” closes the menu and keeps the sidebar open. Continue organizing rooms or tap “Undo” in the notification. “Rename” turns the name into a text box in place: press Enter or click elsewhere to save, or Esc to cancel. On desktop, you can also double-click a room name in the sidebar. Use the panel icon at the right of the header to open or close the room panel.
|
|
37
37
|
- **Pin a room.** Select “Pin room” in the room’s menu. A pin appears after its name and message count; it keeps its place (it is not moved to the top). A pinned room cannot be archived or destroyed, is never auto-destroyed, and is skipped by “Archive folder”. Select “Unpin” to undo.
|
|
@@ -67,7 +67,7 @@ When viewing a project image through the relay on another device, supported imag
|
|
|
67
67
|
- **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.
|
|
68
68
|
- **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.
|
|
69
69
|
- **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 (subject to the administrator’s limit, 50 MiB by default). File menus offer “Download” (“Download folder” for a folder, packed as a ZIP), “Rename”, “Copy”, “Cut”, and “Delete”. Paste into the destination folder. Project files have no recycle bin: deleting asks for confirmation first, saying the files cannot be recovered, and then deletes them for good; choosing “Replace” when pasting, uploading, or retrieving a file from the cloud overwrites the existing item without keeping the old version. The “Recycle bin” button (a restore-box icon with its name) at the top right is the cloud space’s recycle bin and has nothing to do with project files. “Refresh” is under “More actions”, though the list refreshes itself. In source view, the pencil button edits text files up to 1 MB. Folders in use by a room cannot be renamed, moved, or deleted. You can permanently delete an entire draft or hosted project from the project list only if it is marked as deletable and no room uses it.
|
|
70
|
-
- **Select several items.** In a project folder and in the cloud space,
|
|
70
|
+
- **Select several items.** In a project folder and in the cloud space, choose “Select” in “More actions” to start selecting, or in a project folder long-press (right-click on a computer) an item and choose “Select” to start with that item checked. A checkbox then appears at the left of every row (at the top left of a tile in icon view), and the checkbox in the column header selects everything in the current folder; on a phone, tapping an item checks it instead of opening it. With a mouse, pointing at an item shows its checkbox, and checking it starts selecting; clicking a name always opens it. While selecting, the path bar is replaced by an action bar: “N selected” on the left and, on the right, “Download”, “Move”, “Delete”, and “Done” (in the cloud recycle bin: “Restore”, “Move”, “Delete permanently”, and “Done”). These buttons are greyed out until something is checked; buttons that do not apply are greyed out, and hovering explains why: for example, folders cannot be downloaded in a batch, at most 20 files can be downloaded at a time, and temporary files in the cloud space cannot be moved. Files download one at a time, and away from the computer large files still go through the cloud space. In a project, “Move” cuts the items for “Paste” in the target folder; in the cloud space, it opens the folder picker. In a project, deleting asks for confirmation first (cancelling keeps the selection) and then deletes for good; the cloud space follows the same rules as deleting one item. Batch downloads and deletions show their progress in the transfer list; if some items fail, a notice at the bottom right lists them, and the items already done stay done. “Done”, finishing an action, or changing folders or tabs ends selecting and clears the checks. Read-only folders and the project list cannot be selected from.
|
|
71
71
|
|
|
72
72
|
### 4. Send and view attachments
|
|
73
73
|
|
package/docs/en/guide/steward.md
CHANGED
|
@@ -16,7 +16,7 @@ MOSS (formerly Platform steward) is a local AI that handles platform tasks, answ
|
|
|
16
16
|
|
|
17
17
|
## Where MOSS handles your task
|
|
18
18
|
|
|
19
|
-
MOSS chooses where to handle a task without asking you to approve the routing. Platform tasks such as installation, setup, and status checks stay in the main conversation. Work that edits project files or needs several AI members goes to
|
|
19
|
+
MOSS chooses where to handle a task without asking you to approve the routing. Platform tasks such as installation, setup, and status checks stay in the main conversation. Work that edits project files or needs several AI members goes to an existing project room only when it continues what that room is doing or just finished, or when you name the room; any other new task gets a new project room. For other work, say “start a task” or “work on this in the background and get back to me,” and MOSS opens a single-member task room. If you do not ask explicitly, it only opens one when the work needs both a standalone deliverable and a fresh search and cross-check of multiple original sources. If the choice is unclear, MOSS works in the main conversation. If it hands work off, it gives you the room link. To bring the work back, tell MOSS to “do it here.”
|
|
20
20
|
|
|
21
21
|
- Project rooms use your saved “New room” defaults for the host, members, and host permissions. Member project access is read-only if unset and capped at “Can write.” “Automatic” and “Full access” both become “Can write.” The new host cannot create more rooms. To use a project directory, add it to “Saved projects” and tell MOSS which one to use. Without one, it is still a project room, but uses a draft workspace. A room marked “Task” starts a fresh session with one member using the same AI app and model as MOSS. It can write only to the draft workspace and has no host permissions.
|
|
22
22
|
- When asking MOSS to create a room, you can name an existing folder. MOSS can also choose an existing folder if the room clearly belongs there. If it is unsure, the room appears under “Uncategorized.” Rooms are not automatically grouped by project directory. MOSS tells you where it put the room.
|
|
@@ -33,7 +33,7 @@ Tasks MOSS sends to its own child rooms appear on the handoff card. “Completed
|
|
|
33
33
|
- **Private chat**: your direct messages across linked channels arrive here, and answers go back to the original channel. A quoted reply to a proactive report goes to the Steward window. A quoted reply to another room's notice goes to that room. The Steward and Private chat windows have separate new messages, AI sessions, and settings. Older history stays where it is.
|
|
34
34
|
- **Group**: each enabled group has its own window. You can read the record on the website but cannot send a message to the group from it. On a phone, the top row of the header is a tab for each window; swipe sideways to switch, and a group waiting on you has a brighter dot. To see each window’s latest message and today’s usage, choose “All windows” at the end of the filter button’s menu at the top right, or press and hold any tab.
|
|
35
35
|
|
|
36
|
-
Private chat is read-only by default and can be set to “Automatic” independently. It can create rooms and pass messages between them. Platform skills are not listed, and the CLI blocks platform-changing commands. If you raise access, the local process may still be able to call local interfaces or edit configuration files directly. Use the Steward window for platform changes. Private chat restrictions are not a local sandbox.
|
|
36
|
+
The first time you click “Private chat” on the website, choose its software, model, and effort, then click “Start conversation”; after that, private messages from your channels go straight to this window. If a channel message arrives before private chat has software, MOSS replies with a link that opens this same page. Private chat is read-only by default and can be set to “Automatic” independently. It can create rooms and pass messages between them. Platform skills are not listed, and the CLI blocks platform-changing commands. If you raise access, the local process may still be able to call local interfaces or edit configuration files directly. Use the Steward window for platform changes. Private chat restrictions are not a local sandbox.
|
|
37
37
|
|
|
38
38
|
There is no separate acknowledgment for successful direct messages. You’ll see a notice if a message is queued, MOSS isn’t configured, or delivery fails. Replies are split to fit the channel’s message limit. Above three messages, MOSS sends an overview and a web link.
|
|
39
39
|
|
|
@@ -34,7 +34,7 @@ Select “Workflows” at the top of the sidebar to open its own page. Use “Ne
|
|
|
34
34
|
|
|
35
35
|
- **Ask the host in a room:** Enable “Full host control,” then describe the division of work you want. You can also type / and choose “Create / edit workflow” under platform skills. The host uses the skill to create SKILL.md, role cards, and a canvas, validates them, saves, and enables the workflow. By default, it saves to the room’s main project when there is one, or to the global library otherwise. Ask the host to save it globally if you plan to reuse it across projects.
|
|
36
36
|
- **Ask an AI in an external session:** In a Claude Code or Codex session with the CoDiscuss skills installed, ask it to create or edit a workflow with workflow-creator. It validates a folder with codiscuss launch workflow-check --dir <directory>. After you approve, it saves the workflow with codiscuss launch workflow-save --dir <directory>. If the library already has that ID, the save is refused unless it explicitly overwrites (--overwrite) or names the revision it read (--revision). For a project workflow, pass `--scope project --project <folder>` when validating and saving.
|
|
37
|
-
- **Where workflows are stored.** Global workflows are available across projects and live in `~/.codiscuss/workflows/<id>/`. A project workflow lives in `<project-root>/.codiscuss/workflows/<id>/` and is available in rooms that use that project folder. The Workflows page has filters at the top: “All”, “Global”, and each saved project that has workflows. Each card shows a thumbnail of the canvas, the name, description, avatars for the software its experts use, sub-workflows, status, and where it belongs (“Global” or the project name). Hover over the avatars for the total expert count, including sub-workflows. Use the card menu to rename, disable, delete, export, move, or copy the workflow where applicable.
|
|
37
|
+
- **Where workflows are stored.** Global workflows are available across projects and live in `~/.codiscuss/workflows/<id>/`. A project workflow lives in `<project-root>/.codiscuss/workflows/<id>/` and is available in rooms that use that project folder. The Workflows page has filters at the top: “All”, “Global”, and each saved project that has workflows. Each card shows a thumbnail of the canvas, the name, description, avatars for the software its experts use, sub-workflows, status, and where it belongs (“Global” or the project name). Hover over the avatars for the total expert count, including sub-workflows. Use the card menu to rename, disable, delete, export, move, or copy the workflow where applicable. The button left of “New” switches between card view and list view; list view shows one row per workflow without thumbnails, and the browser remembers your choice.
|
|
38
38
|
- **Choose where to save.** Select “New” or “Import,” then choose the global library or a project. On desktop, a scope button at the right of the editor’s top bar shows “Global” or “Project · name”: open it to change where an unsaved workflow is saved; once saved it stays greyed, and a read-only project shows a lock icon. You can open workflows from read-only projects and copy them to the global library.
|
|
39
39
|
- **Move, copy, or export.** Open the project workflow’s “…” menu and choose “Move to global” or “Copy to global”. Moving requires a writable source, updates the current room’s binding, and is refused if the global library already has the same ID. Copying keeps the original. Use “Copy to current project” to copy a global workflow when there is one writable project. If several are writable, choose the matching “Copy to project ‘name’” action. Choose “Export” to download a ZIP. The export notice lists files skipped because they were too large or were not text.
|
|
40
40
|
|
package/docs/guide/members.md
CHANGED
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
## 查看上下文与额度
|
|
48
48
|
|
|
49
49
|
- **上下文**:属于每位成员自己的会话。成员每做完一轮,房间记下它的上下文已用多少,用一条横向细进度条加百分比表示,用得越多填得越满,平时是灰色,到 80% 变琥珀色、95% 变红(软件通常在填满前会自动压缩)(圆环只用来表示账号额度,看到进度条就是上下文)。进度条出现在右栏发言顺序每位成员状态行的右端、“成员与设置”每张成员卡末尾的“上下文”一行,以及私聊页输入框下方。正在工作的卡片上不显示,因为读数是一轮结束后才读取的。点一下进度条可以看到已用 / 窗口大小的 token 数。读不到窗口大小时画一条虚线、不写百分比,详情里写“已用 489K,窗口大小未知”。
|
|
50
|
-
- **账号额度**:5 小时、7 天等时间窗用了多少、什么时候重置;预付费的模型 API 显示余额。额度属于账号,同一软件有多位成员也只显示一次:输入框下方那行灰字的右端常驻最多 3 行,开头写一次“5h / 7d”,每家写两个数(如“5h / 7d Claude 65% / 33% Codex ∞ / 45% Gemini ∞ / 5%”;按模型分组的账号只写组名,没有该限额写 ∞,还没读到写 —)。点开是一张额度表,每个账号一行:5h、7d 两列写已用比例和重置时间,下方一条细进度条;读数超过
|
|
50
|
+
- **账号额度**:5 小时、7 天等时间窗用了多少、什么时候重置;预付费的模型 API 显示余额。额度属于账号,同一软件有多位成员也只显示一次:输入框下方那行灰字的右端常驻最多 3 行,开头写一次“5h / 7d”,每家写两个数(如“5h / 7d Claude 65% / 33% Codex ∞ / 45% Gemini ∞ / 5%”;按模型分组的账号只写组名,没有该限额写 ∞,还没读到写 —)。点开是一张额度表,每个账号一行:5h、7d 两列写已用比例和重置时间,下方一条细进度条;读数超过 1 小时时名字下方写“× 分钟前读取”。拖动每行左边的手柄排序,排在前 3 行的就是常驻在输入框下方的(虚线以下不常驻),所有房间和设备共用这份顺序。发送和换行的快捷键在鼠标悬停发送按钮时显示。成员行上不写额度数字,只在账号到 80% 时写“额度紧张”,用完时写“额度已用尽 · 14:00 恢复”。手机上那行灰字隐藏,平板或较窄的窗口里额度也不放在这一行,都改为输入框里回形针右边的一组双层圆环:额度表前 3 行的账号各一个、按同样顺序排列(只有余额的账号不画),外圈是 7 天、内圈是 5 小时,绿色表示还有余量,到 80% 变琥珀色,用完变红;没有该项限额时是虚线圈。没画出的账号告急时右上角会多一个小色点。点一下打开完整的额度表。新建房间和邀请成员时,成员卡正面有“额度”一行,方便选软件。账号某组有 7 天窗口、没有 5 小时窗口时写“5h 不限”。
|
|
51
51
|
- **Token 用量**:回答卡底部“过程说明”那一行末尾写这一轮用了多少 token(没有过程说明时单独一行“用量”),点开可以看缓存命中率,以及未缓存输入、缓存读取、缓存写入和输出的明细。
|
|
52
|
-
- **颜色**:进度条和额度圆环有余量时是绿色,用到 80% 变琥珀色,用完(100%)变红,因为再派活必然失败。读数超过
|
|
53
|
-
-
|
|
52
|
+
- **颜色**:进度条和额度圆环有余量时是绿色,用到 80% 变琥珀色,用完(100%)变红,因为再派活必然失败。读数超过 1 小时时,详情里会写“× 分钟前读取”。
|
|
53
|
+
- **数据从哪来**:额度只在成员干完一轮活之后读取,不在后台定时去查:Claude Code 和 Codex 的额度在它们执行时顺带带回,Antigravity CLI 和 DeepSeek 在它们的成员干完活后各读一次(agy 读取失败后 6 小时内不再读,因为 agy 在网络中断时可能弹出登录页)。所以一段时间没用某个软件,它的额度就是旧数据。Claude Code 报错说某个模型(如 Fable)的单独额度用完时,额度表里会多出该模型一行,显示为已用尽,并写明报错里给出的恢复时间,到时间后自动消失;只有用这个模型的成员会显示“额度已用尽”。这些都来自 Claude Code 自己的报错文字,不读取登录凭据,所以额度用完前看不到它的用量。Claude Code 不报告上下文窗口大小,已用超过 20 万时按 100 万窗口计算,否则只显示已用的 token 数。模型 API 目前只有 DeepSeek 官方地址能查余额;其他 API 和 App 接入的成员不显示额度。主持人在房间状态里也能读到这些数据,可以据此派活。
|
|
54
54
|
|
|
55
55
|
## 设为主持人、离开、请回与移除
|
|
56
56
|
|
package/docs/guide/rooms.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
- **排序**:点目录右上角选项,在“手动排序”(拖动或用上下方向键调序)和“最近发言”之间切换。按“最近发言”排序时,指针或键盘焦点离开目录后,现有房间才自动重排。新建房间仍立即显示在所属分组顶部。
|
|
31
31
|
- 桌面右栏展开时,切换房间标签不改变中栏宽度。讨论进行或暂停时,点“主持简报”可在浮层阅读,不影响正文位置。
|
|
32
|
-
-
|
|
32
|
+
- **文件夹**:点“协作房间”标题旁的“新建文件夹”(手机上在该处“…”菜单的最上面)按项目归集房间,可为文件夹设置默认项目目录,之后在该文件夹里建房会自动带入。点文件夹菜单可“编辑”、“上移”、“下移”、“存档文件夹”或“移除文件夹”(可选择仅移除文件夹,或连同其中房间一并删除)。
|
|
33
33
|
- **子房间**:主持人建的房间继承当前文件夹。点父房间标题左侧的箭头展开或收起,点标题进入父房间。打开子房间、子房间开始执行或新建子房间时自动展开;手动收起后,本次页面会话保留选择。子房间移到其他文件夹,或父房间存档、销毁后,子房间在所在文件夹独立显示。想让子房间和父房间留在同一文件夹、又像普通房间一样显示,点它右侧菜单的“设为独立房间”;两个房间的关联不变,之后可点“放回父房间”恢复。
|
|
34
34
|
- **房间操作**:点房间右侧菜单,可以“重命名”、“分享”(含“分享房间”、“复制分享链接”、“撤销分享链接”、“导出对话”)、“移至文件夹”、“固定房间”、“存档房间”或“销毁房间”。想在电脑上悬停房间时直接出现存档按钮,到“设置 → 外观 → 房间列表存档按钮”选“悬停显示”(默认“只在菜单里”)。调整顺序请拖动房间左侧的抓手。在手机上点“存档房间”后,菜单收起,左栏保持打开,可继续整理房间,也可点提示里的“撤销”。“重命名”会把房间名原地变成输入框,按 Enter 或点别处保存,按 Esc 取消;在电脑左栏双击房间名称也能直接改名。点顶栏最右侧的面板图标可展开或收起房间面板。
|
|
35
35
|
- **固定房间**:在房间菜单点“固定房间”,房间名后(消息数之后)出现图钉,位置不变(不会置顶)。已固定的房间不能存档或销毁,也不会自动销毁,“存档文件夹”会跳过它;点“取消固定”后恢复。
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
- **多标签、分屏与收起**:可同时打开多个文件以标签切换,在预览栏切换为右侧分屏、或点“文件位置”回到所在文件夹。HTML 预览还可以“在新标签页打开”。点标题栏“收起”缩成内容区角落的悬浮按钮,切到其他房间后点它即可回到原文件与滚动位置,关闭才清空。
|
|
66
66
|
- **摘录批注**:在 Markdown 预览或成员回答正文中选中文字点“添加到对话”,可输入批注并回车,原文标出编号,输入框上方显示“N 条注释”。在电脑上,打开注释列表,点“修改批注”,可拖动编辑框右下角调整宽高。发送时自动附带文件路径+行号、成员+消息编号,或消息附件所属的消息编号与附件 ID,引用中的 `@` 不会唤醒成员。
|
|
67
67
|
- **整理文件**:点路径栏最前面的“项目”,可以打开你所有的项目和草稿。上方按钮用于新建文件夹和上传文件(单个文件遵循管理员设置,默认 50 MiB);每行的菜单里有“下载”(文件夹为“下载文件夹”,打包成 ZIP)、“重命名”、“复制”、“剪切”、“删除”,复制或剪切后到目标文件夹点“粘贴”。项目文件没有回收区:删除前会弹出确认框,写明删除后无法恢复,确认后直接永久删除;粘贴或上传时,若对同名文件选择“替换”,旧内容也不保留。右上角的“回收站”按钮(回收箱图标加文字)是云空间的回收站,与项目文件无关。“刷新”在“更多操作”里,平时列表会自动刷新。在源码视图点铅笔按钮可以编辑文本文件(不超过 1 MB)。房间在用的文件夹不能改名、移动或删除。只有项目列表中标为可删除、且没有房间在用的草稿或托管项目,才可以从列表里永久删除整个文件夹。
|
|
68
|
-
-
|
|
68
|
+
- **多选**:项目文件夹和云空间里,在“更多操作”里点“多选”进入选择状态,或在项目文件夹里长按(电脑上右键)某个条目、在菜单里点“多选”,进入后这一条已勾选。进入后每行最左边出现勾选框(宫格视图在左上角),表头的勾选框选中当前文件夹里的全部;手机上点条目本身也是勾选而不是打开。用鼠标时,指向某个条目会显示它的勾选框,直接勾选即可进入选择状态;点名称始终是打开。进入后路径栏换成操作条:左边是“已选 N 项”,右边依次是“下载”“移动”“删除”“退出多选”,云空间回收站里是“还原”“移动”“彻底删除”“退出多选”。还没勾选时这几个按钮置灰;不适用的按钮同样置灰,鼠标移上去说明原因,例如选了文件夹时不能批量下载、一次最多下载 20 个文件、云空间里临时文件不能移动。下载逐个进行,在外面下载大文件时同样先经云空间;项目里“移动”等于剪切,到目标文件夹点“粘贴”,云空间里“移动”打开选文件夹的对话框;项目里删除前同样先确认(取消时保留勾选),确认后永久删除,云空间按单个删除的规则处理。批量下载和删除的进度在传输列表里,部分失败时右下角列出失败的项,已完成的保留。点“退出多选”、执行完操作或换文件夹、标签后退出选择状态,勾选清空。只读文件夹和项目列表里不能勾选。
|
|
69
69
|
|
|
70
70
|
### 4. 发送与查看附件
|
|
71
71
|
|
package/docs/guide/steward.md
CHANGED
|
@@ -16,7 +16,7 @@ MOSS(原“平台主理人”)是处理平台事务的本机 AI。它能回
|
|
|
16
16
|
|
|
17
17
|
## MOSS 在哪里处理任务
|
|
18
18
|
|
|
19
|
-
MOSS 自动决定在哪里办,不会先问你是否要分房。安装、配置、查状态等平台事务留在主对话。需要改项目文件或多位 AI
|
|
19
|
+
MOSS 自动决定在哪里办,不会先问你是否要分房。安装、配置、查状态等平台事务留在主对话。需要改项目文件或多位 AI 协作时,如果是接着某个已有房间正在做或刚做完的事,或你点名了某个房间,就交给它;其他新任务都新建项目房间。其他事项,你说“开个任务”或“后台做完回我”,MOSS 就直接开单成员任务房间。没明说时,只有既要独立成品、又要重新查找并交叉核对多份原始材料,才会开任务房间。拿不准时就在主对话办。分出去后,MOSS 会给出房间链接。想收回任务,告诉它“在这里做”。
|
|
20
20
|
|
|
21
21
|
- 项目房间沿用你在“新建房间”保存的主持人、成员和主持人权限。成员项目权限未设置时用只读,最高为“可写”。默认值为“自动”或“全放开”时都按“可写”处理。新房间的主持人不能再建房。要用项目目录,先把项目加入“常用项目”,再告诉 MOSS 用哪一个。不指定时仍是项目房间,只是使用草稿工作区。任务房间在目录中标为“任务”,固定用与 MOSS 同软件、同模型的单成员新会话,只能写草稿工作区,没有主持人权限。
|
|
22
22
|
- 可以在建房时告诉 MOSS 把房间放进哪个已有文件夹。归属明确时,MOSS 也可以选用已有文件夹。拿不准时就放在“未归类”,不会按项目目录自动归类。建好后,MOSS 会告诉你房间放在哪里。
|
|
@@ -33,7 +33,7 @@ MOSS 发给自己子房间的任务显示在发送卡上。“已完成”表示
|
|
|
33
33
|
- **私聊**:已绑定渠道的房主私聊汇到这里,回复发回原渠道。引用主动汇报的回复仍回主理人,引用其他房间通知的回复仍回通知所属房间。私聊与主理人的新记录、AI 会话和设置各自独立,已有记录不迁移。
|
|
34
34
|
- **群**:每个已开启的群有独立窗口,网页里可以看记录,不能从这里向群发消息。手机上,顶栏第一行就是各个窗口的标签,左右滑动切换,在等你答复的群圆点更醒目;想看每个窗口的最近消息和今天用量,点右上角筛选按钮菜单最后的“全部窗口”,或长按任一标签。
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
第一次在网页点“私聊”时,先为私聊选软件、模型和强度,再点“开始对话”;之后渠道私聊会直接进这个窗口。渠道消息先到、私聊还没选软件时,MOSS 会回一条带链接的提示,点开就是这个选择页。私聊默认只读,可以独立调到“自动”。它可以建房和传话,但平台类技能不出现在清单里,CLI 会拒绝改平台的命令。若调高权限,本机进程可能仍能直接访问本机接口或改配置文件。需要改平台时用主理人,不把私聊的限制当作本机沙箱。
|
|
37
37
|
|
|
38
38
|
渠道私聊正常送达不会单独回执,排队、尚未配置或发送失败时会提示。回答按单条上限分段发送,超过三段则发概述和网页链接。
|
|
39
39
|
|
package/docs/guide/workflows.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
- **在房间里让主持人建**:打开“主持人完整权限”后,直接对主持人说你要什么分工(或说“把这个房间的做法存成工作流”),也可以在输入框打 `/` 选平台技能里的“新建 / 修改工作流”。主持人会调用 `workflow-creator` 生成 `SKILL.md`、角色卡片与画布,校验通过后保存并启用。房间有主项目时默认保存到主项目,否则保存到全局。需要跨项目使用时,可以明确请主持人保存到全局。
|
|
36
36
|
- **在外部 AI 对话里建**:在任意已装好共议技能的 Claude Code / Codex 窗口,请它按 `workflow-creator` 技能为你新建或修改工作流。它先用 `codiscuss launch workflow-check --dir <目录>` 校验,待你确认后用 `codiscuss launch workflow-save --dir <目录>` 保存。库里已有同 ID 的工作流时,须明确选择覆盖(`--overwrite`)或带上读取时的修订号(`--revision`),否则不会保存。校验与保存项目工作流时,都加上 `--scope project --project <项目目录>`。
|
|
37
|
-
- **存在哪里**。全局工作流可跨项目使用,位于 `~/.codiscuss/workflows/<ID>/`。项目工作流位于 `<项目根目录>/.codiscuss/workflows/<ID
|
|
37
|
+
- **存在哪里**。全局工作流可跨项目使用,位于 `~/.codiscuss/workflows/<ID>/`。项目工作流位于 `<项目根目录>/.codiscuss/workflows/<ID>/`,可在使用该目录的房间里选用。“工作流”页面顶部有一排筛选:“全部”“全局”和每个有工作流的已保存项目。卡片显示画布缩略图、名称、说明、专家所用软件的头像、子工作流、状态和归属(“全局”或项目名)。把鼠标移到头像上可看专家总数(含子工作流)。卡片菜单提供改名、停用、删除、导出及适用的移动或复制操作。“新建”左边的按钮在卡片视图与列表视图之间切换,列表视图每个工作流占一行、不显示缩略图,浏览器会记住你的选择。
|
|
38
38
|
- **选择保存位置**。点“新建”或“导入”后选择保存到全局或项目。桌面布局的编辑器顶栏右侧有归属按钮,显示“全局”或“项目 · 项目名”:未保存的新工作流可以点开改保存位置,已保存的置灰显示;只读项目显示锁形图标。只读项目的工作流可以打开查看或复制到全局。
|
|
39
39
|
- **移动、复制与导出**。打开项目工作流的“…”菜单,选择“移至全局”或“复制到全局”。移动要求源项目可写,成功后当前房间的绑定也随之更新。若全局已有同 ID,移动会被拒绝。复制会保留原件。全局工作流可用“复制到本项目”复制到唯一的可写项目。有多个可写项目时,点对应的“复制到项目「项目名」”。点“导出”下载工作流压缩包,导出提示会列出因格式或大小跳过的文件。
|
|
40
40
|
|
|
@@ -784,7 +784,9 @@
|
|
|
784
784
|
"已选 {count} 项": "{count} selected",
|
|
785
785
|
"全选": "Select all",
|
|
786
786
|
"选择 {name}": "Select {name}",
|
|
787
|
-
"
|
|
787
|
+
"退出多选": "Done",
|
|
788
|
+
"多选": "Select",
|
|
789
|
+
"先勾选文件或文件夹": "Check files or folders first",
|
|
788
790
|
"常驻额度未能保存": "Pinned limits could not be saved",
|
|
789
791
|
"失败:{reason}": "Failed: {reason}",
|
|
790
792
|
"未知原因": "unknown reason",
|
|
@@ -538,6 +538,7 @@
|
|
|
538
538
|
"{count} 位专家": "{count} experts",
|
|
539
539
|
"{count} 个子工作流": "{count} sub-workflows",
|
|
540
540
|
"筛选工作流": "Filter workflows",
|
|
541
|
+
"卡片视图": "Card view",
|
|
541
542
|
"这里还没有工作流,点右上角“新建”。": "No workflows here yet. Select “New” at the top right.",
|
|
542
543
|
"选择": "Choose",
|
|
543
544
|
"到工作流页新建、导入和修改": "Create, import and edit on the Workflows page",
|
|
@@ -86,6 +86,8 @@
|
|
|
86
86
|
"未指定,将使用 {name}": "Not set; {name} will be used",
|
|
87
87
|
"未指定,将使用第一位本机已配置的 AI": "Not set; the first AI configured on this computer will be used",
|
|
88
88
|
"先给 MOSS 选一个软件": "Choose software for MOSS first",
|
|
89
|
+
"先给私聊选一个软件": "Choose software for private chat first",
|
|
90
|
+
"你在微信、QQ 等聊天渠道里私聊 MOSS 的消息都汇到这里,由你选的 AI 软件回复。私聊默认只读,和主理人的对话、记忆互不相通。": "Your private messages to MOSS on WeChat, QQ and other chat channels all come here and are answered by the AI software you choose. Private chat is read-only by default and doesn't share conversation or memory with the main window.",
|
|
89
91
|
"MOSS 用你选的 AI 软件工作。选好后点“开始对话”,它会先说说现在各房间的情况。": "MOSS works through the AI software you choose. Pick one and select “Start conversation”; it will begin by telling you how your rooms are doing.",
|
|
90
92
|
"告诉你各房间现在怎么样、哪里在等你。": "Tell you how each room is doing and where you're needed.",
|
|
91
93
|
"直接办平台的事:安装、部署、配置、排障。": "Handle platform tasks itself: installing, deploying, configuring and troubleshooting.",
|
package/package.json
CHANGED
|
@@ -837,8 +837,8 @@ function slash_command(profile, command, options = {}) {
|
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
// Every agy run may refresh its sign-in, and a refresh meeting a network drop opens the Google sign-in page in a browser
|
|
840
|
-
// (2026-11-05, see default-model caching)
|
|
841
|
-
|
|
840
|
+
// (2026-11-05, see default-model caching). `/usage` is asked only after an agy member's turn (user #17254), and after a
|
|
841
|
+
// failure (often a sign-in page waiting) not again for this long.
|
|
842
842
|
const QUOTA_FAILED_MS = 6 * 3600_000;
|
|
843
843
|
// Kept per process launcher, so a test's fake agy and the real one never share a reading.
|
|
844
844
|
const quota_reads = new WeakMap();
|
|
@@ -850,8 +850,10 @@ async function quota(profile, options = {}) {
|
|
|
850
850
|
const launcher = options.spawn_process || options.spawn || real_launcher;
|
|
851
851
|
if (!quota_reads.has(launcher)) quota_reads.set(launcher, new Map());
|
|
852
852
|
const reads = quota_reads.get(launcher), last = reads.get(profile.executable);
|
|
853
|
-
//
|
|
854
|
-
|
|
853
|
+
// After a failure nothing is asked until the wait ends. A read under way counts as one: several agy members may finish
|
|
854
|
+
// at once, and before this each started its own agy, one sign-in page each (#17252).
|
|
855
|
+
if (last && (last.pending || (!last.ok && Date.now() - last.at < QUOTA_FAILED_MS))) return null;
|
|
856
|
+
reads.set(profile.executable, { at: Date.now(), ok: false, pending: true });
|
|
855
857
|
let value = null;
|
|
856
858
|
try { value = await slash_command(profile, 'usage', options); }
|
|
857
859
|
catch { value = null; }
|
|
@@ -309,11 +309,12 @@ export async function phone_link(home, site, room) {
|
|
|
309
309
|
return origin ? `${origin}/?room=${encodeURIComponent(room)}` : '';
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
/** `page` names the setup page to open when there is no room: 主理人's (`settings`) or 私聊's (`private-settings`). */
|
|
313
|
+
async function moss_phone_link(home, site, room = '', page = 'settings') {
|
|
313
314
|
const remote = await phone_link(home, site, room);
|
|
314
315
|
const url = new URL(remote || site);
|
|
315
316
|
url.searchParams.delete('room');
|
|
316
|
-
url.searchParams.set('moss', room ||
|
|
317
|
+
url.searchParams.set('moss', room || page);
|
|
317
318
|
return url.href;
|
|
318
319
|
}
|
|
319
320
|
|
|
@@ -859,7 +860,8 @@ export class DiscussionService {
|
|
|
859
860
|
const { steward_command } = await import('./discussion_launch.mjs');
|
|
860
861
|
const status = await steward_command(this.home, 'steward', { window: 'private' });
|
|
861
862
|
if (!status.configured) {
|
|
862
|
-
|
|
863
|
+
// 私聊 has no software yet: the link opens its own first page, where the owner picks one (#17292).
|
|
864
|
+
const link = await moss_phone_link(this.home, steward_site(this.home), '', 'private-settings');
|
|
863
865
|
return moss_setup_text(link);
|
|
864
866
|
}
|
|
865
867
|
const opened = await steward_command(this.home, 'steward', { window: 'private', open: true, lang: resolve_locale() },
|
package/runner/free_runner.mjs
CHANGED
|
@@ -32,8 +32,6 @@ const PACKAGE_VERSION = JSON.parse(readFileSync(new URL('../package.json', impor
|
|
|
32
32
|
const RENEW_MS = 30_000;
|
|
33
33
|
/** A changed phase is reported early, but no more often than this, since each report refreshes open pages. */
|
|
34
34
|
const ACTIVITY_REPORT_MS = 10_000;
|
|
35
|
-
// How old an account quota may grow before the runner asks the software again, where its adapter can ask without a turn.
|
|
36
|
-
const QUOTA_REFRESH_MS = 10 * 60_000;
|
|
37
35
|
/** Segments and progress notes are reported quietly, waking no page, so they may go every tick. */
|
|
38
36
|
const PROGRESS_REPORT_MS = 2_000;
|
|
39
37
|
const MAX_DELIVERY_ATTEMPTS = 3;
|
|
@@ -971,7 +969,6 @@ export class FreeRoomRunner {
|
|
|
971
969
|
await this.expire_guest();
|
|
972
970
|
if (!inbox.archived) await this.sync_review_capabilities(inbox);
|
|
973
971
|
if (!inbox.archived) await this.sync_member_capabilities(inbox, room);
|
|
974
|
-
if (!inbox.archived) this.refresh_quotas(inbox);
|
|
975
972
|
if (!inbox.archived && room.session?.status === 'active'
|
|
976
973
|
&& await this.session_driver.tick(room, inbox)) {
|
|
977
974
|
// A scheduled plan completes the pending host request and creates a speaker request.
|
|
@@ -2217,34 +2214,23 @@ export class FreeRoomRunner {
|
|
|
2217
2214
|
}
|
|
2218
2215
|
/**
|
|
2219
2216
|
* Tell the site what the member's session context holds after the turn, and the account quota the turn's output
|
|
2220
|
-
* carried, as its adapter reads them; a lost report only leaves the earlier reading.
|
|
2217
|
+
* carried, as its adapter reads them; a lost report only leaves the earlier reading. Quotas are read only here, after a
|
|
2218
|
+
* member worked, never on a timer (user #17254: agy's timed reads opened sign-in pages): where the turn's output
|
|
2219
|
+
* carried none, the adapter that can ask its software (agy's /usage, an API's balance) is asked once now.
|
|
2221
2220
|
*/
|
|
2222
2221
|
report_usage(execution_id, profile, session_id) {
|
|
2223
2222
|
const account = quota_account(profile);
|
|
2224
2223
|
const log_path = join(this.config.directory, `${profile.adapter}-free-${execution_id}.log`);
|
|
2225
2224
|
const usage = account ? session_usage(profile.adapter, session_id, { log_path, profile }) : null;
|
|
2225
|
+
if (account && !usage?.account?.windows?.length && reads_quota(profile)) {
|
|
2226
|
+
account_quota(profile, { service_home: this.config.api_home }).then(quota => quota && api(this.config, '/quotas', { account, quota }))
|
|
2227
|
+
.catch(error => this.log(`${account} 的额度未能读取:${error.message}`));
|
|
2228
|
+
}
|
|
2226
2229
|
if (!usage) return;
|
|
2227
2230
|
api(this.config, `/executions/${execution_id}`, { action: 'usage', account, ...(usage.context && { context: usage.context }),
|
|
2228
2231
|
...(usage.account && { quota: usage.account }), ...(usage.turn && { turn: usage.turn }) })
|
|
2229
2232
|
.catch(error => this.log(`执行 #${execution_id} 的用量未能上报:${error.message}`));
|
|
2230
2233
|
}
|
|
2231
|
-
/**
|
|
2232
|
-
* Ask the software of each member here for its account quota when the site's reading (shared by every room) is older
|
|
2233
|
-
* than QUOTA_REFRESH_MS, for adapters that can without an agent turn; one question per account at a time.
|
|
2234
|
-
*/
|
|
2235
|
-
refresh_quotas(inbox) {
|
|
2236
|
-
this.quota_asks ||= new Map();
|
|
2237
|
-
const kept = this.room?.free?.quotas || {};
|
|
2238
|
-
for (const member of inbox.members) {
|
|
2239
|
-
const profile = this.config.participants[member.name];
|
|
2240
|
-
const account = profile && reads_quota(profile) ? quota_account(profile) : '';
|
|
2241
|
-
const last = Math.max(this.quota_asks.get(account) || 0, (kept[account]?.updated_at || 0) * 1000);
|
|
2242
|
-
if (!account || Date.now() - last < QUOTA_REFRESH_MS) continue;
|
|
2243
|
-
this.quota_asks.set(account, Date.now());
|
|
2244
|
-
account_quota(profile, { service_home: this.config.api_home }).then(quota => quota && api(this.config, '/quotas', { account, quota }))
|
|
2245
|
-
.catch(error => this.log(`${account} 的额度未能刷新:${error.message}`));
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
2234
|
/** Retry durable stop reports even after the member went idle, left, or started a later execution. */
|
|
2249
2235
|
async report_stops(active) {
|
|
2250
2236
|
const pending = new Set();
|