mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 15:03:37 +00:00
* Restore foundry onboarding stack * Consolidate foundry rename * Create foundry tasks without prompts * Rename Foundry handoffs to tasks
22 lines
812 B
TypeScript
22 lines
812 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { taskKey, taskStatusSyncKey, historyKey, projectBranchSyncKey, projectKey, projectPrSyncKey, sandboxInstanceKey, workspaceKey } from "../src/keys.js";
|
|
|
|
describe("actor keys", () => {
|
|
it("prefixes every key with workspace namespace", () => {
|
|
const keys = [
|
|
workspaceKey("default"),
|
|
projectKey("default", "repo"),
|
|
taskKey("default", "repo", "task"),
|
|
sandboxInstanceKey("default", "daytona", "sbx"),
|
|
historyKey("default", "repo"),
|
|
projectPrSyncKey("default", "repo"),
|
|
projectBranchSyncKey("default", "repo"),
|
|
taskStatusSyncKey("default", "repo", "task", "sandbox-1", "session-1"),
|
|
];
|
|
|
|
for (const key of keys) {
|
|
expect(key[0]).toBe("ws");
|
|
expect(key[1]).toBe("default");
|
|
}
|
|
});
|
|
});
|