mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 19:21:23 +02:00
feat(webapp): wire isParallelSafe in Companion chat + Mission runner
Enables the M1 parallel-reads optimisation on the webapp side. Both
consumers of runPlannerLoop pass an isParallelSafe predicate derived
from the tool catalog:
isParallelSafe: (name) =>
AI_TOOL_CATALOG_BY_NAME.get(name)?.defaultPolicy === 'auto'
Auto-policy tools (list_tasks, get_habits, nutrition_summary, …) run
via Promise.all in batches of 10 when the LLM fans them out in one
round. Propose-policy tools — which surface to the user as Proposal
cards — stay sequential so intent ordering in the inbox is preserved
and pre-execute guardrails can reason about prior-step state.
Tests: 31 existing companion + mission tests pass unchanged; the
parallel path is exercised via the new loop.test.ts cases shipped
with the M1 commit.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a64a7e39cf
commit
54a12ffd5c
59 changed files with 5629 additions and 218 deletions
|
|
@ -72,6 +72,7 @@ export const SPACE_MODULE_ALLOWLIST: Record<SpaceType, readonly SpaceModuleId[]
|
|||
'storage',
|
||||
'uload',
|
||||
'landing', // future
|
||||
'website',
|
||||
'presi',
|
||||
'cards',
|
||||
'picture',
|
||||
|
|
@ -104,6 +105,7 @@ export const SPACE_MODULE_ALLOWLIST: Record<SpaceType, readonly SpaceModuleId[]
|
|||
'invoices',
|
||||
'finance',
|
||||
'landing', // future — Paket C (Vereinswebsite)
|
||||
'website',
|
||||
'presi',
|
||||
'cards',
|
||||
'quotes',
|
||||
|
|
@ -123,6 +125,7 @@ export const SPACE_MODULE_ALLOWLIST: Record<SpaceType, readonly SpaceModuleId[]
|
|||
'mail',
|
||||
'storage',
|
||||
'uload',
|
||||
'website',
|
||||
'recipes',
|
||||
'food',
|
||||
'places',
|
||||
|
|
@ -146,6 +149,7 @@ export const SPACE_MODULE_ALLOWLIST: Record<SpaceType, readonly SpaceModuleId[]
|
|||
'storage',
|
||||
'mail',
|
||||
'uload',
|
||||
'website',
|
||||
'news',
|
||||
'news-research',
|
||||
'research-lab',
|
||||
|
|
@ -169,6 +173,7 @@ export const SPACE_MODULE_ALLOWLIST: Record<SpaceType, readonly SpaceModuleId[]
|
|||
'storage',
|
||||
'mail',
|
||||
'uload',
|
||||
'website',
|
||||
'invoices',
|
||||
'finance',
|
||||
'times',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue