| feat(router): introduce in-process router module with scenario routing, fallback, and zero-usage retry
Replace the agent's direct model dependency and AgentRecoveryPolicy with a
new src/router/ module that owns scenario decision, sticky session state,
fallback chain, zero-usage retry, and (skeleton) tokenSaver / orchestrate /
customRouter / stats. Wire it into PolitConfig, createLocalGateway, and the
agent loop; update e2e + agent test helpers; add docs/router/ and full
tests/router/ unit suites.
Co-authored-by: Cursor <cursoragent@cursor.com>
| 24 天前 |