|
|
@@ -77,7 +77,7 @@ interface SessionHeader {
|
|
|
|
|
|
## `CreateSessionOptions` — seeding and metadata
|
|
|
|
|
|
-Creating a `Session` through the store takes a `seed` (replay/fork an existing event log) and `meta` (the storage-level fields the store folds into a `SessionHeader`). The store fills in `version`/`id` and defaults `createdAt`; the caller supplies the validated absolute `cwd`, the `parentSession` lineage, the `seedLength` seed boundary, the `delegationDepth`, and — only when reconstructing a persisted session — the original `createdAt` to preserve it.
|
|
|
+Creating a `Session` through the store takes a `seed` (initial events for replay, fork, or creation-time facts) and `meta` (the storage-level fields the store folds into a `SessionHeader`). The store fills in `version`/`id` and defaults `createdAt`; the caller supplies the validated absolute `cwd`, the `parentSession` lineage, the `seedLength` seed boundary, the `delegationDepth`, and — only when reconstructing a persisted session — the original `createdAt` to preserve it.
|
|
|
|
|
|
```ts type-equiv
|
|
|
/**
|
|
|
@@ -86,7 +86,7 @@ Creating a `Session` through the store takes a `seed` (replay/fork an existing e
|
|
|
* store folds into a {@link SessionHeader}.
|
|
|
*/
|
|
|
interface CreateSessionOptions {
|
|
|
- /** Events to seed the new session with (replay/fork). */
|
|
|
+ /** Initial log events supplied at construction (replay, fork, or creation-time facts). */
|
|
|
readonly seed?: readonly SessionEvent[]
|
|
|
/**
|
|
|
* Storage metadata read once before publication. `seedLength` is explicit
|