From 0289e69ee99f63cbb2149137c78d08fbd314e0fb Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Mon, 13 Jul 2026 12:08:41 +0800 Subject: [PATCH] docs(rfc): narrow scoped-layer disposers --- .../architecture/2026-07-12-scoped-layers-store.i18n.yaml | 4 ++-- .../proposed/architecture/2026-07-12-scoped-layers-store.md | 4 ++-- .../architecture/2026-07-12-scoped-layers-store.zh.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.i18n.yaml b/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.i18n.yaml index be26cfa552..bf5027e5ec 100644 --- a/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.i18n.yaml +++ b/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.i18n.yaml @@ -2,5 +2,5 @@ # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with: # pnpm run verify-translation-pairing --write -2026-07-12-scoped-layers-store.md: c3a9ab8724191b5b1bc87f02a90d6995c247d944 -2026-07-12-scoped-layers-store.zh.md: e2ec72145766a95ea1c330e3a658f7c86490e263 +2026-07-12-scoped-layers-store.md: 510f462344b25b72bb8604d88f125cc92c6510b1 +2026-07-12-scoped-layers-store.zh.md: abc2aad140cc10325392ed8800e33e38684511a8 diff --git a/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.md b/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.md index c3a9ab8724..510f462344 100644 --- a/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.md +++ b/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.md @@ -48,7 +48,7 @@ export class ScopedLayers { values(scope: ScopeKey | undefined, pick: (layer: L) => EntryValues): T[] keys(scope: ScopeKey | undefined, pick: (layer: L) => NamedEntries): string[] some(fn: (layer: L, scope: ScopeKey | undefined) => boolean): boolean - effect(ctx: Context, action: (layer: L) => () => void, options: { label: string; silent?: boolean }): () => Promise | void + effect(ctx: Context, action: (layer: L) => () => void, options: { label: string; silent?: boolean }): () => void } export interface EntryValues { @@ -98,7 +98,7 @@ class ToolRegistry extends Service { { onChange: () => this.ctx.emit('tools/change') }, ) - register(definition: ToolDefinition): () => Promise | void { + register(definition: ToolDefinition): () => void { return this.layers.effect(this.ctx, layer => layer.tools.insert(definition.name, definition), { label: 'tools.register()' }) diff --git a/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.zh.md b/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.zh.md index e2ec721457..abc2aad140 100644 --- a/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.zh.md +++ b/docs/rfc/proposed/architecture/2026-07-12-scoped-layers-store.zh.md @@ -48,7 +48,7 @@ export class ScopedLayers { values(scope: ScopeKey | undefined, pick: (layer: L) => EntryValues): T[] keys(scope: ScopeKey | undefined, pick: (layer: L) => NamedEntries): string[] some(fn: (layer: L, scope: ScopeKey | undefined) => boolean): boolean - effect(ctx: Context, action: (layer: L) => () => void, options: { label: string; silent?: boolean }): () => Promise | void + effect(ctx: Context, action: (layer: L) => () => void, options: { label: string; silent?: boolean }): () => void } export interface EntryValues { @@ -98,7 +98,7 @@ class ToolRegistry extends Service { { onChange: () => this.ctx.emit('tools/change') }, ) - register(definition: ToolDefinition): () => Promise | void { + register(definition: ToolDefinition): () => void { return this.layers.effect(this.ctx, layer => layer.tools.insert(definition.name, definition), { label: 'tools.register()' })