SurfSense/surfsense_backend/app/tasks/chat/streaming/flows/shared
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
..
__init__.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
assistant_finalize.py chore: linting 2026-05-28 19:21:29 -07:00
finalize_emit.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
finally_cleanup.py chore: linting 2026-05-28 19:21:29 -07:00
first_frames.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
llm_bundle.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
pre_stream_setup.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
premium_quota.py chore: linting 2026-05-28 19:21:29 -07:00
rate_limit_recovery.py refactor(chat): add streaming/flows/shared/ rate-limit recovery + stream loop 2026-05-25 21:49:27 +02:00
span.py chore: linting 2026-05-28 19:21:29 -07:00
stream_loop.py refactor(chat): add streaming/flows/shared/ rate-limit recovery + stream loop 2026-05-25 21:49:27 +02:00
terminal_error.py refactor(agents): move error taxonomy to app/agents/shared/errors (slice 1) 2026-06-04 12:13:55 +02:00