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