| feat: improve attachment and tool result handling
Co-authored-by: Cursor <cursoragent@cursor.com>
| 15 天前 |
| 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 天前 |
| fix(router): case-insensitive tool filtering and trim redundant prompt section
Make allowedTools/blockedTools matching case-insensitive to avoid misses
when tool names differ in casing. Fall back to unfiltered tools when
allowedTools matches nothing. Remove the agent tool call schema section
from DEFAULT_ORCHESTRATION_PROMPT (already documented in tool definition).
Co-authored-by: Cursor <cursoragent@cursor.com>
| 15 天前 |