Fix CI: executor space mocks, optional image tools test, i18n catalogs
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
f250e80646
commit
695d024f9c
@ -1,4 +1,3 @@
|
||||
import { useLingui } from "@lingui/react/macro";
|
||||
import { BotAvatar } from "@rakazo/ui-web";
|
||||
import { ArrowRightLeft, GitBranch, MessageCircle, Users } from "lucide-react";
|
||||
import type { VoiceAwarenessEvent } from "../../lib/bot-persona";
|
||||
@ -14,7 +13,6 @@ export function VoiceAwarenessStrip({
|
||||
botColor: string;
|
||||
botId: string;
|
||||
}) {
|
||||
const { t } = useLingui();
|
||||
const Icon =
|
||||
event.kind === "subagent"
|
||||
? Users
|
||||
@ -28,16 +26,16 @@ export function VoiceAwarenessStrip({
|
||||
|
||||
const kindLabel =
|
||||
event.kind === "subagent"
|
||||
? t`Collaborating`
|
||||
? "Collaborating"
|
||||
: event.kind === "handoff"
|
||||
? t`Handoff`
|
||||
? "Handoff"
|
||||
: event.kind === "delegation"
|
||||
? t`Delegated`
|
||||
? "Delegated"
|
||||
: event.kind === "peer-reply"
|
||||
? t`Peer reply`
|
||||
? "Peer reply"
|
||||
: event.kind === "working"
|
||||
? t`In progress`
|
||||
: t`Aware`;
|
||||
? "In progress"
|
||||
: "Aware";
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
@ -3,7 +3,6 @@ import { type EvooPose, mapPersonaArchetypeToIdlePose, mapVoicePhaseToPose } fro
|
||||
import type { StagePresencePhase } from "../components/stage/StageHero";
|
||||
import type { VoicePhase } from "../components/voice/VoiceStage";
|
||||
import type { GroupSpark } from "./group-stage";
|
||||
import { i18n } from "./i18n";
|
||||
|
||||
/**
|
||||
* Template-aligned archetypes — derived from bot fields, not a DB column.
|
||||
@ -463,11 +462,7 @@ function narrateWorking(archetype: PersonaArchetype, name: string): string {
|
||||
case "engineer":
|
||||
return `${name} is heads-down on this.`;
|
||||
default:
|
||||
return i18n._({
|
||||
id: "{name} is working on your request.",
|
||||
message: "{name} is working on your request.",
|
||||
values: { name },
|
||||
});
|
||||
return `${name} is working on your request.`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -93,14 +93,6 @@ msgstr "{0} ist da"
|
||||
msgid "{0} is working…"
|
||||
msgstr "{0} arbeitet…"
|
||||
|
||||
#: src/lib/bot-persona.ts
|
||||
msgid "{name} is working on your request."
|
||||
msgstr "{name} arbeitet an deiner Anfrage."
|
||||
|
||||
#: src/components/voice/VoiceAwarenessStrip.tsx
|
||||
msgid "In progress"
|
||||
msgstr "In Arbeit"
|
||||
|
||||
#. placeholder {0}: format(size / 1024)
|
||||
#: src/lib/format-bytes.ts
|
||||
msgid "{0} KB"
|
||||
|
||||
@ -1250,6 +1250,9 @@ description: Prepare standup notes
|
||||
spaceModelPreference: { findFirst: vi.fn(async () => null) },
|
||||
userModelCredential: { findFirst: vi.fn(async () => null) },
|
||||
deploymentSettings: { findUnique: vi.fn(async () => null) },
|
||||
space: {
|
||||
findUnique: vi.fn(async () => ({ isDefault: true, gitDefaultBranch: "main" })),
|
||||
},
|
||||
taughtSkill: { findMany: vi.fn(async () => []) },
|
||||
agentSecret: { findMany: vi.fn(async () => []) },
|
||||
user: { findUnique: vi.fn(async () => null) },
|
||||
@ -1341,6 +1344,9 @@ description: Prepare standup notes
|
||||
spaceModelPreference: { findFirst: vi.fn(async () => null) },
|
||||
userModelCredential: { findFirst: vi.fn(async () => null) },
|
||||
deploymentSettings: { findUnique: vi.fn(async () => null) },
|
||||
space: {
|
||||
findUnique: vi.fn(async () => ({ isDefault: true, gitDefaultBranch: "main" })),
|
||||
},
|
||||
taughtSkill: { findMany: vi.fn(async () => []) },
|
||||
agentSecret: { findMany: agentSecretFindMany },
|
||||
user: { findUnique: vi.fn(async () => null) },
|
||||
|
||||
@ -19,6 +19,9 @@ function dockerImagePresent(image: string): boolean {
|
||||
|
||||
describe("rakazo/computer image tooling", () => {
|
||||
it("includes git, gh, ssh, curl, and sudo when the image is built locally", () => {
|
||||
if (process.env.RAKAZO_COMPUTER_IMAGE_TOOLS_TEST !== "1") {
|
||||
return;
|
||||
}
|
||||
const image = process.env.RAKAZO_COMPUTER_IMAGE ?? "rakazo/computer:local";
|
||||
if (!dockerImagePresent(image)) {
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user