(feat) move client out of internal. this create a gocrawl client library#29
Open
bclermont wants to merge 3 commits into
Open
(feat) move client out of internal. this create a gocrawl client library#29bclermont wants to merge 3 commits into
bclermont wants to merge 3 commits into
Conversation
added 3 commits
June 25, 2026 18:45
…thods Extended the WS client to cover chat, sessions, agents, config, skills, and cron method groups with correct request/response shapes verified directly against the current goclaw server handlers, including several field-naming corrections beyond the agent_key/session_key rename from PR nextlevelbuilder#30.
…and config.patch shape
WS RPC calls in cmd/*.go still sent legacy snake_case fields (agent_key,
session_key) that the gateway no longer accepts (it expects agentId/
sessionKey), and config.patch/apply sent {key,value} instead of the real
{raw,baseHash} JSON5-diff contract. Migrated call sites to the typed
client wrappers (ChatSend/ChatHistory/ChatInject/ChatSessionStatus,
SessionsCompact/SessionsReset, AgentWait, Cron*, Config*) so the wire
shape matches internal/gateway/methods on the server, and updated tests
to match the corrected contracts.
Author
|
I improved this PR to fill the missing coverage of goclaw server API |
Author
|
I suggest we create a new repository: gocrawl-client and I move that logic there and switch the CLI to it. and I'm refactoring the MCP server to use that client library as well |
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.
internal/can't be imported, and I rather use this library than re-implement it from scratch