Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions packages/wbot/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to the public wbot client are documented in this file.

## Unreleased

## 0.3.0-rc.1 - 2026-11-12

### Changed

- Update the CLI framework from `@celados/argc` 8.0 to 10.2. Breaking for callers that read
`@schema` text or branch on input error codes:
- argc 9.0 removes the agent pipe guard: `wbot @skill`, `wbot @schema` and help are no longer
refused with `OUTPUT_CAPTURED` when stdout is captured.
- The whole input object may come from stdin (`wbot messages.send - <<'EOF' … EOF`) or a file
(`wbot messages.send @send.yaml`) as YAML or JSON5, so multi-line `text` needs no escaping.
- A malformed input is `error: BAD_INPUT` (with `source`, `format`, `line`/`col`) instead of
`BAD_INPUT_JSON`.
- `@schema` renders input-side types (fields with defaults are optional, e.g. `limit?: number`) and
its `call:` frontmatter is a list that includes the heredoc form. The hidden `auth` group is no
longer listed (argc 8.2 honours `hidden`); `wbot @schema .auth` and `wbot auth set` still work.
- Command names, fields, results, MCP tools and the Platform API are unchanged.

## 0.2.8 - 2026-11-06

### Changed
Expand Down
16 changes: 15 additions & 1 deletion packages/wbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,22 @@ wbot messages.send '{ "conversationId": "conversation-id", "requestId": "digest:
wbot outbound-sends.get '{ "outboundSendId": "outbound-send-id" }'
```

Multi-line text is easiest as the whole input in YAML on stdin: the quoted heredoc expands nothing
and `|` keeps the lines verbatim. The same object can come from a file: `wbot messages.send @send.yaml`.

```sh
wbot messages.send - <<'EOF'
conversationId: conversation-id
requestId: digest:2026-09-21:conversation-id
requestedBy: agent:grok
text: |
Daily summary
- 3 new threads
EOF
```

All four send fields are required non-empty strings. `requestedBy` identifies the caller for
attribution; it does not change the Tenant or its authorization. JSON text supports newlines and
attribution; it does not change the Tenant or its authorization. Text supports newlines and
Unicode. The send result contains `outboundSendId`, `conversationId`, and `status: "queued"`.
Save `outboundSendId` and query it to obtain the current execution outcome.

Expand Down
8 changes: 4 additions & 4 deletions packages/wbot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celados/wbot",
"version": "0.2.8",
"version": "0.3.0-rc.1",
"private": true,
"description": "Agent-first conversation reading and authorized text and JPEG sending with read-only MCP tools",
"license": "MIT",
Expand All @@ -23,10 +23,10 @@
"build": "bun build ./wbot-cli.ts --target=bun --outfile=dist/wbot.js"
},
"devDependencies": {
"@celados/argc": "^8.0.0",
"@celados/argc": "^10.2.0",
"@modelcontextprotocol/sdk": "1.30.0",
"@valibot/to-json-schema": "1.7.1",
"valibot": "1.4.2",
"@valibot/to-json-schema": "1.8.0",
"valibot": "1.5.0",
"zod": "4.4.3"
},
"engines": {
Expand Down
3 changes: 1 addition & 2 deletions packages/wbot/scripts/verify-package-artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ async function runCommand(
): Promise<{ stdout: string; stderr: string }> {
const child = Bun.spawn([...command], {
cwd,
// A program reading the CLI's output opts out of argc's agent pipe guard (7.12).
env: { ...Bun.env, ...additionalEnvironment, CI: "1", ARGC_ALLOW_CAPTURE: "1" },
env: { ...Bun.env, ...additionalEnvironment, CI: "1" },
stdin: "ignore",
stdout: "pipe",
stderr: "pipe",
Expand Down
2 changes: 1 addition & 1 deletion plugins/claude/.claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "wbot",
"source": "./wbot",
"description": "Read authorized WeChat conversations through wbot.",
"version": "0.2.8"
"version": "0.3.0-rc.1"
}
]
}
2 changes: 1 addition & 1 deletion plugins/claude/wbot/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wbot",
"version": "0.2.8",
"version": "0.3.0-rc.1",
"description": "Read authorized WeChat conversations through wbot.",
"author": {
"name": "Celados"
Expand Down
2 changes: 1 addition & 1 deletion plugins/claude/wbot/.mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"args": [
"--bun",
"--package",
"@celados/wbot@https://github.com/celados/wbot/releases/download/v0.2.8/wbot-0.2.8.tgz",
"@celados/wbot@https://github.com/celados/wbot/releases/download/v0.3.0-rc.1/wbot-0.3.0-rc.1.tgz",
"wbot",
"mcp"
]
Expand Down
2 changes: 1 addition & 1 deletion plugins/codex/wbot/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wbot",
"version": "0.2.8",
"version": "0.3.0-rc.1",
"description": "Read authorized WeChat conversations through wbot.",
"author": {
"name": "Celados"
Expand Down
2 changes: 1 addition & 1 deletion plugins/codex/wbot/.mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"args": [
"--bun",
"--package",
"@celados/wbot@https://github.com/celados/wbot/releases/download/v0.2.8/wbot-0.2.8.tgz",
"@celados/wbot@https://github.com/celados/wbot/releases/download/v0.3.0-rc.1/wbot-0.3.0-rc.1.tgz",
"wbot",
"mcp"
]
Expand Down
Loading