managarten/packages/shared-types/src
Till JS 54a12ffd5c 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>
2026-04-23 14:11:24 +02:00
..
ai-schemas.ts refactor: rename nutriphi module to food (Essen) 2026-04-14 15:30:07 +02:00
auth.ts style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
common.ts style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
contact.ts feat(contacts): integrate contacts into Todo and Calendar apps 2025-12-11 18:14:35 +01:00
index.ts fix(shared-types): add .ts extensions to re-exports for Node ESM resolvers 2026-04-20 19:50:22 +02:00
landing-config.ts chore: complete ManaCore → Mana rename (docs, go modules, plists, images) 2026-04-07 12:26:10 +02:00
spaces.ts feat(webapp): wire isParallelSafe in Companion chat + Mission runner 2026-04-23 14:11:24 +02:00
theme.ts style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
ui.ts style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00