feat(core): add embedded v2 session runtime and tool foundation (#30632)

This commit is contained in:
Kit Langton
2026-06-03 23:02:17 -04:00
committed by GitHub
parent c35267776a
commit 76ee87ead8
215 changed files with 31344 additions and 3278 deletions

View File

@@ -389,7 +389,7 @@ export const layer = Layer.effect(
type: event.type,
data: event.data,
},
{ publish: true },
{ publish: true, ownerID: space.id },
)
.pipe(Effect.provideService(WorkspaceRef, space.id)),
{ discard: true },
@@ -434,7 +434,7 @@ export const layer = Layer.effect(
if (payload.type === "server.heartbeat") return
if (payload.type === "sync" && payload.syncEvent) {
const failed = yield* events.replay(payload.syncEvent, { publish: true }).pipe(
const failed = yield* events.replay(payload.syncEvent, { publish: true, ownerID: space.id }).pipe(
Effect.as(false),
Effect.catchCause((error) =>
Effect.sync(() => {