Commit Graph

25 Commits

Author SHA1 Message Date
huanghuoguoguo
7053acfb1b feat(agent-runner): expose effective prompt and transcript history 2026-06-04 11:11:40 +08:00
huanghuoguoguo
08c51118c5 refactor(agent-runner): make agent binding and auth snapshot explicit 2026-06-04 11:11:40 +08:00
huanghuoguoguo
a850127893 refactor(agent-runner): simplify event-first entry path 2026-06-04 11:11:40 +08:00
huanghuoguoguo
4d0a2b117a refactor(agent-runner): align config with agent semantics 2026-06-04 11:11:40 +08:00
huanghuoguoguo
8116acf462 refactor(agent-runner): remove host context windowing 2026-06-04 11:11:40 +08:00
huanghuoguoguo
4d4ccfabd5 feat(agent-runner): normalize binding config boundaries 2026-06-04 11:11:39 +08:00
huanghuoguoguo
93cd852061 fix: enforce agent run API permissions 2026-06-04 11:11:39 +08:00
huanghuoguoguo
99afe8e999 docs(agent-runner): document external MCP bridge 2026-06-04 11:11:39 +08:00
huanghuoguoguo
93febbb342 docs(agent-runner): align runner protocol boundaries 2026-06-04 11:11:39 +08:00
huanghuoguoguo
6afe8b67f8 docs(agent-runner): record codex runner smoke 2026-06-04 11:11:39 +08:00
huanghuoguoguo
13ff4fd9c1 docs(agent-runner): update pluginization design status 2026-06-04 11:11:39 +08:00
huanghuoguoguo
ab96070036 refactor(agent-runner): tighten protocol v1 runtime boundaries 2026-06-04 11:11:39 +08:00
huanghuoguoguo
cc911cc413 feat(agent-runner): align protocol adapter terminology 2026-06-04 11:11:39 +08:00
huanghuoguoguo
9086f77cc5 docs(agent-runner): split protocol and context design 2026-06-04 11:11:39 +08:00
huanghuoguoguo
275a6d44d6 fix(agent-runner): package context for plugin execution 2026-06-04 11:11:39 +08:00
huanghuoguoguo
7c7e517ac6 feat(agent): reserve stable runner event names 2026-06-04 11:11:39 +08:00
huanghuoguoguo
f2ff796800 docs: add phase1 qa report 2026-06-04 11:11:39 +08:00
huanghuoguoguo
b5f08eb1d4 feat(agent-runner): enrich plugin runner host context 2026-06-04 11:11:39 +08:00
huanghuoguoguo
c2037f9833 feat: support dynamic agent runner defaults 2026-06-04 11:11:39 +08:00
huanghuoguoguo
ef113bb7a7 docs: update PROGRESS.md - rerank support completed 2026-06-04 11:11:39 +08:00
huanghuoguoguo
2fd126b0d7 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-04 11:11:39 +08:00
huanghuoguoguo
47b1890a4b 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-04 11:11:39 +08:00
huanghuoguoguo
3812bd97eb 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-04 11:11:39 +08:00
Junyan Qin
98bbdf268f docs: record agent runner design decisions 2026-06-04 11:11:38 +08:00
Junyan Qin
7c1ff5b841 docs: design agent runner pluginization 2026-06-04 11:11:38 +08:00