Skip to content

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

Merge origin/main (with #7324) into the Nov 24 train

milind-soni6aa1c278c68d
diff --cc server/host/skills-library.ts
index 69c1a976fd,aedd9e6601..cfe85329ff
--- a/server/host/skills-library.ts
+++ b/server/host/skills-library.ts
@@@ -358,9 -358,9 +358,9 @@@ export function createSkillsLibraryHost
add(nativesFor(bot, threadId, instance, cwd).filter((skill) => !switched.has(skill.name) && isNativeSkillEnabled(bot.id, skill.name)));
}
if (files.size < mentioned.length) add(projectInUse(bot, threadId, cwd, instance, assigned).filter((skill) => !skill.modelOnly));
- // A Skill Burger runs exactly with run_workflow, whether it is the bot's own or used in every chat.
+ // A Skill Burger runs exactly with run_workflow, from any bot.
- const burgers = mentioned.flatMap((name) => { const found = findWorkflowSkill(bot.id, name); return found ? [{ name, found }] : []; });
+ const burgers = !skillBurgerEnabled(cfg) ? [] : mentioned.flatMap((name) => { const found = findWorkflowSkill(bot.id, name); return found ? [{ name, found }] : []; });
- for (const { name, found } of burgers) if (!files.has(name) && "everyChat" in found.place) files.set(name, librarySkillFilePath(name));
+ for (const { name } of burgers) if (!files.has(name)) files.set(name, librarySkillFilePath(name));
const expanded = skillCommandTurnText(text, files, typed, ownStart);
return burgers.length ? `${expanded}\n\n${burgers.map(({ name, found }) => `/${name} is a saved Skill Burger: run it with the run_workflow tool (name "${name}"), filling its args from the request, rather than by hand.${burgerInputs(found.workflow)}`).join(" ")}` : expanded;
},
diff --cc server/index.ts
index 5ede2894e7,d3c8ec2b71..9a2eda1220
--- a/server/index.ts
+++ b/server/index.ts
@@@ -318,7 -318,7 +318,7 @@@ import
import * as tts from "./tts/index.ts";
import { voiceNoteFailure } from "./tts/errors.ts";
import { createDecider, deciderReady, describeDecider } from "./decider/index.ts"; import { createExtractor, describeHelpers } from "./extractor/index.ts";
- import { createStopLineRoutes } from "./routes/stop-line.ts"; import { createSkillBurgerRoutes } from "./skill-burger/routes.ts"; import { createSkillBurgerRuns } from "./skill-burger/runs.ts"; import { skillBurgerEnabled } from "./skill-burger/store.ts"; import { decideRoomResponder } from "./decider/room-routing.ts"; import { roomRoutingInput } from "./host/room-routing-input.ts";
-import { createStopLineRoutes } from "./routes/stop-line.ts"; import { createSkillBurgerRoutes } from "./skill-burger/routes.ts"; import { migrateBotBurgers } from "./skill-burger/store.ts"; import { createSkillBurgerRuns } from "./skill-burger/runs.ts"; import { decideRoomResponder } from "./decider/room-routing.ts"; import { roomRoutingInput } from "./host/room-routing-input.ts";
++import { createStopLineRoutes } from "./routes/stop-line.ts"; import { createSkillBurgerRoutes } from "./skill-burger/routes.ts"; import { migrateBotBurgers, skillBurgerEnabled } from "./skill-burger/store.ts"; import { createSkillBurgerRuns } from "./skill-burger/runs.ts"; import { decideRoomResponder } from "./decider/room-routing.ts"; import { roomRoutingInput } from "./host/room-routing-input.ts";
import { autoRoomDefault, roomTurnMembers } from "./room-routing-members.ts";
import { liveHistoryFrom, LiveSessionError, type LiveBot, type LiveHistoryMessage } from "./live-call.ts";
import { LiveCallController, LiveCallSignedOutError } from "./live-call-controller.ts"; import { liveSessionWiring } from "./live-session-wiring.ts";
diff --cc server/skill-burger/store.ts
index a62d1c79df,33aa5d3ef3..6daf362dbb
--- a/server/skill-burger/store.ts
+++ b/server/skill-burger/store.ts
@@@ -19,13 -19,8 +19,13 @@@ export type { SavedWorkflow }
const PROMPT_MAX_SKILLS = 20;
const PROMPT_MAX_BYTES = 2_000;
+/** Skill Burgers are on unless `features.skillBurger` is false; off, saved ones stay where they are. */
+export function skillBurgerEnabled(cfg: { features?: { skillBurger?: boolean } }): boolean {
+ return cfg.features?.skillBurger !== false;
+}
+
- /** Where a saved burger is: one bot's own skills, or the shared library. */
+ /** Where a saved burger is: the shared library, or (saved before burgers were for every chat, until moved) one bot's own. */
-type BurgerPlace = { botId: string } | { everyChat: true };
+export type BurgerPlace = { botId: string } | { everyChat: true };
type Failure = { error: string; taken?: true };
function parsed(path: string | null): Workflow | null {
diff --cc src/locales/de.json
index 141f1319af,aba1a1d70d..9c8f8d1f1f
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@@ -4354,10 -4351,10 +4351,16 @@@
"skillBurger.run.addPathFailed": "Das hat nicht geklappt. Versuch es noch einmal.",
"activity.tool.team.runWorkflow": "Skill Burger ausführen",
"activity.tool.team.workflowEdit": "Skill Burger ändern",
+ "settings.page.features": "Funktionen",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Speichert den Lauf eines Bots als Schritte, die du erneut ausführen kannst",
+ "settings.features.threadTabs": "Thread-Tabs",
+ "settings.features.threadTabsLine": "Zeigt die Threads eines Bots als Tabs über dem Chat",
- "settings.features.error": "Das konnte nicht gespeichert werden. Prüfe deine Verbindung und versuche es erneut."
++ "settings.features.error": "Das konnte nicht gespeichert werden. Prüfe deine Verbindung und versuche es erneut.",
+ "skillBurger.pill.cooking": "Wird gekocht… {count}",
+ "skillBurger.pill.add": "Hinzufügen",
+ "skillBurger.pill.running": "Läuft… {count}",
+ "skillBurger.pill.stopped": "Angehalten",
+ "skillBurger.pill.addPath": "Weg hinzufügen",
+ "skillBurger.card.madeBy": "Erstellt von {name}"
}
diff --cc src/locales/en.json
index dbeb7dbe92,aae8866917..b10413eedc
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@@ -11869,10 -11866,10 +11866,16 @@@
"skillBurger.run.fixKept": "Burger updated with the fix",
"skillBurger.run.inputs": "Run with",
"skillBurger.run.go": "Run now",
+ "settings.page.features": "Features",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Save a bot's run as steps you can run again",
+ "settings.features.threadTabs": "Thread tabs",
+ "settings.features.threadTabsLine": "Show a bot's threads as tabs above the chat",
- "settings.features.error": "Couldn't save that. Check your connection and try again."
++ "settings.features.error": "Couldn't save that. Check your connection and try again.",
+ "skillBurger.pill.cooking": "Cooking… {count}",
+ "skillBurger.pill.add": "Add",
+ "skillBurger.pill.running": "Running… {count}",
+ "skillBurger.pill.stopped": "Stopped",
+ "skillBurger.pill.addPath": "Add path",
+ "skillBurger.card.madeBy": "Made by {name}"
}
diff --cc src/locales/pt-br.json
index 000656b9ac,c71100e779..d1d087d06d
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@@ -11869,10 -11866,10 +11866,16 @@@
"skillBurger.run.fixKept": "Burger atualizado com a correção",
"skillBurger.run.inputs": "Executar com",
"skillBurger.run.go": "Executar agora",
+ "settings.page.features": "Recursos",
+ "settings.features.skillBurger": "Skill Burger",
+ "settings.features.skillBurgerLine": "Salva a execução de um bot como etapas que você pode executar de novo",
+ "settings.features.threadTabs": "Abas de conversas",
+ "settings.features.threadTabsLine": "Mostra as conversas de um bot como abas acima do chat",
- "settings.features.error": "Não foi possível salvar. Verifique sua conexão e tente de novo."
++ "settings.features.error": "Não foi possível salvar. Verifique sua conexão e tente de novo.",
+ "skillBurger.pill.cooking": "Cozinhando… {count}",
+ "skillBurger.pill.add": "Adicionar",
+ "skillBurger.pill.running": "Executando… {count}",
+ "skillBurger.pill.stopped": "Parado",
+ "skillBurger.pill.addPath": "Adicionar caminho",
+ "skillBurger.card.madeBy": "Feito por {name}"
}