@wasit-dev/cli 0.3.0 → 0.4.0

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
@@ -2,7 +2,9 @@
2
2
 
3
3
  Protocol-compliance testing for **x402** and **MPP** on Stellar, from your terminal.
4
4
 
5
- `wasit` runs the real payment flow against a live service and verifies the settlement independently — via Stellar RPC and the token contract's own on-chain transfer event, not by trusting the response the service returns. It is not a schema validator: a response can have every field in the right place and still take money without settling it.
5
+ `wasit` runs the real payment flow against a live service, not a mock of it, and it is not a schema validator: a response can have every field in the right place and still take money without settling it.
6
+
7
+ For MPP charge mode it verifies the settlement independently — via Stellar RPC and the token contract's own on-chain transfer event, rather than the response the service returns. The x402 checks exercise the same real flow but judge the target on its HTTP behaviour: `X402-06` passes on a 2xx. Giving it the same on-chain verification is tracked for 0.4.0.
6
8
 
7
9
  **Testnet only.** Several checks settle real transactions — do not point this at pubnet or use production keys.
8
10
 
@@ -118,7 +120,7 @@ Testnet-only helpers for the keys the subcommands above read from `.env`. There
118
120
 
119
121
  ### The interactive dashboard
120
122
 
121
- Running `wasit` with no arguments in a terminal opens a menu: the same three check runners, a catalogue browser, and a wallet screen, driven by arrow keys. Piped or in CI it prints help instead, so nothing that scripts Wasit today changes behaviour. See [`docs/guides/cli.md`](https://github.com/wasit-dev/wasit/blob/main/docs/guides/cli.md).
123
+ Running `wasit` with no arguments in a terminal opens a menu: the same three check runners, a catalogue browser, and a wallet screen, driven by arrow keys. A run shows a live elapsed timer and per-check progress, and `s` saves the finished run to `wasit-<protocol>-<timestamp>.json` — the same shape `--json` prints. Piped or in CI it prints help instead, so nothing that scripts Wasit today changes behaviour. See [`docs/guides/cli.md`](https://github.com/wasit-dev/wasit/blob/main/docs/guides/cli.md).
122
124
 
123
125
  ## Reading output
124
126
 
@@ -50,5 +50,5 @@ export function Home({ onSelectAction, onBrowseCatalogue, onOpenWallet }) {
50
50
  }
51
51
  };
52
52
  const environment = getEnvironmentStatus();
53
- return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { flexDirection: "column", marginBottom: 1, children: WORDMARK_LINES.map((line, index) => (_jsx(Text, { color: THEME.accent, children: line }, index))) }), _jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: THEME.accent, paddingX: 2, paddingY: 1, children: [_jsx(Text, { bold: true, children: "Welcome to Wasit" }), _jsx(Text, { dimColor: true, children: "x402 / MPP conformance tester \u00B7 Stellar Testnet" }), _jsxs(Box, { marginTop: 1, flexDirection: "row", gap: 4, children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, color: THEME.accent, children: "Tips" }), _jsx(Text, { dimColor: true, children: "\u2191\u2193 + Enter to pick an action" }), _jsx(Text, { dimColor: true, children: "Esc to go back \u00B7 Ctrl+C to quit anywhere" }), _jsx(Text, { dimColor: true, children: "docs/CHECKS.md has every check's pass criteria" })] }), _jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, color: THEME.accent, children: "Environment" }), environment.map((status) => (_jsxs(Text, { color: status.ready ? THEME.success : THEME.muted, children: [status.ready ? "✓" : "·", " ", status.label] }, status.label)))] })] }), _jsx(Box, { marginTop: 1, children: _jsx(SelectInput, { items: ITEMS, onSelect: handleSelect }) }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { dimColor: true, children: ["v", CLI_VERSION, " \u00B7 q to quit"] }) })] })] }));
53
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { flexDirection: "column", marginBottom: 1, children: WORDMARK_LINES.map((line, index) => (_jsx(Text, { color: THEME.accent, children: line }, index))) }), _jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: THEME.accent, paddingX: 2, paddingY: 1, children: [_jsx(Text, { bold: true, children: "Welcome to Wasit" }), _jsx(Text, { dimColor: true, children: "x402 / MPP compliance tester \u00B7 Stellar Testnet" }), _jsxs(Box, { marginTop: 1, flexDirection: "row", gap: 4, children: [_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, color: THEME.accent, children: "Tips" }), _jsx(Text, { dimColor: true, children: "\u2191\u2193 + Enter to pick an action" }), _jsx(Text, { dimColor: true, children: "Esc to go back \u00B7 Ctrl+C to quit anywhere" }), _jsx(Text, { dimColor: true, children: "docs/CHECKS.md has every check's pass criteria" })] }), _jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, color: THEME.accent, children: "Environment" }), environment.map((status) => (_jsxs(Text, { color: status.ready ? THEME.success : THEME.muted, children: [status.ready ? "✓" : "·", " ", status.label] }, status.label)))] })] }), _jsx(Box, { marginTop: 1, children: _jsx(SelectInput, { items: ITEMS, onSelect: handleSelect }) }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { dimColor: true, children: ["v", CLI_VERSION, " \u00B7 q to quit"] }) })] })] }));
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wasit-dev/cli",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "CLI for x402/MPP protocol-conformance testing on Stellar \u2014 verifies a service's payment flow settles on-chain per spec.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "typecheck": "tsc -p test/tsconfig.json"
42
42
  },
43
43
  "dependencies": {
44
- "@wasit-dev/core": "^0.3.0",
44
+ "@wasit-dev/core": "^0.4.0",
45
45
  "cfonts": "^3.3.1",
46
46
  "commander": "^15.0.0",
47
47
  "dotenv": "^17.4.2",