diff --git a/CHANGELOG.md b/CHANGELOG.md index 4251ea4..ee4220d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.5.0 + +- Pin `@zkp2p/sdk` 0.16.0 for the stable CLI release. The Cash MCP tools + use `peer.sell` for deposits, tracking, withdrawals and Relay source routing. +- Update the MCP launcher and packaged skill to use `peer-protocol-cli@0.5.0`. + ## 0.5.0-rc.0 Release candidate on the npm `rc` tag; `latest` stays 0.4.1 during the soak. diff --git a/README.md b/README.md index 7ebdf7a..fd70802 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,14 @@ The package is `peer-protocol-cli`; do not install the unrelated unscoped `peer-cli` package. ```bash -npm install --global peer-protocol-cli@0.4.1 +npm install --global peer-protocol-cli@0.5.0 peer --help ``` Run without a global install: ```bash -npx -y peer-protocol-cli@0.4.1 quote --from USD --amount 100 --platform wise +npx -y peer-protocol-cli@0.5.0 quote --from USD --amount 100 --platform wise ``` Successful output is JSON by default. Errors always use the canonical JSON @@ -73,7 +73,7 @@ The current tool counts are generated in `agents/runtime-manifest.json`. "command": "npx", "args": [ "-y", - "peer-protocol-cli@0.4.1", + "peer-protocol-cli@0.5.0", "mcp", "--profile", "read-only" @@ -120,16 +120,16 @@ custody boundary are unchanged: 7. `peer_cash_order` / `peer_cash_orders` — resume and inspect orders. 8. `peer_cash_prepare_withdraw` and `peer_cash_prepare_top_up` — prepare a withdrawal or top-up. -After 0.4.1, every one of these tools runs on `peer.sell` from `@zkp2p/sdk` -`0.16.0-rc.2`, including the Relay source tools. `peer_cash_capabilities` no +Every one of these tools runs on `peer.sell` from `@zkp2p/sdk` +`0.16.0`, including the Relay source tools. `peer_cash_capabilities` no longer takes `includeRelaySources`; call `peer_cash_source_capabilities` instead. A payee handle that does not exist on its platform fails with `PAYEE_NOT_FOUND`, which is not retryable. -`peer_cash_prepare_access_policy` is a retired step. After 0.4.1 it answers `accessPolicyRequired: false` with no transaction, because the merchant group it configured was retired in `@zkp2p/sdk` 0.15. Version 0.4.1 still returns a transaction from it: skip that step, finalize the confirmed create-deposit receipt and persist the deposit ID, even when the plan reports `accessPolicyRequired`. +`peer_cash_prepare_access_policy` is a retired step. It answers `accessPolicyRequired: false` with no transaction, because the merchant group it configured was retired in `@zkp2p/sdk` 0.15. Version 0.4.1 still returns a transaction from it: skip that step, finalize the confirmed create-deposit receipt and persist the deposit ID, even when the plan reports `accessPolicyRequired`. Base USDC amounts are decimal strings in 6-decimal base units: 100 USDC is -`100000000`. For pricing, read the corridor’s `pricing.kind` in `peer_cash_capabilities`. In the published CLI 0.4.1, Alipay/CNY and UPI/INR fix the rate at deposit creation. Other supported corridors bind the oracle rate when a buyer signals an intent. After 0.4.1, every corridor binds the oracle rate when a buyer signals an intent. +`100000000`. For pricing, read the corridor’s `pricing.kind` in `peer_cash_capabilities`. Every corridor binds the oracle rate when a buyer signals an intent. Install the packaged portable skill from [`skills/peer-cash/SKILL.md`](skills/peer-cash/SKILL.md) when the agent host diff --git a/llms.txt b/llms.txt index 31396fb..6ece47e 100644 --- a/llms.txt +++ b/llms.txt @@ -24,7 +24,7 @@ catalogs own enumerations; prose must not duplicate a command inventory. ## MCP -Run `npx -y peer-protocol-cli@0.4.1 mcp --profile `. +Run `npx -y peer-protocol-cli@0.5.0 mcp --profile `. - read-only: generic and Peer Cash reads; no signing or broadcasting - cash: complete peer_cash_* surface; prepares unsigned plans and never accepts @@ -48,7 +48,7 @@ local stdio profiles. 5. peer_cash_finalize after the confirmed createDeposit receipt 6. persist depositId and resume with peer_cash_order. Skip the retired group policy even when the 0.4.1 plan reports accessPolicyRequired. -After 0.4.1, every peer_cash_* tool runs on @zkp2p/sdk peer.sell, including the Relay source tools. peer_cash_prepare_access_policy answers accessPolicyRequired: false with no transaction (the merchant group it configured was retired in @zkp2p/sdk 0.15). +Every peer_cash_* tool runs on @zkp2p/sdk peer.sell, including the Relay source tools. peer_cash_prepare_access_policy answers accessPolicyRequired: false with no transaction (the merchant group it configured was retired in @zkp2p/sdk 0.15). Base USDC uses 6 decimals. Treat estimates as approximate. Retry read failures as reads; never retry an uncertain transaction without hash, wallet, and order diff --git a/mcp.json b/mcp.json index 6fb9c0f..4c497a7 100644 --- a/mcp.json +++ b/mcp.json @@ -6,7 +6,7 @@ "command": "npx", "args": [ "-y", - "peer-protocol-cli@0.4.1", + "peer-protocol-cli@0.5.0", "mcp", "--profile", "cash" diff --git a/package-lock.json b/package-lock.json index 1744cae..c745050 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "peer-protocol-cli", - "version": "0.5.0-rc.0", + "version": "0.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "peer-protocol-cli", - "version": "0.5.0-rc.0", + "version": "0.5.0", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.30.0", - "@zkp2p/sdk": "0.16.0-rc.2", + "@zkp2p/sdk": "0.16.0", "commander": "^14.0.3", "viem": "^2.55.19", "zod": "^4.4.3" @@ -2116,9 +2116,9 @@ } }, "node_modules/@zkp2p/sdk": { - "version": "0.16.0-rc.2", - "resolved": "https://registry.npmjs.org/@zkp2p/sdk/-/sdk-0.16.0-rc.2.tgz", - "integrity": "sha512-UTqOlmNtG90K1yjYN/dPbV28khrZcyQAoLrGEV4DzBsY/VWQLtfp7Lq+cdKdvwpR3+ydQ3jT9BJZKh68Zm8+QQ==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@zkp2p/sdk/-/sdk-0.16.0.tgz", + "integrity": "sha512-xu5nrxhlwgxq212KGNIQT3KsEVhadcZflfznG11LR+iTy/93i+PiXPpCM5oqBSpgA3mL220qMxgwtjSr4bV/3w==", "license": "MIT", "dependencies": { "@zkp2p/zkp2p-attestation": "4.0.0-rc.12", diff --git a/package.json b/package.json index 3863394..6481a6a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peer-protocol-cli", - "version": "0.5.0-rc.0", + "version": "0.5.0", "mcpName": "io.github.zkp2p/peer", "description": "Agent-first CLI and MCP server for the Peer (ZKP2P) protocol and Peer Cash", "bin": { @@ -77,7 +77,7 @@ }, "dependencies": { "@modelcontextprotocol/sdk": "^1.30.0", - "@zkp2p/sdk": "0.16.0-rc.2", + "@zkp2p/sdk": "0.16.0", "commander": "^14.0.3", "viem": "^2.55.19", "zod": "^4.4.3" diff --git a/plugin.json b/plugin.json index 0ba3844..46d1122 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "peer", - "version": "0.4.1", + "version": "0.5.0", "description": "Operate the Peer protocol and prepare custody-separated Peer Cash transactions through one CLI and MCP server.", "author": { "name": "Peer", diff --git a/server.json b/server.json index 5ad3f55..714c709 100644 --- a/server.json +++ b/server.json @@ -3,7 +3,7 @@ "name": "io.github.zkp2p/peer", "title": "Peer", "description": "Read Peer protocol, market, checkout, and Peer Cash data through one MCP server.", - "version": "0.4.1", + "version": "0.5.0", "websiteUrl": "https://agents.peer.xyz", "repository": { "url": "https://github.com/zkp2p/peer-cli", diff --git a/skills/peer-cash/SKILL.md b/skills/peer-cash/SKILL.md index 66e3b1d..d794190 100644 --- a/skills/peer-cash/SKILL.md +++ b/skills/peer-cash/SKILL.md @@ -14,7 +14,7 @@ broadcasts. Configure the host to run: ```bash -npx -y peer-protocol-cli@0.4.1 mcp --profile cash +npx -y peer-protocol-cli@0.5.0 mcp --profile cash ``` Keep optional `PEER_CASH_*` values in the host's secret or MCP configuration, @@ -38,7 +38,7 @@ without inspecting it and obtaining operator approval. `createDeposit` receipt. 6. Call `peer_cash_finalize` with the confirmed create-deposit transaction hash. Skip the retired `peer_cash_prepare_access_policy` step, including when the plan - reports `accessPolicyRequired`. After 0.4.1 it answers that no policy is needed; + reports `accessPolicyRequired`. In 0.5.0 it answers that no policy is needed; in 0.4.1 its transaction adds a retired group. 7. Persist the returned `depositId`; use `peer_cash_order` to resume. @@ -54,7 +54,7 @@ approval and confirmation rules. - For `TRANSACTION_SUBMISSION_UNKNOWN` or `TRANSACTION_STATUS_UNKNOWN`, inspect the named hash, wallet activity, and existing orders before any resubmission. - For `ACCESS_POLICY_CONFIGURATION_FAILED`, resume from the existing deposit ID. Leave the retired policy unset. -- For `PAYEE_NOT_FOUND` (after 0.4.1), the handle does not exist on that +- For `PAYEE_NOT_FOUND`, the handle does not exist on that platform. Ask for a corrected payee; do not retry the same one. - Retry `INDEXER_UNAVAILABLE` and `ORACLE_READ_FAILED` only as reads.