* Pull updates from evOo instead of the upstream Rakazo repository The in-app server updater, the image-based compose files and the desktop auto-updater still pointed at elie222/rakazo, so updating an evOo install would have pulled Rakazo. They now follow cynarAI/evOo-local, where the publish workflow already pushes the images. The disabled Rakazo production deploy job is gone from CI; evo deploys itself. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Call the product evOo everywhere people see its name The desktop setup window and menu, account emails, the iOS app name and permission prompts, sign-in headings, messages bots post into connected chat apps, the web fetch user agent, issue templates and the marketing site still said Rakazo, or EvOo. They now say evOo. The marketing site no longer calls evOo an alternative to itself. Internal identifiers (package scopes, env vars, bundle ids, the desktop productName that keys its data folder and keychain entry) stay as they are. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Open conversation actions by holding a row on a phone Pin, move to folder, mark unread, duplicate, archive and delete only opened on right-click, which iOS Safari never fires. Holding a conversation or a folder header now dispatches the same contextmenu event, so the existing menu opens under the finger; Android's own long-press event is not doubled and the lift does not also open the conversation. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Give small chrome icons a 44px touch area on phones The browser and computer toggles, the activity bell, the create button and the section plus buttons were 18 to 36 px targets. On touch screens each now gets an invisible 44px hit area without changing how it looks; the create button uses the same plus icon as the rest of the sidebar instead of a text glyph, and the computer toggle gets an accessible name. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Add German to the mobile app German speakers saw the phone app in English because the mobile UI only knew English, Simplified Chinese, and Russian. The app now ships a German catalog covering every mobile chrome string, follows a German device language (de, de-DE, de-AT, de-CH, ...), and offers Deutsch in the Account language picker. Strings that also exist in the web German catalog reuse its wording so web and phone say the same thing; the rest follow the same terms and the informal "du". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Use the evOo sign-in strings in the German phone catalog Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Make account deletion work and give settings one section style Deleting an account posted to the auth endpoint without a JSON content type, so the server refused it and the button did nothing. The privacy page now deletes through the auth client and returns to sign-in. It also drops the claims it could not verify, the export button that only showed an alert, and its own padding, and shows where the data and the computer live. Notifications and media settings use the same SettingsSection. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Use status tokens, the shared switch and one German glossary Voice stage dots, the onboarding progress bar and the Voice First button used raw emerald, violet, cyan and rose; they now use foreground, success and destructive like the rest of the app. The routine editor's hand-built switch is the shared Switch. German says Unterhaltung for threads and Space consistently on web and phone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Expect the evOo setup copy in the desktop e2e specs Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Translate the voice preview label in the German phone catalog Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ * Wait for the main thread URL without waiting for every resource openMainBotThread already navigated with domcontentloaded; its URL check then waited for the full load event, which can exceed 20 s on a busy runner. The composer check that follows covers readiness. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tgvrj34NMnaqvtgvruYQZZ --------- Co-authored-by: Claude <noreply@anthropic.com>
152 lines
6.8 KiB
TypeScript
152 lines
6.8 KiB
TypeScript
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { RECREATED_SERVICES } from "@rakazo/core";
|
|
import { describe, expect, it } from "vitest";
|
|
import { parse } from "yaml";
|
|
|
|
interface ComposeService {
|
|
image?: string;
|
|
profiles?: string[];
|
|
ports?: unknown[];
|
|
networks?: string[];
|
|
volumes?: string[];
|
|
environment?: Record<string, string>;
|
|
env_file?: unknown;
|
|
command?: unknown;
|
|
user?: string;
|
|
}
|
|
|
|
const composeFile = path.resolve(import.meta.dirname, "../../compose/docker-compose.prod.yml");
|
|
const compose = parse(readFileSync(composeFile, "utf8")) as {
|
|
services: Record<string, ComposeService>;
|
|
networks: Record<string, unknown>;
|
|
};
|
|
const updater = compose.services.updater as ComposeService;
|
|
|
|
describe("the production computer provider", () => {
|
|
it.each(["api", "worker"])("lets .env select the %s provider with an E2B default", (name) => {
|
|
expect(compose.services[name]?.env_file).toEqual(["../../.env"]);
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
expect(compose.services[name]?.environment?.SANDBOX_PROVIDER).toBe("${SANDBOX_PROVIDER:-e2b}");
|
|
});
|
|
});
|
|
|
|
/**
|
|
* The updater holds the Docker socket, which is root-equivalent on the host. These are the
|
|
* properties that keep that from being reachable by anything but the API, and they are easy to
|
|
* break by accident in YAML, so they are asserted rather than reviewed.
|
|
*/
|
|
/** The Compose interpolation this file is expected to carry, as Compose spells it. */
|
|
const interpolated = (name: string, fallback = "") => `\${${name}:-${fallback}}`;
|
|
|
|
describe("the updater compose service", () => {
|
|
it("exists and runs the updater image", () => {
|
|
expect(updater).toBeDefined();
|
|
expect(updater.image).toMatch(/updater/);
|
|
});
|
|
|
|
it("is opt-in because it grants root-equivalent Docker access", () => {
|
|
expect(updater.profiles).toEqual(["updater"]);
|
|
});
|
|
|
|
it("publishes nothing on the host", () => {
|
|
expect(updater.ports).toBeUndefined();
|
|
});
|
|
|
|
it("shares a dedicated control network with the API and not Caddy", () => {
|
|
expect(updater.networks).toEqual(["control"]);
|
|
expect(compose.services.api?.networks).toContain("control");
|
|
expect(compose.services.caddy?.networks).not.toContain("control");
|
|
expect(compose.networks).toHaveProperty("control");
|
|
});
|
|
|
|
it("is the only service holding the Docker socket", () => {
|
|
const withSocket = Object.entries(compose.services)
|
|
.filter(([, service]) =>
|
|
(service.volumes ?? []).some((volume) => volume.includes("docker.sock")),
|
|
)
|
|
.map(([name]) => name);
|
|
expect(withSocket).toEqual(["updater"]);
|
|
});
|
|
|
|
it("is bind-mounted at the same path it has on the host", () => {
|
|
const mount = (updater.volumes ?? []).find((volume) => volume.includes("RAKAZO_DEPLOY_DIR"));
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
const deployDir = "${RAKAZO_DEPLOY_DIR:-/srv/rakazo}";
|
|
const separatorIndex = mount?.indexOf("}:${") ?? -1;
|
|
const source = separatorIndex < 0 ? undefined : mount?.slice(0, separatorIndex + 1);
|
|
const destination = separatorIndex < 0 ? undefined : mount?.slice(separatorIndex + 2);
|
|
expect(updater.environment?.RAKAZO_DEPLOY_DIR).toBe(deployDir);
|
|
expect(mount).toBe(`${deployDir}:${deployDir}`);
|
|
expect(source).toBe(destination);
|
|
});
|
|
|
|
it("is not one of the services an update recreates", () => {
|
|
expect(RECREATED_SERVICES).not.toContain("updater");
|
|
for (const service of RECREATED_SERVICES) {
|
|
expect(Object.keys(compose.services)).toContain(service);
|
|
}
|
|
});
|
|
|
|
it("pins its own image tag separately from the application image", () => {
|
|
expect(updater.image).toContain("RAKAZO_UPDATER_IMAGE_TAG");
|
|
for (const service of RECREATED_SERVICES) {
|
|
expect(compose.services[service]?.image).toContain("RAKAZO_IMAGE_TAG");
|
|
}
|
|
});
|
|
|
|
it("uses the official registry namespace and digest-pins third-party runtime images", () => {
|
|
expect(updater.image).toContain("ghcr.io/cynarai/evoo-local/updater");
|
|
expect(compose.services.api?.image).toContain("ghcr.io/cynarai/evoo-local/app");
|
|
expect(compose.services.postgres?.image).toMatch(
|
|
/^\$\{POSTGRES_IMAGE:-postgres:16@sha256:e17e86066e5ef83e0952a9347f5c792b7ece00972e2aa787a6986f471b3dd3d5\}$/,
|
|
);
|
|
expect(compose.services.caddy?.image).toMatch(
|
|
/^\$\{CADDY_IMAGE:-caddy:2@sha256:df7f1c2fb114453b951de51a98efc010db1655a92c2e86be6706714e2417a78d\}$/,
|
|
);
|
|
});
|
|
|
|
it("lets a deployment name its own Compose files and extra services", () => {
|
|
// resolveUpdaterConfig reads these from the sidecar's environment, and the sidecar's
|
|
// environment is exactly what this file declares. Pinning them here would make the documented
|
|
// variables inert: the operator sets them, the updater never sees them, and the overlay is
|
|
// dropped on every recreate.
|
|
expect(updater.environment?.RAKAZO_COMPOSE_FILE).toBe(
|
|
interpolated("RAKAZO_COMPOSE_FILE", "infra/compose/docker-compose.prod.yml"),
|
|
);
|
|
expect(updater.environment?.RAKAZO_UPDATE_SERVICES).toBe(
|
|
interpolated("RAKAZO_UPDATE_SERVICES"),
|
|
);
|
|
expect(updater.environment?.COMPOSE_PATH_SEPARATOR).toBe(
|
|
interpolated("COMPOSE_PATH_SEPARATOR"),
|
|
);
|
|
});
|
|
|
|
it("injects the actual Compose project name into the updater container", () => {
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
expect(updater.environment?.COMPOSE_PROJECT_NAME).toBe("${COMPOSE_PROJECT_NAME:-rakazo-prod}");
|
|
});
|
|
|
|
it("does not load the application env_file into the root-equivalent process", () => {
|
|
expect(updater.env_file).toBeUndefined();
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
expect(updater.environment?.RAKAZO_UPDATER_TOKEN).toBe("${RAKAZO_UPDATER_TOKEN:-}");
|
|
});
|
|
|
|
it("does not let the api container reach the Docker socket to update itself", () => {
|
|
expect(compose.services.api?.volumes ?? []).not.toContain("/var/run/docker.sock");
|
|
expect(compose.services.api?.environment?.RAKAZO_UPDATER_URL).toBe("http://updater:7092");
|
|
});
|
|
|
|
it("passes logging configuration without using env_file", () => {
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
expect(updater.environment?.LOG_LEVEL).toBe("${LOG_LEVEL:-info}");
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
expect(updater.environment?.AXIOM_TOKEN).toBe("${AXIOM_TOKEN:-}");
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
expect(updater.environment?.AXIOM_DATASET).toBe("${AXIOM_DATASET:-}");
|
|
// biome-ignore lint/suspicious/noTemplateCurlyInString: this is the literal Compose expression
|
|
expect(updater.environment?.AXIOM_EDGE_URL).toBe("${AXIOM_EDGE_URL:-}");
|
|
});
|
|
});
|