mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
* docs: add agent setup prompt endpoint * docs: wrap agent setup prompt * docs: restyle agent setup note * docs: make agent setup prompt copyable * docs: update quickstart demo callout * docs: align prompt copy button
12 lines
386 B
TypeScript
12 lines
386 B
TypeScript
import { readFile } from "node:fs/promises";
|
|
import { join } from "node:path";
|
|
|
|
export const agentSetupSlug = ["agents-setup"] as const;
|
|
|
|
export function isAgentSetupSlug(slug: string[] | undefined) {
|
|
return slug?.length === 1 && slug[0] === agentSetupSlug[0];
|
|
}
|
|
|
|
export function readAgentSetupMarkdown() {
|
|
return readFile(join(process.cwd(), "content/agents-setup.md"), "utf8");
|
|
}
|