mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 14:01:09 +00:00
Rename Foundry handoffs to tasks (#239)
* Restore foundry onboarding stack * Consolidate foundry rename * Create foundry tasks without prompts * Rename Foundry handoffs to tasks
This commit is contained in:
parent
d30cc0bcc8
commit
d75e8c31d1
281 changed files with 9242 additions and 4356 deletions
|
|
@ -1,39 +0,0 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
import { ConfigSchema, resolveWorkspaceId, type AppConfig } from "../src/index.js";
|
||||
|
||||
const cfg: AppConfig = ConfigSchema.parse({
|
||||
auto_submit: true,
|
||||
notify: ["terminal"],
|
||||
workspace: { default: "team-a" },
|
||||
backend: {
|
||||
host: "127.0.0.1",
|
||||
port: 7741,
|
||||
dbPath: "~/.local/share/openhandoff/handoff.db",
|
||||
opencode_poll_interval: 2,
|
||||
github_poll_interval: 30,
|
||||
backup_interval_secs: 3600,
|
||||
backup_retention_days: 7,
|
||||
},
|
||||
providers: {
|
||||
daytona: { image: "ubuntu:24.04" },
|
||||
},
|
||||
});
|
||||
|
||||
describe("resolveWorkspaceId", () => {
|
||||
it("prefers explicit flag", () => {
|
||||
expect(resolveWorkspaceId("feature", cfg)).toBe("feature");
|
||||
});
|
||||
|
||||
it("falls back to config default", () => {
|
||||
expect(resolveWorkspaceId(undefined, cfg)).toBe("team-a");
|
||||
});
|
||||
|
||||
it("falls back to literal default when config value is empty", () => {
|
||||
const empty = {
|
||||
...cfg,
|
||||
workspace: { default: "" },
|
||||
} as AppConfig;
|
||||
|
||||
expect(resolveWorkspaceId(undefined, empty)).toBe("default");
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue