Skip to content
18 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

The docs service answers every artifacts call: docs can be made, listed, shared, moved, trashed, restored, searched, versioned and edited live in their own rooms, agents read, write and recall them only where their person and everyone in the conversation can, and folio events go out on the bus, while Docs' pages keep working as before.1/**
The docs folder is gone, and what it held lives where people read it: how a self-hosted g1t runs and how to deploy g1t to Cloudflare are pages on docs.g1t.sh under Run g1t yourself, and speed, rate limits and operating g1t.sh are sections of CONTRIBUTING.md; code that cited a file in docs/ now points to the page or section that covers it, or says what it means itself, and applied migrations and the runner images are left as they were.2 * The kinds the room knows, one line each. A kind without a line here can't
3 * be made yet: the service says it is coming. Append only; never reformat
4 * (parallel phases each add their line).
The docs service answers every artifacts call: docs can be made, listed, shared, moved, trashed, restored, searched, versioned and edited live in their own rooms, agents read, write and recall them only where their person and everyone in the conversation can, and folio events go out on the bus, while Docs' pages keep working as before.5 */
6import type { FolioKind } from "@g1t/contracts";
7
8import { doc } from "./doc/index.ts";
9import type { KindModel } from "./types.ts";
10
11export const KINDS: Partial<Record<FolioKind, KindModel>> = {
12 doc,
13};
14
15/** The kind's model, or null when it isn't built yet. */
16export function kindModel(kind: string | null | undefined): KindModel | null {
17 return (KINDS as Record<string, KindModel | undefined>)[String(kind ?? "")] ?? null;
18}