2026-05-09-model-alias-hybrid-overview

Sat May 09 2026 07:00:00 GMT+0700 (Western Indonesia Time)type/changelog

2026-05-09 — @model alias + hybrid API/actions overview

Commit a105f08 (PR #46).

What

  • Repointed the @model/* TypeScript path alias at src/lib/models/ so model imports resolve consistently with the rest of the src/lib/ layout.
  • Updated repo overview docs to reflect the hybrid data-access pattern: Server Actions for in-app mutations/queries, REST under /api/integrations/v1/ for the external AI-agent surface only.

Why

Earlier docs implied a pure-Server-Actions architecture; the integrations API added in ffa39d9 made that incomplete. The alias drift was a latent footgun — imports worked but pointed through an indirection that didn't match @actions/*, @components/*, etc.

Touches

  • tsconfig.json (alias)
  • AGENTS.md / docs/README.md (overview text)