@codespar/cli 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,13 +23,24 @@ codespar execute codespar_pay \
23
23
  --server asaas \
24
24
  --input '{"method":"pix","amount":15000,"currency":"BRL"}'
25
25
 
26
- # Give an agent a wallet with a mandate, then let it pay a 402-protected API
27
- # (x402 micropayment in USDC on Base, gated by the per-tx cap)
26
+ # Give an agent a unified multi-currency wallet under ONE signed mandate:
27
+ # a Pix (BRL) slot and a USDC slot, each with its own per-currency cap. No FX.
28
28
  codespar mandate create --consumer shopper --agent buyer \
29
- --payee https://x402.codespar.dev/api/market-data --cap 1000 --per-tx-cap 100
29
+ --payee https://x402.codespar.dev/api/market-data,11144477735 \
30
+ --slot BRL:pix:50000:1500 \
31
+ --slot USDC:usdc:100:100
32
+
33
+ # See the wallet, rolled up per currency
34
+ codespar wallet shopper
35
+
36
+ # The same mandate pays a 402-protected API in USDC (gated by the USDC per-tx cap)
30
37
  codespar spend --mandate <id> --amount 1 --agent buyer \
31
38
  --payee https://x402.codespar.dev/api/market-data
32
39
 
40
+ # Move value between slots (per-currency, no FX — a cross-currency move is a real
41
+ # ramp trade at the real rate). Omit --execute to just plan it.
42
+ codespar transfer shopper --from BRL --to USDC --amount 15000
43
+
33
44
  # Manage sessions and logs
34
45
  codespar sessions list
35
46
  codespar logs tail --server stripe
@@ -51,7 +62,9 @@ codespar init my-agent
51
62
  | `tools show <name>` | Show a tool's full input/output schema |
52
63
  | `execute <tool>` | Run a single tool call in a throwaway session |
53
64
  | `discover <query>` | Search the catalog for tools matching a use case |
54
- | `mandate create` | Create a consumer mandate — the agent's allowance / spending limit |
65
+ | `mandate create` | Create a consumer mandate — the agent's allowance. `--slot CURRENCY:METHOD:CAP:PER_TX` (repeatable, e.g. `BRL:pix:50000:1500`) for a unified multi-currency wallet; per-currency caps, no FX |
66
+ | `wallet <consumer>` | Show the consumer's unified wallet, rolled up per currency |
67
+ | `transfer <consumer>` | Move value between wallet slots (`--from --to --amount [--execute]`); a cross-currency move is a real ramp trade at the real rate, no FX |
55
68
  | `spend` | Execute an agentic spend against a mandate (x402 / USDC / Pix, routed by payee) |
56
69
  | `charge` | Issue an inbound charge via `codespar_charge` |
57
70
  | `ship` | Generate label / quote rates / track via `codespar_ship` |
package/dist/banner.js CHANGED
@@ -30,7 +30,7 @@ export function printBanner(version) {
30
30
  out.write("\n");
31
31
  for (const line of LOGO)
32
32
  out.write(c.blue(line) + "\n");
33
- out.write(`\n ${c.bold("Commerce infrastructure for AI agents in Latin America")}\n`);
33
+ out.write(`\n ${c.bold("The agentic OS for money movement in Latin America")}\n`);
34
34
  out.write(` ${c.gray(`v${version} · codespar.dev/docs/cli · MIT`)}\n\n`);
35
35
  }
36
36
  //# sourceMappingURL=banner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner.js","sourceRoot":"","sources":["../src/banner.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAEhC,MAAM,IAAI,GAAG;IACX,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;IACpE,oEAAoE;CACrE,CAAC;AAEF,SAAS,YAAY;IACnB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IAChD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACxC,OAAO,IAAI,CAAC;AACd,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,IAAI,CAAC,YAAY,EAAE;QAAE,OAAO;IAE5B,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IAC3B,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,IAAI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O,oCAAoC,CAAC,MAAM,CACnE,CAAC;AACJ,CAAC"}
package/dist/version.js CHANGED
@@ -4,5 +4,5 @@
4
4
  * can never drift. Keep in sync with package.json on release (prepublishOnly
5
5
  * could assert equality if drift ever recurs).
6
6
  */
7
- export const VERSION = "0.5.3";
7
+ export const VERSION = "0.5.5";
8
8
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codespar/cli",
3
- "version": "0.5.3",
4
- "description": "CodeSpar CLI — authenticate, browse servers, execute tools, manage sessions, stream logs, and scaffold projects from your terminal.",
3
+ "version": "0.5.5",
4
+ "description": "CodeSpar CLI. The agentic OS for money movement in Latin America, from your terminal: authenticate, browse servers, mint mandates, execute tools, manage sessions, stream logs.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "codespar": "./dist/index.js"