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>
12 lines
516 B
TypeScript
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/);
|
|
});
|
|
});
|