@fidacy/openclaw-plugin 0.5.4 → 0.5.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Nudges agora contam, no canal OpenClaw tambem. Cada mensagem proativa que aparece para o operador (`first_deny`, `first_allow`, `bec_catch`, ...) emite um evento anonimo com a chave do nudge, marcado com o shell `openclaw-plugin`, no mesmo caminho sem PII do resto da telemetria: diz que uma mensagem apareceu e qual, nunca para quem nem sobre o que.
8
+
9
+ O fluxo de decisao ja disparava esses nudges (decisionNudge), mas ate agora eles nao deixavam rastro: o funil media instalacao e decisao e nada entre as duas. Sem o evento nao havia como saber se expor mais tinha efeito, e isso nao melhorava com o tempo, porque o instrumento nao existia. Herdado do @fidacy/mcp 0.7.2, que este plugin embarca da fonte. Nada muda para quem usa: mesmas mensagens, mesma frequencia de uma vez por install.
10
+
3
11
  ## 0.5.4
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5085,7 +5085,7 @@ var FileAuditStore = class {
5085
5085
  import { statSync } from "node:fs";
5086
5086
 
5087
5087
  // ../mcp/src/telemetry.ts
5088
- var CLIENT_VERSION = true ? "0.5.4" : "dev";
5088
+ var CLIENT_VERSION = true ? "0.5.5" : "dev";
5089
5089
  function bandOf(amount) {
5090
5090
  if (typeof amount !== "number" || !Number.isFinite(amount) || amount <= 0) return void 0;
5091
5091
  if (amount < 10) return "lt10";
@@ -5168,6 +5168,7 @@ var recordInstall = () => record2("install");
5168
5168
  var recordAgentActive = () => record2("agent_active");
5169
5169
  var recordDecision = (status, violatedRule, amount, perTxMax) => record2("decision", resultOf(status, violatedRule), bandOf(amount), capRatioOf(amount, perTxMax));
5170
5170
  var recordUpgradeIntent = () => record2("upgrade_intent");
5171
+ var recordNudge = (key) => record2("nudge", void 0, void 0, void 0, key);
5171
5172
  async function flush() {
5172
5173
  if (flushTimer) {
5173
5174
  clearTimeout(flushTimer);
@@ -5273,7 +5274,7 @@ function requestUpgrade() {
5273
5274
  }
5274
5275
 
5275
5276
  // ../mcp/src/provision.ts
5276
- var CLIENT_VERSION2 = true ? "0.5.4" : "dev";
5277
+ var CLIENT_VERSION2 = true ? "0.5.5" : "dev";
5277
5278
  function provisionEnabled() {
5278
5279
  const v = (process.env.FIDACY_DISABLE_PROVISION ?? "").trim().toLowerCase();
5279
5280
  return !(v === "1" || v === "true" || v === "yes");
@@ -5324,6 +5325,7 @@ function nudgeOnce(key) {
5324
5325
  } catch {
5325
5326
  return false;
5326
5327
  }
5328
+ recordNudge(key);
5327
5329
  return true;
5328
5330
  }
5329
5331
  var sessionDecisions = 0;
@@ -5415,7 +5417,7 @@ function trialCountdownLine(keyOverride) {
5415
5417
  }
5416
5418
 
5417
5419
  // ../mcp/src/register.ts
5418
- var CLIENT_VERSION3 = true ? "0.5.4" : "dev";
5420
+ var CLIENT_VERSION3 = true ? "0.5.5" : "dev";
5419
5421
  function endpoint3() {
5420
5422
  const base = (process.env.FIDACY_ENGINE_URL ?? "https://api.fidacy.com").replace(/\/$/, "");
5421
5423
  return `${base}/v1/register`;
@@ -3,7 +3,7 @@
3
3
  "name": "Fidacy AI Agent Firewall",
4
4
  "description": "Firewall for AI agents. Watches every action the agent takes and ends each session in a digest anyone can recompute; commands, paths and arguments never leave your machine, only counts and a hash. Blocks wrong/lookalike payee, over-cap and duplicate-invoice fraud before money moves. Non-custodial, local-first, deny-by-default. Anonymous telemetry (counts only) can be disabled with FIDACY_DISABLE_TELEMETRY=1.",
5
5
  "icon": "https://fidacy.com/logo.png",
6
- "version": "0.5.4",
6
+ "version": "0.5.5",
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.4",
3
+ "version": "0.5.5",
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.7.2"
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
+ }