Intelligence
Artifacts
Browse the repository, read documents, and manage the governance folders. Source, runtime, and infrastructure are read-only.
Repository
repositories/aaf-holdings/hq01/lib/files/config.ts
1003 B
import { ALLOWED_EXTENSIONS, MAX_UPLOAD_BYTES } from "@/lib/uploads/config";
/**
* Configuration for the HQ01 document file-manager.
*
* The file-manager lets the CEO create/delete folders and documents from the
* Artifacts page. To keep that power safe, every operation is confined to a
* fixed set of "managed roots" — the governance/document areas of the
* workspace. The repository source, the live runtime state, and the
* infrastructure (traefik/systemd/secrets) are deliberately NOT managed: the
* file-manager physically cannot create or delete anything outside this list.
*/
/** Top-level folders (relative to the content root) the file-manager may touch. */
export const MANAGED_ROOTS = [
"canonical",
"constitutions",
"doctrine",
"roadmaps",
"templates",
"artifacts",
"uploads",
] as const;
export type ManagedRoot = (typeof MANAGED_ROOTS)[number];
// Documents accepted by the manager match the uploader's rules.
export { ALLOWED_EXTENSIONS, MAX_UPLOAD_BYTES };
root · /srv/aaf