mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-01 14:12:51 +00:00
* feat(workspaces): align agent and schedule automation Make workspace identity the shared placement boundary for MCP and CLI, while caller identity determines parentage. Keep heartbeats minimal and cron-based without changing legacy rolling interval semantics. * test(cli): expect canonical schedule cadence * fix(automation): preserve workspace and schedule compatibility * fix(automation): preserve compatibility edges * fix(workspaces): align MCP lifecycle resolution * fix(workspaces): preserve creation intent * fix(workspaces): preserve branch and schedule identity
25 lines
1004 B
TypeScript
25 lines
1004 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { createCli } from "./cli.js";
|
|
|
|
describe("canonical CLI surface", () => {
|
|
it("shows workspace and heartbeat commands while hiding worktree compatibility", () => {
|
|
const cli = createCli();
|
|
const help = cli.helpInformation();
|
|
expect(help).toContain("workspace");
|
|
expect(help).toContain("heartbeat");
|
|
expect(help).not.toContain("worktree");
|
|
});
|
|
|
|
it("hides legacy run worktree syntax", () => {
|
|
const run = createCli().commands.find((command) => command.name() === "run");
|
|
expect(run?.helpInformation()).toContain("--isolation <local|worktree>");
|
|
expect(run?.helpInformation()).not.toContain("--worktree <name>");
|
|
});
|
|
|
|
it("uses background for execution and reserves detach for ownership", () => {
|
|
const run = createCli().commands.find((command) => command.name() === "run");
|
|
expect(run?.helpInformation()).toContain("--background");
|
|
expect(run?.helpInformation()).not.toContain("--detach");
|
|
});
|
|
});
|