library: the Copies note says an edit in a copy goes to the library and the other agents

The note under "Give skills as: Copies" on the Library page said edits made
in a copy are replaced. Since takeEdits (internal/library/skill_edits.go,
TestSkillCopyEditReachesTheOthers) the opposite is true: a sync takes the
newest edit made in an agent's copy into the library and gives it to every
other agent; one that loses to a newer change is kept with the backups.
The note now says "An edit made in a copy goes into the library and to the
other agents.", in en, zh, zh-TW, ja and de (zh-TW's old text also had a
Simplified 里). site/public/docs/library.html and its zh and ja pages
already say this; unchanged.

Not changed: the project card's "Copy files instead of linking" note
("edits made to them are replaced") is right. Project copies are not
targets of takeEdits; Project.place makes a copy again from the library's
whenever it differs (copyIsFresh), so an edit there is replaced.

Run on mote (mote-run) at this tree, rebased on origin/main 6bef4fe04:
- node --test, Chromium and WebKit: skill-how (asserts the note's exact
  text in en and zh), i18n-keys, i18n-en-no-cjk, gui-zh-tw, gui-ja,
  gui-de, skill-where, shared-skills, skill-off-here-fits, library-all:
  99 of 99 pass.
- go test -run TestCoreScriptBudget -v ./internal/gui: PASS.
Not run: the whole GUI suite (a string-only change in one plugin file, no
new API, selector, class or layout), the Go suite (no Go change). Not
broken by hand: skill-how compares the note's text exactly, so the old
text fails it by construction.
This commit is contained in:
yetone
2026-11-04 22:56:19 +08:00
parent e928b57f0e
commit f280b12e51
3 changed files with 7 additions and 7 deletions
@@ -4955,7 +4955,7 @@ magpie.plugin("library", (ctx) => {
const by = button(own ? t("By agent ({n})", { n: own }) : t("By agent"), "action lib-updall lib-howagent", () => openSkillHow());
by.title = t("Give an agent its skills its own way");
bar.append(by, el("span", "note", how === "copy"
? t("Each agent gets a folder of its own, made again when the library's skill changes; edits made in a copy are replaced.")
? t("Each agent gets a folder of its own, made again when the library's skill changes. An edit made in a copy goes into the library and to the other agents.")
: t("Links follow the library's skill: an update reaches the agents at once.")));
return bar;
}
+4 -4
View File
@@ -129,7 +129,7 @@ magpie.strings({
"The agents get links to their skills now": "现在各 Agent 拿到的是指向资源库的符号链接",
"By agent ({n})": "按 Agent({n})",
"Give an agent its skills its own way": "给某个 Agent 单独设定启用方式",
"Each agent gets a folder of its own, made again when the library's skill changes; edits made in a copy are replaced.": "每个 Agent 拿到一份独立的文件夹,资源库里的 Skill 变了就重新复制;在副本里做的修改会被覆盖。",
"Each agent gets a folder of its own, made again when the library's skill changes. An edit made in a copy goes into the library and to the other agents.": "每个 Agent 拿到一份独立的文件夹,资源库里的 Skill 变了就重新复制。在副本里做的修改会收进资源库,再给其他 Agent。",
"Put skills in": "Skills 放在",
"Each agent's own folder": "各 Agent 自己的目录",
"Every skill is in ~/.agents/skills now": "所有 Skill 现在都在 ~/.agents/skills 里了",
@@ -912,7 +912,7 @@ magpie.strings({
"The agents get links to their skills now": "現在各 Agent 拿到的是指向資源庫的符號連結",
"By agent ({n})": "按 Agent({n})",
"Give an agent its skills its own way": "給某個 Agent 單獨設定啟用方式",
"Each agent gets a folder of its own, made again when the library's skill changes; edits made in a copy are replaced.": "每個 Agent 拿到一份獨立的資料夾,資源庫裡的 Skill 變了就重新複製;在副本里做的修改會被覆蓋。",
"Each agent gets a folder of its own, made again when the library's skill changes. An edit made in a copy goes into the library and to the other agents.": "每個 Agent 拿到一份獨立的資料夾,資源庫裡的 Skill 變了就重新複製。在副本裡做的修改會收進資源庫,再給其他 Agent。",
"Put skills in": "Skills 放在",
"Each agent's own folder": "各 Agent 自己的目錄",
"Every skill is in ~/.agents/skills now": "所有 Skill 現在都在 ~/.agents/skills 裡了",
@@ -1691,7 +1691,7 @@ magpie.strings({
"The agents get links to their skills now": "エージェントにはスキルへのリンクを渡すようになりました",
"By agent ({n})": "エージェント別({n})",
"Give an agent its skills its own way": "エージェントごとに渡し方を決める",
"Each agent gets a folder of its own, made again when the library's skill changes; edits made in a copy are replaced.": "各エージェントに独立したフォルダを渡し、ライブラリのスキルが変わると作り直します。コピーへの編集は上書きされます。",
"Each agent gets a folder of its own, made again when the library's skill changes. An edit made in a copy goes into the library and to the other agents.": "各エージェントに独立したフォルダを渡し、ライブラリのスキルが変わると作り直します。コピーへの編集はライブラリに取り込み、ほかのエージェントにも渡します。",
"Put skills in": "スキルの置き場所",
"Each agent's own folder": "各エージェントのフォルダ",
"Every skill is in ~/.agents/skills now": "すべてのスキルが ~/.agents/skills に入りました",
@@ -2472,7 +2472,7 @@ magpie.strings({
"The agents get links to their skills now": "Die Agenten bekommen jetzt Links zu ihren Skills",
"By agent ({n})": "Nach Agenten ({n})",
"Give an agent its skills its own way": "Einem Agenten seine Skills auf eigene Art geben",
"Each agent gets a folder of its own, made again when the library's skill changes; edits made in a copy are replaced.": "Jeder Agent bekommt einen eigenen Ordner, der neu angelegt wird, wenn sich der Skill der Bibliothek ändert; Änderungen an einer Kopie werden ersetzt.",
"Each agent gets a folder of its own, made again when the library's skill changes. An edit made in a copy goes into the library and to the other agents.": "Jeder Agent bekommt einen eigenen Ordner, der neu angelegt wird, wenn sich der Skill der Bibliothek ändert. Eine Änderung an einer Kopie geht in die Bibliothek und an die anderen Agenten.",
"Put skills in": "Skills ablegen in",
"Each agent's own folder": "Ordner jedes Agenten",
"Every skill is in ~/.agents/skills now": "Jeder Skill liegt jetzt in ~/.agents/skills",
+2 -2
View File
@@ -79,7 +79,7 @@ const words = {
en: {
label: "Give skills as", links: "Links", copies: "Copies", byAgent: "By agent", byAgentOne: "By agent (1)",
linkNote: "Links follow the library's skill: an update reaches the agents at once.",
copyNote: "Each agent gets a folder of its own, made again when the library's skill changes; edits made in a copy are replaced.",
copyNote: "Each agent gets a folder of its own, made again when the library's skill changes. An edit made in a copy goes into the library and to the other agents.",
copied: "The agents get copies of their skills now", behind: "Copy out of date", behindTip: "The copy in Codex differs from the library's skill. Click to copy it again.",
synced: "Copies updated", sheet: "How each agent gets its skills", libWay: "Library's way", only: "Only ever takes copies", getsCopies: "Gets copies", getsLinks: "Gets links",
codexLinks: "Codex gets links to its skills now",
@@ -87,7 +87,7 @@ const words = {
zh: {
label: "Skills 启用方式", links: "符号链接", copies: "副本", byAgent: "按 Agent", byAgentOne: "按 Agent(1)",
linkNote: "符号链接跟着资源库里的 Skill 走:一更新,各 Agent 立刻就用上。",
copyNote: "每个 Agent 拿到一份独立的文件夹,资源库里的 Skill 变了就重新复制;在副本里做的修改会被覆盖。",
copyNote: "每个 Agent 拿到一份独立的文件夹,资源库里的 Skill 变了就重新复制。在副本里做的修改会收进资源库,再给其他 Agent。",
copied: "现在各 Agent 拿到的是 Skills 的副本", behind: "副本已落后", behindTip: "Codex 里的副本和资源库里的 Skill 不一样了。点一下重新复制。",
synced: "副本已更新", sheet: "各 Agent 的 Skills 启用方式", libWay: "跟随资源库", only: "只能用副本", getsCopies: "用副本", getsLinks: "用符号链接",
codexLinks: "Codex 现在用的是符号链接",