Skip to content
Draft
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
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
- name: Publish drift guard
run: node scripts/check-publish-drift.mjs

# A snapshot generated from an enterprise CANDIDATE head (review state,
# cards contract §8.6) describes routes production may not serve.
# Publish day refreshes from the served document first.
- name: OpenAPI snapshot is from the served document
run: node packages/core/scripts/openapi-spec.mjs assert-served

- name: Publish all packages
run: |
# Bash's "exit on error" is off for the loop body so one bad package
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ sells), and shared infrastructure:
| `codespar_wallet` | The agent's governed funds: balance, statement, top-up; per-currency slots |
| `codespar_pay` | Outbound spend: money leaves the wallet the agent governs |
| `codespar_crypto_pay` | On-chain spend and cross-border ramps (testnet today) |
| `codespar_issue` | Spend cards bound to the same mandate governance |
| `codespar_card` | Spend cards bound to the same mandate governance: BRL on Pomelo, USD on Rain, one contract |

**Sell side**

Expand Down
64 changes: 32 additions & 32 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions packages/autogen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codespar/autogen",
"version": "0.4.6",
"version": "0.4.7",
"description": "Microsoft AutoGen adapter for CodeSpar — convert session tools to AutoGen function tool format",
"type": "module",
"main": "./dist/index.js",
Expand Down Expand Up @@ -38,7 +38,7 @@
"directory": "packages/autogen"
},
"peerDependencies": {
"@codespar/sdk": "^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0"
"@codespar/sdk": "^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0"
},
"devDependencies": {
"@codespar/sdk": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/autogen/src/__tests__/autogen.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function fakeSession(tools: Tool[]): Session {
async charge() { return {} as any; },
async ship() { return {} as any; },
async ledger() { return {} as any; },
async issue() { return {} as any; },
async card() { return {} as any; },
async shop() { return {} as any; },
async paymentStatus() { return { status: 'pending' } as any; },
async paymentStatusStream() { return {} as any; },
Expand Down
4 changes: 2 additions & 2 deletions packages/camel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codespar/camel",
"version": "0.4.6",
"version": "0.4.7",
"description": "CAMEL-AI adapter for CodeSpar — convert session tools to CAMEL function format",
"type": "module",
"main": "./dist/index.js",
Expand Down Expand Up @@ -38,7 +38,7 @@
"directory": "packages/camel"
},
"peerDependencies": {
"@codespar/sdk": "^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0"
"@codespar/sdk": "^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0"
},
"devDependencies": {
"@codespar/sdk": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/camel/src/__tests__/camel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function fakeSession(tools: Tool[]): Session {
async charge() { return {} as any; },
async ship() { return {} as any; },
async ledger() { return {} as any; },
async issue() { return {} as any; },
async card() { return {} as any; },
async shop() { return {} as any; },
async paymentStatus() { return { status: 'pending' } as any; },
async paymentStatusStream() { return {} as any; },
Expand Down
6 changes: 6 additions & 0 deletions packages/claude/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @codespar/claude — CHANGELOG

## 0.4.9 — unreleased (coordinated codespar_card release)

### Changed

- The `@codespar/sdk` peer range accepts `^0.17.0`.

## 0.4.8 — 2026-10-29

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions packages/claude/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codespar/claude",
"version": "0.4.8",
"version": "0.4.9",
"description": "Claude Agent SDK adapter for CodeSpar \u2014 convert MCP tools to Claude tool format",
"type": "module",
"main": "./dist/index.js",
Expand Down Expand Up @@ -37,7 +37,7 @@
"directory": "packages/claude"
},
"peerDependencies": {
"@codespar/sdk": "^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0"
"@codespar/sdk": "^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0"
},
"devDependencies": {
"@codespar/sdk": "*",
Expand Down
27 changes: 27 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# @codespar/cli — changelog

## 0.23.0 — unreleased (coordinated codespar_card release)

### Breaking

- **`codespar card` replaces `codespar issue`, with no alias.** `codespar issue` is removed.

| Before | Now |
|---|---|
| `codespar issue -i '{"action":"card-virtual",...}'` | `codespar card issue --currency --mandate-id --consumer-id --idempotency-key [--provider] [--holder <json>]` |
| `codespar issue -i '{"action":"card-get","card_id":"..."}'` | `codespar card get <card-id>` |
| `codespar issue -i '{"action":"card-control","control":"freeze",...}'` | `codespar card freeze\|unfreeze\|cancel <card-id> [--reason]` |
| — | `codespar card list [--issuer] [--mandate-id] [--consumer-id]`, `codespar card readiness` |

### Added

- `codespar card issue|get|list|freeze|unfreeze|cancel|readiness`, through `codespar_card` (BRL on Pomelo, USD on Rain).
- `-i/--input` and `-f/--input-file` take JSON, and flags win over it. `--json` prints the result document.
- Output: id, issuer, program, currency, status (with the issuer's raw status) and the available actions.
- Exit codes:
- A refusal exits 1 (a definitive issuer failure is one), with an `api` error document carrying the `code`, `status` and the whole refusal as `body`.
- `pending_human`, `processing` and `uncertain` exit 0. They say to run the same command again with the SAME `--idempotency-key`, never a new key. `uncertain` says the card may exist.
- Vocabularies (actions, currency, provider, issuer, reason) come from the published `codespar_card` definition.
- `--holder-consumer-id` is required for a company's pomelo_brl card.
- A `card_control_uncertain` refusal says to read the card again with `codespar card get <id>`.
- `codespar integrations card-issuing` is derived from the served document.
- Depends on `@codespar/sdk ^0.17.0`.

## 0.22.7 — 2026-11-11

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ codespar init my-agent
| `charge` | Issue an inbound charge via `codespar_charge` |
| `ship` | Generate label / quote rates / track via `codespar_ship` |
| `ledger` | Post entries / read balances / create accounts via `codespar_ledger` |
| `issue` | Issue / freeze / read agent spend cards via `codespar_issue` |
| `card issue\|get\|list\|freeze\|unfreeze\|cancel\|readiness` | Spend cards via `codespar_card`: BRL on Pomelo, USD on Rain. `card issue` needs `--currency --mandate-id --consumer-id --idempotency-key` (`--holder-consumer-id` for a company's pomelo_brl card); `freeze`/`unfreeze`/`cancel` work on both programs, as each card's `available_actions` allows (cancel is permanent); `processing` / `uncertain` resolve by running it again with the SAME key. `card readiness` lists, per program, what is missing and who must act |
| `payment-status <id>` | Poll async settlement status (add `--stream`) |
| `verification-status <id>` | Poll async KYC status (add `--stream`) |
| `wizard [server]` | Connection wizard — required secrets, connect URL, next steps |
Expand Down
Loading
Loading