warpmetal 0.7.1 → 0.7.2

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
@@ -34,7 +34,7 @@ published wallet CLI with the exact version WarpMetal reports:
34
34
  npm install --global warpmetal
35
35
  warpmetal --help
36
36
 
37
- npm install --global @x402api/agent-wallet-cli@0.2.3
37
+ npm install --global @x402api/agent-wallet-cli@0.2.4
38
38
  x402api help --json
39
39
  ```
40
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warpmetal",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Agent-safe CLI and skill for purchasing, renewing, and managing WarpMetal VPS servers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -62,7 +62,7 @@ private WarpMetal state directory. An explicit output path must not already
62
62
  contain different content. `challengeHandle` is intentionally absent from the
63
63
  wallet envelope: it is neither a buyer payment identifier nor signing input.
64
64
 
65
- The current integration targets `@x402api/agent-wallet-cli@0.2.3`. A compatible
65
+ The current integration targets `@x402api/agent-wallet-cli@0.2.4`. A compatible
66
66
  live term is marked `agentWalletSupported: true` and must use the sponsored
67
67
  Base USDC or Solana USDC/USDT launch profile with buyer native fees disabled.
68
68
  For the current declaration, x402api pays actual gas from its platform treasury
@@ -16,10 +16,16 @@ The separate x402api Agent Wallet owns encrypted network keys, balance checks,
16
16
  payment authorization, and durable payment attempts. Never merge their state
17
17
  files or pass a WarpMetal credential to `x402api`.
18
18
 
19
+ The CLI includes the matching `@x402api/agent-wallet-core` SDK. That SDK is the
20
+ authoritative buyer-side parser and signer contract. WarpMetal retains its own
21
+ merchant-side validation because the backend is Python and additionally binds
22
+ the challenge to WarpMetal's exact resource, amount, recipient, and receipt
23
+ contract.
24
+
19
25
  WarpMetal runs on Node.js 20 or 22. The x402api Agent Wallet currently requires
20
26
  Node.js 22. Use the exact published package reported by
21
27
  `paymentWorkflow.signerPackage.spec`; the current contract is
22
- `@x402api/agent-wallet-cli@0.2.3`. Do not add it as a WarpMetal dependency,
28
+ `@x402api/agent-wallet-cli@0.2.4`. Do not add it as a WarpMetal dependency,
23
29
  install executable wallet code from an unpinned repository URL, or substitute
24
30
  a similarly named package.
25
31
 
@@ -130,7 +136,7 @@ reservation or any buyer-funded, unsupported, or unbound alternative.
130
136
 
131
137
  x402api pays actual gas from its platform treasury. The merchant tenant's
132
138
  active sponsorship allowance controls admission, but actual gas is not a
133
- tenant debit. During the coordinated rollout, accept only the exact 0.2.3
139
+ tenant debit. During the coordinated rollout, accept only the exact 0.2.4
134
140
  platform-treasury declaration or the matched legacy tenant-credit declaration;
135
141
  never accept a mixed billing and final-charge policy.
136
142
 
package/src/payment.js CHANGED
@@ -15,7 +15,7 @@ const MAX_ARTIFACT_BYTES = 1024 * 1024;
15
15
  const MAX_SIGNATURE_BYTES = 512 * 1024;
16
16
 
17
17
  export const AGENT_WALLET_PACKAGE = "@x402api/agent-wallet-cli";
18
- export const AGENT_WALLET_VERSION = "0.2.3";
18
+ export const AGENT_WALLET_VERSION = "0.2.4";
19
19
  const AGENT_WALLET_SPEC = `${AGENT_WALLET_PACKAGE}@${AGENT_WALLET_VERSION}`;
20
20
  const GAS_SPONSORSHIP_EXTENSION = "com.x402api.gas-sponsorship";
21
21
  const BASE_NETWORK = "eip155:8453";
@@ -183,6 +183,9 @@ function paymentResource(value, label) {
183
183
  function validateGasSponsorship(declaration) {
184
184
  const info = declaration.info;
185
185
  const schema = declaration.schema;
186
+ // Mirror @x402api/agent-wallet-core: platform treasury is canonical, the
187
+ // matched tenant-credit pair remains rollout-compatible, and mixed pairs
188
+ // must fail closed.
186
189
  const platformTreasuryPolicy =
187
190
  isObject(info) &&
188
191
  info.billingParty === "platform_treasury" &&