Skip to content

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

Merge feat/thread-pill-switcher (#7313, #7316, #7318)

milind-soni09819e936e04
diff --cc server/host/skills-library.ts
index 13113694c9,0ba1136d78..69c1a976fd
--- a/server/host/skills-library.ts
+++ b/server/host/skills-library.ts
@@@ -359,10 -353,10 +359,10 @@@ export function createSkillsLibraryHost
}
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.
- 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));
const expanded = skillCommandTurnText(text, files, typed, ownStart);
- return burgers.length ? `${expanded}\n\n${burgers.map(({ name }) => `/${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.`).join(" ")}` : expanded;
+ 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;
},
shareNote(bot: BotRecord, threadId: string, enabled: boolean): TurnShareNote {
diff --cc src/locales/en.json
index 3eab06ac46,faea38da43..9ff9a5605a
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@@ -11815,39 -11810,14 +11815,49 @@@
"skillBurger.run.addPathFailed": "Couldn't do that. Try again.",
"activity.tool.team.runWorkflow": "Run workflow",
"activity.tool.team.workflowEdit": "Workflow edit",
+ "skillBurger.layer.fetch": "Fetch {site}",
+ "skillBurger.layer.ask": "Ask {who}",
+ "skillBurger.layer.review": "Review what came back and report",
+ "skillBurger.draft.names": "{some} and {last}",
+ "skillBurger.draft.inputs": "Inputs",
+ "skillBurger.draft.editInput": "Change {name}",
+ "skillBurger.draft.inputName": "Input name",
+ "skillBurger.draft.inputValue": "Saved value",
+ "skillBurger.draft.keep": "Keep “{step}”",
+ "skillBurger.draft.details": "What “{step}” did",
+ "skillBurger.draft.asked": "Asked",
+ "skillBurger.draft.cameBack": "Came back this time",
+ "skillBurger.draft.round": "round {round}",
+ "skillBurger.draft.doneWhen": "Done when: {check}",
+ "skillBurger.draft.reviewRounds": "A reply that falls short goes back, up to {count} more times.",
+ "skillBurger.draft.rounds": "{count} rounds",
+ "skillBurger.draft.tries": "{count} tries, kept the one that worked",
+ "skillBurger.draft.judgement": "Next time the bot does this with its own judgement.",
+ "skillBurger.draft.outcome": "Outcome",
+ "skillBurger.draft.allExact": "repeats exactly",
+ "skillBurger.draft.allJudgement": "the bot redoes it with judgement",
+ "skillBurger.draft.mix": "{exact} exact, {judgement} by judgement",
+ "skillBurger.run.waitingOn": "Waiting for {who}",
+ "skillBurger.run.repliesFrom": "What came back",
+ "skillBurger.run.checkPassed": "Check passed: {check}",
+ "skillBurger.run.checkFailed": "Check failed: {why}",
+ "skillBurger.run.history": "Last runs",
+ "skillBurger.run.historyOk": "Finished",
+ "skillBurger.run.historyFailed": "Stopped at “{step}”",
+ "skillBurger.run.historyWaiting": "Waiting",
+ "skillBurger.run.historyReused": "used saved {names}",
+ "skillBurger.run.keepFix": "Update the burger with this fix",
+ "skillBurger.run.fixKept": "Burger updated with the fix",
+ "skillBurger.run.inputs": "Run with",
- "skillBurger.run.go": "Run now"
++ "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.threadNotes": "Thread notes",
+ "settings.features.threadNotesLine": "Show what a bot notes down for each thread",
+ "settings.features.mascotMotion": "Mascot animations",
+ "settings.features.mascotMotionLine": "Let bots' mascots move while they work",
+ "settings.features.error": "Couldn't save that. Check your connection and try again."
}
diff --cc src/locales/pt-br.json
index f57de14407,8b19b263eb..d4d7c72b57
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@@ -11815,39 -11810,14 +11815,49 @@@
"skillBurger.run.addPathFailed": "Não foi possível. Tente de novo.",
"activity.tool.team.runWorkflow": "Executar Skill Burger",
"activity.tool.team.workflowEdit": "Alterar Skill Burger",
+ "skillBurger.layer.fetch": "Buscar {site}",
+ "skillBurger.layer.ask": "Pedir a {who}",
+ "skillBurger.layer.review": "Revisar o que voltou e relatar",
+ "skillBurger.draft.names": "{some} e {last}",
+ "skillBurger.draft.inputs": "Entradas",
+ "skillBurger.draft.editInput": "Alterar {name}",
+ "skillBurger.draft.inputName": "Nome da entrada",
+ "skillBurger.draft.inputValue": "Valor salvo",
+ "skillBurger.draft.keep": "Manter “{step}”",
+ "skillBurger.draft.details": "O que “{step}” fez",
+ "skillBurger.draft.asked": "Pedido",
+ "skillBurger.draft.cameBack": "Voltou desta vez",
+ "skillBurger.draft.round": "rodada {round}",
+ "skillBurger.draft.doneWhen": "Pronto quando: {check}",
+ "skillBurger.draft.reviewRounds": "Uma resposta que não atende volta, até mais {count} vezes.",
+ "skillBurger.draft.rounds": "{count} rodadas",
+ "skillBurger.draft.tries": "{count} tentativas, ficou a que funcionou",
+ "skillBurger.draft.judgement": "Da próxima vez o bot faz isto com o próprio julgamento.",
+ "skillBurger.draft.outcome": "Resultado",
+ "skillBurger.draft.allExact": "repete exatamente",
+ "skillBurger.draft.allJudgement": "o bot refaz com julgamento",
+ "skillBurger.draft.mix": "{exact} exatos, {judgement} por julgamento",
+ "skillBurger.run.waitingOn": "Esperando {who}",
+ "skillBurger.run.repliesFrom": "O que voltou",
+ "skillBurger.run.checkPassed": "Verificação aprovada: {check}",
+ "skillBurger.run.checkFailed": "Verificação falhou: {why}",
+ "skillBurger.run.history": "Últimas execuções",
+ "skillBurger.run.historyOk": "Concluída",
+ "skillBurger.run.historyFailed": "Parou em “{step}”",
+ "skillBurger.run.historyWaiting": "Esperando",
+ "skillBurger.run.historyReused": "usou {names} salvos",
+ "skillBurger.run.keepFix": "Atualizar o burger com esta correção",
+ "skillBurger.run.fixKept": "Burger atualizado com a correção",
+ "skillBurger.run.inputs": "Executar com",
- "skillBurger.run.go": "Executar agora"
++ "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.threadNotes": "Notas da conversa",
+ "settings.features.threadNotesLine": "Mostra o que um bot anota em cada conversa",
+ "settings.features.mascotMotion": "Animações do mascote",
+ "settings.features.mascotMotionLine": "Deixa os mascotes dos bots se moverem enquanto trabalham",
+ "settings.features.error": "Não foi possível salvar. Verifique sua conexão e tente de novo."
}
diff --cc src/styles.css
index 343c3e7935,1923030b66..38332ea5f4
--- a/src/styles.css
+++ b/src/styles.css
@@@ -3895,10 -3895,40 +3895,44 @@@ button:disabled.bg-danger
/* Folding the layers: the list's row collapses to nothing and fades, so the bun below glides up rather than jumping. */
.burger-fold { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease-out; }
.burger-fold[data-folded="true"] { grid-template-rows: 0fr; opacity: 0; }
-.burger-fold > ol { overflow: hidden auto; }
+.burger-fold > ol, .burger-fold > div { overflow: hidden auto; min-width: 0; }
+.burger-fold { grid-template-columns: minmax(0, 1fr); }
+/* Rows that open to show more (a finished run's steps, its inputs and outcome, a step's replies) keep the landing glow
+ but not the drop's height cap. */
+.burger-layer.burger-open { animation: burger-land 1100ms ease-out 180ms both; }
@media (prefers-reduced-motion: reduce) { .burger-fold { transition: none; } }
:root[data-reduced-motion="true"] .burger-fold { transition: none; }
+ /* Thread tabs: from tablet width up, the chat header becomes one band in the chat's ground with a touch of ink, whose
+ tabs replace the pill and stand on its bottom edge; the open tab is the chat's own ground, so it runs into the chat
+ below, and its foot curves out into the band on both sides. Separators sit between closed tabs only. */
+ @media (min-width: 768px) {
+ [data-chathead-tabs] { background-color: color-mix(in srgb, var(--color-ink) 4%, var(--color-app)); padding-top: 12px; padding-bottom: 0; }
+ [data-chathead-tabs="advanced"] { padding-top: 6px; }
+ [data-chathead-tabs] [data-chathead-row] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
+ [data-chathead-tabs] [data-chathead-identity] { grid-column: 2; justify-self: stretch; align-self: stretch; -webkit-app-region: drag !important; }
+ [data-chathead-tabs] [data-chathead-identity] > :not([data-thread-tabs], [data-chathead-status]) { display: none; }
+ [data-chathead-tabs="advanced"] [data-chathead-identity] { margin-inline-start: 8px; }
+ [data-chathead-tabs] [data-chathead-controls] { grid-column: 3; margin-inline-start: 8px; }
+ }
+ .thread-tab[aria-selected="true"] { background: var(--color-app); }
+ .thread-tab[aria-selected="true"]::before,
+ .thread-tab[aria-selected="true"]::after {
+ content: ""; position: absolute; bottom: 0; width: var(--radius-xl); height: var(--radius-xl); pointer-events: none;
+ }
+ .thread-tab[aria-selected="true"]::before { right: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--radius-xl) - 0.5px), var(--color-app) var(--radius-xl)); }
+ .thread-tab[aria-selected="true"]::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--radius-xl) - 0.5px), var(--color-app) var(--radius-xl)); }
+ .thread-tab:not([aria-selected="true"]) + .thread-tab:not([aria-selected="true"])::before {
+ content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 1px; background: var(--color-hairline);
+ transition: opacity 120ms ease-out;
+ }
+ .thread-tab:hover + .thread-tab:not([aria-selected="true"])::before,
+ .thread-tab:not([aria-selected="true"]):hover::before { opacity: 0; }
+ .thread-tab[data-entering] { animation: thread-tab-in 200ms cubic-bezier(0.22, 1, 0.36, 1) both; }
+ .thread-tab[data-leaving] { animation: thread-tab-out 180ms cubic-bezier(0.22, 1, 0.36, 1) both; pointer-events: none; }
+ @keyframes thread-tab-in { from { max-width: 0; padding-inline: 0; opacity: 0; } }
+ @keyframes thread-tab-out { to { max-width: 0; padding-inline: 0; opacity: 0; } }
+ @media (prefers-reduced-motion: reduce) {
+ .thread-tab, .thread-tab::before { animation: none !important; transition: none !important; }
+ }
+ :root[data-reduced-motion="true"] .thread-tab,
+ :root[data-reduced-motion="true"] .thread-tab::before { animation: none !important; transition: none !important; }