import { procedure, router } from './trpc.js';
import { controlPlaneRouter } from './routes/trpc/control-plane.js';
export const appRouter = router({
    health: procedure.query(({ ctx }) => {
        return {
            ok: true,
            service: 'heddle-server',
            workspaceRoot: ctx.workspaceRoot,
            stateRoot: ctx.stateRoot,
            activeWorkspaceId: ctx.activeWorkspaceId,
            workspace: ctx.activeWorkspace,
            workspaces: ctx.workspaces,
            runtimeHost: ctx.runtimeHost,
        };
    }),
    controlPlane: controlPlaneRouter,
});
//# sourceMappingURL=router.js.map