Commit graph

2077 commits

Author SHA1 Message Date
CREDO23
a975754e7d refactor(agents): move feature flags to app/agents/shared/feature_flags (slice 2b)
Promote the agent feature-flag resolver (AgentFeatureFlags / get_flags) out of
`new_chat` into the cross-agent `app/agents/shared` kernel.

feature_flags is a pure leaf consumed across the multi-agent middleware stack,
the chat routes, and tests. Moved it via git mv (content unchanged) and flipped
all 37 importers to app.agents.shared.feature_flags. A thin re-export shim
remains at new_chat/feature_flags.py only for the not-yet-retired single-agent
(chat_deepagent); it goes away with the single-agent deletion.

Behavior-preserving: only import paths change. 1243 tests green.
2026-06-04 12:23:12 +02:00
CREDO23
28b13ed25b refactor(agents): move context schema + state reducers to app/agents/shared (slice 2)
Continue promoting the shared agent toolkit out of `new_chat` into the
cross-agent `app/agents/shared` kernel.

- state_reducers.py: clean move (no single-agent importer); all 7 importers
  flipped to app.agents.shared.state_reducers.
- context.py: moved to app.agents.shared.context; flipped the multi-agent,
  app, automations, chat-flows and monolith importers. A thin re-export shim
  remains at new_chat/context.py because the not-yet-retired single-agent
  (chat_deepagent) and the new_chat package __init__ still import it; the shim
  goes away with the single-agent deletion.
- Updated the stream parity test's annotation normalizer to strip the new
  app.agents.shared.context. prefix (SurfSenseContextSchema.__module__ changed
  with the move), keeping monolith<->flows signature parity intact.

Behavior-preserving: definitions unchanged; only import paths move. 1219 tests green.
2026-06-04 12:19:22 +02:00
CREDO23
0354f73f29 refactor(agents): move error taxonomy to app/agents/shared/errors (slice 1)
First slice of promoting the shared agent toolkit out of the misnamed
`new_chat` package into the cross-agent `app/agents/shared` kernel.

`errors.py` is a leaf module (no intra-package deps) consumed by the
multi-agent chat, the chat streaming flows/monolith, and tests — i.e. it is
shared infrastructure, not single-agent code. Moved it verbatim to
`app.agents.shared.errors` and flipped all 12 importers. No re-export shim
remains since zero importers needed it.

Behavior-preserving: identical class/enum definitions; only the import path
changes. 1208 agent + chat-task tests green.
2026-06-04 12:13:55 +02:00
CREDO23
a4010a357f refactor: extract shared connector->searchable-type mapping out of chat_deepagent
The multi-agent factory reached into the single-agent factory module
(chat_deepagent) for `_map_connectors_to_searchable_types`. Move this
agent-agnostic helper (and its two lookup tables) into a dedicated
`connector_searchable_types` module and point both factories at it.

Behavior-preserving: the function body is unchanged; only its home and
visibility (now public `map_connectors_to_searchable_types`) change. This
removes the cross-dependency on the dying single-agent module so it can be
retired later without breaking the multi-agent path.
2026-06-04 12:05:17 +02:00
CREDO23
0b006badb0 chore: remove dead agent code (vision autocomplete, linear tools, provider hints) 2026-06-04 11:44:23 +02:00
CREDO23
cb44063081 fix: repair pre-existing agent_task, gateway, and skills tests 2026-06-04 10:25:06 +02:00
CREDO23
44abf56d6c fix: restore connector mentions, free-tier fallback, orphan-row guard in new chat flow 2026-06-04 10:25:06 +02:00
CREDO23
339ec31cad refactor: use transform helpers in notifications API 2026-06-03 21:53:03 +02:00
CREDO23
1ea7d3109a feat: add pure notifications API transform helpers 2026-06-03 21:53:03 +02:00
CREDO23
7a6fcfb29b refactor: use shared truncate in mention and reply handlers 2026-06-03 21:53:03 +02:00
CREDO23
778ab9b254 refactor: route indexing handlers through message helpers 2026-06-03 21:53:03 +02:00
CREDO23
7618c3aafb refactor: use pure metadata core in base handler 2026-06-03 21:52:58 +02:00
CREDO23
d53707ebbf feat: add pure notification metadata transitions 2026-06-03 21:52:58 +02:00
CREDO23
c23bdc4a5e feat: add pure notification message helpers 2026-06-03 21:52:58 +02:00
CREDO23
75b37bb8d4 refactor: remove legacy notification service 2026-06-03 18:04:47 +02:00
CREDO23
9dab07f775 refactor: point notification callers at notifications module 2026-06-03 18:04:47 +02:00
CREDO23
5d2a36f579 refactor: serve notifications API from notifications module 2026-06-03 18:04:47 +02:00
CREDO23
e5236d33a9 refactor: move Notification model into notifications module 2026-06-03 18:04:47 +02:00
CREDO23
9575b9d4db refactor: add notifications module 2026-06-03 18:04:47 +02:00
CREDO23
b6710ae9af refactor(jira): remove dead legacy indexing and write tools (mcp-only now) 2026-06-02 16:38:00 +02:00
CREDO23
f9e2c22d45 feat(documents): purge stored blobs on document deletion 2026-06-02 16:10:50 +02:00
CREDO23
a4b31929d0 feat(documents): persist original upload bytes on file upload 2026-06-02 16:10:50 +02:00
CREDO23
7dad9ec3a9 feat(api): mount file-storage router 2026-06-02 16:10:50 +02:00
CREDO23
5e5f51b3a0 feat(db): register DocumentFile and document.files relationship 2026-06-02 16:10:44 +02:00
CREDO23
0483af8023 feat(file-storage): add listing and download routes 2026-06-02 16:10:44 +02:00
CREDO23
7065615043 feat(file-storage): add storage service and metadata schema 2026-06-02 16:10:44 +02:00
CREDO23
72174c780a feat(file-storage): add document_files model and enum 2026-06-02 16:10:43 +02:00
CREDO23
1bb1022d35 feat(file-storage): add settings, key builder, and backend factory 2026-06-02 16:10:43 +02:00
CREDO23
74fcad6496 feat(file-storage): add local and azure blob backends 2026-06-02 16:10:43 +02:00
CREDO23
f3ebb14e46 feat(file-storage): add storage backend contract 2026-06-02 16:10:43 +02:00
Anish Sarkar
2e64d5d3de Merge remote-tracking branch 'upstream/dev' into feat/whatsapp-gateway-integration 2026-06-02 01:22:32 +05:30
Rohan Verma
8340cda6e3
Merge pull request #1456 from octo-patch/feature/upgrade-minimax-m3
feat: upgrade MiniMax default model to M3
2026-06-01 12:45:24 -07:00
Anish Sarkar
e3de7c4667 Merge remote-tracking branch 'upstream/dev' into feat/whatsapp-gateway-integration 2026-06-02 00:29:32 +05:30
Anish Sarkar
799a83239f feat(gateway): add Slack and Telegram gateway configuration and enablement checks 2026-06-01 23:58:28 +05:30
CREDO23
c752bdd4fb docs: clarify automation checkpointer TODO 2026-06-01 20:23:11 +02:00
octo-patch
722b5fefcd feat: upgrade MiniMax default model to M3
- Add MiniMax-M3 to the model selection list (set as the new default)
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives
- Remove deprecated MiniMax-M2.5 / M2.5-highspeed entries
- Update example config and Chinese setup docs to reference M3 (512K context)
2026-06-02 01:48:11 +08:00
Anish Sarkar
fc2467be3d feat(gateway): improve WhatsApp account mode handling and connection filtering 2026-06-01 23:08:56 +05:30
Anish Sarkar
a151e8f729 feat(gateway): enhance WhatsApp account management and connection handling 2026-06-01 22:49:46 +05:30
Anish Sarkar
2d1a6be776 feat(gateway): implement search space management for messaging channels 2026-06-01 21:39:09 +05:30
Anish Sarkar
e85710dd7b feat(gateway): include Discord in gateway maintenance 2026-06-01 20:59:41 +05:30
Anish Sarkar
7860714f74 feat(gateway): add Discord gateway install flow 2026-06-01 20:59:31 +05:30
Anish Sarkar
05eaa46c3a feat(gateway): add Discord mention intake supervisor 2026-06-01 20:59:21 +05:30
Anish Sarkar
f8ff58bdce feat(gateway): route Discord events through external chat 2026-06-01 20:59:13 +05:30
Anish Sarkar
5024b69e69 feat(gateway): handle Discord channel replies 2026-06-01 20:59:04 +05:30
Anish Sarkar
bc8a285187 feat(gateway): add Discord platform adapter 2026-06-01 20:58:50 +05:30
Anish Sarkar
68da295b5d feat(gateway): add Discord gateway configuration 2026-06-01 20:58:31 +05:30
Anish Sarkar
4b8ca29f9e feat(gateway): add Discord external chat platform 2026-06-01 20:58:17 +05:30
Anish Sarkar
b5cc19843c feat(gateway): include Slack in gateway maintenance 2026-06-01 12:37:16 +05:30
Anish Sarkar
9c7e093db4 feat(gateway): add Slack gateway webhook flow 2026-06-01 12:37:04 +05:30
Anish Sarkar
f305a2e67d feat(gateway): route Slack events through external chat 2026-06-01 12:36:53 +05:30