@wzrd_sol/eliza-plugin 0.10.0 → 0.10.1

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
@@ -154,6 +154,16 @@ const agent = new AgentRuntime({ plugins: [wzrdPlugin] });
154
154
 
155
155
  Without a paying fetch, `WZRD_INTEL_TRUST` returns the HTTP 402 requirements.
156
156
 
157
+ ## 0.10.1 changes
158
+
159
+ - `verifyReceipt` and `getIntelClient().verify` report `freshnessUnauthenticated: false` only when the
160
+ verify passes. `twzrd-receipt-verifier` 1.4.4 reports `freshness_unauthenticated: false` for any V7
161
+ domain, even when it rejects the receipt, and 0.10.0 passed that through: a rejected V7 receipt read
162
+ `valid: false` with `freshnessUnauthenticated: false`. `valid` and `freshness` (`unauthenticated`) were
163
+ already correct there; only that flag was wrong.
164
+ - Dependency ranges and the `twzrd-x402-gate` `0.14.0` pin are unchanged. `X-Twzrd-Caller` reads
165
+ `eliza-plugin/0.10.1@0.14.0`.
166
+
157
167
  ## 0.10.0 changes
158
168
 
159
169
  - Depends on `@wzrd_sol/sdk` `^0.5.1` (was `^0.4.8`) and on `twzrd-x402-gate` exactly `0.14.0` (was `0.13.1`),
@@ -110,8 +110,11 @@ export function verifyReceipt(receipt, opts = {}) {
110
110
  const raw = verifier.verify(receipt, trustedPubkey, {
111
111
  maxAgeSeconds: opts.maxAgeSeconds,
112
112
  });
113
- // Fail closed: a verifier early-return (kind/version mismatch) omits the flag.
114
- const freshnessUnauthenticated = raw.freshness_unauthenticated !== false;
113
+ // Fail closed: freshness is authenticated only on a passing verify. The
114
+ // verifier's flag describes the domain's leaf layout: 1.4.0 omitted it on an
115
+ // early return (kind/version mismatch), but 1.4.4 classifies the domain first
116
+ // and reports false for any V7 domain, even when it rejects the receipt.
117
+ const freshnessUnauthenticated = !(raw.valid === true && raw.freshness_unauthenticated === false);
115
118
  const result = {
116
119
  valid: !!raw.valid,
117
120
  leafValid: !!raw.leaf_valid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wzrd_sol/eliza-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "TWZRD Agent Intel for ElizaOS. Free preflight ReadinessCard + merchant_card (wash_flagged refuse default), paid GET /v1/intel/trust (~0.05 USDC) V7 receipt, offline verify via twzrd-receipt-verifier. Paid lookups need WZRD_INTEL_ALLOW_PAID or confirm_spend; merchant_card outages fail closed.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",