ai_co_discuss 0.5.54 → 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/steward.md +2 -2
- package/docs/guide/steward.md +2 -2
- package/frontend/locales/en/steward.json +2 -0
- package/package.json +1 -1
- package/runner/discussion_service.mjs +5 -3
- package/web/app.js +3 -2
- package/web/i18n.js +1 -1
- package/web/modern.css +1 -1
- package/web/modern.js +6 -6
|
@@ -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/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
|
|
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
|
|
|
@@ -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
|
@@ -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/web/app.js
CHANGED
|
@@ -9964,9 +9964,10 @@ async function initialize() {
|
|
|
9964
9964
|
state.rooms_loading = false;
|
|
9965
9965
|
prefetched.clear();
|
|
9966
9966
|
publish_view();
|
|
9967
|
-
if (moss_notification_link === "settings") {
|
|
9967
|
+
if (moss_notification_link === "settings" || moss_notification_link === "private-settings") {
|
|
9968
|
+
const detail = moss_notification_link === "private-settings" ? "private" : "";
|
|
9968
9969
|
moss_notification_link = null;
|
|
9969
|
-
const setup = () => document.dispatchEvent(new
|
|
9970
|
+
const setup = () => document.dispatchEvent(new CustomEvent("discuss:steward-setup", { detail }));
|
|
9970
9971
|
if (document.querySelector("#modern-root[data-v-app]")) setup();
|
|
9971
9972
|
else document.getElementById("modern-script")?.addEventListener("load", setup, { once: true });
|
|
9972
9973
|
}
|