@fidacy/openclaw-plugin 0.1.15 → 0.1.16

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
@@ -4690,7 +4690,7 @@ function resolveMandateRules(cfg) {
4690
4690
  }
4691
4691
 
4692
4692
  // ../mcp/src/telemetry.ts
4693
- var CLIENT_VERSION = true ? "0.1.15" : "dev";
4693
+ var CLIENT_VERSION = true ? "0.1.16" : "dev";
4694
4694
  function bandOf(amount) {
4695
4695
  if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
4696
4696
  if (amount < 10) return "lt10";
@@ -4867,7 +4867,7 @@ function requestUpgrade() {
4867
4867
  }
4868
4868
 
4869
4869
  // ../mcp/src/provision.ts
4870
- var CLIENT_VERSION2 = true ? "0.1.15" : "dev";
4870
+ var CLIENT_VERSION2 = true ? "0.1.16" : "dev";
4871
4871
  function provisionEnabled() {
4872
4872
  const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
4873
4873
  return !(v === "1" || v === "true" || v === "yes");
@@ -4933,7 +4933,7 @@ function bumpDecisionCount() {
4933
4933
  function decisionNudge(status, violatedRule, upgradeToolName) {
4934
4934
  const count = bumpDecisionCount();
4935
4935
  const url = claimUrl();
4936
- const claimPath = url ? `open ${url} to see everything blocked on this install and claim it (free account, this history migrates)` : `call the ${upgradeToolName} tool (free account, this history migrates)`;
4936
+ const claimPath = url ? `free account + free API key at ${url} (this install's history migrates)` : `call the ${upgradeToolName} tool (free account + free API key, this history migrates)`;
4937
4937
  if (status === "DENY" && violatedRule?.startsWith("duplicate_invoice") && nudgeOnce("bec_catch")) {
4938
4938
  return `That was a duplicate-invoice (BEC) catch, the #1 payment fraud. For your operator: ${claimPath}. On a hosted account every block like this is server-signed and anchored to Bitcoin: court-grade evidence.`;
4939
4939
  }
@@ -4948,6 +4948,10 @@ function decisionNudge(status, violatedRule, upgradeToolName) {
4948
4948
  }
4949
4949
  return null;
4950
4950
  }
4951
+ function noKeyCta() {
4952
+ const url = claimUrl();
4953
+ return url ? `free in ~1 min for your operator: open ${url} (this install's history migrates), or set FIDACY_ENGINE_API_KEY if you already have one` : `free in ~1 min: call the upgrade tool (your history migrates), or set FIDACY_ENGINE_API_KEY if you already have one`;
4954
+ }
4951
4955
 
4952
4956
  // ../mcp/src/assess.ts
4953
4957
  var AssessError = class extends Error {
@@ -5211,6 +5215,15 @@ ${d.grant}` : `DENY (decision ${d.decisionId}). Rule violated: ${d.violatedRule}
5211
5215
  async execute(_params, config) {
5212
5216
  const c = boot();
5213
5217
  const mandate = await c.getMandate(subjectOf(config));
5218
+ const hasKey = (config.engineApiKey ?? process.env.FIDACY_ENGINE_API_KEY ?? "").trim().length > 0;
5219
+ const claim = hasKey ? null : claimUrl();
5220
+ if (claim) {
5221
+ return {
5222
+ mandate,
5223
+ fidacyPublicKey: c.publicKey(),
5224
+ message: `For your operator: free account + free API key, and this install's history migrates: ${claim}`
5225
+ };
5226
+ }
5214
5227
  return { mandate, fidacyPublicKey: c.publicKey() };
5215
5228
  }
5216
5229
  }),
@@ -5253,7 +5266,7 @@ ${d.grant}` : `DENY (decision ${d.decisionId}). Rule violated: ${d.violatedRule}
5253
5266
  const apiKey = (config.engineApiKey ?? process.env.FIDACY_ENGINE_API_KEY ?? "").trim();
5254
5267
  if (!apiKey) {
5255
5268
  throw new Error(
5256
- "assess_action requires an engine API key (an fky_live_/fky_test_ key with assess:write). Set plugins.entries.fidacy.config.engineApiKey or FIDACY_ENGINE_API_KEY to enable signed verdicts."
5269
+ `assess_action needs an engine key \u2014 ${noKeyCta()}. (Or set plugins.entries.fidacy.config.engineApiKey.)`
5257
5270
  );
5258
5271
  }
5259
5272
  try {
@@ -5291,7 +5304,7 @@ ${d.grant}` : `DENY (decision ${d.decisionId}). Rule violated: ${d.violatedRule}
5291
5304
  const apiKey = (config.engineApiKey ?? process.env.FIDACY_ENGINE_API_KEY ?? "").trim();
5292
5305
  if (!apiKey) {
5293
5306
  throw new Error(
5294
- "anchor_artifact requires an engine API key (an fky_live_/fky_test_ key with assess:write). Set plugins.entries.fidacy.config.engineApiKey or FIDACY_ENGINE_API_KEY."
5307
+ `anchor_artifact needs an engine key \u2014 ${noKeyCta()}. (Or set plugins.entries.fidacy.config.engineApiKey.)`
5295
5308
  );
5296
5309
  }
5297
5310
  if (!params.path && !params.sha256) {
@@ -5335,7 +5348,7 @@ ${d.grant}` : `DENY (decision ${d.decisionId}). Rule violated: ${d.violatedRule}
5335
5348
  const apiKey = (config.engineApiKey ?? process.env.FIDACY_ENGINE_API_KEY ?? "").trim();
5336
5349
  if (!apiKey) {
5337
5350
  throw new Error(
5338
- "check_artifact requires an engine API key. Set plugins.entries.fidacy.config.engineApiKey or FIDACY_ENGINE_API_KEY."
5351
+ `check_artifact needs an engine key \u2014 ${noKeyCta()}. (Or set plugins.entries.fidacy.config.engineApiKey.)`
5339
5352
  );
5340
5353
  }
5341
5354
  if (!params.path && !params.sha256) {
@@ -3,7 +3,7 @@
3
3
  "name": "Fidacy \u2014 Payment 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.1.15",
6
+ "version": "0.1.16",
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.1.15",
3
+ "version": "0.1.16",
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
  "homepage": "https://fidacy.com",