Skip to content

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

Project skills: fix the CI failures the last round caused

Absterrg0e9168cd929be
diff --git a/server/host/skills-library.ts b/server/host/skills-library.ts
index e1acbbdc2d..170644f2d2 100644
--- a/server/host/skills-library.ts
+++ b/server/host/skills-library.ts
@@ -308,13 +308,14 @@ export function createSkillsLibraryHost(deps: SkillsLibraryHostDeps) {
const typed = typedWords(threadId, lines);
const mentioned = skillCalls(text, typed, ownStart);
if (!mentioned.length) return text;
- const cwd = threadFolder(bot, threadId, privateOnly);
const assigned = skillsLibraryEnabled(cfg) ? liveAssigned(bot) : undefined;
const files = enabledSkillFiles(bot.id, mentioned, assigned);
const add = (skills: readonly ImportedSkillView[]) => {
for (const skill of skills) if (mentioned.includes(skill.name) && !files.has(skill.name)) files.set(skill.name, skill.file);
};
if (files.size < mentioned.length) add(importsFor(bot, assigned, instance));
+ const engine = files.size < mentioned.length ? engineOf(instance ?? deps.instanceOf?.(bot.modelSelection.instanceId)) : undefined;
+ const cwd = engine ? threadFolder(bot, threadId, privateOnly) : null;
if (files.size < mentioned.length) {
// A skill switched off on the Skills page stays off, even when the engine holds one of the same name.
const switched = new Set([
diff --git a/server/index.test.ts b/server/index.test.ts
index 33b4bb1a91..7ded1a2f7d 100644
--- a/server/index.test.ts
+++ b/server/index.test.ts
@@ -9738,7 +9738,7 @@ describe("harness HTTP API", () => {
it("keeps skill authoring on by default and persists an explicit opt-out", async () => {
const before = await api("GET", "/api/config");
expect(before.status).toBe(200);
- expect(before.body.features).toEqual({ browser: false, skillAuthoring: true, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: false, llmThreadTitles: true, savedSteps: true, savedStepsHere: process.platform === "darwin" });
+ expect(before.body.features).toEqual({ browser: false, skillAuthoring: true, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, projectSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: false, llmThreadTitles: true, savedSteps: true, savedStepsHere: process.platform === "darwin" });
const untouched = JSON.parse(readFileSync(join(home, ".openmausbot", "config.json"), "utf8"));
expect(untouched.features?.skillAuthoring).toBeUndefined();
expect(untouched.features?.skillReview).toBeUndefined();
@@ -9748,7 +9748,7 @@ describe("harness HTTP API", () => {
features: { skillAuthoring: false },
});
expect(saved.status).toBe(200);
- expect(saved.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: false, llmThreadTitles: true, savedSteps: true, savedStepsHere: process.platform === "darwin" });
+ expect(saved.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: false, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, projectSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: false, llmThreadTitles: true, savedSteps: true, savedStepsHere: process.platform === "darwin" });
const disk = JSON.parse(readFileSync(join(home, ".openmausbot", "config.json"), "utf8"));
// Earlier browser coverage may have persisted its own toggle: opting out must preserve sibling settings.
@@ -9756,7 +9756,7 @@ describe("harness HTTP API", () => {
const tools = await api("PATCH", "/api/config", { features: { showToolCalls: true } });
expect(tools.status).toBe(200);
- expect(tools.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: true, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: false, llmThreadTitles: true, savedSteps: true, savedStepsHere: process.platform === "darwin" });
+ expect(tools.body.features).toEqual({ browser: false, skillAuthoring: false, skillReview: false, skillReviewSteps: 10, skillsLibrary: false, shareLearnedSkills: "off", showToolCalls: true, sharedComputers: false, claudeUserMcp: false, claudeUserSkills: false, projectSkills: false, autoRecall: true, roomMemoryCapture: false, parallelRoomJobs: false, llmThreadTitles: true, savedSteps: true, savedStepsHere: process.platform === "darwin" });
const bot = (await api("POST", "/api/bots", {})).body.bot;
try {
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 450a691063..678aad7ad6 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -5876,6 +5876,9 @@
"skills.origin.importedHint": "Trazida deste computador. Cada bot lista as que combinam com a função dele e encontra as outras quando uma tarefa precisa. Ative para listá-la neste bot, ou desative para mantê-la longe deste bot.",
"skills.origin.native": "IA",
"skills.origin.nativeHint": "A IA do bot carrega esta habilidade da pasta indicada em Origem. Desative aqui apenas para este bot; os arquivos ficam onde estão. No Codex, enquanto alguma estiver desativada aqui, as respostas deste bot ignoram a lista skills.config de ~/.codex/config.toml.",
+ "skills.origin.project": "projeto",
+ "skills.origin.projectHint": "Vem na pasta do projeto indicada em Origem. O bot a usa enquanto as habilidades de projeto estiverem ativadas. Edite ou remova a habilidade lá.",
+ "skills.projectOff": "Desativada: as habilidades de projeto estão desativadas para todos os bots.",
"skills.write.title": "Escrever um comando",
"skills.write.hint": "Dê ao bot um comando curto para algo que você pede com frequência. Digite /nome em uma conversa para executá-lo. O que vier depois do nome preenche {input}.",
"skills.write.name": "Nome do comando",
@@ -7876,6 +7879,10 @@
"botPanel.skills.importFailed": "Não foi possível adicionar essa habilidade.",
"botPanel.skills.importPlaceholder": "Cole o link de uma habilidade ou owner/repo",
"botPanel.skills.browse": "Explorar habilidades",
+ "botPanel.skills.project": "Neste projeto",
+ "botPanel.skills.projectUse": "Usar as habilidades do projeto",
+ "botPanel.skills.projectHint": "Habilidades que uma pasta de projeto traz para agentes de IA: são instruções do próprio projeto. Ativada, esta opção faz todo bot usar as habilidades de toda pasta de projeto em que trabalha, agora e depois. Bots do Claude carregam .claude/skills e bots do Codex carregam .agents/skills por conta própria de qualquer forma.",
+ "botPanel.skills.projectFailed": "Não foi possível alterar as habilidades do projeto. Tente novamente.",
"botPanel.folder.private": "Privada",
"botPanel.folder.intro": "Onde {name} guarda e edita arquivos.",
"botPanel.folder.own": "Uma pasta privada só dele",