evOo-local/packages/db/src/project-workspace-mount.test.ts
Cursor Agent c858cb816c
Phase 3: real code work in evOo (git tools, workspace mount, push policy)
Add git, gh, openssh-client, curl, and sudo to the computer image with a docker
smoke test. Mount deployment-owner project workspacePath at /home/rakazo/project,
align /home/rakazo file paths with shell, and resolve default branch from origin/HEAD.

Inject the owner GitHub token from encrypted deployment settings only into project
computers; enforce branch-only push, block force-push, and require approval before
the first push or gh pr in a run. Add runaway guards (tool fuse and stall pause),
collapse live narration, fix streaming progress merge, DE run strings, and Lead as
the project main Oo name. Fix evo-deploy test flake.

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
2026-10-07 21:41:56 +00:00

12 lines
516 B
TypeScript

import { homedir } from "node:os";
import path from "node:path";
import { describe, expect, it } from "vitest";
import { assertProjectWorkspaceMountAllowed } from "./project-workspace-mount.js";
describe("assertProjectWorkspaceMountAllowed", () => {
it("rejects the filesystem root and the user home directory", () => {
expect(() => assertProjectWorkspaceMountAllowed(path.parse("/").root)).toThrow(/root/);
expect(() => assertProjectWorkspaceMountAllowed(homedir())).toThrow(/home directory/);
});
});