feat(agent): simplify mutation event publication

This commit is contained in:
Mario Zechner 2026-08-19 16:55:13 +02:00
parent 8f3aa6558b
commit 164507bbac
22 changed files with 958 additions and 213 deletions

View file

@ -122,10 +122,11 @@ export class SqliteOpenSession implements Session<SqliteSessionMetadata> {
name: string,
at: string | null,
configuration: LaneConfiguration,
onCommitted: ((context: Context) => void | Promise<void>) | undefined,
context: Context,
): Promise<SessionTree> {
return this.admit(async () => {
await this.session.createLane(name, at, configuration, context);
await this.session.createLane(name, at, configuration, onCommitted, context);
return this.view(name);
});
}