This commit is contained in:
Harivansh Rathi 2026-04-01 02:40:21 +00:00
parent c3b5332477
commit c7560e1630
28 changed files with 95 additions and 95 deletions

View file

@ -1,5 +1,5 @@
{
"name": "@ainas/control-plane",
"name": "@betternas/control-plane",
"version": "0.1.0",
"private": true,
"type": "module",
@ -11,7 +11,7 @@
"typecheck": "tsc --noEmit -p tsconfig.json"
},
"dependencies": {
"@ainas/contracts": "file:../../packages/contracts"
"@betternas/contracts": "file:../../packages/contracts"
},
"devDependencies": {
"@types/node": "^22.18.6",

View file

@ -1,4 +1,4 @@
import type { NextcloudBackendStatus } from "@ainas/contracts";
import type { NextcloudBackendStatus } from "@betternas/contracts";
export class NextcloudBackendAdapter {
constructor(private readonly baseUrl: string) {}

View file

@ -3,7 +3,7 @@ import {
CONTROL_PLANE_ROUTES,
type ControlPlaneHealthResponse,
type ControlPlaneVersionResponse
} from "@ainas/contracts";
} from "@betternas/contracts";
import type { ControlPlaneConfig } from "./config.js";
import { NextcloudBackendAdapter } from "./adapters/nextcloud-backend.js";

View file

@ -14,7 +14,7 @@ export function loadConfig(env: NodeJS.ProcessEnv = process.env): ControlPlaneCo
return {
port,
version: env.AINAS_VERSION ?? "0.1.0-dev",
version: env.BETTERNAS_VERSION ?? "0.1.0-dev",
nextcloudBaseUrl: normalizeBaseUrl(env.NEXTCLOUD_BASE_URL ?? "http://nextcloud")
};
}