@wzrd_sol/eliza-plugin 0.10.1 → 0.10.3

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
@@ -128,7 +128,7 @@ const agent = new AgentRuntime({ plugins: [wzrdPlugin] });
128
128
  `payWrap` receives the **guarded** fetch. Opt out with `TWZRD_AUTO_GATE=0` or `{ disabled: true }`.
129
129
  Lookups carry `X-TWZRD-Integration: eliza-plugin/<version>` unless you pass your own `attribution`.
130
130
 
131
- On `twzrd-x402-gate` 0.14.0 the guard refuses each of these before `payWrap` signs (the 0.13 defaults, unchanged in 0.14.0):
131
+ On `twzrd-x402-gate` 0.26.0 the guard refuses each of these before `payWrap` signs (the 0.13 defaults, unchanged since):
132
132
 
133
133
  | Refused by default | Reason | Opt out (restores the 0.12.5 outcome) |
134
134
  |---|---|---|
@@ -139,6 +139,11 @@ On `twzrd-x402-gate` 0.14.0 the guard refuses each of these before `payWrap` sig
139
139
  An unreachable card is still an outage, decided by `failOpen`. The env opt-outs also accept
140
140
  `false`, `no` and `off`; any other value leaves the refusal on.
141
141
 
142
+ The guard also refuses a 402 it cannot read the way a pay client does: a `payTo`, `asset` or
143
+ `network` that is not a string, or an amount that is an array or an object (`payto_malformed`,
144
+ `asset_malformed`, `network_malformed`, `amount_malformed`). These are refused before intel is
145
+ asked, and `failOpen` does not open them.
146
+
142
147
  ### Paid trust receipt
143
148
 
144
149
  ```typescript
@@ -154,6 +159,52 @@ const agent = new AgentRuntime({ plugins: [wzrdPlugin] });
154
159
 
155
160
  Without a paying fetch, `WZRD_INTEL_TRUST` returns the HTTP 402 requirements.
156
161
 
162
+ ## 0.10.3 changes
163
+
164
+ Security release: the `twzrd-x402-gate` pin moves from `0.20.2` to `0.26.0`. Gate 0.20.2 is inside
165
+ GHSA-c24w-mgfj-c8p8 (critical), GHSA-c6g3-6gf7-qc37 and GHSA-c7fj-pv9m-pjq4 (high), and
166
+ GHSA-3v2v-wcw4-25q9 (medium). npm marks gate 0.20.2 deprecated, so installing plugin 0.10.2 prints
167
+ that warning.
168
+
169
+ - The pin is exact, so this plugin installs its own copy of the gate. Upgrading `twzrd-x402-gate`
170
+ in your app does not change the copy the plugin calls: upgrade the plugin.
171
+ - The move crosses gate 0.21.0 to 0.26.0. On `installTwzrdAutoGate`, each of these could be approved
172
+ on gate 0.20.2 and is now refused before `payWrap` signs:
173
+ - a `PAYMENT-REQUIRED` header that is not canonical base64 (the guard throws
174
+ `payment blocked: undecodable PAYMENT-REQUIRED header`);
175
+ - a `network` that is a non-canonical `eip155:` id such as `eip155:08453` (`network_malformed`);
176
+ - an `auth-capture` offer (`auth_capture_refused`) and a Solana `upto` offer (`svm_upto_refused`);
177
+ - a Circle Gateway batching offer (`extra.name: "GatewayWalletBatched"`) whose `verifyingContract`
178
+ is not a Gateway wallet contract, whose `version` is not `"1"` or `"2"`, or whose
179
+ `maxTimeoutSeconds` is above 8 days or not a non-negative integer
180
+ (`gateway_verifying_contract_refused`, `gateway_version_refused`, `gateway_timeout_refused`);
181
+ - on a chain TWZRD does not score (Arc, Base Sepolia, Polygon and others), in the default
182
+ `observe` mode: a named asset that is not that network's USDC (`twzrd_non_usdc_asset`), an
183
+ unknown price (`twzrd_unscored_price_unknown`), a price above 0.10 USDC per call
184
+ (`twzrd_over_unscored_cap_<price>_gt_<cap>`; `TWZRD_UNSCORED_MAX_USDC` moves the ceiling), and a
185
+ merchant card that does not answer (`twzrd_card_unreachable_fail_closed`, unless `failOpen`).
186
+ - The refusal defaults in the table above are unchanged. The gate's CHANGELOG has the full list of
187
+ changes from 0.21.0 to 0.26.0.
188
+ - No other source change. `X-Twzrd-Caller` reads `eliza-plugin/0.10.3@0.26.0`.
189
+
190
+ ## 0.10.2 changes
191
+
192
+ Security release: the `twzrd-x402-gate` pin moves from `0.14.0` to `0.20.2`.
193
+
194
+ - On gate 0.14.0, `installTwzrdAutoGate` read a 402 field of the wrong type as absent, or coerced
195
+ it, while a pay client uses the raw value. A `payTo` sent as a one-element array was scored as
196
+ the wallet inside it, and an `asset` that was not a string was read as no asset named. The guard
197
+ could approve one payment while the client signed another. Gate 0.20.2 refuses these before
198
+ `payWrap` signs.
199
+ - The pin is exact, so this plugin installs its own copy of the gate. Upgrading `twzrd-x402-gate`
200
+ in your app does not change the copy the plugin calls: upgrade the plugin.
201
+ - The move crosses gate 0.15.0 to 0.20.2. On `installTwzrdAutoGate` that also means: a Solana
202
+ `exact` offer that carries `extra.splits` is refused (`svm_splits_refused`), a `batch-settlement`
203
+ offer is refused (`batch_settlement_refused`), and a `.kill` or `.pause` file in the gate's state
204
+ directory (`stateDir`, `TWZRD_STATE_DIR`) refuses the payment. A well-formed offer is decided as
205
+ before, and the refusal defaults in the table above are unchanged.
206
+ - No other source change. `X-Twzrd-Caller` reads `eliza-plugin/0.10.2@0.20.2`.
207
+
157
208
  ## 0.10.1 changes
158
209
 
159
210
  - `verifyReceipt` and `getIntelClient().verify` report `freshnessUnauthenticated: false` only when the
@@ -3,7 +3,7 @@ import { type InstallAutoGateOptions, type PayWrap } from 'twzrd-x402-gate';
3
3
  /** This package's version, stamped into X-TWZRD-Integration on gate lookups. */
4
4
  export declare const PLUGIN_VERSION: string;
5
5
  /** Exact twzrd-x402-gate pin. A caret would float onto a later line. */
6
- export declare const GATE_PIN = "0.14.0";
6
+ export declare const GATE_PIN = "0.26.0";
7
7
  export declare function integrationTag(): string;
8
8
  /** Seat stamp: X-Twzrd-Caller eliza-plugin/<version>@<GATE_PIN>. */
9
9
  export declare function callerTag(): string;
@@ -6,7 +6,7 @@ const require = createRequire(import.meta.url);
6
6
  /** This package's version, stamped into X-TWZRD-Integration on gate lookups. */
7
7
  export const PLUGIN_VERSION = require('../package.json').version;
8
8
  /** Exact twzrd-x402-gate pin. A caret would float onto a later line. */
9
- export const GATE_PIN = '0.14.0';
9
+ export const GATE_PIN = '0.26.0';
10
10
  export function integrationTag() {
11
11
  return `eliza-plugin/${PLUGIN_VERSION}`;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wzrd_sol/eliza-plugin",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
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",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@wzrd_sol/sdk": "^0.5.1",
22
22
  "twzrd-receipt-verifier": "^1.4.0",
23
- "twzrd-x402-gate": "0.14.0"
23
+ "twzrd-x402-gate": "0.26.0"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@elizaos/core": "^1.0.0"