Owner ruling 2026-10-04: the module is a sunk cost, retrievable from history if ever revisited. Removed: core practice contracts + pipeline helpers, the PracticeStore port + adapter + data dir path, server service + API routes (sets, clusters picker, practice aborts), the practice pages + dialog/exam/list UI, chain-table's Generate handoff, sidebar nav, activity-dock practice rows, and the partitioner/ problemGenerator/grader model roles (BACKGROUND_MODEL_ROLES 8 → 5). Survivors, moved to core/chains.ts (pure + browser-safe): ReasoningChain, chainsForSelection, formatChainLine — the chain table and graph emission still consume them.
43 lines
2.0 KiB
TypeScript
43 lines
2.0 KiB
TypeScript
/**
|
|
* THE SERVER-SIDE SURFACE — the only src module (besides the core barrel)
|
|
* that app/ may import. Route handlers and server components come through
|
|
* here; nothing under app/ touches src/store or src/agent directly.
|
|
*/
|
|
|
|
export * from "./chat-handler.ts";
|
|
export * from "./events-stream.ts";
|
|
export * from "./chats.ts";
|
|
export * from "./graph.ts";
|
|
export * from "./commit-positions.ts";
|
|
export * from "./jobs.ts";
|
|
export * from "./stores.ts";
|
|
export { readRenderSettings, writeRenderSettings } from "../store/render-settings.ts";
|
|
// The settings record + prompt overrides (settings-storage wave, 2026-09-19).
|
|
// The *Record aliases keep the app/api/settings routes explicit about which
|
|
// seam they touch (the raw record, not the chat-section convenience view).
|
|
export {
|
|
readSettings as readSettingsRecord,
|
|
writeSettings as writeSettingsRecord,
|
|
settingsStore,
|
|
} from "../store/settings.ts";
|
|
export { promptOverrides } from "../store/prompt-overrides.ts";
|
|
export { isValidSegmentPath } from "../core/prompt-segments.ts";
|
|
// The canonical segment discovery/resolution lives in the agent layer
|
|
// (composition is an agent concern); the barrel re-exports it for the
|
|
// routes — server→agent is the lawful direction (chat-handler precedent).
|
|
export { effectivePromptSegments, allSegmentPaths, readPromptOverride } from "../agent/prompt-segments.ts";
|
|
|
|
// The auth/keys composition (auth-keys wave, 2026-09-19): the curated
|
|
// key catalog + the env-reflecting store behind GET/PUT/DELETE /api/keys.
|
|
// Importing this module runs the idempotent boot fill-gap — every consumer
|
|
// keeps its plain process.env reads (that seam is the point).
|
|
export * from "./keys.ts";
|
|
export * from "./search.ts";
|
|
export { authStore } from "../store/auth.ts";
|
|
export * from "./settings-body.ts";
|
|
export * from "./turn-liveness.ts";
|
|
export * from "./turn-runs.ts";
|
|
export { runPiTurn, piTurnResponse, type PiTurnHandle, type PiTurnSpec } from "./pi/ui-stream.ts";
|
|
export * from "./observability.ts";
|
|
export * from "./model-catalog.ts";
|