2026-08-31 19:51:17 +03:00
|
|
|
/**
|
|
|
|
|
* 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";
|
2026-10-02 17:04:22 +03:00
|
|
|
export * from "./events-stream.ts";
|
2026-08-31 19:51:17 +03:00
|
|
|
export * from "./chats.ts";
|
|
|
|
|
export * from "./graph.ts";
|
2026-09-13 09:17:05 +03:00
|
|
|
export * from "./commit-positions.ts";
|
2026-08-31 19:51:17 +03:00
|
|
|
export * from "./jobs.ts";
|
2026-08-31 20:00:12 +03:00
|
|
|
export * from "./stores.ts";
|
2026-09-13 07:18:37 +03:00
|
|
|
export { readRenderSettings, writeRenderSettings } from "../store/render-settings.ts";
|
2026-09-19 18:05:30 +03:00
|
|
|
// 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";
|
2026-09-19 18:21:09 +03:00
|
|
|
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";
|
2026-09-19 20:54:16 +03:00
|
|
|
|
|
|
|
|
// 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";
|
2026-09-22 00:02:07 +03:00
|
|
|
export * from "./search.ts";
|
2026-09-19 20:54:16 +03:00
|
|
|
export { authStore } from "../store/auth.ts";
|
2026-09-18 09:25:40 +03:00
|
|
|
export * from "./settings-body.ts";
|
2026-09-01 01:57:13 +03:00
|
|
|
export * from "./turn-liveness.ts";
|
2026-09-25 17:56:12 +03:00
|
|
|
export * from "./turn-runs.ts";
|
2026-10-04 23:57:00 +03:00
|
|
|
export * from "./dismissal-park.ts";
|
2026-10-06 00:38:15 +03:00
|
|
|
export * from "./compaction.ts";
|
2026-09-25 17:56:12 +03:00
|
|
|
export { runPiTurn, piTurnResponse, type PiTurnHandle, type PiTurnSpec } from "./pi/ui-stream.ts";
|
2026-09-11 02:43:35 +03:00
|
|
|
export * from "./observability.ts";
|
2026-09-12 06:02:40 +03:00
|
|
|
export * from "./model-catalog.ts";
|