{"id":51531756,"url":"https://github.com/ai-workspace-lab/xworkmate-bridge","last_synced_at":"2026-07-09T03:01:49.091Z","repository":{"id":350356340,"uuid":"1205468636","full_name":"ai-workspace-lab/xworkmate-bridge","owner":"ai-workspace-lab","description":"Unified ACP bridge for XWorkmate. Exposes one APP-facing endpoint and routes requests to Codex, OpenCode, Gemini, and gateway providers.","archived":false,"fork":false,"pushed_at":"2026-06-26T22:45:07.000Z","size":19175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-27T00:32:17.705Z","etag":null,"topics":["acp","agentproxy","bridge","json-rpc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ai-workspace-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-09T01:51:15.000Z","updated_at":"2026-06-26T22:44:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ai-workspace-lab/xworkmate-bridge","commit_stats":null,"previous_names":["x-evor/xworkmate-bridge","ai-workspace-lab/xworkmate-bridge"],"tags_count":85,"template":false,"template_full_name":null,"purl":"pkg:github/ai-workspace-lab/xworkmate-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-workspace-lab%2Fxworkmate-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-workspace-lab%2Fxworkmate-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-workspace-lab%2Fxworkmate-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-workspace-lab%2Fxworkmate-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ai-workspace-lab","download_url":"https://codeload.github.com/ai-workspace-lab/xworkmate-bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-workspace-lab%2Fxworkmate-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35284886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acp","agentproxy","bridge","json-rpc"],"created_at":"2026-07-09T03:01:48.454Z","updated_at":"2026-07-09T03:01:49.072Z","avatar_url":"https://github.com/ai-workspace-lab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XWorkmate Bridge\n\n`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`.\n\n## What lives here\n\n- ACP Bridge HTTP/WebSocket server\n- ACP stdio bridge entrypoint\n- Go helper runtime packages used by the ACP bridge\n- Unit tests for bridge routing, RPC contracts, mounts, runtime dispatch, and provider sync\n\n## ACP Forwarding Topology\n\nThis repository exposes one APP-facing bridge entrypoint and proxies traffic\nto four independent upstream production services. The APP-facing canonical ACP\npath is WebSocket `/acp`; HTTP `/acp/rpc` remains available for CI, scripts,\ndebugging, and compatibility fallback under\n`https://xworkmate-bridge.svc.plus`.\nOpenClaw task submission is the only dedicated HTTP task route:\n`POST /gateway/openclaw` for `session.start` and follow-up `session.message`.\nIt is not a global ACP base endpoint.\n\nArchitecture topology: [docs/architecture/acp-forwarding-topology.md](/Users/shenlan/workspaces/cloud-neutral-toolkit/xworkmate-bridge/docs/architecture/acp-forwarding-topology.md)\n\nADR for the unified APP-facing bridge contract: [docs/architecture/adr-unified-bridge-entrypoints.md](/Users/shenlan/workspaces/cloud-neutral-toolkit/xworkmate-bridge/docs/architecture/adr-unified-bridge-entrypoints.md)\n\nExample provider sync config: [example/config.yaml](/Users/shenlan/workspaces/cloud-neutral-toolkit/xworkmate-bridge/example/config.yaml)\n\nAPI reference: [docs/api-reference.md](/Users/shenlan/workspaces/cloud-neutral-toolkit/xworkmate-bridge/docs/api-reference.md)\n\nBackend API design: [docs/backend-api-design.md](/Users/shenlan/workspaces/cloud-neutral-toolkit/xworkmate-bridge/docs/backend-api-design.md)\n\n## Compatibility\n\nFor compatibility with `xworkmate-app`, the built helper binary name remains `xworkmate-go-core`.\n\n## Commands\n\n```bash\nmake test\nmake build\n./build/bin/xworkmate-go-core serve --listen 127.0.0.1:8787\n```\n\n## GitHub Actions\n\nThis repository includes one GitHub Actions pipeline with four stages:\n\n- `prep`: Go static checks\n- `build`: build the `linux/amd64` artifact for the x86 target host and upload it\n- `deploy`: run Ansible CD with `x-evor/playbooks`\n- `validate`: verify the public endpoints after deployment\n\nGitHub Releases are published only after `deploy` and `validate` both succeed.\nIn this repository, a published Release means the built image has been deployed\nto `xworkmate-bridge.svc.plus` and passed post-deploy validation there.\n\n### Deploy stage\n\nThe deploy stage checks out:\n\n- this service repository into `xworkmate-bridge/`\n- the `x-evor/playbooks` repository into `playbooks/`\n\nThen it installs the native `linux/amd64` bridge binary with\n`scripts/github-actions/deploy-native-binary.sh`. The native bridge runs as the\n`ubuntu` user's systemd user service:\n\n- binary: `/home/ubuntu/.local/bin/xworkmate-go-core`\n- unit: `/home/ubuntu/.config/systemd/user/xworkmate-bridge.service`\n- restart: `systemctl --user restart xworkmate-bridge.service`\n\nDuring migration the script performs a one-time stop/disable of the old system\nunit, then deploys and restarts through `ubuntu@\u003ctarget\u003e`.\n\n### Validate stage\n\nThe validate stage proves production alignment against the bridge public\ncontract:\n\n- bridge root and `/api/ping`\n- strict image / tag / commit / version match against the built image ref\n- upstream ACP capability probes for `codex`, `opencode`, and `gemini`\n- minimal `session.start` smoke tests through the bridge JSON-RPC contract\n\nRequired GitHub secrets:\n\n- `SINGLE_NODE_VPS_SSH_PRIVATE_KEY`: private key used by the Actions runner to SSH into the target host\n- `WORKSPACE_REPO_TOKEN`: token with access to checkout `x-evor/playbooks`\n\nOptional GitHub secrets:\n\n- `SSH_KNOWN_HOSTS`: pre-seeded known_hosts content for stricter host verification\n\nOptional workflow input:\n\n- `ai_workspace_auth_token`: manual dispatch input that is forwarded as `AI_WORKSPACE_AUTH_TOKEN`\n\n## Environment\n\n- `ACP_LISTEN_ADDR`: listen address for `serve` mode, default `127.0.0.1:8787`\n- `OUTPUT_DIR`: optional output directory for `make build`\n- `OUTPUT_PATH`: optional explicit build path for `make build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-workspace-lab%2Fxworkmate-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fai-workspace-lab%2Fxworkmate-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-workspace-lab%2Fxworkmate-bridge/lists"}