@fidacy/openclaw-plugin 0.4.1 → 0.4.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/dist/index.js +6 -4
- package/openclaw.plugin.json +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -4714,6 +4714,7 @@ function ensureState() {
|
|
|
4714
4714
|
}
|
|
4715
4715
|
return { config, firstRun: true };
|
|
4716
4716
|
}
|
|
4717
|
+
var DEMO_PAYEE = "fidacy:demo";
|
|
4717
4718
|
function resolveMandateRules(cfg) {
|
|
4718
4719
|
const m = cfg?.mandate ?? {};
|
|
4719
4720
|
const envList = (v) => v === void 0 ? void 0 : v.split(",").map((s) => s.trim()).filter(Boolean);
|
|
@@ -4729,8 +4730,9 @@ function resolveMandateRules(cfg) {
|
|
|
4729
4730
|
return n;
|
|
4730
4731
|
};
|
|
4731
4732
|
const fileNum = (v) => typeof v === "number" && Number.isFinite(v) && v > 0 ? v : void 0;
|
|
4733
|
+
const payees = envList(process.env.FIDACY_ALLOW_PAYEES) ?? m.payees ?? [];
|
|
4732
4734
|
return {
|
|
4733
|
-
payees:
|
|
4735
|
+
payees: payees.includes(DEMO_PAYEE) ? payees : [...payees, DEMO_PAYEE],
|
|
4734
4736
|
categories: envList(process.env.FIDACY_ALLOW_CATEGORIES) ?? m.categories ?? ["*"],
|
|
4735
4737
|
currency: process.env.FIDACY_CURRENCY ?? m.currency ?? "USD",
|
|
4736
4738
|
perTxMax: envNum("FIDACY_PER_TX_MAX", process.env.FIDACY_PER_TX_MAX) ?? fileNum(m.perTxMax) ?? 2500,
|
|
@@ -4739,7 +4741,7 @@ function resolveMandateRules(cfg) {
|
|
|
4739
4741
|
}
|
|
4740
4742
|
|
|
4741
4743
|
// ../mcp/src/telemetry.ts
|
|
4742
|
-
var CLIENT_VERSION = true ? "0.4.
|
|
4744
|
+
var CLIENT_VERSION = true ? "0.4.3" : "dev";
|
|
4743
4745
|
function bandOf(amount) {
|
|
4744
4746
|
if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
|
|
4745
4747
|
if (amount < 10) return "lt10";
|
|
@@ -4927,7 +4929,7 @@ function requestUpgrade() {
|
|
|
4927
4929
|
}
|
|
4928
4930
|
|
|
4929
4931
|
// ../mcp/src/provision.ts
|
|
4930
|
-
var CLIENT_VERSION2 = true ? "0.4.
|
|
4932
|
+
var CLIENT_VERSION2 = true ? "0.4.3" : "dev";
|
|
4931
4933
|
function provisionEnabled() {
|
|
4932
4934
|
const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
|
|
4933
4935
|
return !(v === "1" || v === "true" || v === "yes");
|
|
@@ -5069,7 +5071,7 @@ function trialCountdownLine(keyOverride) {
|
|
|
5069
5071
|
}
|
|
5070
5072
|
|
|
5071
5073
|
// ../mcp/src/register.ts
|
|
5072
|
-
var CLIENT_VERSION3 = true ? "0.4.
|
|
5074
|
+
var CLIENT_VERSION3 = true ? "0.4.3" : "dev";
|
|
5073
5075
|
function endpoint3() {
|
|
5074
5076
|
const base = (process.env.FIDACY_ENGINE_URL ?? "https://api.fidacy.com").replace(/\/$/, "");
|
|
5075
5077
|
return `${base}/v1/register`;
|
package/openclaw.plugin.json
CHANGED
|
@@ -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.4.
|
|
6
|
+
"version": "0.4.3",
|
|
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.4.
|
|
3
|
+
"version": "0.4.3",
|
|
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)",
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
"npmSpec": "@fidacy/openclaw-plugin"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "node scripts/bundle.mjs",
|
|
52
|
-
"typecheck": "tsc --noEmit",
|
|
53
|
-
"test": "npm run build && node --test test/*.test.mjs"
|
|
54
|
-
},
|
|
55
50
|
"engines": {
|
|
56
51
|
"node": ">=20"
|
|
57
52
|
},
|
|
58
53
|
"devDependencies": {
|
|
59
|
-
"@fidacy/firewall": "workspace:*",
|
|
60
|
-
"@fidacy/mcp": "workspace:*",
|
|
61
54
|
"@types/node": "^22.10.0",
|
|
62
55
|
"esbuild": "^0.24.0",
|
|
63
56
|
"openclaw": "2026.6.11",
|
|
64
57
|
"typebox": "1.1.39",
|
|
65
|
-
"typescript": "^5.6.3"
|
|
58
|
+
"typescript": "^5.6.3",
|
|
59
|
+
"@fidacy/firewall": "0.1.1",
|
|
60
|
+
"@fidacy/mcp": "0.6.4"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"build": "node scripts/bundle.mjs",
|
|
64
|
+
"typecheck": "tsc --noEmit",
|
|
65
|
+
"test": "npm run build && node --test test/*.test.mjs"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|