@wzrd_sol/eliza-plugin 0.10.2 → 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 +29 -1
- package/dist/paying-fetch.d.ts +1 -1
- package/dist/paying-fetch.js +1 -1
- package/package.json +2 -2
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.
|
|
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
|
|---|---|---|
|
|
@@ -159,6 +159,34 @@ const agent = new AgentRuntime({ plugins: [wzrdPlugin] });
|
|
|
159
159
|
|
|
160
160
|
Without a paying fetch, `WZRD_INTEL_TRUST` returns the HTTP 402 requirements.
|
|
161
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
|
+
|
|
162
190
|
## 0.10.2 changes
|
|
163
191
|
|
|
164
192
|
Security release: the `twzrd-x402-gate` pin moves from `0.14.0` to `0.20.2`.
|
package/dist/paying-fetch.d.ts
CHANGED
|
@@ -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.
|
|
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;
|
package/dist/paying-fetch.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
23
|
+
"twzrd-x402-gate": "0.26.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@elizaos/core": "^1.0.0"
|