Documentation
¶
Index ¶
Constants ¶
const CurrentVersion = 24
CurrentVersion is the current schema version.
Variables ¶
This section is empty.
Functions ¶
func BackfillEventID ¶
BackfillEventID backfills event_id fields for events in JSONL files that lack them. This is part of the v6→v7 migration. It generates deterministic event IDs based on the event's type, timestamp, and entity ID (message_id, thread_id, etc.). The deterministic generation ensures that running this migration multiple times produces the same event_ids. Works with both sharded and monolithic file structures.
func ExtractAgentName ¶
ExtractAgentName extracts the agent name from an agent_id. Example: "agent:coordinator:1B9K" → "coordinator_1B9K".
func GetSchemaVersion ¶
GetSchemaVersion returns the current schema version from the database.
func MigrateJSONLSharding ¶
MigrateJSONLSharding migrates from monolithic messages.jsonl to sharded structure. This is part of the v6→v7 migration. It splits the monolithic file into: - events.jsonl (non-message events: agent lifecycle, threads) - messages/{author}.jsonl (per-agent message files).
Types ¶
This section is empty.