feat: add Hermes agent provider integration#278
Open
UbiStaff wants to merge 1 commit into
Open
Conversation
Add Hermes CLI as a native agent provider alongside Claude Code, Codex, OpenCode, and Gemini CLI on the opencove canvas. - Settings panel: new Hermes provider option with configurable executable path - Agent nodes: create Hermes agent nodes, launching interactive terminals - Command modes: hermes chat / chat -q <prompt> / chat --resume <id> - Session management: auto-discover/resume from ~/.hermes/sessions/sessions.json - Type system: extend AgentProviderId, AgentModelCatalogSource, and all unions - IPC validation: all provider validation gates updated - Frontend: layered diamond SVG icon + teal accent color + EN/ZH labels - Tests: updated 3 unit test suites for provider order and defaults
Owner
|
Hermes provider 的基础注册和 UI 接入方向没问题,但 session/runtime 链路还没闭环。现在 listAgentSessions() 对 Hermes 直接返回空;state watcher 把 Hermes 标成 JSONL,但 SessionFileResolver 没有 Hermes 分支;last assistant message extractor 也没有 Hermes 分支;locator 还会忽略 cwd,可能绑定到其他 workspace 的最新 Hermes session。建议先补完整 Hermes session catalog / file resolver / detector / extractor,并加 fixture tests 后确定本地可正常使用并不上对应UI界面使用截图再合并。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Scope
What Does This PR Do?
Integrate Hermes CLI as a native agent provider, alongside the existing Claude Code, Codex, OpenCode, and Gemini CLI providers.
Users can configure their Hermes CLI executable path in Settings → Agent Providers and spawn Hermes agent nodes directly on the canvas.
Modifications
hermesprovider entry with configurable executable pathhermes chat(interactive),hermes chat -q <prompt>(one-shot),hermes chat --resume <id>(session resume)~/.hermes/sessions/sessions.jsonAgentProviderId,AgentModelCatalogSource, and all related union typesDelivery Checklist
pnpm typecheck+pnpm build)pnpm test)pnpm format:check+pnpm lint)