eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
17 lines (16 loc) • 610 B
TypeScript
/** Prefix stamped on every eve session stream event id. */
export declare const EVENT_ID_PREFIX = "evt_";
/**
* Mints the id carried on one session stream event's `meta.id`:
* {@link EVENT_ID_PREFIX} followed by a ULID.
*
* See `#shared/ulid.js` for the ordering guarantee — it holds within a
* process, not across the separate steps of one session.
*/
export declare function createEventId(): string;
/**
* Returns true when `value` has the shape {@link createEventId} produces.
*
* Shape-only: this does not prove eve minted the id.
*/
export declare function isEventId(value: string): boolean;