Replace the tag/threshold/key/expr CSV body with YAML `vars:` and `tags:` maps. `parseDeclare` validates the body with an exported Zod schema and returns the same declaration and modifier shapes the reactivity engine already consumes. The breaking rename from `parseDeclareCsv` updates the registry, the journal re-exports, and the `tttk check` role checks, where R003 now reports schema errors with their path and R004 warns when a block declares nothing.
67 lines
2.5 KiB
TypeScript
67 lines
2.5 KiB
TypeScript
/**
|
|
* Journal module — barrel export
|
|
*/
|
|
|
|
// Trigger message type registration
|
|
import "./types";
|
|
|
|
export {
|
|
registerMessageType,
|
|
getMessageType,
|
|
registeredTypes,
|
|
validatePayload,
|
|
canEmit,
|
|
} from "./registry";
|
|
export type { MessageTypeDef, StreamMessage } from "./registry";
|
|
export {
|
|
connectStream,
|
|
disconnectStream,
|
|
hydrateFromServer,
|
|
sendMessage,
|
|
revertLatest,
|
|
canRevert,
|
|
visibleMessages,
|
|
useJournalStream,
|
|
journalStreamState,
|
|
createSession,
|
|
deleteSession,
|
|
sessions,
|
|
setMyName,
|
|
} from "../stores/journalStream";
|
|
export type {
|
|
JournalStreamState,
|
|
SessionMeta,
|
|
SessionManifest,
|
|
} from "../stores/journalStream";
|
|
|
|
// UI components
|
|
export { JournalPanel } from "./JournalPanel";
|
|
export type { JournalPanelProps } from "./JournalPanel";
|
|
export { JournalHeader } from "./JournalHeader";
|
|
export { ConnectDialog } from "./ConnectDialog";
|
|
export { InviteDialog } from "./InviteDialog";
|
|
export { SessionDropdown } from "./SessionDropdown";
|
|
export { CreateSessionDialog } from "./CreateSessionDialog";
|
|
export { ConnectionBar } from "./ConnectionBar";
|
|
export { StreamView } from "./StreamView";
|
|
export { StreamMessageCard } from "./StreamMessage";
|
|
export { ComposePanel } from "./ComposePanel";
|
|
export { JournalInput } from "./JournalInput";
|
|
export { DynamicForm } from "./DynamicForm";
|
|
export { useJournalCompletions, ensureReactivity } from "./completions";
|
|
export { dispatchCommand } from "./command-dispatcher";
|
|
export type { DispatchContext, DispatchResult } from "./command-dispatcher";
|
|
export { parseInput } from "./command-parser";
|
|
export type { ParsedInput, CompletionItem } from "./command-parser";
|
|
export { buildCompletions } from "./command-completions";
|
|
export type { CompletionsContext } from "./command-completions";
|
|
export { VariableView } from "./VariableView";
|
|
export { parseDeclare, declareSchema } from "./declare-parser";
|
|
export type { VarDeclaration, TagModifier } from "./declare-parser";
|
|
export { evaluateExpression, expressionIsTag, exprValueToString } from "./variable-expression";
|
|
export type { EvalContext, EvalResult, ExprValue } from "./variable-expression";
|
|
export { initReactivity, computeCascade, getCombined, getMods, getDeclExpr, setBase, extractDependencies, computeInitialValues, getReactivityDiagnostics, clearReactivityDiagnostics, onReactivityDiagnostics, resolveVariable } from "./var-reactivity";
|
|
export type { VarReactivityState, VariableStore, ReactivityDiagnostic } from "./var-reactivity";
|
|
export { JournalContext, useJournalContext } from "./JournalContext";
|
|
export type { JournalContextValue } from "./JournalContext";
|