@fidacy/openclaw-plugin 0.5.0 → 0.5.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/dist/index.js CHANGED
@@ -5066,7 +5066,7 @@ function resolveMandateRules(cfg) {
5066
5066
  }
5067
5067
 
5068
5068
  // ../mcp/src/telemetry.ts
5069
- var CLIENT_VERSION = true ? "0.5.0" : "dev";
5069
+ var CLIENT_VERSION = true ? "0.5.1" : "dev";
5070
5070
  function bandOf(amount) {
5071
5071
  if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
5072
5072
  if (amount < 10) return "lt10";
@@ -5254,7 +5254,7 @@ function requestUpgrade() {
5254
5254
  }
5255
5255
 
5256
5256
  // ../mcp/src/provision.ts
5257
- var CLIENT_VERSION2 = true ? "0.5.0" : "dev";
5257
+ var CLIENT_VERSION2 = true ? "0.5.1" : "dev";
5258
5258
  function provisionEnabled() {
5259
5259
  const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
5260
5260
  return !(v === "1" || v === "true" || v === "yes");
@@ -5396,7 +5396,7 @@ function trialCountdownLine(keyOverride) {
5396
5396
  }
5397
5397
 
5398
5398
  // ../mcp/src/register.ts
5399
- var CLIENT_VERSION3 = true ? "0.5.0" : "dev";
5399
+ var CLIENT_VERSION3 = true ? "0.5.1" : "dev";
5400
5400
  function endpoint3() {
5401
5401
  const base = (process.env.FIDACY_ENGINE_URL ?? "https://api.fidacy.com").replace(/\/$/, "");
5402
5402
  return `${base}/v1/register`;
@@ -6361,15 +6361,27 @@ entry.register = (api) => {
6361
6361
  Date.now,
6362
6362
  anchor
6363
6363
  );
6364
- void (async () => {
6365
- if (!creds()) return;
6366
- for (const p of takePending()) {
6367
- if (!await anchor(p.head, p.sessionId, p.byCategory ?? {})) {
6368
- queuePending(p.head, p.sessionId, p.at, p.total ?? 0, p.byCategory ?? {});
6369
- }
6370
- }
6371
- })().catch(() => {
6372
- });
6364
+ let drained = false;
6365
+ if (typeof api?.on !== "function") return;
6366
+ api.on(
6367
+ "before_tool_call",
6368
+ () => {
6369
+ if (drained) return;
6370
+ drained = true;
6371
+ void (async () => {
6372
+ if (!creds()) return;
6373
+ for (const p of takePending()) {
6374
+ if (!await anchor(p.head, p.sessionId, p.byCategory ?? {})) {
6375
+ queuePending(p.head, p.sessionId, p.at, p.total ?? 0, p.byCategory ?? {});
6376
+ }
6377
+ }
6378
+ })().catch(() => {
6379
+ });
6380
+ },
6381
+ // Below the observer, which is itself the lowest: catch-up must never sit in
6382
+ // front of anything that decides, and must never be what a tool call waits on.
6383
+ { priority: 0 }
6384
+ );
6373
6385
  };
6374
6386
  var index_default = entry;
6375
6387
  export {
@@ -3,7 +3,7 @@
3
3
  "name": "Fidacy AI Agent Firewall",
4
4
  "description": "A signed, independently-verifiable verdict on every money-moving agent action. Blocks wrong/lookalike payee, over-cap, and duplicate-invoice fraud before money moves. Non-custodial, local-first, deny-by-default.",
5
5
  "icon": "https://fidacy.com/logo.png",
6
- "version": "0.5.0",
6
+ "version": "0.5.1",
7
7
  "contracts": {
8
8
  "tools": [
9
9
  "request_payment",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fidacy/openclaw-plugin",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Fidacy payment firewall as a native OpenClaw plugin: signed, verifiable verdicts on every money-moving agent action, in-process (no MCP subprocess).",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Fidacy (ZeepCode Group Technology LLC) <hello@fidacy.com> (https://fidacy.com)",
@@ -56,8 +56,8 @@
56
56
  "openclaw": "2026.6.11",
57
57
  "typebox": "1.1.39",
58
58
  "typescript": "^5.6.3",
59
- "@fidacy/mcp": "0.6.4",
60
- "@fidacy/firewall": "0.1.1"
59
+ "@fidacy/firewall": "0.1.1",
60
+ "@fidacy/mcp": "0.6.4"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "node scripts/bundle.mjs",