wacrm/src/lib
Arnas Donauskas 10d31bcfc8 feat: AI Agents sidebar section (setup + playground)
Promotes the AI assistant out of Settings into a first-class "AI Agents"
sidebar area.

- Sidebar: new "AI Agents" item → /agents.
- /agents page with two tabs:
  - Playground — a test chat (POST /api/ai/playground) that runs the
    real auto-reply path (KB retrieval + provider, auto_reply prompt,
    multi-turn, shows handoff). loadAiConfig gains requireActive so you
    can test before enabling.
  - Setup — the existing provider/key + knowledge-base config, relocated.
- Removed the AI section from Settings (settings-sections + page); same
  account config, new home. No migration.

Tests +6 (query, loadAiConfig requireActive). 593 pass; typecheck, lint,
build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-02 18:20:18 +03:00
..
ai feat: AI Agents sidebar section (setup + playground) 2026-07-02 18:20:18 +03:00
api/v1 feat(api): public REST API v1 — messages, contacts, conversations, broadcasts (#245) 2026-07-01 14:10:19 +03:00
api-keys feat(api): outbound event webhooks — /api/v1/webhooks (#245) 2026-07-01 14:53:18 +03:00
auth fix(auth): load account context without an embedded FK join 2026-06-25 13:34:26 +03:00
automations fix(automations): persist default match_type for Keyword Match triggers 2026-06-22 10:20:38 +03:00
contacts refactor(contacts): improve code readability and formatting in import modal and CSV parsing 2026-06-16 12:59:03 +05:30
dashboard test: foundational Vitest suite for security + critical pure logic 2026-05-18 16:06:02 +03:00
flows feat(webhook,engines): account-scoped routing 2026-05-31 18:45:48 +03:00
inbox feat(inbox): filter conversations by contact tags and company 2026-07-01 13:03:53 +03:00
storage fix(inbox): harden media send — GC orphans, per-type caps, voice cap 2026-06-18 10:28:19 +03:00
supabase fix: make Supabase browser client a singleton 2026-04-16 19:39:24 +03:00
webhooks feat(api): outbound event webhooks — /api/v1/webhooks (#245) 2026-07-01 14:53:18 +03:00
whatsapp feat(api): public REST API v1 — messages, contacts, conversations, broadcasts (#245) 2026-07-01 14:10:19 +03:00
broadcast-status.test.ts feat(theme): sweep remaining violet-* → primary across all surfaces 2026-05-22 17:00:32 +03:00
broadcast-status.ts fix(theme): keep status-badge token contract green (CI test) 2026-06-17 13:08:32 +03:00
currency.test.ts fix(currency): make formatCurrency total + add unit tests 2026-06-08 15:10:56 +03:00
currency.ts fix(currency): make formatCurrency total + add unit tests 2026-06-08 15:10:56 +03:00
presence.test.ts feat(team): member presence (online / away / offline) on the roster 2026-06-22 14:37:29 +03:00
presence.ts feat(team): member presence (online / away / offline) on the roster 2026-06-22 14:37:29 +03:00
rate-limit.test.ts test: foundational Vitest suite for security + critical pure logic 2026-05-18 16:06:02 +03:00
rate-limit.ts feat: AI reply assistant (bring-your-own-key) 2026-07-02 12:56:04 +03:00
template-status.ts fix(theme): keep status-badge token contract green (CI test) 2026-06-17 13:08:32 +03:00
themes.ts feat(theme): add light/dark mode toggle (#243) 2026-06-16 17:29:46 +03:00
utils.ts feat: initial commit 2026-04-16 17:53:27 +03:00