ai_co_discuss 0.6.4 → 0.6.6
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/docs/en/guide/members.md +3 -3
- package/docs/en/guide/rooms.md +1 -1
- package/docs/en/guide/steward.md +2 -2
- package/docs/guide/members.md +3 -3
- package/docs/guide/rooms.md +1 -1
- package/docs/guide/steward.md +2 -2
- package/frontend/locales/en/app.json +1 -0
- package/frontend/locales/en/core.json +2 -1
- package/frontend/locales/en/room.json +4 -1
- package/frontend/locales/en/settings.json +46 -1
- package/package.json +1 -1
- package/runner/discussion_launch.mjs +23 -11
- package/runner/discussion_service.mjs +1 -1
- package/runner/host_experience.mjs +1 -1
- package/runner/steward_proactive.mjs +89 -14
- package/skills/forum-browsing/SKILL.md +2 -2
- package/skills/forum-browsing/references/bilibili.md +1 -1
- package/skills/forum-browsing/references/setup.md +10 -0
- package/skills/forum-browsing/references/youtube.md +1 -1
- package/skills/forum-browsing/scripts/common.py +3 -2
- package/web/app.js +11 -1
- package/web/i18n.js +2 -2
- package/web/modern.css +1 -1
- package/web/modern.js +85 -84
package/docs/en/guide/members.md
CHANGED
|
@@ -45,10 +45,10 @@ Use “History” to bring context from an existing local AI conversation into a
|
|
|
45
45
|
- **Display name and role description.** Open the member menu in the right sidebar and select “Name and description”. When adding a member, use the name and description button on the card. On cards that flip, these settings are on the back. Change the room display name and role description. Inside a room there are quicker ways: double-click a member’s name in the right sidebar or on the members and settings page to rename it in place (Enter or clicking elsewhere saves, Esc cancels). Member rows in the right sidebar do not show descriptions: point at a member with the mouse and its member card floats out on the left with the description and an “Edit name and description” button; on a phone or tablet, tap the member row and the menu that opens shows the description at the top. In the editor, click a common kind of work to add it. The host and smart scheduling use the description to route work. You can also save it as the app’s default description.
|
|
46
46
|
- **Private prompt.** When creating a room or inviting, flip the member card and select “Expert prompt” on its back. For a member already in the room, open **Room → Members and settings** at the top of the room, find the member, and select “Expert prompt” in the buttons at the bottom of its card. Write instructions for this member alone, such as “Start with the conclusion”; they apply from its next wake-up. This does not change its permissions. A member from a workflow shows its prompt read-only; change it in the workflow. Manually started and external members have no private prompt.
|
|
47
47
|
- **System prompts for all members, the host, or one platform.** In **Settings → System prompts**, the “All members” row goes to every member this computer wakes; the “Experience” button in the “Host” row opens the page below MOSS in the sidebar. Add, edit, enable, disable or remove rules. Enabled rules apply to all rooms on this account. New rules and all changes go to MOSS for review. Handwritten wording that passes unchanged goes live automatically. AI suggestions, rewrites, and merges still need your approval. Up to 20 rules can be enabled in total, with up to 4,000 characters each. Select the rule under “Based on” on a dispatch to open it, or “Not right” to propose a change; and each platform row (Claude, Codex, Gemini, DeepSeek and so on) goes to every member on that platform, including preset and workflow experts. They come before the private prompt and apply from the next wake-up. The software’s own CLAUDE.md and AGENTS.md are not changed, so using that software outside CoDiscuss is not affected. From the command line, use `codiscuss launch prompts`.
|
|
48
|
-
-
|
|
48
|
+
- The top of “Experience” is MOSS’s “Daily review” card: when it runs, and when it last ran with what it found (if the latest run did not happen or MOSS has not written back yet, it says so and why, in orange). Select the avatar or “Chat with MOSS” to open MOSS, select “Last run …” to jump to that report, and use the gear to turn “Daily review” on or off and set “Time” with the same wheel as a discussion’s time limit (it follows the display time zone in Settings, shown under the wheel). Without MOSS set up the card shows “Set up MOSS”. MOSS reviews the rooms you stepped in most each day.
|
|
49
49
|
- For a rule suggested below a host reply, choose “Go ahead” to send your original words to MOSS for review, or “No thanks” to dismiss it. While it runs the row says “Checking”. Open “Experience” from the result. The host still prepares workflow drafts.
|
|
50
|
-
- In “Waiting for you”, expand a rule to see the before and after, or select “View the full organized draft”. Select “Activate” to confirm. If there is a “Conflict”, compare the rules and the scenario, then choose “Replace with the new rule”, “Keep both”, or “Drop the new rule”. When keeping both, explain when each applies and select “Submit for review”. Select “Retry” after a check fails.
|
|
51
|
-
- Expand “Sources” on
|
|
50
|
+
- In “Waiting for you”, expand a rule to see the before and after, or select “View the full organized draft”. Select “Activate” to confirm. If there is a “Conflict”, compare the rules and the scenario, then choose “Replace with the new rule”, “Keep both”, or “Drop the new rule”. When keeping both, explain when each applies and select “Submit for review”. Select “Retry” after a check fails. Without MOSS set up, rules show “Not checked · MOSS isn't set up”; handwritten ones offer “Enable without review” and are marked “Unreviewed” when active.
|
|
51
|
+
- Below are three tabs. “Rules” groups rules by origin into “Written by you”, “Learned from reviews” and “Settled”, with “Add” beside “Written by you”. Expand “Sources” on a rule and select “Remove this source” to withdraw one; the rule menu has “Edit”, “Discuss this with MOSS”, “Make durable” and “Delete”, and a settled rule no longer shows its sources. “What the host reads” shows MOSS’s current organized text, where the small number after a sentence is the position of the rule it rests on and opens that rule; without one the host receives the enabled rules one by one. Each row in “Review log” shows the outcome and opens where it happened, and a MOSS review expands to the items it raised. The “Experience” row in the MOSS window’s right panel leads back here.
|
|
52
52
|
- Daily reviews are grouped by report. Select “Report” to expand a report in place or “In MOSS” to jump to the original.
|
|
53
53
|
- A scheduled MOSS review has a “Results of this review” section. It shows each item and its current status. Select the row to open the corresponding item.
|
|
54
54
|
- After stopping, withdrawing, or rewinding, select “Add a reason” if it appears on the card. On a dispatch card, open its actions menu and select “Add a reason for withdrawing or reassigning”. The reason is optional. Once saved, it appears on the original card, and you can edit it from the same action.
|
package/docs/en/guide/rooms.md
CHANGED
|
@@ -122,7 +122,7 @@ You can open any media mode without setting up a service first. Only “API imag
|
|
|
122
122
|
|
|
123
123
|
### 6. Contact another room’s host
|
|
124
124
|
|
|
125
|
-
Give your host the target room’s title, ID or link and describe the work. On a computer, drag a room from the left sidebar onto the messages or the message box to insert `[room Title #ID]` at the cursor, so the host can find it by its ID. Like an attachment placeholder, it is highlighted in the message box and one Backspace removes all of it; a member dragged from the right sidebar onto the messages or the message box inserts `[member Name]`, which behaves the same way.
|
|
125
|
+
Give your host the target room’s title, ID or link and describe the work. On a computer, drag a room from the left sidebar onto the messages or the message box to insert `[room Title #ID]` at the cursor, so the host can find it by its ID; on a phone or tablet, long-press the room in the room list or tap its “⋯” and choose “Copy room reference” to copy the same text, then paste it. Like an attachment placeholder, it is highlighted in the message box and one Backspace removes all of it; a member dragged from the right sidebar onto the messages or the message box inserts `[member Name]`, which behaves the same way.
|
|
126
126
|
|
|
127
127
|
When a parent room delegates work to a child room, the child host’s final answer automatically updates the sending card and notifies the parent host. Failures and cancellations are recorded too. If the work ends without a result, the system asks once and marks the task as unreported if no result arrives. For other cross-room assignments, the receiving host uses the reply command in its task. A notification needs no reply.
|
|
128
128
|
|
package/docs/en/guide/steward.md
CHANGED
|
@@ -84,7 +84,7 @@ On the Steward’s “Rooms” tab, turn on the “Proactive reports” row; it
|
|
|
84
84
|
- **Scheduled duties**: include a time when you give the duty, such as “every day at 9, report how yesterday's runs went” or “every Monday at 10, sum up last week's room progress.” Only a time of day, every day or on chosen weekdays, is supported, on the clock of the computer running MOSS. You can also say it in Direct messages, which passes it to the Steward. In the list, a scheduled duty shows its time, where the result goes, and when it runs next.
|
|
85
85
|
- The Steward runs a scheduled duty at its time regardless of the “Proactive reports” switch, active hours, and muted reminders. Delete the duty to stop it.
|
|
86
86
|
- Each run gives a result, saying so when there is nothing new, as a “Scheduled report” card. With a linked message channel, it is sent to you by default.
|
|
87
|
-
-
|
|
87
|
+
- For ordinary scheduled duties, if the computer or service comes back more than 30 minutes late, the run is skipped and the list shows “Missed”.
|
|
88
88
|
- Each run uses your chosen AI app's quota. For duties that read outside web pages (such as following news), MOSS opens a task room to fetch them and only reads what comes back.
|
|
89
89
|
- A room status change can trigger a report during active hours if proactive reporting is on and you have added a duty. New requests for your input take priority. New failures and recently finished work are grouped into the digest. If MOSS is busy, reporting waits until it is idle. The digest runs when there are relevant changes. Elapsed time alone does not trigger another report for a room that is still waiting.
|
|
90
90
|
- To mute similar reminders, select “Don't tell me about this” on a report card and add a short reason. Remove the entry under “Muted reminders” to allow those reminders again.
|
|
@@ -110,4 +110,4 @@ Manage the Steward, Direct messages, and group windows separately. Open the wind
|
|
|
110
110
|
- The “MOSS” section in “Analytics” shows task and project rooms created, work sent to existing rooms, rework, missing reports, work brought back to the main conversation, and run counts and durations. It also shows how often notification channels sent a queued-message acknowledgment.
|
|
111
111
|
- For terminal use, see [Command Line](cli.md#platform-steward).
|
|
112
112
|
|
|
113
|
-
Daily review in Experience appears in the MOSS duty list and can be removed there. The brief goes through the duty’s delivery channel. For an unread review, select “Report” or “In MOSS” in “Experience”. The “Results of this review” section under the scheduled report shows whether each suggestion is checking, awaiting confirmation, or in conflict. From the CLI, run `codiscuss launch experience review on|off [--at HH:MM [--timezone IANA]]`. Without `--timezone`, the computer’s system time zone is used.
|
|
113
|
+
Daily review in Experience appears in the MOSS duty list and can be removed there. After sleep, shutdown, or a service outage, it catches up only the latest missed review, with at most one run per calendar day in the schedule’s time zone. The brief goes through the duty’s delivery channel. For an unread review, select “Report” or “In MOSS” in “Experience”. The “Results of this review” section under the scheduled report shows whether each suggestion is checking, awaiting confirmation, or in conflict. From the CLI, run `codiscuss launch experience review on|off [--at HH:MM [--timezone IANA]]`. Without `--timezone`, the computer’s system time zone is used.
|
package/docs/guide/members.md
CHANGED
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
- **改显示名与分工描述**:右栏 → 成员菜单 → “名称与描述”(建房或邀请时点成员卡的名称与描述按钮,可翻面的卡片在背面设置),修改房间里的“显示名称”和分工说明。在房间里还有更快的入口:双击右栏或“成员与设置”页里的成员名称直接改名(Enter 或点别处保存,Esc 取消)。右栏的成员行不显示描述:鼠标指向某位成员,左侧浮出它的成员卡片,显示描述,并可点“编辑名称与描述”;手机、平板上点一下成员行,弹出的菜单顶部显示描述。编辑框里可点常见分工快速填入。分工说明会发给主持人和智能调度,帮助更准确地派活,也可存为该软件的默认描述。
|
|
46
46
|
- **设专属提示词**:建房或邀请时翻开成员卡,点背面的“专属提示词”按钮;已在房间里的成员,在顶部“房间”页 → “成员与设置”里找到该成员,点卡片下方的“专属提示词”按钮。写下只发给这位成员的要求(例如“回答先给结论”),从下一次唤醒起生效。专属提示词不改变权限;来自工作流的成员只读,要到工作流里改。手动启动和外部成员没有专属提示词。
|
|
47
47
|
- **给所有成员、主持人或某个平台设系统提示词**:“设置”→“系统提示词”里,“所有成员”一行发给本机唤醒的全部成员;“主持人”一行的“经验”打开与左栏 MOSS 下方相同的页面。在这里添加、编辑、启停、删除经验。启用的经验适用于本机账号的所有房间。新增和所有修改先交 MOSS 检查。你手写的原文通过且未被改写会自动生效,AI 建议、改写和合并仍须确认。总计最多启用 20 条,每条最多 4000 字。派活卡“派活依据”一行可点进对应经验,点“这条不对”可提交修改;各平台一行(Claude、Codex、Gemini、DeepSeek 等)发给用该平台的全部成员,包括预设和工作流里的专家。它们排在专属提示词之前,从下一次唤醒起生效;不修改各软件自己的 CLAUDE.md、AGENTS.md,所以不影响你在共议之外直接使用这些软件。命令行用 `codiscuss launch prompts`。
|
|
48
|
-
-
|
|
48
|
+
- “经验”页顶部是 MOSS 的“每日复盘”卡:显示每天几点、上次复盘的时间和结果(最近一次没跑成或还在等 MOSS 写回时,改为用橙色写明时间和原因),点头像或“和 MOSS 聊”打开 MOSS,点“上次……”跳到那次汇报,齿轮里开关“每日复盘”,用和讨论时长相同的滚轮改“时间”(按“设置”里的显示时区计算,滚轮下方写明当前时区)。没配置 MOSS 时这里显示“配置 MOSS”。MOSS 每天复盘你介入较多的房间。
|
|
49
49
|
- 主持人回答下出现“想记下”时,点“去做”把原话交给 MOSS 检查,点“不用”忽略。回交前会显示“检查中”,有结果后从原处点进“经验”。工作流意图仍由主持人准备。
|
|
50
|
-
-
|
|
51
|
-
-
|
|
50
|
+
- 在“待你确认”展开待确认的经验,查看修改前后或点“查看整理稿全文”,再点“生效”。若显示“有冲突”,查看新旧原文和冲突场景,然后选“用新的替换旧的”“两条都留”或“不要新的”。选“两条都留”时,写明各自的适用场景并点“提交检查”。“检查失败”时可点“重试”。没配置 MOSS 时条目显示“未经检查 · 没有配置 MOSS”,手写条目可点“直接启用”,生效后标记“未经整理”。
|
|
51
|
+
- 页面下方有三个标签:“经验”按来源分为“你写的”“从复盘学到的”“已沉淀”,“添加”在“你写的”一组的右侧;每条可展开“出处”,每处可点“撤掉这处依据”,菜单里有“编辑”“和 MOSS 聊这条”“沉淀”“删除”,沉淀后不再显示出处。“主持人读到的”显示 MOSS 当前的整理稿,句尾的小编号是这句依据的经验在列表里的序号,点了跳到那条,没有可用整理稿时主持人按条收到启用的经验。“复盘记录”每行显示结果,可点到原处,MOSS 的复盘可展开看当次提出的条目。MOSS 窗口右栏的“经验”一行也能回到这里。
|
|
52
52
|
- 每日复盘按组显示。点“报告”在原处展开,点“MOSS 记录”跳到原汇报。
|
|
53
53
|
- MOSS 的定时复盘汇报下方有“本次产出”。每项显示内容和当前状态,点整行打开对应条目。
|
|
54
54
|
- 停止、撤回或回退后,如果卡片显示“补记原因”,可点开填写。在派活卡的“更多操作”菜单里选“补充撤回或改派原因”。原因选填,保存后可在原卡片看到,再点同一入口即可修改。
|
package/docs/guide/rooms.md
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
|
|
121
121
|
### 6. 联系其他房间的主持人
|
|
122
122
|
|
|
123
|
-
告诉本房主持人目标房间的标题、编号或链接,以及要对方处理的事。在电脑上,把左栏的房间拖到消息区或输入框,会在光标处插入 `[房间 标题 #编号]
|
|
123
|
+
告诉本房主持人目标房间的标题、编号或链接,以及要对方处理的事。在电脑上,把左栏的房间拖到消息区或输入框,会在光标处插入 `[房间 标题 #编号]`,主持人凭编号就能找到它;手机、平板等触屏设备在房间列表长按房间或点它的“⋯”,选“复制房间信息”,把同样的文本复制到剪贴板再粘贴。它和附件占位一样在输入框里高亮显示,退格一次删掉整个;右栏成员拖到消息区或输入框插入的 `[成员 名称]` 也是这样。
|
|
124
124
|
|
|
125
125
|
父房间向子房间派活时,子房间主持人提交最终回答后,结果会自动更新在父房间的发送卡,并通知父房间主持人。失败和取消也有记录;工作结束但没有结果时,程序催报一次,仍未收到就标记未回报。其他跨房派活由对方主持人用任务中的命令回传。普通通知无需回传。
|
|
126
126
|
|
package/docs/guide/steward.md
CHANGED
|
@@ -84,7 +84,7 @@ MOSS 在群里等你答复时,你可以引用那条提问或 @ MOSS。有智
|
|
|
84
84
|
- **定时职责**:交代时说明时间,例如“每天 9 点汇报昨天的运行状态”“每周一 10 点整理上周的房间进展”。只支持每天或每周几的某个时间点,按运行 MOSS 的电脑时间。在私信里说也可以,私信会转交主理人建立。列表里定时职责显示时间、结果去向和下次执行时间。
|
|
85
85
|
- 定时职责到点由主理人执行,不受“主动汇报”开关、活跃时段和屏蔽约束,删除该条即停止。
|
|
86
86
|
- 每次都会给出结果,没有新内容也会说明,显示为“定时汇报”卡片。绑定了消息渠道时默认发给你。
|
|
87
|
-
-
|
|
87
|
+
- 普通定时职责在电脑关机或服务没运行、过了约定时间 30 分钟才恢复时,跳过这一次,列表里显示“上次错过”。
|
|
88
88
|
- 每次执行都会用掉所选 AI 软件的额度。要读外部网页的职责(如订阅资讯),MOSS 会开任务房间去取,自己只看交回的结果。
|
|
89
89
|
- 只有开启主动汇报、已有职责且处于活跃时段,房间状态变动才可能触发汇报。出现等你回答的事项时优先汇报,新出现的失败和刚完成工作的房间则合并到简报。MOSS 忙时等它空闲,没有相关变化就不会生成简报。房间一直在等待时,单凭等待时长不会再次触发。
|
|
90
90
|
- 一条汇报不需要再看时,在该卡片点“这条不用告诉我”,写一句原因。MOSS 会据此略过同类提醒。在“已屏蔽的提醒”中可以移除这条记录。
|
|
@@ -110,4 +110,4 @@ MOSS 在群里等你答复时,你可以引用那条提问或 @ MOSS。有智
|
|
|
110
110
|
- 在“统计”的“MOSS”一节,可看新建任务房间和项目房间、委派给已有房间、返工、未回报、改回主对话,以及执行次数和时长。这里也会显示通知渠道发送的排队回执次数。
|
|
111
111
|
- 使用命令行时,见[命令行](cli.md#平台主理人)。
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
经验页的“每日复盘”是定时职责,能在 MOSS 职责列表里删除。电脑睡眠、关机或服务停止而错过时,恢复后只补跑最近一次,按计划时区每天最多一次。简报沿用职责的渠道。未读复盘在“经验”页可点“报告”或“MOSS 记录”,定时汇报下方的“本次产出”会显示建议的入库状态,如检查中、待确认或有冲突。命令行用 `codiscuss launch experience review on|off [--at HH:MM [--timezone IANA]]`,不写 `--timezone` 时按电脑系统时区。
|
|
@@ -493,6 +493,7 @@
|
|
|
493
493
|
"未公开": "not shown",
|
|
494
494
|
"{count} 天后过期": "Expires in {count} days",
|
|
495
495
|
"复制分享链接": "Copy share link",
|
|
496
|
+
"复制房间信息": "Copy room reference",
|
|
496
497
|
"撤销分享链接": "Revoke share link",
|
|
497
498
|
"下载网页文件": "Download web page",
|
|
498
499
|
"分享链接的有效期": "How long the share link lasts",
|
|
@@ -584,5 +584,6 @@
|
|
|
584
584
|
"暂时无法创建": "Cannot create yet",
|
|
585
585
|
"> [{id}] {text}": "> [{id}] {text}",
|
|
586
586
|
"请继续深化这几条经验建议,改完更新原来的建议:\n{items}\n\n我的想法:": "Please keep refining these rule suggestions and update the original ones:\n{items}\n\nWhat I have in mind:",
|
|
587
|
-
"交回 MOSS 深化的消息不能带附件,请先移除附件再发送。": "A message sending suggestions back to MOSS cannot carry files. Remove them and send again."
|
|
587
|
+
"交回 MOSS 深化的消息不能带附件,请先移除附件再发送。": "A message sending suggestions back to MOSS cannot carry files. Remove them and send again.",
|
|
588
|
+
"关于这条经验:{text}": "About this rule: {text}"
|
|
588
589
|
}
|
|
@@ -1464,5 +1464,8 @@
|
|
|
1464
1464
|
"该张未能保存": "Could not save this image",
|
|
1465
1465
|
"生成参数": "Generation options",
|
|
1466
1466
|
"输入参考": "Reference",
|
|
1467
|
-
"重试生成": "Retry generation"
|
|
1467
|
+
"重试生成": "Retry generation",
|
|
1468
|
+
"打开经验页": "Open the Experience page",
|
|
1469
|
+
"时": "h",
|
|
1470
|
+
"分": "min"
|
|
1468
1471
|
}
|
|
@@ -1155,5 +1155,50 @@
|
|
|
1155
1155
|
"撤回": "Withdraw",
|
|
1156
1156
|
"这条建议没有附上工作流草稿。": "This suggestion has no workflow draft attached.",
|
|
1157
1157
|
"{room} #{id}": "{room} #{id}",
|
|
1158
|
-
"查看草稿": "View draft"
|
|
1158
|
+
"查看草稿": "View draft",
|
|
1159
|
+
"你写的 {count}": "Written by you {count}",
|
|
1160
|
+
"从复盘学到的 {count}": "Learned from reviews {count}",
|
|
1161
|
+
"已沉淀 {count}": "Settled {count}",
|
|
1162
|
+
"和 MOSS 聊这条": "Discuss this with MOSS",
|
|
1163
|
+
"每日复盘": "Daily review",
|
|
1164
|
+
"还没有配置 MOSS": "MOSS is not set up",
|
|
1165
|
+
"MOSS · 每日复盘未开启": "MOSS · Daily review is off",
|
|
1166
|
+
"MOSS · 每日复盘": "MOSS · Daily review",
|
|
1167
|
+
"配置后,新经验会先由它检查再生效,它也可以每天替你复盘。": "Once set up, MOSS checks each new rule before it takes effect and can review your rooms every day.",
|
|
1168
|
+
"开启后,MOSS 每天复盘你介入较多的房间,建议放到这里。": "Once on, MOSS reviews the rooms where you stepped in most each day and puts its suggestions here.",
|
|
1169
|
+
"每天 {time}": "Daily at {time}",
|
|
1170
|
+
"每天 {time} · 还没有复盘过": "Daily at {time} · No review yet",
|
|
1171
|
+
"配置 MOSS": "Set up MOSS",
|
|
1172
|
+
"和 MOSS 聊": "Chat with MOSS",
|
|
1173
|
+
"每日复盘设置": "Daily review settings",
|
|
1174
|
+
"MOSS 检查中": "MOSS is checking",
|
|
1175
|
+
"和已有的一条冲突": "Conflicts with an existing rule",
|
|
1176
|
+
"检查失败:{reason}": "Check failed: {reason}",
|
|
1177
|
+
"并入已有的一条": "Merges into an existing rule",
|
|
1178
|
+
"已有的一条": "Existing rule",
|
|
1179
|
+
"冲突在哪": "Where they conflict",
|
|
1180
|
+
"两条都留,写清各管什么": "Keep both and say when each applies",
|
|
1181
|
+
"不要了": "Drop it",
|
|
1182
|
+
"经验视图": "Experience views",
|
|
1183
|
+
"经验 {count}": "Rules {count}",
|
|
1184
|
+
"主持人每次被唤醒读到的": "What the host reads each time it is woken",
|
|
1185
|
+
"MOSS 整理于 {time} · 依据 {count} 条经验": "Organized by MOSS at {time} · From {count} rules",
|
|
1186
|
+
"MOSS 整理 · 依据 {count} 条经验": "Organized by MOSS · From {count} rules",
|
|
1187
|
+
"现在按条交给主持人。": "The host currently reads these rules one by one.",
|
|
1188
|
+
"还没有复盘记录。": "No reviews yet.",
|
|
1189
|
+
"MOSS 每日复盘": "MOSS daily review",
|
|
1190
|
+
"你": "You",
|
|
1191
|
+
"没有建议": "No suggestions",
|
|
1192
|
+
"{label} {count}": "{label} {count}",
|
|
1193
|
+
"上次 {when} · {result}": "Last run {when} · {result}",
|
|
1194
|
+
"未经检查 · 没有配置 MOSS": "Not checked · MOSS isn't set up",
|
|
1195
|
+
"还没有经验": "No rules yet",
|
|
1196
|
+
"写下你希望主持人一直记住的做法,或者等 MOSS 复盘后提出来。": "Write down what you want the host to always remember, or wait for MOSS to suggest some after a review.",
|
|
1197
|
+
"添加第一条": "Add the first one",
|
|
1198
|
+
"按显示时区 {zone}": "In your display time zone, {zone}",
|
|
1199
|
+
"{date} 已交给 MOSS · 等结果": "{date} sent to MOSS · waiting",
|
|
1200
|
+
"没送到 MOSS": "didn't reach MOSS",
|
|
1201
|
+
"MOSS 没回应": "MOSS didn't respond",
|
|
1202
|
+
"电脑没开": "computer was off",
|
|
1203
|
+
"{date} 没跑成 · {reason}": "{date} didn't run · {reason}"
|
|
1159
1204
|
}
|
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ import { site_fetch } from './entry_client.mjs';
|
|
|
57
57
|
import { channel_locale, t, with_channel_locale } from './i18n.mjs';
|
|
58
58
|
import { EXPERIENCE_REVIEW_DUTY, edit_steward_memory, move_steward_memory, post_steward_request, require_steward_skill, require_steward_software, steward_access, steward_defaults, steward_private_defaults, steward_private_patch, steward_profile, steward_room_permissions, steward_settings_patch, steward_site, steward_software, steward_status, sync_steward_platform_skills } from './steward.mjs';
|
|
59
59
|
import { duty_schedule_options } from './steward.mjs';
|
|
60
|
-
import {
|
|
60
|
+
import { proactive_settings, revise_proactive_list, scheduled_review_status, steward_proactive_tick } from './steward_proactive.mjs';
|
|
61
61
|
import { HOST_MODEL_FIELDS, host_configure_items, host_room_limit, without_host_item } from './host_permissions.mjs';
|
|
62
62
|
import { guest_protection, guest_state_of, guest_withheld, HOST_ACTION_ITEMS, HOST_ITEMS, HOST_LEGACY_ITEMS, host_allowed, host_permission_fields, host_permissions, host_refusal, normalize_host_permissions } from './host_permissions.mjs';
|
|
63
63
|
|
|
@@ -1576,10 +1576,12 @@ const internal_admission = Symbol();
|
|
|
1576
1576
|
|
|
1577
1577
|
/** Read schedule state from the same duty list MOSS manages. */
|
|
1578
1578
|
function experience_review_status(home) {
|
|
1579
|
-
const
|
|
1579
|
+
const settings = launch_settings(home);
|
|
1580
|
+
const steward = settings.steward;
|
|
1580
1581
|
const duty = steward?.proactive?.duties?.find(item => item.id === EXPERIENCE_REVIEW_DUTY);
|
|
1581
1582
|
return { configured: Boolean(steward?.adapter), enabled: Boolean(steward?.adapter && duty), at: duty?.schedule.at || '08:00',
|
|
1582
|
-
...(duty ? { timezone: duty.schedule.timezone || null
|
|
1583
|
+
...(duty ? { timezone: duty.schedule.timezone || null } : {}),
|
|
1584
|
+
...scheduled_review_status(home, duty, settings.host_experience?.reviews) };
|
|
1583
1585
|
}
|
|
1584
1586
|
|
|
1585
1587
|
/** Change the account's daily inspection duty. No separate switch is stored. */
|
|
@@ -1600,7 +1602,9 @@ export async function experience_review(home, input) {
|
|
|
1600
1602
|
const text = t('执行主持人经验每日排查。先读 dispatch-analysis 技能的“每日排查”一节。');
|
|
1601
1603
|
const [entry] = revise_proactive_list({ duties: [] }, 'duties', 'add', { text,
|
|
1602
1604
|
schedule: { at: input.at ?? old?.schedule.at ?? '08:00', timezone: input.timezone || (input.at ? undefined : old?.schedule.timezone) } });
|
|
1603
|
-
|
|
1605
|
+
const same_time = old?.schedule.at === entry.schedule.at && old?.schedule.timezone === entry.schedule.timezone;
|
|
1606
|
+
duties = [...duties, { ...entry, id: EXPERIENCE_REVIEW_DUTY, created_at: old?.created_at ?? entry.created_at,
|
|
1607
|
+
schedule_changed_at: same_time ? old.schedule_changed_at ?? old.created_at : entry.created_at }];
|
|
1604
1608
|
}
|
|
1605
1609
|
save_launch_settings(home, {}, { proactive: { ...previous, duties } });
|
|
1606
1610
|
return account_experiences(home, { action: 'list' });
|
|
@@ -6236,13 +6240,21 @@ async function steward_mute_text(home, settings, message_id) {
|
|
|
6236
6240
|
}
|
|
6237
6241
|
|
|
6238
6242
|
/** Poll only the registered MOSS room, without opening a room or mixing in another site's data. */
|
|
6239
|
-
export async function poll_steward_proactive(home) {
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6243
|
+
export async function poll_steward_proactive(home, { admit = deliver_experience_admission, tick = steward_proactive_tick, log = console.error } = {}) {
|
|
6244
|
+
try {
|
|
6245
|
+
await admit(home);
|
|
6246
|
+
} catch (error) {
|
|
6247
|
+
log(`MOSS experience admission: ${error.message}`);
|
|
6248
|
+
}
|
|
6249
|
+
try {
|
|
6250
|
+
const current = () => proactive_settings(launch_settings(home).steward?.proactive);
|
|
6251
|
+
const settings = launch_settings(home).steward;
|
|
6252
|
+
const proactive = current();
|
|
6253
|
+
const registration = proactive.duties.some(item => item.schedule || proactive.enabled) ? await registered_steward(home, settings?.room_id) : null;
|
|
6254
|
+
await tick(home, registration?.config, proactive, { current, log });
|
|
6255
|
+
} catch (error) {
|
|
6256
|
+
log(`MOSS scheduled duties: ${error.message}`);
|
|
6257
|
+
}
|
|
6246
6258
|
}
|
|
6247
6259
|
|
|
6248
6260
|
/** Check both platform identity and the selected adapter using generic profile metadata. */
|
|
@@ -641,7 +641,7 @@ export class DiscussionService {
|
|
|
641
641
|
check_steward_proactive() {
|
|
642
642
|
if (this.closed || this.steward_poll || Date.now() < (this.steward_poll_at || 0)) return this.steward_poll;
|
|
643
643
|
this.steward_poll_at = Date.now() + STEWARD_PROACTIVE_POLL_MS;
|
|
644
|
-
this.steward_poll = import('./discussion_launch.mjs').then(({ poll_steward_proactive }) => poll_steward_proactive(this.home))
|
|
644
|
+
this.steward_poll = import('./discussion_launch.mjs').then(({ poll_steward_proactive }) => poll_steward_proactive(this.home, { log: message => this.log(message) }))
|
|
645
645
|
.catch(error => this.log(`MOSS: ${error.message}`)).finally(() => { this.steward_poll = null; });
|
|
646
646
|
return this.steward_poll;
|
|
647
647
|
}
|
|
@@ -304,7 +304,7 @@ function apply_admission(state, job, proposal, reviewed) {
|
|
|
304
304
|
.map(row => ({ ...row, admission_id: job.id, superseded_at: now() }))].slice(-HISTORY);
|
|
305
305
|
state.entries = entries;
|
|
306
306
|
if (reviewed) state.organized = { text, sections: proposal.sections, entries_revision: experience_entries_revision(state),
|
|
307
|
-
version: (state.organized?.version || 0) + 1 };
|
|
307
|
+
version: (state.organized?.version || 0) + 1, updated_at: now() };
|
|
308
308
|
const suggestion = state.suggestions.find(item => item.id === job.suggestion_id);
|
|
309
309
|
if (suggestion) settle(state, suggestion, 'accepted', proposal.merge_into || job.entry_id);
|
|
310
310
|
Object.assign(job, { status: reviewed ? 'effective' : 'unreviewed', applied_at: now() });
|
|
@@ -130,16 +130,20 @@ function zoned_fields(date, zone) {
|
|
|
130
130
|
return { year: field('year'), month: field('month'), day: field('day'), hour: field('hour'), minute: field('minute') };
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
const DAY_MS = 24 * 60 * 60_000;
|
|
134
|
+
const wall_ms = ({ year, month, day, hour, minute }) => Date.UTC(year, month - 1, day, hour, minute);
|
|
135
|
+
|
|
136
|
+
/** Resolve a wall time, using the earlier instant in a fold and moving forward by the gap when absent. */
|
|
134
137
|
function zoned_instant(year, month, day, hour, minute, zone) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
const target = wall_ms({ year, month, day, hour, minute });
|
|
139
|
+
const wall_at = instant => wall_ms(zoned_fields(new Date(instant), zone));
|
|
140
|
+
const offsets = new Set([-DAY_MS, 0, DAY_MS].map(delta => wall_at(target + delta) - (target + delta)));
|
|
141
|
+
const candidates = [...offsets].map(offset => target - offset)
|
|
142
|
+
.map(instant => ({ instant, wall: wall_at(instant) }))
|
|
143
|
+
.filter(candidate => candidate.wall >= target)
|
|
144
|
+
.sort((left, right) => left.wall - right.wall || left.instant - right.instant);
|
|
145
|
+
return new Date(candidates[0].instant);
|
|
141
146
|
}
|
|
142
|
-
|
|
143
147
|
/** Locate one occurrence in the schedule's calendar time (its zone, else this computer's), including across a week boundary. */
|
|
144
148
|
export function occurrence(schedule, now, direction) {
|
|
145
149
|
const [hour, minute] = schedule.at.split(':').map(Number);
|
|
@@ -151,17 +155,88 @@ export function occurrence(schedule, now, direction) {
|
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
157
|
|
|
158
|
+
const day_key = (date, zone) => {
|
|
159
|
+
const { year, month, day } = zoned_fields(date, zone);
|
|
160
|
+
return new Date(Date.UTC(year, month - 1, day)).toISOString().slice(0, 10);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
function review_day(slot, duty) { return day_key(new Date(slot), duty.schedule.timezone); }
|
|
164
|
+
|
|
165
|
+
function review_already_sent(previous, date, duty) {
|
|
166
|
+
return (previous.last_run_date || (previous.last_run && review_day(previous.last_run, duty))) === date;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function next_review(duty, now, previous) {
|
|
170
|
+
const next = occurrence(duty.schedule, now, 1);
|
|
171
|
+
return review_already_sent(previous, review_day(next, duty), duty) ? occurrence(duty.schedule, next, 1) : next;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function scheduled_runs(home) {
|
|
175
|
+
const path = join(home, 'steward-proactive.json');
|
|
176
|
+
return existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')).scheduled || {} : {};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** The delivery receipt is not a completed review; only the matching recorded report confirms completion. */
|
|
180
|
+
export function scheduled_review_status(home, duty, reports = [], now = new Date()) {
|
|
181
|
+
const run = scheduled_runs(home)[EXPERIENCE_REVIEW_DUTY] || {};
|
|
182
|
+
const legacy = [run.last_run, run.skipped_at].filter(Boolean).sort().at(-1);
|
|
183
|
+
const latest = run.last_result || (legacy ? { scheduled_for: legacy, at: null,
|
|
184
|
+
status: legacy === run.last_run ? 'sent' : 'skipped', reason: legacy === run.last_run ? null : 'missed_window' } : null);
|
|
185
|
+
const report = latest?.status === 'sent' && latest.message_id && reports.find(row =>
|
|
186
|
+
row.source?.room_id === latest.room_id && row.source?.message_id === latest.message_id);
|
|
187
|
+
return { ...(duty ? { next_run: next_review(duty, now, run).toISOString() } : {}),
|
|
188
|
+
last_result: report ? { ...latest, status: 'recorded', at: report.created_at } : latest };
|
|
189
|
+
}
|
|
190
|
+
|
|
154
191
|
/** Show run status alongside stored duties without persisting derived fields in settings. */
|
|
155
192
|
export function scheduled_duties(home, settings, now = new Date()) {
|
|
156
193
|
if (!settings.duties.some(duty => duty.schedule)) return settings;
|
|
157
|
-
const
|
|
158
|
-
const runs = existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')).scheduled || {} : {};
|
|
194
|
+
const runs = scheduled_runs(home);
|
|
159
195
|
return { ...settings, duties: settings.duties.map(duty => duty.schedule ? { ...duty,
|
|
160
|
-
last_run: runs[duty.id]?.last_run, skipped_at: runs[duty.id]?.skipped_at, next_run: occurrence(duty.schedule, now, 1).toISOString() } : duty) };
|
|
196
|
+
last_run: runs[duty.id]?.last_run, skipped_at: runs[duty.id]?.skipped_at, next_run: (duty.id === EXPERIENCE_REVIEW_DUTY ? next_review(duty, now, runs[duty.id] || {}) : occurrence(duty.schedule, now, 1)).toISOString() } : duty) };
|
|
161
197
|
}
|
|
162
198
|
|
|
163
|
-
|
|
199
|
+
/** Only the daily review can catch up outside the ordinary grace window. Persist its stable date before sending. */
|
|
200
|
+
async function run_review(path, state, duty, { config, now, send, log }) {
|
|
201
|
+
const due = occurrence(duty.schedule, now, -1);
|
|
202
|
+
const date = review_day(due, duty), changed_at = duty.schedule_changed_at || duty.created_at;
|
|
203
|
+
if (changed_at && date < review_day(changed_at, duty)) return;
|
|
204
|
+
state.scheduled ??= {};
|
|
205
|
+
const previous = state.scheduled[duty.id] || {};
|
|
206
|
+
if (review_already_sent(previous, date, duty)) return;
|
|
207
|
+
const pending = previous.pending && (previous.pending_date || review_day(previous.pending, duty)) === date;
|
|
208
|
+
const scheduled_for = pending ? previous.pending : due.toISOString();
|
|
209
|
+
// Keep the old ISO-based submission for an in-flight slot written before date-based deduplication.
|
|
210
|
+
const key = pending && !previous.pending_date ? scheduled_for : date;
|
|
211
|
+
const result = { scheduled_for, at: now.toISOString(), room_id: config.room };
|
|
212
|
+
const row = { ...previous, pending: scheduled_for, pending_date: pending ? previous.pending_date : date };
|
|
213
|
+
state.scheduled[duty.id] = row;
|
|
214
|
+
atomic_json(path, state);
|
|
215
|
+
try {
|
|
216
|
+
const receipt = await send(config, { duty, slot: scheduled_for, id: duty.id + '-' + key });
|
|
217
|
+
if (receipt.message?.id) {
|
|
218
|
+
Object.assign(row, { last_run: scheduled_for, last_run_date: date,
|
|
219
|
+
last_result: { ...result, status: 'sent', reason: null, message_id: receipt.message.id } });
|
|
220
|
+
delete row.pending;
|
|
221
|
+
delete row.pending_date;
|
|
222
|
+
} else {
|
|
223
|
+
row.last_result = { ...result, status: 'failed', reason: 'missing_receipt' };
|
|
224
|
+
}
|
|
225
|
+
} catch (error) {
|
|
226
|
+
row.last_result = { ...result, status: 'failed', reason: 'delivery_error',
|
|
227
|
+
...(Number.isInteger(error?.status) ? { http_status: error.status } : {}) };
|
|
228
|
+
if (previous.last_result?.reason !== row.last_result.reason || previous.last_result?.scheduled_for !== scheduled_for)
|
|
229
|
+
log(`MOSS daily review delivery: ${error?.message ?? error}`);
|
|
230
|
+
}
|
|
231
|
+
atomic_json(path, state);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
async function run_scheduled(path, state, duties, { config, now, send, skip, log }) {
|
|
164
235
|
for (const duty of duties.filter(item => item.schedule)) {
|
|
236
|
+
if (duty.id === EXPERIENCE_REVIEW_DUTY) {
|
|
237
|
+
await run_review(path, state, duty, { config, now, send, log });
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
165
240
|
const due = occurrence(duty.schedule, now, -1);
|
|
166
241
|
if (due < new Date(duty.created_at)) continue;
|
|
167
242
|
const slot = due.toISOString();
|
|
@@ -198,12 +273,12 @@ async function send_trigger(config, batch) {
|
|
|
198
273
|
}
|
|
199
274
|
|
|
200
275
|
/** Sample the local site once for all rooms. Persist before sending so a lost receipt never wakes MOSS twice. */
|
|
201
|
-
export async function steward_proactive_tick(home, config, settings, { now = new Date(), rooms = read_rooms, send = send_trigger, skip = (room, occurrence) => api(room, '/steward-schedule-skip', occurrence), current = () => settings } = {}) {
|
|
276
|
+
export async function steward_proactive_tick(home, config, settings, { now = new Date(), rooms = read_rooms, send = send_trigger, skip = (room, occurrence) => api(room, '/steward-schedule-skip', occurrence), log = console.error, current = () => settings } = {}) {
|
|
202
277
|
const path = join(home, 'steward-proactive.json');
|
|
203
278
|
const saved = existsSync(path) ? JSON.parse(readFileSync(path, 'utf8')) : null;
|
|
204
279
|
const state = saved?.room === config?.room && saved ? saved : { room: config?.room, events: {}, scheduled: saved?.scheduled || {} };
|
|
205
280
|
const snapshot = JSON.stringify(saved);
|
|
206
|
-
if (config) await run_scheduled(path, state,
|
|
281
|
+
if (config) await run_scheduled(path, state, current().duties, { config, now, send, skip, log });
|
|
207
282
|
const eligible = value => value.enabled && value.duties.some(item => !item.schedule);
|
|
208
283
|
if (!config || !eligible(settings)) {
|
|
209
284
|
if (!saved) return;
|
|
@@ -56,7 +56,7 @@ Linux.do 的 `--output`、`--raw` 放在子命令前,例如 `uv run scripts/li
|
|
|
56
56
|
|
|
57
57
|
B 站、YouTube 把视频当帖子读,不读档案也必须知道:
|
|
58
58
|
- `topic` 传视频链接或 ID(B 站 BV 号、b23.tv 短链,多 P 用 `?p=N`)。1 楼是简介;`transcript` 是带 `[mm:ss]` 的字幕,来源看 `transcript_source`;其后是热门评论,默认 20 条,`--all` 100 条,`complete` 恒为假。
|
|
59
|
-
- 只读文字,不下载视频、不看画面。B 站封面例外:`bilibili.py cover <链接> [--save <目录>]`
|
|
59
|
+
- 只读文字,不下载视频、不看画面。B 站封面例外:`bilibili.py cover <链接> [--save <目录>]` 取封面地址或下载图片,见档案。结论依赖画面时注明「画面未看」;需要看画面时,装了 claude-video(`/watch`)就交给它,没装就在回答末尾用一句话说明装上它可以看画面,安装方法见 `references/setup.md`「可选增强」。
|
|
60
60
|
- B 站不登录时字幕多数拿不到、评论只有十几条(结果带 `note`);需要时请用户在本机终端运行 `bilibili.py login` 扫码。
|
|
61
61
|
|
|
62
62
|
X 的 `topic` 默认读取正文和最多 20 条直接回复,`--all` 最多尝试 100 条;不保证覆盖嵌套、折叠或不可见回复,`complete` 始终为假。需要更多上下文时,可继续读取回复自己的链接。`--raw` 附加的是 twscrape 推文模型,不是 HTTP 原始响应。
|
|
@@ -129,7 +129,7 @@ X 的「查」最多 2 次搜索或列表、3 个帖子;每次翻页也算一
|
|
|
129
129
|
|
|
130
130
|
沙箱通常只放行工作区写入,而脚本要写 `~/.forum-browsing` 下的限速记录、锁和登录会话。这时脚本返回 `"error": "state_not_writable"` 并退出,请求没有发出,不是风控或掉登录。
|
|
131
131
|
|
|
132
|
-
-
|
|
132
|
+
- **成员**:软件能申请提权时(如 Codex 自动档),先申请提权重跑同一条命令;不能提权或被拒时再按下文处理。不要用 `FORUM_STATE_DIR` 把状态目录改到临时位置,那样会丢失登录,并绕开多个窗口共享的限速与冷却。停止该站,按原错误码汇报,其余免写状态站(V2EX、Hacker News、Reddit)照常运行。
|
|
133
133
|
- **共议(AI CoDiscuss)房间权限档位**:
|
|
134
134
|
- 房间成员在 `read` 或 `write` 档位下,Claude Code 与 Gemini(Antigravity CLI)默认只放行 `codiscuss` 房间子命令,不能运行外部脚本。
|
|
135
135
|
- **Codex CLI 沙箱边界**:`read` 与 `write` 档位下,不写 `~/.forum-browsing` 的免状态查询(`v2ex.py`、`hackernews.py`、`reddit.py`)可直接运行;而 `check.py`(写 `sites.json`)及需保存限速锁或会话的站点均要写入 `~/.forum-browsing`,在沙箱默认只读下会返回 `state_not_writable`。Codex 的 `auto` 档仍运行在沙箱中,仅可申请自动审批放行、不保证可写状态目录。
|
|
@@ -29,7 +29,7 @@ uv run scripts/bilibili.py login # 由用户在本机终端运行
|
|
|
29
29
|
## 字幕
|
|
30
30
|
|
|
31
31
|
- 来源写在 `transcript_source`:`UP 主字幕` 是作者上传的,`AI 字幕` 是 B 站自动生成的,可能有同音字错误;`无字幕` 表示这个视频确实没有字幕轨;`未取得(原因)` 表示读取失败,其他字段照常返回。
|
|
32
|
-
-
|
|
32
|
+
- 字幕只代表作者说了什么。对着屏幕操作的教程里,字幕常常只有“这样点一下”,画面内容要看视频本身;结论依赖画面时注明“画面未看”。需要看画面时,装了 claude-video(`/watch`)就交给它;没装时按 `setup.md`「可选增强」说明可以安装。
|
|
33
33
|
|
|
34
34
|
## 失败分类
|
|
35
35
|
|
|
@@ -85,6 +85,16 @@ python scripts/check.py --site hackernews,v2ex --deep
|
|
|
85
85
|
- 建议用小号,因为同一个账号的网页端只能登录一处。
|
|
86
86
|
3. 服务第一次启动时会自己下载浏览器,可能要等几分钟。
|
|
87
87
|
|
|
88
|
+
## 可选增强
|
|
89
|
+
|
|
90
|
+
本技能只读文字。下面的能力由其他技能提供,不装不影响查帖;用户需要时再装,不替用户自动安装。
|
|
91
|
+
|
|
92
|
+
- **看视频画面**:[claude-video](https://github.com/bradautomates/claude-video)(MIT,技能名 `watch`,用法 `/watch <链接或本地文件> <问题>`)。它把视频抽成带时间戳的画面帧和文字稿交给 AI 看,B 站、YouTube 的教程类视频字幕说不清画面时用它。
|
|
93
|
+
- Claude Code:在会话里依次输入 `/plugin marketplace add bradautomates/claude-video`、`/plugin install watch@claude-video`,然后新开会话。
|
|
94
|
+
- Codex:在终端依次运行 `codex plugin marketplace add bradautomates/claude-video`、`codex plugin add watch@claude-video`。
|
|
95
|
+
- 其他支持 Agent Skills 的软件:`npx skills add bradautomates/claude-video -g --skill watch`(需要 Node.js)。
|
|
96
|
+
- 它另需 Python 3.10+、FFmpeg 和最新版 yt-dlp,YouTube 还需要 Deno;缺什么它会提示。安装步骤以它的 README 为准(2026-12-03 核对)。
|
|
97
|
+
|
|
88
98
|
## 共享运行环境(沙箱或 uv 缓存不可用时)
|
|
89
99
|
|
|
90
100
|
`uv run` 每次在 `uv` 缓存里建环境。沙箱里缓存目录常常不可写;把缓存挪到深层目录又会让 curl_cffi 的 DLL 因路径过长加载失败。所以在短路径预装一份共享环境,由用户或不受沙箱限制的成员建一次:
|
|
@@ -21,7 +21,7 @@ uv run scripts/youtube.py status
|
|
|
21
21
|
## 字幕
|
|
22
22
|
|
|
23
23
|
- 优先作者上传的字幕(原语言 > 中文 > 英文),没有时用原语言的自动字幕,`transcript_source` 会写明是哪种。自动字幕没有标点或有识别错误,引用专有名词、数字时注明。
|
|
24
|
-
-
|
|
24
|
+
- 字幕只代表说了什么,画面内容要看视频本身;结论依赖画面时注明“画面未看”。需要看画面时,装了 claude-video(`/watch`)就交给它;没装时按 `setup.md`「可选增强」说明可以安装。
|
|
25
25
|
|
|
26
26
|
## 人机验证与 Cookie
|
|
27
27
|
|
|
@@ -167,8 +167,9 @@ def require_writable(state_dir, output_path):
|
|
|
167
167
|
except OSError as error:
|
|
168
168
|
emit({"ok": False, "error": "state_not_writable", "path": str(state_dir),
|
|
169
169
|
"detail": f"{type(error).__name__}: {error.strerror or error}",
|
|
170
|
-
"fix": "
|
|
171
|
-
"
|
|
170
|
+
"fix": "当前进程不能写状态目录,常见于沙箱运行。不要改用临时状态目录。"
|
|
171
|
+
"能申请提权时,申请提权后重跑同一条命令(如 Codex 自动档会自动审核放行);"
|
|
172
|
+
"不能提权或被拒时,请主持人或用户把 ~/.forum-browsing 加为该成员的可写目录,"
|
|
172
173
|
"或改派给不受沙箱限制的成员(如 Claude Code)。"}, output_path)
|
|
173
174
|
sys.stderr.write(f"state_not_writable: {state_dir}" + chr(10))
|
|
174
175
|
return False
|
package/web/app.js
CHANGED
|
@@ -4113,6 +4113,16 @@ function room_with_intervention(room, { type, id, reason }) {
|
|
|
4113
4113
|
const notes = room.intervention_notes;
|
|
4114
4114
|
return { ...room, intervention_notes: { ...notes, [type]: { ...notes?.[type], [id]: reason } } };
|
|
4115
4115
|
}
|
|
4116
|
+
/** Open MOSS's window with a rule quoted in the composer; the owner adds a line and sends it. Nothing is sent by itself. */
|
|
4117
|
+
async function chat_with_moss(text) {
|
|
4118
|
+
await open_steward();
|
|
4119
|
+
if (!state.room || state.room.system_kind !== "steward") return;
|
|
4120
|
+
const quoted = t("关于这条经验:{text}", { text: String(text || "").replace(/\n+/g, " ") });
|
|
4121
|
+
const current = element("message-input").value.trim();
|
|
4122
|
+
fill_composer(current ? `${current}\n\n${quoted}\n` : `${quoted}\n`, state.attachment_drafts, state.reply_to ? { id: state.reply_to, label: element("reply-label").textContent } : null);
|
|
4123
|
+
element("message-input").focus();
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4116
4126
|
// Suggestions quoted into MOSS's composer: they turn 深化中 only once the owner sends that message, not on the click.
|
|
4117
4127
|
let pending_refine = null;
|
|
4118
4128
|
/** Send daily-review suggestions back to MOSS: its window opens with them quoted; the owner adds how to change them and sends. */
|
|
@@ -13879,7 +13889,7 @@ window.discuss_view = { snapshot: view_snapshot, write_field: write_view_field,
|
|
|
13879
13889
|
device: { recent_timings: () => recent_relay_times.slice(), request: device_request, pair: pair_this_device, take_scanned: take_scanned_pairing, invite: invite_device, renew: renew_this_device, forget: forget_pairing,
|
|
13880
13890
|
label: device_label, prompt_confirm: () => state.device.prompt?.run(), prompt_cancel: () => state.device.prompt?.cancel() },
|
|
13881
13891
|
request: request_json, room_patch, rewind_plan, load_earlier_messages, load_messages_until, can_retract_message, identities: IDENTITIES, platform_identity: name => PLATFORM_IDENTITIES[name], display_name, mention_handles, mentioned_members, render_room_markdown, sources: SOURCE_LABELS,
|
|
13882
|
-
set_member_access, set_member_model, set_member_prompt, manage_experience, start_experience_intent, refine_with_moss, read_system_prompts, save_system_prompts, set_member_adapter, reload_room_models, experience_notification_link, save_intervention_reason, service_tier_label, participant_speed_tier, speed_tier_badge, load_storage, clean_storage, read_attachment_usage, clear_attachments, read_member_skills, read_room_files, manage_room_files, save_project_to_cloud, project_cloud_status, upload_project_via_cloud, upload_to_cloud_space, save_cloud_thumbnail, cloud_thumbnail_url, download_project_via_cloud, download_project_entry, preview_cloud_file, opened_on_this_computer, can_open_local, is_local_open_blocked, open_project_local, upload_project_file, upload_project_file_local, download_project_file, download_project_folder, room_title, read_room_page, local_page_info, local_page_url, open_project_preview, uses_direct_project_preview, read_room_media, read_room_thumbnail, project_media_route, project_media_url, read_execution_details, interject_execution, read_member_chat, send_member_chat, stop_member_chat, decide_chat_approval, pause_execution, limits_label, stop_reason_label, participant_model, participant_files, participant_session_hint, participant_access,
|
|
13892
|
+
set_member_access, set_member_model, set_member_prompt, manage_experience, start_experience_intent, refine_with_moss, chat_with_moss, read_system_prompts, save_system_prompts, set_member_adapter, reload_room_models, experience_notification_link, save_intervention_reason, service_tier_label, participant_speed_tier, speed_tier_badge, load_storage, clean_storage, read_attachment_usage, clear_attachments, read_member_skills, read_room_files, manage_room_files, save_project_to_cloud, project_cloud_status, upload_project_via_cloud, upload_to_cloud_space, save_cloud_thumbnail, cloud_thumbnail_url, download_project_via_cloud, download_project_entry, preview_cloud_file, opened_on_this_computer, can_open_local, is_local_open_blocked, open_project_local, upload_project_file, upload_project_file_local, download_project_file, download_project_folder, room_title, read_room_page, local_page_info, local_page_url, open_project_preview, uses_direct_project_preview, read_room_media, read_room_thumbnail, project_media_route, project_media_url, read_execution_details, interject_execution, read_member_chat, send_member_chat, stop_member_chat, decide_chat_approval, pause_execution, limits_label, stop_reason_label, participant_model, participant_files, participant_session_hint, participant_access,
|
|
13883
13893
|
turn_label, turn_guidance, round_groups, limit_rounds, progress_speaker, brief_meta, max_message_length: MAX_MESSAGE_LENGTH, provenance: message_provenance, format_time,
|
|
13884
13894
|
download_private_attachment, discard_draft_upload, copy_text,
|
|
13885
13895
|
rooms_read_seq: () => state.rooms_read_seq || 0 };
|