{"id":50216378,"url":"https://github.com/rogerchappel/wecombridge","last_synced_at":"2026-05-26T09:04:35.222Z","repository":{"id":355931190,"uuid":"1230260179","full_name":"rogerchappel/wecombridge","owner":"rogerchappel","description":"Local-first WeCom fixture replay, policy checks, and streaming adapter tools for agent channel development.","archived":false,"fork":false,"pushed_at":"2026-05-05T22:02:08.000Z","size":40,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T23:25:01.511Z","etag":null,"topics":["agent","fixtures","local-first","openclaw","wechat-work","wecom"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rogerchappel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","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-05-05T20:38:03.000Z","updated_at":"2026-05-05T21:29:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rogerchappel/wecombridge","commit_stats":null,"previous_names":["rogerchappel/wecombridge"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rogerchappel/wecombridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fwecombridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fwecombridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fwecombridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fwecombridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogerchappel","download_url":"https://codeload.github.com/rogerchappel/wecombridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fwecombridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33512346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["agent","fixtures","local-first","openclaw","wechat-work","wecom"],"created_at":"2026-05-26T09:04:19.017Z","updated_at":"2026-05-26T09:04:35.213Z","avatar_url":"https://github.com/rogerchappel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wecombridge\n\nLocal-first WeCom fixture replay, group policy checks, and streaming reply adapter sketches for agent channel development.\n\n`wecombridge` helps you design a WeCom / WeChat Work channel adapter without touching live credentials. It reads local JSON fixtures, applies explicit room/command/mention policy, and emits deterministic reports plus streaming reply frames that are easy to test in CI.\n\n## Why this exists\n\nThis project is a fresh OSS idea inspired by the existence of small WeCom/OpenClaw adapter experiments, including [`vincentkoc/openclaw-plugin-wecom`](https://github.com/vincentkoc/openclaw-plugin-wecom). It does **not** copy that implementation. V1 is deliberately local-first: fixtures, policies, reports, and CLI smokes before any real network integration.\n\n## Quickstart\n\n```sh\nnpm install\nnpm test\nnpm run smoke\nnode bin/wecombridge.js inspect fixtures/sample --output out\n```\n\nInspect the generated files:\n\n```sh\ncat out/report.md\ncat out/report.json\n```\n\n## CLI\n\n```sh\nwecombridge --help\nwecombridge inspect \u003cfixture-dir\u003e [--output \u003cout-dir\u003e] [--policy \u003cpolicy.json\u003e] [--json]\n```\n\nExample:\n\n```sh\nnode bin/wecombridge.js inspect fixtures/sample --json\n```\n\nNo network calls are made by the CLI. Inputs are local fixture files only.\n\n## Fixture format\n\nA fixture is a JSON file in a directory. `policy.json` is reserved for local policy.\n\n```json\n{\n  \"id\": \"msg-001\",\n  \"type\": \"command\",\n  \"roomId\": \"eng-oncall\",\n  \"sender\": \"alice\",\n  \"text\": \"/ping\",\n  \"timestamp\": \"2026-05-06T06:00:00+10:00\",\n  \"mentions\": [\"wecombridge\"]\n}\n```\n\nPolicy example:\n\n```json\n{\n  \"allowedRooms\": [\"eng-oncall\", \"agent-lab\"],\n  \"allowedCommands\": [\"ping\", \"summarize\", \"inspect\"],\n  \"requireMention\": true,\n  \"botUserId\": \"wecombridge\"\n}\n```\n\n## Library example\n\n```js\nimport { inspectFixtures, streamReply } from 'wecombridge';\n\nconst report = await inspectFixtures('fixtures/sample');\nconsole.log(report.totals);\n\nfor await (const frame of streamReply(report.items[0].payload)) {\n  console.log(frame);\n}\n```\n\n## Safety boundaries\n\n- Local-first by design: no hidden network, credential scraping, telemetry, or publishing behavior.\n- Policy defaults are explicit and inspectable.\n- Group allowlists and command allowlists are checked before streaming reply frames are produced.\n- Real WeCom API calls are out of scope for this MVP.\n\n## Verify\n\n```sh\nnpm test\nnpm run check\nnpm run build\nnpm run smoke\nbash scripts/validate.sh\n```\n\n`scripts/validate.sh` runs the standard local checks and treats missing optional `agent-qc` as a skip.\n\n## Project layout\n\n- `src/` — library modules for payload normalization, policy, streaming, and inspection reports.\n- `bin/wecombridge.js` — CLI entrypoint.\n- `fixtures/sample/` — deterministic local fixtures.\n- `test/` — Node test runner coverage.\n- `examples/` — small library usage examples.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). Small, reviewable changes with fixtures and tests are preferred.\n\n## Security\n\nSee [SECURITY.md](SECURITY.md). Please do not submit real WeCom secrets, production chat exports, or private message content as fixtures.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fwecombridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogerchappel%2Fwecombridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fwecombridge/lists"}