Fix executor test mocks and bot-persona i18n without macros

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-07 15:23:42 +00:00
parent a9136440dc
commit f250e80646
No known key found for this signature in database
4 changed files with 20 additions and 2 deletions

View File

@ -1,4 +1,3 @@
import { msg } from "@lingui/core/macro";
import type { ThreadSnapshot } from "@rakazo/contracts"; import type { ThreadSnapshot } from "@rakazo/contracts";
import { type EvooPose, mapPersonaArchetypeToIdlePose, mapVoicePhaseToPose } from "@rakazo/ui-web"; import { type EvooPose, mapPersonaArchetypeToIdlePose, mapVoicePhaseToPose } from "@rakazo/ui-web";
import type { StagePresencePhase } from "../components/stage/StageHero"; import type { StagePresencePhase } from "../components/stage/StageHero";
@ -464,7 +463,11 @@ 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._(msg`${name} is working on your request.`); return i18n._({
id: "{name} is working on your request.",
message: "{name} is working on your request.",
values: { name },
});
} }
} }

View File

@ -139,10 +139,15 @@ function fixture(runId = "run-1") {
userModelCredential: { findFirst: vi.fn(async () => null) }, userModelCredential: { findFirst: vi.fn(async () => null) },
deploymentSettings: { deploymentSettings: {
findUnique: vi.fn(async () => ({ findUnique: vi.fn(async () => ({
ownerUserId: null,
ownerGithubTokenCipher: null,
defaultModelProvider: "scripted", defaultModelProvider: "scripted",
defaultModelId: "scripted", defaultModelId: "scripted",
})), })),
}, },
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) },

View File

@ -108,10 +108,15 @@ function executorFixture() {
userModelCredential: { findFirst: vi.fn(async () => null) }, userModelCredential: { findFirst: vi.fn(async () => null) },
deploymentSettings: { deploymentSettings: {
findUnique: vi.fn(async () => ({ findUnique: vi.fn(async () => ({
ownerUserId: null,
ownerGithubTokenCipher: null,
defaultModelProvider: "scripted", defaultModelProvider: "scripted",
defaultModelId: "scripted", defaultModelId: "scripted",
})), })),
}, },
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) },

View File

@ -137,10 +137,15 @@ function fixture({
userModelCredential: { findFirst: vi.fn(async () => null) }, userModelCredential: { findFirst: vi.fn(async () => null) },
deploymentSettings: { deploymentSettings: {
findUnique: vi.fn(async () => ({ findUnique: vi.fn(async () => ({
ownerUserId: null,
ownerGithubTokenCipher: null,
defaultModelProvider: "scripted", defaultModelProvider: "scripted",
defaultModelId: "scripted", defaultModelId: "scripted",
})), })),
}, },
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) },