mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
Merge release/v1.39.0 into feat/ai-routes-insights-coach
Brings in the jobs, stored-text and consent package and the extraction routes. Conflicts resolved: - The digest keeps its capability-driven reaction line and check-in, now through the shared `aiCapabilityForRecord`; the local copy of it is removed. - The route inventories classify the extraction routes (documents, labs OCR, medication text, fenced chat and attachments) as actions; a capability call counts as the gate for the module inventory. - With every caller moved, `requireAssistantSurface` and `AssistantDisabledError` are deleted. The `assistant.disabled.*` codes stay on the capability refusal, and the guard now asserts the retired gate is gone. - `aiCapabilityToServe` answers whether stored model text may be shown from the record's own state, apart from who is reading. Refs #975
This commit is contained in:
commit
c509afeb2e
256 files changed
+13048
-4642
No files matched your search
@@ -5,7 +5,7 @@
|
||||
* (api-handler wraps every handler in `eventStorage.run(builder, …)`),
|
||||
* yet the gate helpers and snapshot builders re-read the same row on
|
||||
* every call. The Coach drawer opening fires five fetches in parallel,
|
||||
* each of which lands a `requireAssistantSurface("coach")` call —
|
||||
* each of which resolves the AI capabilities —
|
||||
* five separate `SELECT` against `AppSettings.singleton` for the same
|
||||
* value within the same wall-clock millisecond.
|
||||
*
|
||||
@@ -44,7 +44,7 @@ function getCache(builder: WideEventBuilder): Map<string, unknown> {
|
||||
* The cached value is the Promise itself, so concurrent callers within
|
||||
* the same request await one outstanding compute instead of starting
|
||||
* their own — important for the gate-cascade pattern where five
|
||||
* mounts fire `requireAssistantSurface()` in parallel.
|
||||
* mounts resolve the same capabilities in parallel.
|
||||
*/
|
||||
export function memoizePerRequest<T>(
|
||||
key: string,
|
||||
|
||||
Reference in new issue
Block a user