Commit Graph

120 Commits

Author SHA1 Message Date
Acbox d69daeff68 release: v0.2.0-beta.1 2026-03-01 16:31:06 +08:00
Acbox 521eb41b63 refactor(ui): color design 2026-03-01 15:04:52 +08:00
Acbox 111e8d8732 fix(web): chart can only display today's data 2026-03-01 14:39:23 +08:00
Acbox 05e8e66bb2 feat(web): file manager in chat page 2026-03-01 14:35:26 +08:00
Acbox b2349fab13 chore(web): remove search provider filter 2026-03-01 14:35:26 +08:00
Acbox 3ed89aeb1d fix(web): monoca overload 2026-03-01 02:48:52 +08:00
Acbox 0bcef0cae6 fix(web): lint 2026-03-01 02:40:58 +08:00
Acbox 8b98e7fba8 refactor(web): sidebar 2026-03-01 02:40:07 +08:00
Acbox Liu 0cdf822603 feat: token usage state (#153)
* feat: token usage state

* fix: typo
2026-03-01 02:19:07 +08:00
Acbox 443ede30b4 refactor(skills): import skill with pure markdown string 2026-02-28 23:07:44 +08:00
Acbox 21029f44c7 feat(web): improve MCP details page 2026-02-28 22:48:51 +08:00
Acbox e365e5545a feat: files preview 2026-02-28 21:45:30 +08:00
Acbox fab5ae6320 chore: update AGENTS.md 2026-02-28 21:13:55 +08:00
BBQ cc5f00355f feat: add email service with multi-adapter support (#146)
* feat: add email service with multi-adapter support

Implement a full-stack email service with global provider management,
per-bot bindings with granular read/write permissions, outbox audit
storage, and MCP tool integration for direct mailbox access.

Backend:
- Email providers: CRUD with dynamic config schema (generic SMTP/IMAP, Mailgun)
- Generic adapter: go-mail (SMTP) + go-imap/v2 (IMAP IDLE real-time push via
  UnilateralDataHandler + UID-based tracking + periodic check fallback)
- Mailgun adapter: mailgun-go/v5 with dual inbound mode (webhook + poll)
- Bot email bindings: per-bot provider binding with independent r/w permissions
- Outbox: outbound email audit log with status tracking
- Trigger: inbound emails push notification to bot_inbox (from/subject only,
  LLM reads full content on demand via MCP tools)
- MailboxReader interface: on-demand IMAP queries for listing/reading emails
- MCP tools: email_accounts, email_send, email_list (paginated mailbox),
  email_read (by UID) — all with multi-binding and provider_id selection
- Webhook: /email/mailgun/webhook/:config_id (JWT-skipped, signature-verified)
- DB migration: 0019_add_email (email_providers, bot_email_bindings, email_outbox)

Frontend:
- Email Providers page: /email-providers with MasterDetailSidebarLayout
- Dynamic config form rendered from ordered provider meta schema with i18n keys
- Bot detail: Email tab with bindings management + outbox audit table
- Sidebar navigation entry
- Full i18n support (en + zh)
- Auto-generated SDK from Swagger

Closes #17

* feat(email): trigger bot conversation immediately on inbound email

Instead of only storing an inbox item and waiting for the next chat,
the email trigger now proactively invokes the conversation resolver
so the bot processes new emails right away — aligned with the
schedule/heartbeat trigger pattern.

* fix: lint

---------

Co-authored-by: Acbox <acbox0328@gmail.com>
2026-02-28 21:03:59 +08:00
Quincy 7d392a1143 fix: resolve multiple UI bugs (#147) 2026-02-28 20:32:25 +08:00
Menci 8fba05584c feat(web): add brand icons for search providers (#144)
Add custom FontAwesome icon definitions for all 9 search providers:
- Yandex: uses existing faYandex from FA free brands
- Tavily, Jina, Exa, Bocha, Serper: custom icons from brand SVGs
- DuckDuckGo, SearXNG, Sogou: custom icons from Simple Icons

Icons are registered with a custom 'fac' prefix and rendered as
monochrome (currentColor) via FontAwesome's standard rendering.
2026-02-28 20:32:12 +08:00
Acbox b47258b15e refactor(web): fix types, ui, error handling, unhealthy styles 2026-02-27 18:02:23 +08:00
BBQ bf0eeb0e80 feat(search): add 8 new search providers (#135)
* feat(search): add Sogou search provider

* fix(search): use new endpoint and API version for sogou

* feat(search): add Serper, SearXNG, Jina, Exa, Bocha, DuckDuckGo search providers

Add six new search provider integrations:
- Serper: Google search via Serper API
- SearXNG: Self-hosted meta search engine
- Jina: Jina AI search API
- Exa: Exa neural search API
- Bocha: Bocha AI web search
- DuckDuckGo: DuckDuckGo HTML search (no API key required)

Each provider includes backend implementation, config schema,
i18n entries, and Vue settings component.

* feat(search): add Yandex search provider

Add Yandex search provider with XML response parsing and
configurable search type (RU/TR/COM).

---------

Co-authored-by: Menci <mencici@msn.com>
2026-02-27 00:00:44 +08:00
Menci 08f5130c66 feat(search): add Tavily search provider 2026-02-26 15:54:14 +08:00
Acbox Liu 2f38662d4d feat: heartbeat (#108)
* feat: heartbeat

* feat: independent heartbeat model
2026-02-25 16:32:52 +08:00
Ran d92993e56e release: v0.1.2 2026-02-24 23:39:52 +08:00
Ran 6f392cbb90 release: v0.1.1 2026-02-24 20:55:52 +08:00
Acbox bd28c624b9 release: v0.1.0 2026-02-24 03:47:07 +08:00
MoeMagicMango 786959f038 feat(service): add OpenAI completions models output probe (#97) 2026-02-24 02:16:24 +08:00
Ran 65c4d6f793 feat(container): support for apple container 2026-02-23 22:40:46 +08:00
Ringo.Typowriter 29e76322cc feat(feishu): add webhook inbound mode, region support, and callback/attachment enhancements (#107) 2026-02-23 21:57:34 +08:00
Acbox 8590c53f3d feat(web): add sunagent, history, skills page 2026-02-23 15:49:28 +08:00
Acbox a440bf122b feat(search): add bing and google support 2026-02-23 15:41:47 +08:00
Acbox 7ada20967a release: v0.1.0-beta.7 2026-02-23 14:49:18 +08:00
Acbox Liu 17cd077f34 feat: add thinking support (#100)
* feat: add thinking support

* feat: improve thinking block render in web and filter thinking content in channels

* fix: migrate
2026-02-23 14:41:27 +08:00
Ran efbf7be0da release: v0.1.0-beta.6 2026-02-23 06:29:08 +08:00
ShellWen 3a4f463dcc fix(web): unwrap breadcrumb value for page title by using unref 2026-02-23 06:19:18 +08:00
ShellWen cad684355e fix(web): standardize padding across various pages 2026-02-23 06:19:18 +08:00
ShellWen 8aabcf486a fix(web): access breadcrumb value correctly in currentPageTitle 2026-02-23 06:19:18 +08:00
ShellWen 9bfa9c1bef fix(web,ui): adjust chat area height for better responsiveness 2026-02-23 06:19:18 +08:00
ringotypowriter 85831732d3 Merge remote-tracking branch 'origin/main' into fix/provider-scoped-model-id-resolution
# Conflicts:
#	packages/web/src/components/create-model/index.vue
#	packages/web/src/pages/bots/components/model-select.vue
2026-02-22 20:01:27 +08:00
AlexMa233 dc5604b8c4 refactor(web): modularize chat flow, unify dialog patterns, and improve accessibility (#88)
* fix(a11y): improve landmark semantics and control labeling across web UI

* refactor(web): simplify frontend patterns and reduce duplication

Introduce shared composables and reusable UI shells to keep pages smaller while preserving behavior across settings, bots, selectors, and realtime streaming.

* style(web): apply lint autofix formatting

* refactor(web): modularize chat helpers and split settings sections

This reduces frontend maintenance risk by moving shared logic into focused modules/components while keeping existing behavior and import paths stable.

* refactor(web): remove legacy chat-list and unify dialog submit flow

Drop the unused legacy chat-list stack to reduce maintenance overhead, and centralize dialog mutation error handling so submit behavior stays consistent across create/edit dialogs.
2026-02-22 17:07:13 +08:00
ringotypowriter 8cd7c4aa86 Merge branch 'main' into fix/provider-scoped-model-id-resolution 2026-02-22 12:47:37 +08:00
Acbox 2c6b5e5565 release: v0.1.0-beta.5 2026-02-21 23:10:02 +08:00
ringotypowriter 50bdbd519c fix(models,settings,conversation): scope model_id uniqueness per
provider and harden model reference resolution
2026-02-21 22:31:32 +08:00
Acbox 654d51a142 release: v0.1.0-beta.4 2026-02-20 22:19:50 +08:00
Acbox c9d96d9da3 feat(web): remove user header in chat 2026-02-20 22:10:46 +08:00
Acbox de5c3f47a4 chore: add bumpp config 2026-02-20 22:01:08 +08:00
BBQ bc374fe8cd refactor: content-addressed assets, cross-channel multimodal, infra simplification (#63)
* refactor(attachment): multimodal attachment refactor with snapshot schema and storage layer

- Add snapshot schema migration (0008) and update init/versions/snapshots
- Add internal/attachment and internal/channel normalize for unified attachment handling
- Move containerfs provider from internal/media to internal/storage
- Update agent types, channel adapters (Telegram/Feishu), inbound and handlers
- Add containerd snapshot lineage and local_channel tests
- Regenerate sqlc, swagger and SDK

* refactor(media): content-addressed asset system with unified naming

- Replace asset_id foreign key with content_hash as sole identifier
  for bot_history_message_assets (pure soft-link model)
- Remove mime, size_bytes, storage_key from DB; derive at read time
  via media.Resolve from actual storage
- Merge migrations 0008/0009 into single 0008; keep 0001 as canonical schema
- Add Docker initdb script for deterministic migration execution order
- Fix cross-channel real-time image display (Telegram → WebUI SSE)
- Fix message disappearing on refresh (null assets fallback)
- Fix file icon instead of image preview (mime derivation from storage)
- Unify AssetID → ContentHash naming across Go, Agent, and Frontend
- Change storage key prefix from 4-char to 2-char for directory sharding
- Add server-entrypoint.sh for Docker deployment migration handling

* refactor(infra): embedded migrations, Docker simplification, and config consolidation

- Embed SQL migrations into Go binary, removing shell-based migration scripts
- Consolidate config files into conf/ directory (app.example.toml, app.docker.toml, app.dev.toml)
- Simplify Docker setup: remove initdb.d scripts, streamline nginx config and entrypoint
- Remove legacy CLI, feishu-echo commands, and obsolete incremental migration files
- Update install script and docs to require sudo for one-click install
- Add mise tasks for dev environment orchestration

* chore: recover migrations

---------

Co-authored-by: Acbox <acbox0328@gmail.com>
2026-02-19 00:20:27 +08:00
Acbox b19df8156a chore: add husky hook 2026-02-18 22:21:32 +08:00
Menci 3a441aaac2 fix(web): add missing package lucide-vue-next (#67) 2026-02-18 21:46:33 +08:00
Acbox 9c338a3806 refactor(web): login page 2026-02-18 19:06:45 +08:00
Acbox 1294b4cf75 feat: connection test of provider 2026-02-18 18:52:26 +08:00
Acbox d6c47472b2 refactor: move client_type key from provider to model 2026-02-18 18:30:27 +08:00
Acbox 77e9f585a1 feat: max context tokens 2026-02-18 17:20:22 +08:00