Files
saltbo__agent-kanban/server/config/serviceUrls.ts
jarvis a2fa54a729 feat!: rebuild Agent Kanban for Realmroot Toolbox
Replace the v1 Agent/Machine runtime and CLI architecture with the v2 Resource Server, AMA-backed projections, task lifecycle, session observation, BDD specifications, and a single-package layered codebase.

BREAKING CHANGE: remove the v1 CLI, internal Agent/Machine runtime entities, workspace layout, and legacy runtime coordination APIs.
2026-09-02 00:17:52 -04:00

14 lines
433 B
TypeScript

import type { Env } from "@server/env";
export function akPublicUrl(env: Env, path: string): string {
return new URL(path, `${new URL(env.AK_PUBLIC_ORIGIN).origin}/`).toString();
}
export function akResource(env: Env): string {
return akPublicUrl(env, "/api").replace(/\/$/, "");
}
export function amaResource(env: Env): string {
return new URL("/api", `${new URL(env.AMA_ORIGIN).origin}/`).toString().replace(/\/$/, "");
}