summaryrefslogtreecommitdiffhomepage
path: root/packages/surface-registry/src/index.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-11 13:08:38 +0900
committerAdam Malczewski <[email protected]>2026-06-11 13:08:38 +0900
commitffbbcf692a97ec8648af39353b49f32896367207 (patch)
tree2e2ddfd03d4a868f4a4ba12e20586cc03c37f90a /packages/surface-registry/src/index.ts
parent27fd0be36b2f6395249de5aacc86e41fe4e0207f (diff)
downloaddispatch-ffbbcf692a97ec8648af39353b49f32896367207.tar.gz
dispatch-ffbbcf692a97ec8648af39353b49f32896367207.zip
feat(surfaces): NumberField + per-conversation surface scoping; cache-warming controls
Extend the surface framework so cache-warming exposes per-conversation controls: - ui-contract: add NumberField (settable free-value numeric) to SurfaceField; add optional conversationId to subscribe/unsubscribe/invoke + surface/update - surface-registry: SurfaceContext { conversationId? } on getSpec/invoke (backward-compatible) - transport-ws: thread conversationId; key subscriptions by (surfaceId, conversationId); tag surface/update replies with conversationId - cache-warming: per-conversation surface — Toggle(enabled) + Number(interval seconds, cache-warming/set-interval) + Stat(last cache %); drop the currentConversationId closure Global surfaces (surface-loaded-extensions) unchanged. 784 vitest + 109 bun = 893 tests; tsc -b EXIT 0; biome clean.
Diffstat (limited to 'packages/surface-registry/src/index.ts')
-rw-r--r--packages/surface-registry/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/surface-registry/src/index.ts b/packages/surface-registry/src/index.ts
index cdfcf7e..da52c92 100644
--- a/packages/surface-registry/src/index.ts
+++ b/packages/surface-registry/src/index.ts
@@ -1,4 +1,4 @@
export { createSurfaceRegistryExtension, manifest } from "./extension.js";
-export type { SurfaceProvider, SurfaceRegistry } from "./registry.js";
+export type { SurfaceContext, SurfaceProvider, SurfaceRegistry } from "./registry.js";
export { createSurfaceRegistry } from "./registry.js";
export { surfaceRegistryHandle } from "./service.js";