Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Allow up to 120 skills in a shared package

AdityaUmale52f9ec287af4
diff --git a/docs/desktop-library.md b/docs/desktop-library.md
index fc89852563..13de1e5fa0 100644
--- a/docs/desktop-library.md
+++ b/docs/desktop-library.md
@@ -34,7 +34,7 @@ update controls: the catalog always names the newest release.
the last good catalog stays. A malformed entry is dropped on its own;
unknown fields are ignored.
2. For every entry that is not **Off**, has a release, and whose format this
- app reads (version 2 or lower), and whose file is missing:
+ app reads (version 3 or lower), and whose file is missing:
`GET /api/desktop/library/blobs/<sha256>` (at most 4 MiB, 60 s, and never
more than the catalog's `sizeBytes`). The bytes must hash to the catalog's
`sha256`, or they are never written. A failure leaves that package
diff --git a/docs/team-sharing.md b/docs/team-sharing.md
index 0c3da69d2d..35e67f37f6 100644
--- a/docs/team-sharing.md
+++ b/docs/team-sharing.md
@@ -13,7 +13,7 @@ the department name), or from **Templates → Share**.
64 KB; the dialog stops adding pictures after about 2 MB of them).
- **Skills.** All skills on the team's bots by default, or the ones you tick.
Only the `SKILL.md` text travels, never scripts or other files. A file
- holds at most 30 skills per bot and 60 per team, and one skill per name.
+ holds at most 30 skills per bot and 120 per team, and one skill per name.
When you have not chosen, the dialog puts in what fits (switched-on skills
first) and lists the rest under **Left out**, including a name two bots
hold with different content. The skill boxes then start ticked on what
@@ -172,8 +172,10 @@ popup in `src/components/GrokMovePopup.tsx`.
module the app, the import preview and Admin all validate with. It still
reads version 1 files (JSON and the BotMRR Markdown playbook). Older apps
refuse version 2 files with their existing "not supported" message; Admin can
-produce a version 1 download for them. A file is at most 4 MB. Example files
-and their expected hashes live in `shared/package-fixtures/`.
+produce a version 1 download for them. A file with more than 60 skills is
+written as version 3, so apps that read only version 2 say "Update the app"
+instead of refusing it for its size; every other file stays version 2. A file
+is at most 4 MB. Example files and their expected hashes live in `shared/package-fixtures/`.
The HTTP route is `POST /api/teams/export` with
`{"format":"package","version":2,"team":"Sales desk"}` (admin scope). Optional
diff --git a/docs/verification/org-library.md b/docs/verification/org-library.md
index 29c198878a..ab20974ce4 100644
--- a/docs/verification/org-library.md
+++ b/docs/verification/org-library.md
@@ -23,7 +23,7 @@ checks the following:
- **Catalog (§7.3.1).** Unknown fields are ignored and a bad entry is
dropped. A bad envelope, another organization's catalog, a digest that
does not name the bytes, and a plain-http Admin each keep the last
- catalog. A `formatVersion: 3` entry shows as "update" and its file is
+ catalog. A `formatVersion: 4` entry shows as "update" and its file is
never read.
- **Files (§7.3.2).** A file whose bytes do not match its name is refused on
read: shown as not downloaded, Add answers `503 blob_unavailable`, and the
diff --git a/electron/org-library.mjs b/electron/org-library.mjs
index 9d1adeadb1..7343b2d6dc 100644
--- a/electron/org-library.mjs
+++ b/electron/org-library.mjs
@@ -7,7 +7,7 @@ export const LIBRARY_CATALOG_MAX_BYTES = 256 * 1024;
export const LIBRARY_BLOB_MAX_BYTES = 4 * 1024 * 1024;
export const LIBRARY_REPORT_MAX_BYTES = 64 * 1024;
/** Must track shared/package-format.ts PACKAGE_VERSION. */
-export const LIBRARY_FORMAT_SUPPORTED = 2;
+export const LIBRARY_FORMAT_SUPPORTED = 3;
const LIBRARY_ROUTE = /^\/api\/desktop\/library(?:\/blobs\/[a-f0-9]{64}|\/report)?$/;
const CATALOG_MAX_ENTRIES = 100, CATALOG_MAX_RELEASE_BYTES = 64 * 1024 * 1024, WITHDRAWN_MAX = 50, NOTES_MAX = 4_000, REPORT_MAX_ENTRIES = 100;
const REPORT_DEBOUNCE_MS = 5_000, RETRY_BASE_MS = 50_000, CATALOG_RETRY_MAX_MS = 30 * 60_000, BLOB_RETRY_MAX_MS = 60 * 60_000, RATE_LIMIT_PAUSE_MS = 10 * 60_000;
diff --git a/electron/org-library.node-test.mjs b/electron/org-library.node-test.mjs
index 9b8e586b7d..8508c1d115 100644
--- a/electron/org-library.node-test.mjs
+++ b/electron/org-library.node-test.mjs
@@ -26,7 +26,7 @@ const standard = (extra = {}) => catalogOf([
entry(TEAM),
entry(SKILLS, { ref: "acme/refund-skills", name: "Refund skills", kind: "library", release: release(skillBytes, { version: "2.0.0" }) }),
entry(OFF, { ref: "acme/old-desk", mode: "off", release: release(Buffer.from("off release bytes")) }),
- entry(NEWER, { ref: "acme/next-desk", release: release(Buffer.from("a version 3 document"), { formatVersion: 3 }) }),
+ entry(NEWER, { ref: "acme/next-desk", release: release(Buffer.from("a version 4 document"), { formatVersion: 4 }) }),
], extra);
const bytesOf = value => Buffer.from(JSON.stringify(value));
const flush = async () => { for (let index = 0; index < 20; index++) await new Promise(resolve => setImmediate(resolve)); };
@@ -93,14 +93,14 @@ async function fixture(t, { catalog = standard(), relayOk = true } = {}) {
test("the catalog parser ignores unknown fields, drops a bad entry, and keeps Off and newer-format entries listed", () => {
const extra = { ...entry(TEAM), future: { anything: true }, release: { ...release(teamBytes), mirror: "https://elsewhere.invalid" } };
- const parsed = parseOrgLibraryCatalog(catalogOf([extra, { ...entry(SKILLS), mode: "pinned" }, entry(OFF, { mode: "off" }), entry(NEWER, { release: release(teamBytes, { formatVersion: 3 }) })], { truncated: true, surprise: 1 }));
+ const parsed = parseOrgLibraryCatalog(catalogOf([extra, { ...entry(SKILLS), mode: "pinned" }, entry(OFF, { mode: "off" }), entry(NEWER, { release: release(teamBytes, { formatVersion: 4 }) })], { truncated: true, surprise: 1 }));
assert.deepEqual(parsed.packages.map(item => item.packageId), [TEAM, OFF, NEWER]);
assert.equal(parsed.truncated, true);
assert.equal("surprise" in parsed, false);
assert.equal("future" in parsed.packages[0], false);
assert.equal("mirror" in parsed.packages[0].release, false);
assert.equal(parsed.packages[0].release.notes, "First release.\nAdds the deal desk.", "release notes keep their newlines");
- assert.equal(parsed.packages[2].release.formatVersion, 3);
+ assert.equal(parsed.packages[2].release.formatVersion, 4);
assert.deepEqual(parseOrgLibraryCatalog(bytesOf(standard())), parseOrgLibraryCatalog(JSON.stringify(standard())));
assert.deepEqual(parseOrgLibraryCatalog(bytesOf(standard())), parseOrgLibraryCatalog(standard()));
assert.equal(parseOrgLibraryCatalog(catalogOf([entry(TEAM, { release: null })])).packages[0].release, null, "every release withdrawn");
diff --git a/server/org-library.test.ts b/server/org-library.test.ts
index 9b48f4a405..a436d9b703 100644
--- a/server/org-library.test.ts
+++ b/server/org-library.test.ts
@@ -174,7 +174,7 @@ describe("the catalog", () => {
const app = await installation();
const library = app.open();
const team = release("full-team.v2.json");
- const newer = entry(TEAM_ID, team, { release: { ...entry(TEAM_ID, team).release, formatVersion: 3 } });
+ const newer = entry(TEAM_ID, team, { release: { ...entry(TEAM_ID, team).release, formatVersion: 4 } });
library.applyRelay(relay(catalog([newer])));
await library.settled();
const readBlob = vi.spyOn(library, "readBlob");
diff --git a/server/package-export.ts b/server/package-export.ts
index 220db5261c..9cf289a4cc 100644
--- a/server/package-export.ts
+++ b/server/package-export.ts
@@ -10,7 +10,7 @@ import {
decodeBase64,
PACKAGE_FORMAT,
PACKAGE_MAX_SKILLS,
- PACKAGE_VERSION,
+ packageVersionFor,
PackageFormatError,
parsePackageDocument,
pictureMatchesMime,
@@ -688,7 +688,7 @@ export function createTeamPackageExport(input: TeamExportInput): TeamExportResul
if (connections.length) definition.connections = connections;
const { document: redactedDocument, redacted } = redactPackageSecrets({
- format: PACKAGE_FORMAT, version: PACKAGE_VERSION, package: definition,
+ format: PACKAGE_FORMAT, version: packageVersionFor(definition), package: definition,
} as PackageDocument);
let document: PackageDocument;
try {
@@ -797,7 +797,7 @@ export function createLibraryPackageExport(input: LibraryExportInput): LibraryEx
};
if (packageSkills.size) definition.skills = { version: 1, entries: [...packageSkills.values()].map((skill) => ({ ...skill })) };
const { document: redactedDocument, redacted } = redactPackageSecrets({
- format: PACKAGE_FORMAT, version: PACKAGE_VERSION, package: definition,
+ format: PACKAGE_FORMAT, version: packageVersionFor(definition), package: definition,
} as PackageDocument);
let document: PackageDocument;
try {
diff --git a/server/presets.ts b/server/presets.ts
index 1e3c77a6fe..44c2c2f21c 100644
--- a/server/presets.ts
+++ b/server/presets.ts
@@ -16,7 +16,7 @@ import {
AGENT_MAX_SKILLS,
canonicalJson,
PACKAGE_FORMAT,
- PACKAGE_VERSION,
+ PACKAGE_V2_VERSION,
parsePackageDocument,
SEED_FILE_MAX_BYTES,
SEED_MAX_BYTES,
@@ -101,7 +101,7 @@ function resolveRow(row: StoredPreset, content: InstallContent | undefined): Res
try {
document = parsePackageDocument({
format: PACKAGE_FORMAT,
- version: PACKAGE_VERSION,
+ version: PACKAGE_V2_VERSION,
package: {
id: row.packageId,
release: row.release,
diff --git a/server/team-share.e2e.test.ts b/server/team-share.e2e.test.ts
index 825c7911e9..fe15643436 100644
--- a/server/team-share.e2e.test.ts
+++ b/server/team-share.e2e.test.ts
@@ -101,7 +101,7 @@ it("shares one team whole (minus chat history) and imports it back as new, inert
const before = await ok("GET", "/api/bots");
const library = await call("POST", "/api/teams/import", JSON.parse(readFileSync(join(FIXTURES, "library-only.v2.json"), "utf8")));
expect(library).toMatchObject({ status: 201, body: { bots: [], section: "", presets: [{ key: "support", name: "Support agent" }] } });
- const newer = await call("POST", "/api/teams/import", JSON.parse(readFileSync(join(FIXTURES, "newer.v3.json"), "utf8")));
+ const newer = await call("POST", "/api/teams/import", JSON.parse(readFileSync(join(FIXTURES, "newer.v4.json"), "utf8")));
expect(newer).toEqual({ status: 400, body: { error: NEWER_PACKAGE_MESSAGE } });
expect(await ok("GET", "/api/bots")).toEqual(before);
expect(() => parsePackageDocument(saved.document)).not.toThrow();
@@ -142,6 +142,7 @@ it("never leaves Share team stuck on skills, and keeps keys out of connection ad
const body = { format: "package", version: 2, team: "Crowded desk", dryRun: true };
const all = await ok("POST", "/api/teams/export", body);
expect(all.choices.skills).toEqual([...names, "pricing"].sort());
+ expect(all.document.version, "a package within the old 60-skill cap stays readable by older apps").toBe(2);
expect(all.document.package.agents.find((agent: { key: string }) => agent.key === "morgan").skills).toHaveLength(30);
expect(all.skipped).toEqual(expect.arrayContaining([
{ part: "skills[pricing]", reason: "skill_conflict" },
diff --git a/shared/grok-import.ts b/shared/grok-import.ts
index 293c05a820..50230bf4ab 100644
--- a/shared/grok-import.ts
+++ b/shared/grok-import.ts
@@ -6,7 +6,7 @@
// The export's shape, the repairs for what a chat window does to it and its credential refusal adapt an MIT-licensed
// importer; see NOTICE.
import {
- AGENT_MAX_SKILLS, PACKAGE_FORMAT, PACKAGE_MAX_CONNECTIONS, PACKAGE_VERSION, SEED_FILE_MAX_BYTES,
+ AGENT_MAX_SKILLS, PACKAGE_FORMAT, PACKAGE_MAX_CONNECTIONS, PACKAGE_V2_VERSION, SEED_FILE_MAX_BYTES,
parsePackageDocument, utf8Bytes, type PackageDocument, type PackageRoutineSchedule,
} from "./package-format.ts";
import { BOT_PROFILE_LIMITS } from "./bot-profile.ts";
@@ -498,7 +498,7 @@ export function grokMovePlan(bot: GrokBot, options: { timeZone?: string; takenSe
const packageId = `${agentKey}-${hash.toString(16).padStart(8, "0").slice(0, 6)}`;
const draft: PackageDocument = {
format: PACKAGE_FORMAT,
- version: PACKAGE_VERSION,
+ version: PACKAGE_V2_VERSION,
package: {
id: packageId,
release: "1.0.0",
diff --git a/shared/package-fixtures/manifest.json b/shared/package-fixtures/manifest.json
index f16ed374bf..28055f05cd 100644
--- a/shared/package-fixtures/manifest.json
+++ b/shared/package-fixtures/manifest.json
@@ -221,7 +221,7 @@
"dropped": []
}
},
- "newer.v3.json": {
+ "newer.v4.json": {
"error": {
"code": "newer_version",
"message": "This file was made by a newer OpenMausBot. Update the app, then import it again."
diff --git a/shared/package-fixtures/newer.v3.json b/shared/package-fixtures/newer.v4.json
similarity index 92%
rename from shared/package-fixtures/newer.v3.json
rename to shared/package-fixtures/newer.v4.json
index 52a5beff9e..813f93784d 100644
--- a/shared/package-fixtures/newer.v3.json
+++ b/shared/package-fixtures/newer.v4.json
@@ -1,6 +1,6 @@
{
"format": "openmaus.package",
- "version": 3,
+ "version": 4,
"package": {
"id": "from-the-future",
"release": "9.0.0",
diff --git a/shared/package-format.test.ts b/shared/package-format.test.ts
index 2935ced2f4..6b5b89cdf0 100644
--- a/shared/package-format.test.ts
+++ b/shared/package-format.test.ts
@@ -8,11 +8,16 @@ import {
downgradeToV1,
NEWER_PACKAGE_MESSAGE,
PACKAGE_MAX_BYTES,
+ PACKAGE_MAX_SKILLS,
+ PACKAGE_V2_MAX_SKILLS,
+ PACKAGE_V2_VERSION,
+ PACKAGE_VERSION,
packageBytes,
packageKeys,
packageScanFindings,
packageSecretFindings,
packageSummary,
+ packageVersionFor,
PackageFormatError,
parsePackageDocument,
parsePackageV1,
@@ -85,13 +90,48 @@ describe("package fixtures", () => {
});
it("refuses a newer file with a pointer to update, and unknown formats plainly", () => {
- expect(refusal(fixture("newer.v3.json"))).toMatchObject({ code: "newer_version", message: NEWER_PACKAGE_MESSAGE });
+ expect(refusal(fixture("newer.v4.json"))).toMatchObject({ code: "newer_version", message: NEWER_PACKAGE_MESSAGE });
expect(refusal({ ...fixture("full-team.v2.json"), version: 0 })).toMatchObject({ code: "unsupported_version" });
expect(refusal({ format: "openmaus.team", version: 2 })).toMatchObject({ code: "not_a_package" });
expect(refusal("# not a playbook")).toMatchObject({ code: "not_a_package" });
});
});
+describe("package skill cap", () => {
+ const skill = (name: string) => ({ name, description: `${name} steps.`, instructions: `---\nname: ${name}\ndescription: ${name} steps.\n---\n\n# ${name}\n` });
+ /** library-only.v2.json grown to `count` skills, stamped the way a writer would. */
+ function withSkills(count: number) {
+ const document = fixture("library-only.v2.json");
+ const entries = document.package.skills.entries;
+ for (let index = entries.length; index < count; index += 1) entries.push(skill(`extra-${index + 1}`));
+ document.version = packageVersionFor(document.package);
+ return document;
+ }
+
+ it("opens a package with 120 skills and refuses a 121st", () => {
+ expect(PACKAGE_MAX_SKILLS).toBe(120);
+ const full = parsePackageDocument(withSkills(120));
+ expect(full.version).toBe(PACKAGE_VERSION);
+ expect(full.package.skills?.entries).toHaveLength(120);
+ expect(refusal(withSkills(121))).toMatchObject({ code: "invalid" });
+ });
+
+ it("stays v2 up to 60 skills, so apps that read only v2 still open it", () => {
+ const fits = withSkills(PACKAGE_V2_MAX_SKILLS);
+ expect(fits.version).toBe(PACKAGE_V2_VERSION);
+ expect(parsePackageDocument(fits).version).toBe(PACKAGE_V2_VERSION);
+ });
+
+ it("stamps v3 past 60 skills, which a v2-only app refuses with \"update the app\"", () => {
+ const big = withSkills(PACKAGE_V2_MAX_SKILLS + 1);
+ expect(big.version).toBe(3);
+ // A v2-only app's reader: any integer version above 2 is "newer".
+ const v2OnlyRefuses = (version: number) => Number.isInteger(version) && version > PACKAGE_V2_VERSION;
+ expect(v2OnlyRefuses(big.version)).toBe(true);
+ expect(refusal({ ...big, version: PACKAGE_VERSION + 1 })).toMatchObject({ code: "newer_version", message: NEWER_PACKAGE_MESSAGE });
+ });
+});
+
describe("package v2 reader", () => {
it("strips unknown fields and every authority field a file might carry", () => {
const input = fixture("full-team.v2.json");
diff --git a/shared/package-format.ts b/shared/package-format.ts
index e20eee2661..bf372c9fe7 100644
--- a/shared/package-format.ts
+++ b/shared/package-format.ts
@@ -1,9 +1,9 @@
-// The OpenMausBot package file ("openmaus.package"), v1 or v2; every reader
-// returns v2. The single validation gate for the server, the renderer and the
-// Admin upload, so it imports only zod, yaml, croner and pure shared modules
-// (no Buffer, no node:*). The schema has no field for chat history, secrets,
-// model choices, computers, visibility or personal settings, and unknown
-// fields are stripped.
+// The OpenMausBot package file ("openmaus.package"), v1, v2 or v3 (v2 with
+// more skills); every reader returns v2 or v3. The single validation gate for
+// the server, the renderer and the Admin upload, so it imports only zod, yaml,
+// croner and pure shared modules (no Buffer, no node:*). The schema has no
+// field for chat history, secrets, model choices, computers, visibility or
+// personal settings, and unknown fields are stripped.
import { parse as parseYaml } from "yaml";
import { z } from "zod";
@@ -15,10 +15,15 @@ import { isSkillName, parseSkillMd, scanSkillText, SKILL_FILE_MAX_BYTES } from "
export const PACKAGE_FORMAT = "openmaus.package";
/** The newest version this module reads and writes. */
-export const PACKAGE_VERSION = 2;
+export const PACKAGE_VERSION = 3;
+/** Every writer stamps v2 unless the package needs v3's larger skill cap, so
+ * apps that read only v2 still open everything they can represent and say
+ * "update the app" for the rest. */
+export const PACKAGE_V2_VERSION = 2;
+export const PACKAGE_V2_MAX_SKILLS = 60;
/** Canonical UTF-8 bytes of the whole document. */
export const PACKAGE_MAX_BYTES = 4 * 1024 * 1024;
-export const PACKAGE_MAX_SKILLS = 60, AGENT_MAX_SKILLS = 30, PACKAGE_MAX_PRESETS = 20, PACKAGE_MAX_CONNECTIONS = 20;
+export const PACKAGE_MAX_SKILLS = 120, AGENT_MAX_SKILLS = 30, PACKAGE_MAX_PRESETS = 20, PACKAGE_MAX_CONNECTIONS = 20;
/** Decoded picture bytes. */
export const AVATAR_MAX_BYTES = 64 * 1024;
export const SEED_FILE_MAX_BYTES = 256 * 1024, SEED_MAX_FILES = 100, SEED_MAX_BYTES = 1024 * 1024;
@@ -427,7 +432,7 @@ const connectionSchema = z.object({
export const packageDocumentSchema = z.object({
format: z.literal(PACKAGE_FORMAT, { error: "This is not an OpenMaus package" }),
- version: z.literal(PACKAGE_VERSION, { error: "Package version is not supported" }),
+ version: z.union([z.literal(PACKAGE_V2_VERSION), z.literal(PACKAGE_VERSION)], { error: "Package version is not supported" }),
package: z.object({
/** The package slug: its identity across releases. */
id: slug,
@@ -729,6 +734,11 @@ function validateV2(source: unknown): PackageDocument {
return parsed.data;
}
+/** The version a writer stamps: v3 only when the skills outgrow v2. */
+export function packageVersionFor(pkg: { skills?: { entries: readonly unknown[] } }): typeof PACKAGE_V2_VERSION | typeof PACKAGE_VERSION {
+ return (pkg.skills?.entries.length ?? 0) > PACKAGE_V2_MAX_SKILLS ? PACKAGE_VERSION : PACKAGE_V2_VERSION;
+}
+
/** Normalize a v1 release ("01.2.03" → "1.2.3"): numeric parts, no leading zeros. */
function normalizedRelease(release: string): string {
return release.split(".").map((part) => String(Number.parseInt(part, 10))).join(".");
@@ -740,7 +750,7 @@ export function upgradeV1(document: PackageDocumentV1): PackageDocument {
const { chiefOfStaff, ...pkg } = document.package;
return validateV2({
format: PACKAGE_FORMAT,
- version: PACKAGE_VERSION,
+ version: PACKAGE_V2_VERSION,
package: {
...pkg,
release: normalizedRelease(pkg.release),
@@ -766,7 +776,7 @@ export function parsePackageDocument(value: unknown, options: { trust?: PackageT
if (typeof version === "number" && Number.isInteger(version) && version > PACKAGE_VERSION) {
throw new PackageFormatError("newer_version", NEWER_PACKAGE_MESSAGE);
}
- if (version !== PACKAGE_V1_VERSION && version !== PACKAGE_VERSION) {
+ if (version !== PACKAGE_V1_VERSION && version !== PACKAGE_V2_VERSION && version !== PACKAGE_VERSION) {
throw new PackageFormatError("unsupported_version", "Package version is not supported");
}
// A cheap guard before any schema work; the exact cap is re-checked on
diff --git a/src/lib/team-import.test.ts b/src/lib/team-import.test.ts
index 3bab69a722..be13d4706f 100644
--- a/src/lib/team-import.test.ts
+++ b/src/lib/team-import.test.ts
@@ -165,12 +165,19 @@ Create the team.`);
});
});
+ it("previews a version 3 file (a team sharing more than 60 skills) like a version 2 one", () => {
+ const { manifest: _v2File, ...v2 } = teamImportPreview(fixture("full-team.v2.json"));
+ const { manifest: v3File, ...v3 } = teamImportPreview({ ...fixture("full-team.v2.json"), version: 3 });
+ expect(v3).toEqual(v2);
+ expect(v3File).toMatchObject({ version: 3 });
+ });
+
it("shows the newer-file message from the catalog, word for word", () => {
expect(en["teamImport.newer"]).toBe(NEWER_PACKAGE_MESSAGE);
});
it("names the problem in a shared team before anything is added", () => {
- expect(() => teamImportPreview(fixture("newer.v3.json"))).toThrow(NEWER_PACKAGE_MESSAGE);
+ expect(() => teamImportPreview(fixture("newer.v4.json"))).toThrow(NEWER_PACKAGE_MESSAGE);
const skillsOnly = fixture("library-only.v2.json");
delete skillsOnly.package.presets;
expect(() => teamImportPreview(skillsOnly)).toThrow("This file has no bots or preset bots to add.");
diff --git a/src/lib/team-import.ts b/src/lib/team-import.ts
index 3cc125fef8..9f7f60af10 100644
--- a/src/lib/team-import.ts
+++ b/src/lib/team-import.ts
@@ -1,7 +1,7 @@
import { parse as parseYaml } from "yaml";
import { t } from "./i18n";
import { parseTeamBackup, TEAM_BACKUP_CONTENTS } from "../../shared/team-backup";
-import { PACKAGE_VERSION, parsePackageDocument, type PackageDocument } from "../../shared/package-format";
+import { PACKAGE_V2_VERSION, PACKAGE_VERSION, parsePackageDocument, type PackageDocument } from "../../shared/package-format";
export interface PendingTeamImport {
manifest: unknown;
@@ -156,7 +156,7 @@ function libraryPreview(document: PackageDocument, manifest: unknown): PendingTe
function packagePreview(root: Record<string, unknown>, manifest: unknown): PendingTeamImport {
if (typeof root.version === "number" && root.version > PACKAGE_VERSION) throw new Error(t("teamImport.newer"));
- if (root.version === PACKAGE_VERSION) return sharedTeamPreview(parsePackageDocument(manifest), manifest);
+ if (root.version === PACKAGE_V2_VERSION || root.version === PACKAGE_VERSION) return sharedTeamPreview(parsePackageDocument(manifest), manifest);
if (root.version !== 1) throw new Error(t("teamImport.playbookVersion", { version: String(root.version) }));
if (!root.package || typeof root.package !== "object" || Array.isArray(root.package)) {
throw new Error(t("teamImport.playbookMissing"));
diff --git a/src/lib/team-share.test.ts b/src/lib/team-share.test.ts
index 706e25af66..a324b9b3d5 100644
--- a/src/lib/team-share.test.ts
+++ b/src/lib/team-share.test.ts
@@ -169,6 +169,6 @@ describe("part names", () => {
expect(describeSkip({ part: "agents[scout].skills[step-31]", reason: "bot_skill_limit" }, document))
.toBe("Scout · skill · step-31 — a bot can share at most 30 skills (switched-on skills go first)");
expect(describeSkip({ part: "skills[pricing]", reason: "skill_conflict" }, document)).toBe("pricing · skill — two bots have different skills with this name");
- expect(describeSkip({ part: "skills[extra]", reason: "team_skill_limit" }, document)).toBe("extra · skill — a department can share at most 60 skills");
+ expect(describeSkip({ part: "skills[extra]", reason: "team_skill_limit" }, document)).toBe("extra · skill — a department can share at most 120 skills");
});
});
diff --git a/src/locales/en.json b/src/locales/en.json
index 8e7141ff4f..0739f5905c 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -2121,7 +2121,7 @@
"teamShare.skip.skill_changed": "changed after it was reviewed",
"teamShare.skip.skill_conflict": "two bots have different skills with this name",
"teamShare.skip.bot_skill_limit": "a bot can share at most 30 skills (switched-on skills go first)",
- "teamShare.skip.team_skill_limit": "a department can share at most 60 skills",
+ "teamShare.skip.team_skill_limit": "a department can share at most 120 skills",
"teamShare.field.soul": "standing instructions",
"teamShare.field.notes": "starter notes",
"teamShare.field.brief": "shared instructions",
diff --git a/src/locales/es.json b/src/locales/es.json
index a4f896b143..48e0a5c462 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -1524,7 +1524,7 @@
"teamShare.skip.skill_changed": "cambió después de revisarse",
"teamShare.skip.skill_conflict": "dos bots tienen habilidades distintas con este nombre",
"teamShare.skip.bot_skill_limit": "un bot puede compartir como máximo 30 habilidades (primero las activadas)",
- "teamShare.skip.team_skill_limit": "un departamento puede compartir como máximo 60 habilidades",
+ "teamShare.skip.team_skill_limit": "un departamento puede compartir como máximo 120 habilidades",
"teamShare.field.soul": "instrucciones permanentes",
"teamShare.field.notes": "notas iniciales",
"teamShare.field.brief": "instrucciones compartidas",
diff --git a/src/locales/it.json b/src/locales/it.json
index 019c273acb..abdf785eb9 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -1665,7 +1665,7 @@
"teamShare.skip.skill_changed": "è cambiata dopo la revisione",
"teamShare.skip.skill_conflict": "due bot hanno abilità diverse con questo nome",
"teamShare.skip.bot_skill_limit": "un bot può condividere al massimo 30 abilità (prima quelle attive)",
- "teamShare.skip.team_skill_limit": "un reparto può condividere al massimo 60 abilità",
+ "teamShare.skip.team_skill_limit": "un reparto può condividere al massimo 120 abilità",
"teamShare.field.soul": "istruzioni permanenti",
"teamShare.field.notes": "note iniziali",
"teamShare.field.brief": "istruzioni condivise",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index c9453d9c4a..1e58484ddd 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -1870,7 +1870,7 @@
"teamShare.skip.skill_changed": "確認後に変更されています",
"teamShare.skip.skill_conflict": "同名で内容の異なるスキルを持つボットが 2 体います",
"teamShare.skip.bot_skill_limit": "ボットが共有できるスキルは最大 30 件です(オンのスキルを優先)",
- "teamShare.skip.team_skill_limit": "部署が共有できるスキルは最大 60 件です",
+ "teamShare.skip.team_skill_limit": "部署が共有できるスキルは最大 120 件です",
"teamShare.field.soul": "常時適用する指示",
"teamShare.field.notes": "初期メモ",
"teamShare.field.brief": "共有の指示",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 5476ceed75..c0df27ade0 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -1782,7 +1782,7 @@
"teamShare.skip.skill_changed": "검토한 뒤에 바뀌었어요",
"teamShare.skip.skill_conflict": "두 봇에 같은 이름의 서로 다른 스킬이 있어요",
"teamShare.skip.bot_skill_limit": "봇 하나는 스킬을 최대 30개까지 공유할 수 있어요(켜진 스킬이 먼저 들어가요)",
- "teamShare.skip.team_skill_limit": "부서 하나는 스킬을 최대 60개까지 공유할 수 있어요",
+ "teamShare.skip.team_skill_limit": "부서 하나는 스킬을 최대 120개까지 공유할 수 있어요",
"teamShare.field.soul": "상시 지침",
"teamShare.field.notes": "시작 메모",
"teamShare.field.brief": "공유 지침",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 3f573543a7..ca87473986 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -1692,7 +1692,7 @@
"teamShare.skip.skill_changed": "zmieniono po przeglądzie",
"teamShare.skip.skill_conflict": "dwa boty mają różne umiejętności o tej samej nazwie",
"teamShare.skip.bot_skill_limit": "bot może udostępnić maksymalnie 30 umiejętności (najpierw włączone umiejętności)",
- "teamShare.skip.team_skill_limit": "dział może udostępnić maksymalnie 60 umiejętności",
+ "teamShare.skip.team_skill_limit": "dział może udostępnić maksymalnie 120 umiejętności",
"teamShare.field.soul": "stałe instrukcje",
"teamShare.field.notes": "notatki startowe",
"teamShare.field.brief": "wspólne instrukcje",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 5d4d4cdca4..8456d069cd 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -1955,7 +1955,7 @@
"teamShare.skip.skill_changed": "foi alterada depois da revisão",
"teamShare.skip.skill_conflict": "dois bots têm habilidades diferentes com este nome",
"teamShare.skip.bot_skill_limit": "um bot pode compartilhar no máximo 30 habilidades (as ligadas vêm primeiro)",
- "teamShare.skip.team_skill_limit": "uma equipe pode compartilhar no máximo 60 habilidades",
+ "teamShare.skip.team_skill_limit": "uma equipe pode compartilhar no máximo 120 habilidades",
"teamShare.field.soul": "instruções permanentes",
"teamShare.field.notes": "notas iniciais",
"teamShare.field.brief": "instruções compartilhadas",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 334ac76e17..18ab337b17 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -1698,7 +1698,7 @@
"teamShare.skip.skill_changed": "изменён после проверки",
"teamShare.skip.skill_conflict": "у двух ботов есть разные навыки с таким названием",
"teamShare.skip.bot_skill_limit": "бот может передать не более 30 навыков (сначала идут включённые)",
- "teamShare.skip.team_skill_limit": "отдел может передать не более 60 навыков",
+ "teamShare.skip.team_skill_limit": "отдел может передать не более 120 навыков",
"teamShare.field.soul": "постоянные инструкции",
"teamShare.field.notes": "начальные заметки",
"teamShare.field.brief": "общие инструкции",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index 74adbc6493..930f37dc8c 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -5061,7 +5061,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -19197,7 +19197,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -27859,7 +27859,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -41046,7 +41046,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -47595,7 +47595,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -62136,7 +62136,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -68144,7 +68144,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -74504,7 +74504,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -81779,7 +81779,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -89069,7 +89069,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
@@ -96461,7 +96461,7 @@
"teamShare.skip.skill_changed": "172deac993200e8f4cd3e3915c79702197b973dc7b28c5923440b6ff692e60cc",
"teamShare.skip.skill_conflict": "abbe6d41d002dd8ed6f8132ea0b74b787edbbf3a05db20c4d9d66f6b63ffc9d7",
"teamShare.skip.bot_skill_limit": "8883cdebf2fd3c7ac6c8e3164cb390f9195a087d0f25479876e5e29eac358526",
- "teamShare.skip.team_skill_limit": "e82aaa6aebab4dd3b70ca7d9e8c59b6e9e94f26595030f952d84c2b57efe5be8",
+ "teamShare.skip.team_skill_limit": "7d795ebce3f3c39deaeba042d9ab3557ad6d3e0704e4286e196a2eaf92694305",
"teamShare.field.soul": "32dd56db506403ef6e732a37cc1491065ba21924456ef70aecb2d3541df6ecbe",
"teamShare.field.notes": "0c4dbf47c0c0a704daa92f9bcb9f95309929dfcd95f42328d2efdfc859ed4344",
"teamShare.field.brief": "05697ff6a3b08ef41d7ebd2ac2775d95228b6d9ea0ab0dc81644cee4e6648df7",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index f7a5306666..a97bf6dfb4 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -1228,7 +1228,7 @@
"teamShare.skip.skill_changed": "incelendikten sonra değiştirildi",
"teamShare.skip.skill_conflict": "iki bot bu ada sahip farklı becerilere sahip",
"teamShare.skip.bot_skill_limit": "bir bot en fazla 30 beceri paylaşabilir (açık olan beceriler önce gelir)",
- "teamShare.skip.team_skill_limit": "bir departman en fazla 60 beceri paylaşabilir",
+ "teamShare.skip.team_skill_limit": "bir departman en fazla 120 beceri paylaşabilir",
"teamShare.field.soul": "kalıcı talimatlar",
"teamShare.field.notes": "başlangıç notları",
"teamShare.field.brief": "paylaşılan talimatlar",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 91a0ab7fa0..70f159a0ca 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -1228,7 +1228,7 @@
"teamShare.skip.skill_changed": "đã thay đổi sau khi được xem xét",
"teamShare.skip.skill_conflict": "hai bot có hai kỹ năng khác nhau nhưng cùng tên này",
"teamShare.skip.bot_skill_limit": "một bot chỉ có thể chia sẻ tối đa 30 kỹ năng (kỹ năng đang bật được ưu tiên trước)",
- "teamShare.skip.team_skill_limit": "một phòng ban chỉ có thể chia sẻ tối đa 60 kỹ năng",
+ "teamShare.skip.team_skill_limit": "một phòng ban chỉ có thể chia sẻ tối đa 120 kỹ năng",
"teamShare.field.soul": "hướng dẫn thường trực",
"teamShare.field.notes": "ghi chú ban đầu",
"teamShare.field.brief": "hướng dẫn dùng chung",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 8019161273..08ba4fa1af 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -2010,7 +2010,7 @@
"teamShare.skip.skill_changed": "審核後又有變更",
"teamShare.skip.skill_conflict": "有兩個機器人具有同名但內容不同的技能",
"teamShare.skip.bot_skill_limit": "每個機器人最多可分享 30 個技能(已開啟的技能優先)",
- "teamShare.skip.team_skill_limit": "每個部門最多可分享 60 個技能",
+ "teamShare.skip.team_skill_limit": "每個部門最多可分享 120 個技能",
"teamShare.field.soul": "常駐指示",
"teamShare.field.notes": "初始筆記",
"teamShare.field.brief": "共用指示",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index be2fc71f58..5f4f06d8ea 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -2110,7 +2110,7 @@
"teamShare.skip.skill_changed": "审核后又有变更",
"teamShare.skip.skill_conflict": "有两个机器人拥有同名但内容不同的技能",
"teamShare.skip.bot_skill_limit": "每个机器人最多可共享 30 个技能(已开启的技能优先)",
- "teamShare.skip.team_skill_limit": "每个部门最多可共享 60 个技能",
+ "teamShare.skip.team_skill_limit": "每个部门最多可共享 120 个技能",
"teamShare.field.soul": "常设指示",
"teamShare.field.notes": "初始笔记",
"teamShare.field.brief": "共享指示",