ai_co_discuss 0.6.0 → 0.6.2
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/skills/discuss-host/SKILL.md +7 -5
- package/.agents/skills/discuss-host/references/experience.md +26 -0
- package/.agents/skills/discuss-host/references/members.md +5 -1
- package/.agents/skills/discuss-host/references/room.md +6 -2
- package/.agents/skills/discuss-host/references/rooms.md +1 -1
- package/.agents/skills/discuss-host/references/workflow.md +3 -1
- package/.agents/skills/discuss-participant/references/interactive-html.md +1 -1
- package/.agents/skills/model-generation/SKILL.md +27 -0
- package/.agents/skills/prompt-design/SKILL.md +34 -0
- package/.agents/skills/prompt-design/agents/openai.yaml +5 -0
- package/.agents/skills/screen-acceptance/SKILL.md +22 -0
- package/.agents/skills/video-generation/SKILL.md +38 -0
- package/.agents/skills/workflow-creator/SKILL.md +1 -1
- package/.agents/steward-skills/dispatch-analysis/SKILL.md +31 -8
- package/README.md +1 -15
- package/README.zh-CN.md +1 -15
- package/backend/free_room.py +8 -5
- package/backend/room_import.py +3 -0
- package/backend/schema.sql +5 -0
- package/backend/server.py +233 -20
- package/docs/en/guide/admin.md +3 -3
- package/docs/en/guide/analytics.md +9 -0
- package/docs/en/guide/cli.md +1 -0
- package/docs/en/guide/faq.md +1 -1
- package/docs/en/guide/first-run.md +1 -1
- package/docs/en/guide/members.md +12 -3
- package/docs/en/guide/rooms.md +5 -4
- package/docs/en/guide/steward.md +2 -0
- package/docs/en/guide/working.md +4 -3
- package/docs/guide/admin.md +3 -3
- package/docs/guide/analytics.md +9 -0
- package/docs/guide/cli.md +1 -0
- package/docs/guide/faq.md +1 -1
- package/docs/guide/first-run.md +1 -1
- package/docs/guide/members.md +12 -3
- package/docs/guide/rooms.md +5 -4
- package/docs/guide/steward.md +2 -0
- package/docs/guide/working.md +4 -3
- package/frontend/locales/en/admin.json +21 -5
- package/frontend/locales/en/analytics.json +5 -0
- package/frontend/locales/en/backend.json +11 -1
- package/frontend/locales/en/core.json +5 -2
- package/frontend/locales/en/discussion.json +27 -3
- package/frontend/locales/en/room.json +15 -0
- package/frontend/locales/en/settings.json +135 -1
- package/package.json +5 -1
- package/runner/account_env.mjs +15 -10
- package/runner/adapters/antigravity_cli.mjs +3 -2
- package/runner/adapters/api.mjs +24 -5
- package/runner/adapters/claude.mjs +103 -4
- package/runner/adapters/common.mjs +11 -0
- package/runner/adapters/index.mjs +70 -9
- package/runner/adapters/profiles.mjs +22 -2
- package/runner/channels.mjs +5 -1
- package/runner/discuss.py +14 -1
- package/runner/discussion_launch.mjs +433 -30
- package/runner/discussion_skills.mjs +4 -1
- package/runner/expert_prompts.mjs +2 -2
- package/runner/free_runner.mjs +52 -22
- package/runner/host_experience.mjs +447 -0
- package/runner/i18n_en.mjs +59 -0
- package/runner/model_service.mjs +19 -4
- package/runner/remote_launch.mjs +12 -4
- package/runner/share_shared.mjs +1 -1
- package/runner/steward.mjs +7 -5
- package/runner/steward_proactive.mjs +7 -3
- package/runner/wakeup_text.mjs +20 -0
- package/runner/workflows.mjs +4 -2
- package/skills/forum-browsing/SKILL.md +1 -1
- package/web/admin.css +1 -1
- package/web/admin.js +8 -8
- package/web/app.js +159 -16
- package/web/guest.js +1 -1
- package/web/i18n.js +7 -4
- package/web/icons/tripo.svg +1 -0
- package/web/modern.css +1 -1
- package/web/modern.js +89 -81
- package/workflows/human-writing/SKILL.md +68 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/LICENSE +21 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/SKILL.md +167 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/VERSION +1 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/agents/openai.yaml +4 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/dist/human-writing-lite.md +25 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/references/fiction.md +119 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/references/formats.md +99 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/references/forum-prose.md +349 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/references/reality.md +119 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/references/revision.md +206 -0
- package/workflows/human-writing/experts/writer/skills/human-writing/scripts/check_prose.py +731 -0
- package/workflows/human-writing/experts/writer/writer.md +33 -0
- package/workflows/human-writing/flow.json +156 -0
- package/workflows/story-serial/SKILL.md +2 -0
- package/workflows/story-serial/workflows/aigc-reduce/flow.json +27 -27
- package/workflows/story-serial/workflows/character-play/SKILL.md +1 -1
- package/workflows/story-serial/workflows/character-play/flow.json +35 -35
- package/workflows/story-serial/workflows/jack-sparrow/flow.json +15 -15
- package/workflows/story-serial/workflows/luke-nichols/flow.json +15 -15
- package/workflows/story-serial/workflows/revise-episodes/flow.json +27 -27
- package/workflows/story-serial/workflows/story-illust/SKILL.md +124 -0
- package/workflows/story-serial/workflows/story-illust/experts/illust_writer.md +25 -0
- package/workflows/story-serial/workflows/story-illust/experts/rev_codex.md +18 -0
- package/workflows/story-serial/workflows/story-illust/experts/rev_cont.md +27 -0
- package/workflows/story-serial/workflows/story-illust/experts/rev_gemini.md +20 -0
- package/workflows/story-serial/workflows/story-illust/flow.json +917 -0
- package/workflows/story-serial/workflows/story-illust/references//347/224/237/345/233/276/346/226/271/346/263/225.md +72 -0
- package/workflows/story-serial/workflows/story-illust/scripts/batch_check.py +338 -0
- package/workflows/story-serial/workflows/story-illust/scripts/book.py +105 -0
- package/workflows/story-serial/workflows/story-illust/scripts/check.py +463 -0
- package/workflows/story-serial/workflows/story-illust/scripts/contact.py +599 -0
- package/workflows/story-serial/workflows/story-illust/scripts/md_tables.py +298 -0
- package/workflows/story-serial/workflows/story-illust/scripts/room_verify.py +546 -0
- package/workflows/story-serial/workflows/story-illust/scripts/sheet.py +210 -0
- package/workflows/story-serial/workflows/story-illust/templates//346/211/271/346/254/241/345/267/245/344/275/234/345/215/225.md +86 -0
- package/workflows/story-serial/workflows/story-illust/templates//350/247/206/350/247/211/350/256/276/345/256/232/350/241/250.md +142 -0
- package/workflows/story-serial/workflows/tidy-docs/flow.json +39 -39
- /package/workflows/story-serial/{agents → experts}/critic.md +0 -0
- /package/workflows/story-serial/{agents → experts}/critic_people.md +0 -0
- /package/workflows/story-serial/{agents → experts}/reader.md +0 -0
- /package/workflows/story-serial/{agents → experts}/recorder.md +0 -0
- /package/workflows/story-serial/{agents → experts}/screenwriter.md +0 -0
- /package/workflows/story-serial/{agents → experts}/writer.md +0 -0
- /package/workflows/story-serial/workflows/character-play/{agents → experts}/character.md +0 -0
- /package/workflows/story-serial/workflows/jack-sparrow/{agents → experts}/jack_sparrow/jack_sparrow.md +0 -0
- /package/workflows/story-serial/workflows/jack-sparrow/{agents → experts}/jack_sparrow/skills/coastal-sailing/SKILL.md +0 -0
- /package/workflows/story-serial/workflows/jack-sparrow/{agents → experts}/jack_sparrow/skills/coastal-sailing/references/catamaran-and-crew.md +0 -0
- /package/workflows/story-serial/workflows/jack-sparrow/{agents → experts}/jack_sparrow/skills/coastal-sailing/references/emergency-and-navigation.md +0 -0
- /package/workflows/story-serial/workflows/jack-sparrow/{agents → experts}/jack_sparrow/skills/coastal-sailing/references/resources-and-systems.md +0 -0
- /package/workflows/story-serial/workflows/jack-sparrow/{agents → experts}/jack_sparrow/skills/coastal-sailing/references/weather-and-anchoring.md +0 -0
- /package/workflows/story-serial/workflows/luke-nichols/{agents → experts}/luke_nichols/luke_nichols.md +0 -0
- /package/workflows/story-serial/workflows/luke-nichols/{agents → experts}/luke_nichols/skills/cold-survival/SKILL.md +0 -0
- /package/workflows/story-serial/workflows/luke-nichols/{agents → experts}/luke_nichols/skills/cold-survival/references/fire-and-fuel.md +0 -0
- /package/workflows/story-serial/workflows/luke-nichols/{agents → experts}/luke_nichols/skills/cold-survival/references/luke-videos.md +0 -0
- /package/workflows/story-serial/workflows/luke-nichols/{agents → experts}/luke_nichols/skills/cold-survival/references/shelter-and-warmth.md +0 -0
- /package/workflows/story-serial/workflows/luke-nichols/{agents → experts}/luke_nichols/skills/cold-survival/references/travel-and-ice.md +0 -0
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"{status} · {text}": "{status} · {text}",
|
|
3
|
+
"补记原因": "Add a reason",
|
|
4
|
+
"介入原因:{reason}": "Reason: {reason}",
|
|
5
|
+
"无法定位 #{value1}:消息已撤回": "Can't find #{value1}: the message was withdrawn.",
|
|
6
|
+
"建模专家": "Modeling specialist",
|
|
2
7
|
"后台补充": "Background follow-up",
|
|
3
8
|
"不等它,转到后台继续执行": "Move to the background and continue without waiting",
|
|
4
9
|
"不等它": "Continue without waiting",
|
|
@@ -49,7 +54,7 @@
|
|
|
49
54
|
"发送给主持人": "Send to host",
|
|
50
55
|
"请输入模型描述或添加参考附件": "Enter a model description or add a reference file",
|
|
51
56
|
"请先为房间指定主持人": "Assign a host to this room first",
|
|
52
|
-
"由主持人判断": "
|
|
57
|
+
"由主持人判断": "Host decides",
|
|
53
58
|
"请生成三维模型。生成方式:{method};拆分部件:{split}。{description}": "Please generate a 3D model. Method: {method}. Split parts: {split}. {description}",
|
|
54
59
|
"是": "Yes",
|
|
55
60
|
"否": "No",
|
|
@@ -62,7 +67,6 @@
|
|
|
62
67
|
"国际(默认)": "Global (default)",
|
|
63
68
|
"中国大陆": "Mainland China",
|
|
64
69
|
"请在房间的协作设置中添加 Tripo": "Add Tripo in the room’s collaboration settings.",
|
|
65
|
-
"需先在配置里填写 Tripo API Key": "Enter a Tripo API key in settings first.",
|
|
66
70
|
"地区": "Region",
|
|
67
71
|
"清除密钥": "Clear key",
|
|
68
72
|
"生成方式": "Generation method",
|
|
@@ -71,6 +75,14 @@
|
|
|
71
75
|
"参考图": "Reference image",
|
|
72
76
|
"参考模型": "Reference model",
|
|
73
77
|
"拆分部件": "Split parts",
|
|
78
|
+
"模型参数": "Model options",
|
|
79
|
+
"{method}:{hint}": "{method}: {hint}",
|
|
80
|
+
"移除{label}": "Remove {label}",
|
|
81
|
+
"AI 代码制作": "AI-coded",
|
|
82
|
+
"请输入视频描述或添加参考附件": "Enter a video description or add a reference file",
|
|
83
|
+
"请生成视频。生成方式:{method};分辨率:{size};时长:{seconds}。{description}": "Please generate a video. Method: {method}. Resolution: {size}. Duration: {seconds}. {description}",
|
|
84
|
+
"交给主持人用代码制作,或调用视频模型": "Have the host get it coded, or call a video model",
|
|
85
|
+
"未填 Tripo API Key,请点面板右上角“设置”填写": "No Tripo API key yet. Open Settings at the top right of this panel to enter one.",
|
|
74
86
|
"重置视角": "Reset view",
|
|
75
87
|
"线框": "Wireframe",
|
|
76
88
|
"模型视图": "Model view",
|
|
@@ -207,6 +219,7 @@
|
|
|
207
219
|
"复制原文链接": "Copy original message link",
|
|
208
220
|
"复制正文": "Copy text",
|
|
209
221
|
"返回原位置": "Back to where you were",
|
|
222
|
+
"关闭返回房间提示": "Dismiss return-to-room prompt",
|
|
210
223
|
"返回「{title}」": "Back to “{title}”",
|
|
211
224
|
"返回原房间": "Back to previous room",
|
|
212
225
|
"房间还没加载完,未能定位 #{id}": "The room hasn't finished loading, so #{id} couldn't be shown",
|
|
@@ -491,5 +504,16 @@
|
|
|
491
504
|
"后台还有 {value1} 项工作在运行,明细见私聊": "{value1} background tasks still running; see the private chat for details",
|
|
492
505
|
"{member} 排队中:做完当前这件后接 #{message}": "{member} is queued to take #{message} after finishing the current task",
|
|
493
506
|
"找不到 {value1} 所在的项目目录": "Could not find the project directory that holds {value1}",
|
|
494
|
-
"只能预览普通文件": "Only regular files can be previewed"
|
|
507
|
+
"只能预览普通文件": "Only regular files can be previewed",
|
|
508
|
+
"主持人的意图": "Host's intent",
|
|
509
|
+
"后台处理中…": "Working in the background…",
|
|
510
|
+
"没做成": "Could not finish",
|
|
511
|
+
"去做": "Go ahead",
|
|
512
|
+
"不用": "No thanks",
|
|
513
|
+
"已采纳:{text}": "Accepted: {text}",
|
|
514
|
+
"已生成一份工作流草稿 · 去确认": "A workflow draft is ready · Review it",
|
|
515
|
+
"已生成一条经验建议 · 去确认": "A rule suggestion is ready · Review it",
|
|
516
|
+
"本次产出": "Results of this review",
|
|
517
|
+
"想存成工作流": "Save as workflow?",
|
|
518
|
+
"想记下": "Remember?"
|
|
495
519
|
}
|
|
@@ -602,6 +602,12 @@
|
|
|
602
602
|
"已选 {count} 位": "{count} selected",
|
|
603
603
|
"移除所选成员?": "Remove selected members?",
|
|
604
604
|
"所选成员将移出房间名单。": "The selected members will be removed from the room roster.",
|
|
605
|
+
"移除 {name}?": "Remove {name}?",
|
|
606
|
+
"该成员将移出房间名单。": "This member will be removed from the room roster.",
|
|
607
|
+
"移除 {name} 的席位?": "Remove the seat of {name}?",
|
|
608
|
+
"撤销 {name} 的授权?": "Revoke access for {name}?",
|
|
609
|
+
"邀请链接将失效,席位移出房间名单。": "The invitation link will stop working and the seat will be removed from the roster.",
|
|
610
|
+
"对方之后的请求都会被拒绝。": "Their later requests will all be refused.",
|
|
605
611
|
"来自工作流「{value1}」": "From workflow “{value1}”",
|
|
606
612
|
"{value1} 的更多操作": "More actions for {value1}",
|
|
607
613
|
"邀请 AI 加入": "Invite AI",
|
|
@@ -764,6 +770,10 @@
|
|
|
764
770
|
"用它在房间里的同一个会话回答,记录只有你看得到": "Uses the same session as the room; only you can see this chat",
|
|
765
771
|
"私聊只在这里,不会发到群;MOSS 正在群里回复时,私聊会等它回复完再处理": "This chat stays here and is never sent to the group; while MOSS is replying in the group, it waits until that reply is done",
|
|
766
772
|
"正在读取私聊": "Loading private chat",
|
|
773
|
+
"唤醒文本": "Wake-up text",
|
|
774
|
+
"正在读取唤醒文本": "Loading wake-up text",
|
|
775
|
+
"这一轮没有记录唤醒文本": "No wake-up text was recorded for this turn",
|
|
776
|
+
"未能读取唤醒文本,请收起后重试": "Could not load wake-up text. Close and reopen to retry.",
|
|
767
777
|
"回复于": "Replied at",
|
|
768
778
|
"未能读取过程:{value1}": "Could not load progress: {value1}",
|
|
769
779
|
"正在读取过程…": "Loading progress…",
|
|
@@ -1185,6 +1195,7 @@
|
|
|
1185
1195
|
"{reading},{time} 重置": "{reading}, resets {time}",
|
|
1186
1196
|
"{name}:5h {five},7d {seven}": "{name}: 5h {five}, 7d {seven}",
|
|
1187
1197
|
"读取于 {time}": "Read at {time}",
|
|
1198
|
+
"{model} 本周已用 {percent}%": "{model} used {percent}% this week",
|
|
1188
1199
|
"主持人提示词": "Host prompt",
|
|
1189
1200
|
"所有房间的主持人都会收到": "Every room's host receives it",
|
|
1190
1201
|
"所有房间的主持人都会收到,和“设置 → 系统提示词 → 主持人”是同一份;写你派活、选人的偏好,比如哪家额度多、谁擅长什么。": "Every room's host receives it; it is the same text as Settings → System prompts → Host. Write how you like work handed out and members chosen, such as whose quota is ample or who is good at what.",
|
|
@@ -1226,6 +1237,10 @@
|
|
|
1226
1237
|
"已用 {value1}": "{value1} used",
|
|
1227
1238
|
"上下文": "Context",
|
|
1228
1239
|
"账号额度": "Account usage limits",
|
|
1240
|
+
"刷新额度": "Refresh usage limits",
|
|
1241
|
+
"已重置": "Reset",
|
|
1242
|
+
"未能刷新这些账号的额度:{accounts}": "Could not refresh usage limits for these accounts: {accounts}",
|
|
1243
|
+
"刷新额度失败:{reason}": "Could not refresh usage limits: {reason}",
|
|
1229
1244
|
"设置 {account} 的订阅套餐": "Set the subscription plan for {account}",
|
|
1230
1245
|
"订阅套餐未能保存": "Could not save the subscription plan",
|
|
1231
1246
|
"{name} 不限": "{name} no limit",
|
|
@@ -1,4 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
+
"检查中": "Checking",
|
|
3
|
+
"有冲突": "Conflict",
|
|
4
|
+
"检查失败": "Check failed",
|
|
5
|
+
"已生效": "Active",
|
|
6
|
+
"未经整理": "Unreviewed",
|
|
7
|
+
"沉淀": "Make durable",
|
|
8
|
+
"撤掉这处依据": "Remove this source",
|
|
9
|
+
"等待 MOSS 检查超时。": "The MOSS check timed out.",
|
|
10
|
+
"未能送达 MOSS,请检查软件登录或额度后重试。": "Could not deliver to MOSS. Check the app sign-in or usage allowance and try again.",
|
|
11
|
+
"MOSS 没有完成这次检查。": "MOSS did not finish this check.",
|
|
12
|
+
"主持人读到的": "What the host reads",
|
|
13
|
+
"你提交的经验": "Your submitted rules",
|
|
14
|
+
"没有旧条目": "No previous rule",
|
|
15
|
+
"提交原文": "Original submission",
|
|
16
|
+
"生效后": "Once active",
|
|
17
|
+
"这条经验将被移除。": "This rule will be removed.",
|
|
18
|
+
"查看整理稿全文": "View the full organized draft",
|
|
19
|
+
"新条目": "New rule",
|
|
20
|
+
"旧条目": "Existing rule",
|
|
21
|
+
"冲突场景": "When they conflict",
|
|
22
|
+
"用新的替换旧的": "Replace with the new rule",
|
|
23
|
+
"两条都留": "Keep both",
|
|
24
|
+
"不要新的": "Drop the new rule",
|
|
25
|
+
"写清新旧条目各在什么情况下适用": "Explain when each rule applies",
|
|
26
|
+
"提交检查": "Submit for review",
|
|
27
|
+
"生效": "Activate",
|
|
28
|
+
"直接启用": "Enable without review",
|
|
29
|
+
"出处 {count} 处": "Sources ({count})",
|
|
30
|
+
"已沉淀": "Made durable",
|
|
31
|
+
"这条经验已有待入库的修改。": "This rule already has a change awaiting review.",
|
|
32
|
+
"还没有启用的经验。": "No rules are enabled yet.",
|
|
33
|
+
"当前没有可用的整理稿,按条交给主持人。": "No organized draft is current. The host receives the rules individually.",
|
|
34
|
+
"已生效 {count} 条": "{count} active rules",
|
|
35
|
+
"请先配置 MOSS。": "Set up MOSS first.",
|
|
36
|
+
"时间": "Time",
|
|
37
|
+
"每日排查": "Daily review",
|
|
38
|
+
"复盘记录": "Review history",
|
|
39
|
+
"暂无复盘记录": "No reviews yet",
|
|
40
|
+
"MOSS 排查": "MOSS review",
|
|
41
|
+
"建议删除": "Suggested removal",
|
|
42
|
+
"每天由 MOSS 复盘你介入较多的房间,建议放到这里待你确认。": "Each day, MOSS reviews the rooms you intervened in most often and leaves suggestions here for you to confirm.",
|
|
43
|
+
"介入原因(选填)": "Reason (optional)",
|
|
44
|
+
"补充撤回或改派原因": "Add a reason for withdrawing or reassigning",
|
|
45
|
+
"这条不对": "Not right",
|
|
46
|
+
"这条经验是原主持人提示词全文。确定删除?": "Delete the full original host prompt stored in this rule?",
|
|
47
|
+
"确定删除这条经验?": "Delete this rule?",
|
|
48
|
+
"最近使用 {date}": "Last used {date}",
|
|
49
|
+
"用户修改过": "Edited by the user",
|
|
50
|
+
"使用 {count} 次": "Used {count} times",
|
|
51
|
+
"尚未使用": "Never used",
|
|
52
|
+
"这条经验已删除。": "This rule has been deleted.",
|
|
53
|
+
"派活依据": "Based on",
|
|
54
|
+
"经验": "Experience",
|
|
55
|
+
"添加经验": "Add rule",
|
|
56
|
+
"适用范围": "Applies to",
|
|
57
|
+
"经验正文": "Rule text",
|
|
58
|
+
"待确认建议": "Suggestions to review",
|
|
59
|
+
"改后采纳": "Edit and accept",
|
|
60
|
+
"暂无经验": "No experience yet",
|
|
61
|
+
"用户手写": "Written by you",
|
|
62
|
+
"主持人复盘": "Host review",
|
|
2
63
|
"显示时区": "Display time zone",
|
|
3
64
|
"跟随系统 · {offset} · {city}": "Follow system · {offset} · {city}",
|
|
4
65
|
"搜索城市、时区或偏移": "Search cities, zones or offsets",
|
|
@@ -270,6 +331,8 @@
|
|
|
270
331
|
"接入图片模型,房间里的成员都能按需出图、改图,图片随回答发出;按张计费。": "Connect an image model so room members can generate and edit images as needed and include them in replies. Billed per image.",
|
|
271
332
|
"添加生图服务": "Add image generation service",
|
|
272
333
|
"未添加。房间里的成员不能画图。": "Not added. Room members cannot generate images.",
|
|
334
|
+
"未添加。房间里的成员不能生成视频。": "Not added. Room members cannot generate videos.",
|
|
335
|
+
"未添加。房间里的成员不能生成三维模型。": "Not added. Room members cannot generate 3D models.",
|
|
273
336
|
"移出生图服务 {value1}": "Remove image generation service {value1}",
|
|
274
337
|
"地址": "Address",
|
|
275
338
|
"图片接口 Base URL": "Image API base URL",
|
|
@@ -902,6 +965,10 @@
|
|
|
902
965
|
"可以在软件沙箱内运行只读命令。": "Read-only commands can run in the software sandbox.",
|
|
903
966
|
"每完成一阶段就汇报进展。用户提问或叫停时先回应,汇报先写结论和需要用户决定的事。": "Report progress at the end of each stage. Respond first when the user asks a question or tells you to stop. Lead with the outcome and any decision the user needs to make.",
|
|
904
967
|
"主持模型规则已保存。": "Host model rule saved.",
|
|
968
|
+
"主持模型规则": "Host model rules",
|
|
969
|
+
"没有可添加的模型": "No models to add",
|
|
970
|
+
"选择平台": "Select a platform",
|
|
971
|
+
"选择模型": "Select a model",
|
|
905
972
|
"编辑 {model} 的主持规则": "Edit the host rule for {model}",
|
|
906
973
|
"这段正文只在该模型担任普通房间主持人且规则启用时发送。": "This text is sent only when this model hosts an ordinary room and the rule is enabled.",
|
|
907
974
|
"主持规则正文": "Host rule text",
|
|
@@ -1021,5 +1088,72 @@
|
|
|
1021
1088
|
"该软件不支持此档位": "This software does not support this access level",
|
|
1022
1089
|
"Windows 沙箱使用独立系统账号,无法读取当前账号加密保存的外部房间密钥": "The Windows sandbox uses a separate system account and cannot read the external-room key encrypted for the signed-in account",
|
|
1023
1090
|
"当前运行环境未启用文件沙箱": "Filesystem sandboxing is not enabled in the current environment",
|
|
1024
|
-
"你的 AI 在这台电脑上能做什么:按只读档在空目录里参与对方房间,或像平时一样读写本机文件、联网。": "What your AI can do on this computer: join the other room read-only in an empty workspace, or read/write local files and access the network as usual."
|
|
1091
|
+
"你的 AI 在这台电脑上能做什么:按只读档在空目录里参与对方房间,或像平时一样读写本机文件、联网。": "What your AI can do on this computer: join the other room read-only in an empty workspace, or read/write local files and access the network as usual.",
|
|
1092
|
+
"只在 {model} 担任主持人时发送,与“通用”一起生效。": "Sent only when {model} hosts, together with General.",
|
|
1093
|
+
"已关闭:{model} 担任主持人时不发送这段。": "Off: not sent when {model} hosts.",
|
|
1094
|
+
"选好平台和模型,写下只对这个模型生效的主持规则,保存后出现在上方标签里。": "Pick a platform and model, then write host rules for that model only. Once saved, it appears as a tab above.",
|
|
1095
|
+
"选好模型后在这里写正文": "Write the text here after choosing a model",
|
|
1096
|
+
"主持人复盘 · 来自「{room}」#{id}": "From a host review · “{room}” #{id}",
|
|
1097
|
+
"主持人的建议": "Suggestions from the host",
|
|
1098
|
+
"你写的": "Written by you",
|
|
1099
|
+
"你当时说": "You said",
|
|
1100
|
+
"你改过": "Edited by you",
|
|
1101
|
+
"保存并采纳": "Save and accept",
|
|
1102
|
+
"停用这条经验": "Turn off this rule",
|
|
1103
|
+
"删除这条经验": "Delete this rule",
|
|
1104
|
+
"启用这条经验": "Turn on this rule",
|
|
1105
|
+
"改为": "Change to",
|
|
1106
|
+
"新增": "New",
|
|
1107
|
+
"来自「{room}」#{id}": "From “{room}” #{id}",
|
|
1108
|
+
"派活记录": "Assignment",
|
|
1109
|
+
"用过 {count} 次": "Used {count} times",
|
|
1110
|
+
"用过 {count} 次,最近 {date}": "Used {count} times, last on {date}",
|
|
1111
|
+
"筛选经验": "Filter rules",
|
|
1112
|
+
"请先保存或取消正在编辑的经验。": "Save or cancel the rule you are editing first.",
|
|
1113
|
+
"还没有经验。主持人复盘后会在这里提出建议,也可以点右上角“添加经验”自己写。": "No rules yet. The host suggests rules here after a review, or select “Add rule” to write one.",
|
|
1114
|
+
"这个范围还没有经验。": "No rules for this scope yet.",
|
|
1115
|
+
"这是原主持人提示词全文,删除后无法恢复。": "This is your full original host prompt. It cannot be restored after deletion.",
|
|
1116
|
+
"连接本机服务后管理经验": "Connect the local service to manage rules",
|
|
1117
|
+
"{date} MOSS 复盘 · {rules} 条经验建议 · {drafts} 份工作流草稿": "MOSS review on {date} · {rules} rule suggestions · {drafts} workflow drafts",
|
|
1118
|
+
"查看报告": "View report",
|
|
1119
|
+
"打开 MOSS 记录": "Open in MOSS",
|
|
1120
|
+
"选择这条建议": "Select this suggestion",
|
|
1121
|
+
"MOSS {date} 复盘": "MOSS review {date}",
|
|
1122
|
+
"依据 {count} 处": "{count} sources",
|
|
1123
|
+
"深化中": "Being refined",
|
|
1124
|
+
"MOSS 已更新": "Updated by MOSS",
|
|
1125
|
+
"保存并应用": "Save and apply",
|
|
1126
|
+
"改后应用": "Edit and apply",
|
|
1127
|
+
"应用": "Apply",
|
|
1128
|
+
"和 MOSS 继续聊": "Continue with MOSS",
|
|
1129
|
+
"忽略": "Dismiss",
|
|
1130
|
+
"批量操作": "Bulk actions",
|
|
1131
|
+
"已选 {count} 条": "{count} selected",
|
|
1132
|
+
"交给 MOSS 继续深化": "Send back to MOSS",
|
|
1133
|
+
"全部应用": "Apply all",
|
|
1134
|
+
"全部忽略": "Dismiss all",
|
|
1135
|
+
"已采纳": "Accepted",
|
|
1136
|
+
"已忽略": "Dismissed",
|
|
1137
|
+
"每日排查 · {time}": "Daily review · {time}",
|
|
1138
|
+
"每日排查 · 未开启": "Daily review · Off",
|
|
1139
|
+
"待你确认": "Waiting for you",
|
|
1140
|
+
"{date} MOSS 复盘": "MOSS review {date}",
|
|
1141
|
+
"MOSS 复盘": "MOSS review",
|
|
1142
|
+
"来自房间": "From rooms",
|
|
1143
|
+
"收起报告": "Hide report",
|
|
1144
|
+
"报告": "Report",
|
|
1145
|
+
"MOSS 记录": "In MOSS",
|
|
1146
|
+
"这次没有需要你确认的建议。": "Nothing to confirm from this review.",
|
|
1147
|
+
"MOSS 正在修改": "MOSS is revising",
|
|
1148
|
+
"「{room}」#{id}": "“{room}” #{id}",
|
|
1149
|
+
"将删除": "To be removed",
|
|
1150
|
+
"原来": "Before",
|
|
1151
|
+
"应用 {count} 条": "Apply {count}",
|
|
1152
|
+
"交给 MOSS": "Send to MOSS",
|
|
1153
|
+
"取消选择": "Clear selection",
|
|
1154
|
+
"修改": "Change",
|
|
1155
|
+
"撤回": "Withdraw",
|
|
1156
|
+
"这条建议没有附上工作流草稿。": "This suggestion has no workflow draft attached.",
|
|
1157
|
+
"{room} #{id}": "{room} #{id}",
|
|
1158
|
+
"查看草稿": "View draft"
|
|
1025
1159
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai_co_discuss",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"bin": {
|
|
5
5
|
"codiscuss": "runner/codiscuss.mjs"
|
|
6
6
|
},
|
|
@@ -112,6 +112,10 @@
|
|
|
112
112
|
".agents/skills/discuss-session/**",
|
|
113
113
|
".agents/steward-skills/share-card/**",
|
|
114
114
|
".agents/skills/workflow-creator/**",
|
|
115
|
+
".agents/skills/prompt-design/**",
|
|
116
|
+
".agents/skills/model-generation/**",
|
|
117
|
+
".agents/skills/video-generation/**",
|
|
118
|
+
".agents/skills/screen-acceptance/**",
|
|
115
119
|
".agents/steward-skills/local-tts-setup/**",
|
|
116
120
|
".agents/steward-skills/local-stt-setup/**",
|
|
117
121
|
".agents/steward-skills/notify-setup/**",
|
package/runner/account_env.mjs
CHANGED
|
@@ -159,13 +159,17 @@ function installed_skill(name, manifest, { official_hashes = {}, library_hashes
|
|
|
159
159
|
const expected = Object.hasOwn(official_hashes, key) && official_hashes[key];
|
|
160
160
|
const recorded_library = manifest.library?.[SKILLS_DIR]?.includes(key);
|
|
161
161
|
const recorded_official = Object.hasOwn(manifest[SKILLS_DIR] || {}, key);
|
|
162
|
+
const recorded = recorded_official && /^[a-f0-9]{64}$/.test(manifest[SKILLS_DIR][key]) ? manifest[SKILLS_DIR][key] : '';
|
|
162
163
|
let hash;
|
|
163
164
|
if (expected || Object.hasOwn(library_hashes, key)) {
|
|
164
165
|
try { hash = optional_tree_hash(path); } catch { /* an unreadable copy cannot match */ }
|
|
165
166
|
}
|
|
166
167
|
const official = !discussion && !recorded_library && Boolean(expected && (recorded_official || hash === expected));
|
|
167
168
|
const library = !discussion && !official && Boolean(recorded_library || (hash && hash === library_hashes[key]));
|
|
168
|
-
|
|
169
|
+
// Edited since installed, and whether the installed version (not the edit) is behind the shipped one.
|
|
170
|
+
const modified = official && Boolean(recorded) && hash !== recorded && hash !== expected;
|
|
171
|
+
const outdated = official && (modified ? recorded : hash) !== expected;
|
|
172
|
+
return { name, discussion, official, library, outdated, modified, description: describe(path) };
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
function status(request) {
|
|
@@ -182,6 +186,7 @@ function backup_skill(home, name, path) {
|
|
|
182
186
|
const folder = mkdtempSync(join(root, `${name}-${Date.now()}-`));
|
|
183
187
|
try { cpSync(path, folder, { recursive: true }); }
|
|
184
188
|
catch (error) { clean_stage(folder); throw error; }
|
|
189
|
+
return folder;
|
|
185
190
|
}
|
|
186
191
|
|
|
187
192
|
function clean_stage(folder) {
|
|
@@ -243,30 +248,30 @@ function swap_skill(path, incoming, previous, commit) {
|
|
|
243
248
|
clean_stage(stage);
|
|
244
249
|
}
|
|
245
250
|
|
|
246
|
-
function install_account_skill(name, source, request, manifest) {
|
|
251
|
+
function install_account_skill(name, source, request, manifest, backups) {
|
|
247
252
|
const path = join(SKILLS_DIR, name);
|
|
248
253
|
const hash = optional_tree_hash(source), present = skill_present(path, name);
|
|
249
254
|
const origin = request.sources?.[skill_key(name)] === 'official' ? 'official' : 'library';
|
|
250
255
|
const next = next_skill_record(manifest, name, origin, hash);
|
|
251
256
|
const commit = () => atomic_json(join(request.home, RECORD), next);
|
|
252
257
|
if (present && optional_tree_hash(path) === hash) commit();
|
|
253
|
-
else swap_skill(path, { path: source, hash }, present ? { backup: () => backup_skill(request.home, name, path) } : null, commit);
|
|
258
|
+
else swap_skill(path, { path: source, hash }, present ? { backup: () => backups.push({ name, path: backup_skill(request.home, name, path) }) } : null, commit);
|
|
254
259
|
return next;
|
|
255
260
|
}
|
|
256
261
|
|
|
257
|
-
function remove_account_skill(name, request, manifest) {
|
|
262
|
+
function remove_account_skill(name, request, manifest, backups) {
|
|
258
263
|
const path = join(SKILLS_DIR, name);
|
|
259
264
|
const source = installed_skill(name, manifest, request);
|
|
260
265
|
const expected = request.library_hashes?.[skill_key(name)];
|
|
261
|
-
const changed = source.outdated || (source.library && (!expected || optional_tree_hash(path) !== expected));
|
|
262
|
-
const previous = changed ? { backup: () => backup_skill(request.home, name, path) } : {};
|
|
266
|
+
const changed = source.outdated || source.modified || (source.library && (!expected || optional_tree_hash(path) !== expected));
|
|
267
|
+
const previous = changed ? { backup: () => backups.push({ name, path: backup_skill(request.home, name, path) }) } : {};
|
|
263
268
|
const next = next_skill_record(manifest, name);
|
|
264
269
|
swap_skill(path, null, previous, () => atomic_json(join(request.home, RECORD), next));
|
|
265
270
|
return next;
|
|
266
271
|
}
|
|
267
272
|
|
|
268
273
|
function skills(job, request) {
|
|
269
|
-
const incoming = join(job, 'skills'), installed = [], removed = [];
|
|
274
|
+
const incoming = join(job, 'skills'), installed = [], removed = [], backups = [];
|
|
270
275
|
const names = existsSync(incoming) ? readdirSync(incoming) : [];
|
|
271
276
|
const removals = Array.isArray(request.remove) ? request.remove : [];
|
|
272
277
|
for (const name of [...names, ...removals]) {
|
|
@@ -281,15 +286,15 @@ function skills(job, request) {
|
|
|
281
286
|
}
|
|
282
287
|
mkdirSync(SKILLS_DIR, { recursive: true });
|
|
283
288
|
for (const name of names) {
|
|
284
|
-
manifest = install_account_skill(name, join(incoming, name), request, manifest);
|
|
289
|
+
manifest = install_account_skill(name, join(incoming, name), request, manifest, backups);
|
|
285
290
|
installed.push(name);
|
|
286
291
|
}
|
|
287
292
|
for (const name of removals) {
|
|
288
293
|
if (!skill_present(join(SKILLS_DIR, name), name)) continue;
|
|
289
|
-
manifest = remove_account_skill(name, request, manifest);
|
|
294
|
+
manifest = remove_account_skill(name, request, manifest, backups);
|
|
290
295
|
removed.push(name);
|
|
291
296
|
}
|
|
292
|
-
return { installed, removed };
|
|
297
|
+
return { installed, removed, backups };
|
|
293
298
|
}
|
|
294
299
|
|
|
295
300
|
async function prompt(request) {
|
|
@@ -13,7 +13,7 @@ import { atomic_json } from '../files.mjs';
|
|
|
13
13
|
import { t } from '../i18n.mjs';
|
|
14
14
|
import { allowed_command } from './claude_lockdown_hook.mjs';
|
|
15
15
|
import { cli_delivery, turn_log_entries } from './cli.mjs';
|
|
16
|
-
import { BackgroundTasks, carve_protected, DENIAL_FIELD, EDIT_TOOLS, json_line, launch_directory, MAX_DENIALS, model_entry, MODEL_PATTERN, not_sent, page_sessions, project_directory,
|
|
16
|
+
import { BackgroundTasks, carve_protected, DENIAL_FIELD, EDIT_TOOLS, json_line, launch_directory, MAX_DENIALS, model_entry, MODEL_PATTERN, not_sent, page_sessions, project_directory, project_skill_directories,
|
|
17
17
|
prompt_title, query_catalog, read_json, remove_session_files, same_path, shell_written_paths, TASK_SUBCOMMANDS, task_extra_commands, trim_preview } from './common.mjs';
|
|
18
18
|
|
|
19
19
|
// agy stores its generation settings as protobuf; field 28 (tag bytes 0xe2 0x01) holds the model actually used.
|
|
@@ -320,7 +320,7 @@ function agy_project_grants(config, task, folders, user_home) {
|
|
|
320
320
|
&& ![...read_only, ...writable_extras].some(path => same_path(path, directory)));
|
|
321
321
|
const attachments = task.attachment_directories || [];
|
|
322
322
|
const read_only_project = config.project_access === 'read';
|
|
323
|
-
const project_skills = unique_paths([...projects, ...writable_extras])
|
|
323
|
+
const project_skills = project_skill_directories(unique_paths([...projects, ...writable_extras]), config.project_access);
|
|
324
324
|
const protected_paths = [task.directory, ...task.skill_directories, ...agy_skill_directories(user_home), join(user_home, '.gemini'),
|
|
325
325
|
...project_skills, ...(read_only_project ? projects : []), ...read_only];
|
|
326
326
|
if ([...protected_paths, ...attachments].some(directory => within_directory(directory, task.draft_directory))) {
|
|
@@ -1147,5 +1147,6 @@ export const antigravity_cli = {
|
|
|
1147
1147
|
history: ({ home = homedir() } = {}) => conversation_history(join(home, '.gemini', 'antigravity-cli')) },
|
|
1148
1148
|
models: { list: models, defaults, defaults_stamp },
|
|
1149
1149
|
quota,
|
|
1150
|
+
quota_failure_cooldown_ms: QUOTA_FAILED_MS,
|
|
1150
1151
|
skills: agy_skills,
|
|
1151
1152
|
};
|
package/runner/adapters/api.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import { BASH_MISSING, events as pi_events, find_bash, pi_delivery, pi_home, rec
|
|
|
17
17
|
import { is_web_tool, run_web_tool, web_search_key, web_tools } from './api_web.mjs';
|
|
18
18
|
import { mark_question_public } from '../question_weixin.mjs';
|
|
19
19
|
import { ensure_pi } from '../pi_runtime.mjs';
|
|
20
|
-
import { log_entries, newest_record, not_sent } from './common.mjs';
|
|
20
|
+
import { log_entries, newest_record, not_sent, project_skill_directories } from './common.mjs';
|
|
21
21
|
import { API_PROVIDERS, DEFAULT_API_MAX_REQUESTS, takes_images } from './profiles.mjs';
|
|
22
22
|
import { room_image } from '../image_service.mjs';
|
|
23
23
|
import { t } from '../i18n.mjs';
|
|
@@ -119,6 +119,14 @@ function role_tools(context) {
|
|
|
119
119
|
tool('read_goal', '读取 Goal 的目标、状态、续跑次数、用时与是否空闲'),
|
|
120
120
|
// With Pi's own tools (a writable member) its read/edit/write/bash replace our file tools and registered commands.
|
|
121
121
|
...repo_tools(context), ...project_tools(context), ...web_tools(context), ...image_tools(context.image)];
|
|
122
|
+
if (context.moss_experience_access) tools.push(tool('moss_experience', t('读取每日排查数据、提交建议,或先读取待入库草稿再回交本次检查结果。'),
|
|
123
|
+
{ action: TEXT, room_id: TEXT, message_id: NUMBER, text: TEXT, scope: TEXT, id: TEXT, remove: { type: 'boolean' }, after: NUMBER, view: TEXT,
|
|
124
|
+
attempt: TEXT, entries_revision: TEXT, outcome: TEXT, merge_into: TEXT,
|
|
125
|
+
sections: { type: 'object', properties: { requirements: { type: 'array', items: TEXT }, delegation: { type: 'array', items: TEXT }, progress: { type: 'array', items: TEXT } } },
|
|
126
|
+
conflicts: { type: 'array', items: { type: 'object', properties: { id: TEXT, scenario: TEXT } } },
|
|
127
|
+
kind: TEXT, workflow: TEXT, update: TEXT, extra_sources: { type: 'array', items: { type: 'object', properties: { room_id: TEXT, message_id: NUMBER } } } }, ['action']));
|
|
128
|
+
if (context.experience_access) tools.push(tool('propose_experience', t('建议须引用本房间的用户消息或派活记录。'),
|
|
129
|
+
{ message_id: NUMBER, text: TEXT, scope: TEXT, id: TEXT, action: TEXT, stage: TEXT, intent: TEXT, complete: { type: 'boolean' }, kind: TEXT, workflow: TEXT }, ['message_id', 'text']));
|
|
122
130
|
if (context.channel_send_access) tools.push(tool('channel_send', t('先读渠道发送要求,再带凭据提交回答。'),
|
|
123
131
|
{ text: TEXT, ticket: TEXT, ...(context.moss_window_access ? { attachments: { type: 'array', items: TEXT } } : {}) }, ['text']));
|
|
124
132
|
if (context.moss_relay_access) tools.push(
|
|
@@ -147,6 +155,7 @@ function role_tools(context) {
|
|
|
147
155
|
{ ...answer, ...(context.role === 'host' ? { to: { type: 'array', items: TEXT }, sequential: { type: 'boolean' }, loop: { type: 'boolean' }, parallel: { type: 'array', items: { type: 'array', items: TEXT } },
|
|
148
156
|
gates: { type: 'array', items: { type: 'object', properties: { after: TEXT, repeat_from: TEXT, user: { type: 'boolean' } }, required: ['after'] } }, detach: { type: 'array', items: TEXT }, no_handoff: { type: 'boolean' }, continue: { ...TEXT, maxLength: 300 },
|
|
149
157
|
need_rounds: { type: 'integer', minimum: 1, maximum: 100 }, rounds_reason: { ...TEXT, maxLength: 300 },
|
|
158
|
+
experience_id: { type: 'string', description: t('派活依据的经验编号。') },
|
|
150
159
|
dispatch_reason: { ...answer.summary, description: t('主持人选择人选、模型或强度的依据,仅供派活复盘。') },
|
|
151
160
|
next_review: TEXT, review_scope: { ...TEXT, maxLength: 2000 },
|
|
152
161
|
proactive: { type: 'boolean', description: '只在 submit_chat 被拒、原因是本次执行已结束、被停止或已被重试(回答不能再关联它)时使用:加 proactive: true 不关联执行再提交一次结果(可同时派活);其他情况不要用' } } : {}) }, ['text']);
|
|
@@ -402,6 +411,7 @@ function write_action(context, name, args) {
|
|
|
402
411
|
...(!proactive && Array.isArray(args.also_request_ids) && args.also_request_ids.length ? { also_request_ids: args.also_request_ids } : {}),
|
|
403
412
|
...(args.attachment_ids?.length ? { attachment_ids: args.attachment_ids } : {}),
|
|
404
413
|
to: context.role === 'host' ? args.to || [] : [],
|
|
414
|
+
...(context.role === 'host' && args.experience_id !== undefined ? { experience_id: args.experience_id } : {}),
|
|
405
415
|
...(context.role === 'host' && args.dispatch_reason !== undefined ? { dispatch_reason: args.dispatch_reason } : {}),
|
|
406
416
|
...(context.role === 'host' && typeof args.continue === 'string' && args.continue.trim() ? { continue: args.continue } : {}),
|
|
407
417
|
...(context.role === 'host' && args.no_handoff === true ? { no_handoff: true } : {}),
|
|
@@ -460,6 +470,14 @@ async function run_tool(context, call) {
|
|
|
460
470
|
try { args = typeof call.arguments === 'string' ? JSON.parse(call.arguments) : call.arguments || {}; }
|
|
461
471
|
catch { return { result: { error: '工具参数必须为 JSON 对象' } }; }
|
|
462
472
|
if (!args || typeof args !== 'object' || Array.isArray(args)) return { result: { error: '工具参数必须为 JSON 对象' } };
|
|
473
|
+
if (context.moss_experience_access && call.name === 'moss_experience') {
|
|
474
|
+
const { moss_experience } = await import('../discussion_launch.mjs');
|
|
475
|
+
return { result: await moss_experience(context.home, context.moss_experience_access, args) };
|
|
476
|
+
}
|
|
477
|
+
if (context.experience_access && call.name === 'propose_experience') {
|
|
478
|
+
const { propose_experience } = await import('../discussion_launch.mjs');
|
|
479
|
+
return { result: await propose_experience(context.home, context.experience_access, args.message_id, args) };
|
|
480
|
+
}
|
|
463
481
|
if (context.channel_send_access && call.name === 'channel_send') {
|
|
464
482
|
const { host_control } = await import('../discussion_launch.mjs');
|
|
465
483
|
return { result: await host_control(context.home, 'channel-send', { access_file: context.channel_send_access,
|
|
@@ -691,8 +709,7 @@ function skill_text(name, file = 'SKILL.md') {
|
|
|
691
709
|
|
|
692
710
|
/** What this member can do with project files, in its environment notes. */
|
|
693
711
|
function project_text(project, commands, image_input = false, native_shell = false) {
|
|
694
|
-
|
|
695
|
-
const seen = image_input ? '唤醒你的消息里的图片(task.attachments 中的 [图片 #n])已随任务附上,可以直接看;其余' : '';
|
|
712
|
+
const seen = image_input ? '已随任务显示的图片可直接看;其余' : '';
|
|
696
713
|
const attachments = `${seen}消息附件用 read_attachment 按 ID 读取:UTF-8 文本能读到正文${image_input ? ',图片随结果附上' : ''},返回 readable: false 时内容读不到`;
|
|
697
714
|
if (!project) return `- 本地文件你读不到;${attachments}。读不到的以其他成员贴出的为准,不凭文件名猜测;回答涉及时说明你没有读取,缺信息就写明缺什么。`;
|
|
698
715
|
if (native_shell) {
|
|
@@ -755,7 +772,7 @@ ${project_text(context.project, context.commands, context.image_input, context.n
|
|
|
755
772
|
// Nor can an API host open the host's occasional pages: a room host gets them all, a discussion host its own three
|
|
756
773
|
// (opening, roster, closing) and the two its page links to.
|
|
757
774
|
...(host && discussion ? ['host-opening.md', 'host-roster.md', 'host-closing.md'].map(file => skill_text('discuss-session', `references/${file}`)) : []),
|
|
758
|
-
...(host ? (discussion ? ['control.md', 'rooms.md', 'workflow.md'] : ['members.md', 'relay.md', 'control.md', 'rooms.md', 'workflow.md', 'dev-flow.md'])
|
|
775
|
+
...(host ? (discussion ? ['control.md', 'rooms.md', 'workflow.md'] : ['members.md', 'relay.md', 'control.md', 'rooms.md', 'workflow.md', 'dev-flow.md', 'experience.md'])
|
|
759
776
|
.map(file => skill_text('discuss-host', `references/${file}`)) : []),
|
|
760
777
|
...(goal_host(context) ? [skill_text('discuss-goal'), skill_text('discuss-goal', 'references/start.md'), skill_text('discuss-goal', 'references/finish.md')] : []),
|
|
761
778
|
...(host && context.workflow ? [workflow_text(context.workflow)] : []),
|
|
@@ -807,7 +824,9 @@ export function native_pi_permissions(profile, task, project_root, user_home = h
|
|
|
807
824
|
const global_skills = existing_skill_directories(['.agents', '.claude', '.codex'].map(path => join(user_home, path, 'skills')));
|
|
808
825
|
const read_only_resources = [...local_skills, ...global_skills, ...(task.attachment_directories || [])];
|
|
809
826
|
const resources = [...task_skills, ...read_only_resources];
|
|
810
|
-
|
|
827
|
+
// Project skills stay readable at every level but are writable at 全放开 (project_skill_directories).
|
|
828
|
+
const protected_local = existing_skill_directories(project_skill_directories([project_root, ...extra_paths], access));
|
|
829
|
+
const denied = [task.directory, task.member_directory, ...protected_local, ...global_skills, ...(task.attachment_directories || []),
|
|
811
830
|
...extras.filter(item => item.access === 'read').map(item => item.path)].filter(Boolean);
|
|
812
831
|
return { skill_directories, confine: {
|
|
813
832
|
full: access === 'full', service: task.api_context.home, owned, denied, task_skills,
|