2026-08-31 19:51:17 +03:00
|
|
|
/**
|
|
|
|
|
* THE CORE PUBLIC API — the only module the shell (app/, components/) may
|
|
|
|
|
* import. Everything exported here is browser-safe: pure logic + types,
|
|
|
|
|
* no node builtins, no fs, no network.
|
|
|
|
|
*
|
|
|
|
|
* Server-side surfaces (chat streaming, store reads) live behind
|
|
|
|
|
* src/server's barrel instead — the import law (eslint.config.mjs):
|
|
|
|
|
*
|
|
|
|
|
* components/** → "@/src/core" (this barrel, ONLY)
|
|
|
|
|
* app/** → "@/src/core" + "@/src/server"
|
|
|
|
|
*
|
2026-09-11 06:44:20 +03:00
|
|
|
* Server-only core modules (core/graph.ts emission/derivation) are pure
|
|
|
|
|
* but need storage ports passed in by a server caller, so they are
|
|
|
|
|
* deliberately NOT re-exported here — the server imports them directly.
|
|
|
|
|
* The storage PORT TYPES are types-only and browser-safe, hence re-exported.
|
2026-08-31 19:51:17 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export * from "./contracts.ts";
|
2026-08-31 20:00:12 +03:00
|
|
|
export * from "./ports.ts";
|
2026-10-04 21:34:24 +03:00
|
|
|
export * from "./chains.ts";
|
2026-09-13 07:18:37 +03:00
|
|
|
export * from "./render-settings.ts";
|
2026-08-31 20:00:12 +03:00
|
|
|
|
2026-08-31 19:51:17 +03:00
|
|
|
export * from "./question-core.ts";
|
2026-10-02 17:15:17 +03:00
|
|
|
// The event bus (push architecture, 2026-10-02): vocabulary + emit/subscribe
|
|
|
|
|
// for every layer; the browser shell consumes the types + the runtime names
|
|
|
|
|
// through this barrel (shell law: pure core via @/src/core only).
|
|
|
|
|
export * from "./events.ts";
|
2026-09-13 09:52:12 +03:00
|
|
|
// clusters.ts (Louvain) is deliberately NOT re-exported: nothing in the
|
|
|
|
|
// shell runs community detection — the snapshot carries the partition
|
2026-09-13 14:29:16 +03:00
|
|
|
// from the server. Keeping it out keeps the heavy clustering deps out of the
|
2026-09-13 09:52:12 +03:00
|
|
|
// client bundle (verified 2026-09-13: chunks contained it while this
|
|
|
|
|
// line existed). Same logic as layout-settle.ts below.
|
2026-09-13 09:17:01 +03:00
|
|
|
export * from "./layout.ts";
|
2026-08-31 19:51:17 +03:00
|
|
|
export * from "./plan-tree.ts";
|
|
|
|
|
export * from "./phases.ts";
|
|
|
|
|
export * from "./pending.ts";
|
2026-09-19 18:21:09 +03:00
|
|
|
export * from "./prompt-segments.ts";
|
2026-08-31 19:51:17 +03:00
|
|
|
export * from "./math-delims.ts";
|
2026-09-26 00:37:46 +03:00
|
|
|
// Wave B (owner-approved 2026-09-26): the native record (LhMessage), the
|
2026-09-26 01:52:47 +03:00
|
|
|
// and the input-events contract — all
|
2026-09-26 00:37:46 +03:00
|
|
|
// pure logic, browser-safe.
|
|
|
|
|
export * from "./native-messages.ts";
|
2026-10-05 22:06:14 +03:00
|
|
|
export * from "./compaction.ts";
|
2026-09-26 00:37:46 +03:00
|
|
|
export * from "./input-events.ts";
|
2026-09-26 01:52:47 +03:00
|
|
|
// Wave D (owner-approved 2026-09-26): the client view model — the grouping
|
|
|
|
|
// canon (one continuous assistant document, step separators) ported from
|
|
|
|
|
// the deleted server projection to the client side. Pure, browser-safe.
|
|
|
|
|
export * from "./view.ts";
|
2026-09-12 04:51:39 +03:00
|
|
|
export * from "./tool-parts.ts";
|
2026-09-11 02:43:35 +03:00
|
|
|
export * from "./prices.ts";
|
2026-10-24 12:17:08 +03:00
|
|
|
export type { ChatGPTStatus, ChatGPTControlBridge } from "./contracts/chatgpt.ts";
|
2026-09-19 20:55:35 +03:00
|
|
|
export * from "./cost-summary.ts";
|
2026-09-12 06:02:40 +03:00
|
|
|
export * from "./fuzzy.ts";
|
2026-09-19 18:05:30 +03:00
|
|
|
// settings.ts + settings-resolution.ts (settings-storage wave, 2026-09-19):
|
|
|
|
|
// the user-settings record's shape/sanitizer (pure) and its fully-resolved
|
|
|
|
|
// view. Browser-safe — the Wave-4 panel imports these directly.
|
|
|
|
|
export * from "./settings.ts";
|
2026-09-23 12:45:12 +03:00
|
|
|
// graph-deletion.ts (wave 6): the whole module is PURE but storage-port
|
|
|
|
|
// driven — the deletion RUNS server-side only. The shell needs exactly one
|
2026-09-23 12:50:59 +03:00
|
|
|
// two type-only things from it: the ChatDeleteMode union (the delete
|
|
|
|
|
// dialog's two-option design + the DELETE query param) and the stats
|
|
|
|
|
// shape its success line describes, hence this type-only re-export.
|
2026-09-23 12:45:12 +03:00
|
|
|
export type { ChatDeleteMode, ChatDeletionStats } from "./graph-deletion.ts";
|
2026-09-19 18:05:30 +03:00
|
|
|
export * from "./settings-resolution.ts";
|
2026-09-22 00:02:07 +03:00
|
|
|
export * from "./search.ts"; // search port (search wave, 2026-09-20)
|
2026-10-13 08:26:31 +03:00
|
|
|
export * from "./session-find.ts";
|
|
|
|
|
export * from "./session-navigation.ts";
|
2026-09-19 20:54:16 +03:00
|
|
|
// auth-keys.ts (auth-keys wave, 2026-09-19): the curated key catalog +
|
|
|
|
|
// shape rules + masking — pure, browser-safe (the auth page binds to the
|
|
|
|
|
// /api/keys routes built on it).
|
|
|
|
|
export * from "./auth-keys.ts";
|
2026-09-17 20:47:23 +03:00
|
|
|
// keyboard.ts: the shortcut registry + binding normalization (pure, browser-safe).
|
|
|
|
|
export * from "./keyboard.ts";
|
2026-09-15 17:41:56 +03:00
|
|
|
export * from "./coverage.ts";
|
2026-10-06 10:23:16 +03:00
|
|
|
// session-markdown.ts (2026-09-27 engine; first consumer 2026-10-06): the
|
|
|
|
|
// ONE session→markdown formatter — the extractor's view and the user-facing
|
|
|
|
|
// export share it. Pure, browser-safe.
|
|
|
|
|
export * from "./session-markdown.ts";
|