Commit Graph

9 Commits

Author SHA1 Message Date
huanghuoguoguo
dcc0973a70 docs: add phase1 qa report 2026-06-03 17:40:35 +08:00
huanghuoguoguo
4e0a670fe2 feat(agent-runner): enrich plugin runner host context 2026-06-03 17:40:35 +08:00
huanghuoguoguo
711f12d71f feat: support dynamic agent runner defaults 2026-06-03 17:38:59 +08:00
huanghuoguoguo
c320511959 docs: update PROGRESS.md - rerank support completed 2026-06-03 17:38:59 +08:00
huanghuoguoguo
3322d26803 docs(runner): mark legacy runners and add PROGRESS.md
- Add DEPRECATED docstring to all legacy runners in pkg/provider/runners/
- Mark migration target for each runner (local-agent, dify, n8n, coze, dashscope, langflow, tbox)
- Add PROGRESS.md to track agent-runner-pluginization implementation status
- Remove completed PHASE0_INTEGRATION_RECORD.md
2026-06-03 17:38:33 +08:00
huanghuoguoguo
dc82fb584a perf(agent-runner): improve session registry and orchestrator efficiency
- Add pre-computed _authorized_ids (frozenset) at session registration for O(1) lookup
- Refactor is_resource_allowed() from linear search to set membership check
- Add thread-safe locking to get_session_registry() singleton
- Cache _session_registry and _state_store references in orchestrator __init__
- Add asyncio.gather() for parallel resource building in AgentResourceBuilder
- Create shared test fixtures in tests/unit_tests/agent/conftest.py
- Update test files to import from shared conftest.py

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 17:38:33 +08:00
huanghuoguoguo
d6b8f48e73 feat(agent-runner): integrate AgentRunner Protocol v1 with plugin system
Phase 0 integration complete - verified minimal loop with local-agent stub runner.

Changes:
- Add AgentRunOrchestrator for plugin-based agent execution
- Add AgentResultNormalizer for Protocol v1 result conversion
- Add AgentRunnerDescriptor for runner ID parsing (plugin:author/name/runner)
- Update chat handler to use new orchestrator instead of direct runner lookup
- Add plugin handler methods for list_agent_runners and run_agent
- Add connector methods for AgentRunner protocol forwarding
- Update pipeline API to include runner options in metadata
- Add integration docs and implementation plan

Integration verified:
- Runner: plugin:langbot/local-agent/default
- Input: "你好"
- Output: [stub] Echo: 你好
- Date: 2026-05-10 10:09

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-03 17:38:12 +08:00
Junyan Qin
b01294b005 docs: record agent runner design decisions 2026-06-03 17:34:55 +08:00
Junyan Qin
015849e611 docs: design agent runner pluginization 2026-06-03 17:34:55 +08:00