Go to file
2026-04-13 15:46:07 +08:00
.github Extract xworkmate bridge workflow scripts 2026-04-12 15:22:13 +08:00
docs fix: align gateway routing to openclaw mainline 2026-04-13 15:46:07 +08:00
example docs: add bridge config example 2026-04-10 08:46:04 +08:00
internal fix: align gateway routing to openclaw mainline 2026-04-13 15:46:07 +08:00
scripts ci: authorize ping validation 2026-04-12 16:15:50 +08:00
.dockerignore ci: ship bridge via image ref artifact 2026-04-12 14:23:23 +08:00
.gitignore Fix ACP auth and Gemini session compatibility 2026-04-09 19:21:12 +08:00
AGENTS.md fix github actions workflow pinning 2026-04-10 17:40:29 +08:00
Dockerfile ci: ship bridge via image ref artifact 2026-04-12 14:23:23 +08:00
go.mod Initial standalone ACP bridge repository 2026-04-09 09:49:48 +08:00
go.sum Initial standalone ACP bridge repository 2026-04-09 09:49:48 +08:00
main_test.go Initial standalone ACP bridge repository 2026-04-09 09:49:48 +08:00
main_tools.go Add GitHub Actions pipeline for bridge deploy 2026-04-10 16:17:32 +08:00
main.go Add Gemini ACP adapter shim 2026-04-09 14:09:18 +08:00
Makefile Initial standalone ACP bridge repository 2026-04-09 09:49:48 +08:00
README.md bridge: add gateway provider routing model 2026-04-11 16:35:01 +08:00

XWorkmate Bridge

xworkmate-bridge is the standalone repository for the XWorkmate ACP Bridge Server and the embedded Go helper previously stored under xworkmate-app/go/go_core.

What lives here

  • ACP Bridge HTTP/WebSocket server
  • ACP stdio bridge entrypoint
  • Go helper runtime packages used by the ACP bridge
  • Unit tests for bridge routing, RPC contracts, mounts, runtime dispatch, and provider sync

ACP Forwarding Topology

This repository exposes one APP-facing bridge entrypoint and proxies traffic to four independent upstream production services. The APP-facing canonical ACP paths remain /acp/rpc and /acp under https://xworkmate-bridge.svc.plus.

Architecture topology: docs/architecture/acp-forwarding-topology.md

ADR for the unified APP-facing bridge contract: docs/architecture/adr-unified-bridge-entrypoints.md

Example provider sync config: example/config.yaml

API reference: docs/api-reference.md

Compatibility

For compatibility with xworkmate-app, the built helper binary name remains xworkmate-go-core.

Commands

make test
make build
./build/bin/xworkmate-go-core serve --listen 127.0.0.1:8787

GitHub Actions

This repository includes one GitHub Actions pipeline with four stages:

  • prep: Go static checks
  • build: build the linux/amd64 artifact for the x86 target host and upload it
  • deploy: run Ansible CD with x-evor/playbooks
  • validate: verify the public endpoints after deployment

Deploy stage

The deploy stage checks out:

  • this service repository into xworkmate-bridge/
  • the x-evor/playbooks repository into playbooks/

Then it runs playbooks/deploy_xworkmate_bridge_vhosts.yml, which builds the service for linux/amd64 and deploys it to the target host with Ansible.

Required GitHub secrets:

  • SINGLE_NODE_VPS_SSH_PRIVATE_KEY: private key used by the Actions runner to SSH into the target host
  • WORKSPACE_REPO_TOKEN: token with access to checkout x-evor/playbooks

Optional GitHub secrets:

  • SSH_KNOWN_HOSTS: pre-seeded known_hosts content for stricter host verification

Optional workflow input:

  • internal_service_token: manual dispatch input that is forwarded to Ansible as INTERNAL_SERVICE_TOKEN

Environment

  • ACP_LISTEN_ADDR: listen address for serve mode, default 127.0.0.1:8787
  • OUTPUT_DIR: optional output directory for make build
  • OUTPUT_PATH: optional explicit build path for make build