mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 01:26:41 +02:00
WorkbenchScene grows an optional scopeTagIds field so scenes can act
as data-scope lenses: when set, module queries filter records to those
tagged with at least one of the scene's tags (+ untagged = global).
New reactive store scene-scope.svelte.ts:
- setSceneScopeTagIds(ids) — called by scene store on switch/init
- getSceneScopeTagIds() — read by module queries
- filterBySceneScope() — reusable filter (same semantics as
AI scope-context's filterByScope)
Wired into workbench-scenes.svelte.ts:
- setActiveScene() syncs scope on manual switch
- liveQuery subscription syncs scope on init/sync/tab-focus
Module queries can now opt into scene scoping by calling
filterBySceneScope in their useAll* hooks — not wired yet (each
module opts in as needed). The foundation is in place.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| api | ||
| app-registry | ||
| auth | ||
| byok | ||
| companion | ||
| components | ||
| config | ||
| content/help | ||
| context-menu | ||
| data | ||
| geocoding | ||
| i18n | ||
| llm-tasks | ||
| modules | ||
| quick-input | ||
| search | ||
| splitscreen | ||
| stores | ||
| triggers | ||
| types | ||
| utils | ||
| voice | ||
| llm-queue.ts | ||
| llm-task-registry.ts | ||
| version.ts | ||