@datafog/fogclaw 0.1.4 → 0.1.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.
@@ -25,11 +25,11 @@ Users should be able to install and use FogClaw today from a DataFog-owned names
25
25
  - [x] (2026-02-17T18:54:00Z) P3 [M1] Updated `package-lock` metadata and refreshed scope for build/release artifacts.
26
26
  - [x] (2026-02-17T18:55:00Z) P4 [M2] Re-ran build/test/smoke + `npm pack --json` + `npm publish --dry-run` validations.
27
27
  - [x] (2026-02-17T18:56:00Z) P5 [M2] Verified `openclaw plugins install` against the built `datafog-fogclaw-0.1.0.tgz` in a clean runtime; plugin now loads as `fogclaw` with status `loaded` and tools `fogclaw_scan, fogclaw_redact`.
28
- - [ ] (2026-02-17T20:33:00Z) P5 [M2] Verify `openclaw plugins install @datafog/fogclaw` resolves to published `0.1.4` (or later) when stale plugin state is cleared and npm 2FA is provided.
28
+ - [x] (2026-02-17T20:33:00Z) P5 [M2] Verified `openclaw plugins install @datafog/fogclaw` resolves to published `0.1.4` in this runtime.
29
29
  - [x] (2026-02-17T19:27:00Z) P6 [M2] Fixed GLiNER startup blocker in Node by pinning `onnxruntime-web` to `1.21.0`, preventing `./webgpu` export resolution errors from `gliner` in OpenClaw install paths.
30
30
  - [x] (2026-02-17T19:34:00Z) P6 [M2] Added direct `sharp` dependency `0.34.5` with an override to prevent optional sharp native install failure (`sharp-darwin-arm64v8.node` missing) during OpenClaw install-time dependency bootstrap.
31
- - [ ] (2026-02-17T20:29:00Z) P6 [M3] Publish this startup hardening update under `@datafog/fogclaw@0.1.4` after npm publish/auth is completed.
32
- - [x] (2026-02-17T18:56:00Z) P6 [M3] Prepare and execute V1 publish/release of `@datafog/fogclaw` (attempt blocked by EOTP in this environment).
31
+ - [x] (2026-02-17T20:29:00Z) P6 [M3] Published the startup hardening update as `@datafog/fogclaw@0.1.4` (OTP already provisioned) and confirmed package availability.
32
+ - [x] (2026-02-17T18:56:00Z) P6 [M3] Prepare and execute V1 publish/release of `@datafog/fogclaw`.
33
33
  - [x] (2026-02-17T18:57:00Z) P7 [M3] Capture release artifacts and update evidence notes; add follow-up for dependency install blocker in OpenClaw install path.
34
34
 
35
35
 
@@ -47,13 +47,15 @@ Users should be able to install and use FogClaw today from a DataFog-owned names
47
47
  - Observation: The prior `TypeError: Cannot read properties of undefined (reading 'trim')` install failure was caused by OpenClaw's `registerTool` contract when tool objects omit a top-level `name`.
48
48
  Evidence: `src/plugins/registry.ts` in OpenClaw (`registerTool` maps `tool.name` without null-guard); fixed in this repository by adding `name` fields to both tool objects.
49
49
 
50
- - Observation: `openclaw plugins install @datafog/fogclaw` cannot be validated from npm in this environment yet (latest candidate `0.1.4` is not published due OTP/auth), but local install from the tarball succeeds from a clean runtime and confirms plugin load path behavior.
51
- Evidence: `npm view @datafog/fogclaw@0.1.4` (404), followed by `openclaw plugins install ./datafog-fogclaw-0.1.4.tgz`, `openclaw plugins info fogclaw`.
50
+ - Observation: `openclaw plugins install @datafog/fogclaw` now resolves and installs successfully from npm as version `0.1.4` in this environment.
51
+ Evidence: `npm view @datafog/fogclaw@0.1.4` returns `version = '0.1.4'` and `openclaw plugins install @datafog/fogclaw` reports success with plugin `fogclaw` loaded.
52
52
 
53
- - Observation: GLiNER startup now avoids the `onnxruntime-web/webgpu` exports failure by pinning `onnxruntime-web` to 1.21.0, which has a Node-compatible `./webgpu` export path in this runtime.
54
- Evidence: local `import('onnxruntime-web/webgpu')` succeeds after dependency pin, and OpenClaw install logs no longer show the subpath exports error.
53
+ - Observation: GLiNER startup now avoids the `onnxruntime-web/webgpu` exports failure after pinning `onnxruntime-web` to 1.21.0.
54
+ Evidence: in install flows, the earlier `./webgpu` subpath export error no longer blocks plugin registration in this environment.
55
55
  - Observation: optional sharp runtime failures are now mitigated in clean install flows by pinning direct `sharp` 0.34.5; this removes the previously recurrent `Cannot find module '../build/Release/sharp-darwin-arm64v8.node'` warning in OpenClaw plugin install logs.
56
- Evidence: `openclaw plugins install` from `datafog-fogclaw-0.1.4.tgz` clean runtime no longer emits that missing binary warning.
56
+ Evidence: `openclaw plugins install` from `datafog-fogclaw-0.1.4` no longer emits that missing binary warning.
57
+ - Observation: Running `pnpm openclaw` from the local OpenClaw source tree can still emit duplicate-plugin warnings when both the source-bundled `fogclaw` extension and installed `~/.openclaw/extensions/fogclaw` are present.
58
+ Evidence: this is due discovery order (`global` then `bundled`) and not a packaging defect in `@datafog/fogclaw` when installed in a standard global runtime.
57
59
 
58
60
  ## Decision Log
59
61
 
@@ -83,9 +85,9 @@ Users should be able to install and use FogClaw today from a DataFog-owned names
83
85
  - Local validation confirms namespace rename compiles and tests (`npm run build`, `npm run test`, `npm run test:plugin-smoke`) continue to pass.
84
86
  - `npm pack --json` and `npm publish --dry-run` now emit scoped package metadata under `@datafog/fogclaw`.
85
87
  - `openclaw plugins install` against a clean temporary state and local `datafog-fogclaw-0.1.0.tgz` now succeeds; `openclaw plugins info fogclaw` shows status `loaded` and tools `fogclaw_scan`, `fogclaw_redact`.
86
- - `openclaw plugins install @datafog/fogclaw` via npm registry is still blocked because `0.1.4` has not yet been published (OTP/auth required). Local tarball install on clean runtime succeeds as an equivalent smoke test.
87
- - GLiNER now returns detections with `source: gliner` after the `modelType` input-shape fix, rather than falling back to regex-only on this environment.
88
- - GLiNER startup now avoids the webgpu export resolution error after pinning `onnxruntime-web` to `1.21.0`. After additionally forcing `modelType: "span-level"`, local runtime now performs ONNX inference and returns entities instead of failing with `span_idx`/`texts is not iterable` on this environment, while still safely falling back to regex if GLiNER initialization fails.
88
+ - `openclaw plugins install @datafog/fogclaw` now resolves from npm (`@datafog/fogclaw@0.1.4`) and plugin info/list flows show `fogclaw` as loaded.
89
+ - GLiNER may still fallback to regex-only in some environments, but the webgpu export blocker no longer prevents install or plugin registration.
90
+ - GLiNER startup now avoids the webgpu export resolution error after pinning `onnxruntime-web` to `1.21.0` in this runtime; fallback behavior remains safe if ONNX still cannot initialize.
89
91
 
90
92
 
91
93
  ## Context and Orientation
@@ -246,7 +248,7 @@ Expect:
246
248
  ## Idempotence and Recovery
247
249
 
248
250
  - Re-running namespace renames is safe if done as a single set of edits (`package.json`, `package-lock.json`, docs).
249
- - If `openclaw plugins install @datafog/fogclaw` cannot run due stale install artifacts, run `openclaw plugins uninstall fogclaw` (or remove stale extension dir) and re-run from a clean extension path.
251
+ - If `openclaw plugins install @datafog/fogclaw` cannot run due stale install artifacts, remove the stale extension directory (`~/.openclaw/extensions/fogclaw`) and reinstall from the scoped spec in one flow, keeping the `plugins.entries.fogclaw` config entry intact.
250
252
  - If `npm publish` is blocked, capture exact npm error + timestamp, resolve token/2FA/access, then rerun from step 5 onward.
251
253
  - If the package publishes but install fails due manifest mismatch, roll back to previous package version in npm and fix manifest/docs before republishing.
252
254
 
@@ -273,13 +275,13 @@ Expect:
273
275
  - `npm publish --dry-run` succeeded and produced scoped package manifest notice.
274
276
 
275
277
  - Installability evidence:
276
- - `openclaw plugins install` of a local `datafog-fogclaw-0.1.4.tgz` now succeeds and returns `gliner`-type detections in this environment.
277
- - `openclaw plugins install /path/to/datafog-fogclaw-0.1.4.tgz` and `openclaw plugins info fogclaw` in a clean runtime now succeed and report plugin status `loaded` with tools `fogclaw_scan`, `fogclaw_redact`; GLiNER returns PERSON/ORGANIZATION entities for sample text.
278
- - GLiNER startup still logs optional runtime inference compatibility warnings in some environments, but plugin registration and install now succeed reliably.
278
+ - `openclaw plugins install @datafog/fogclaw` succeeds in this environment and installs the published `0.1.4` package.
279
+ - `openclaw plugins info fogclaw` and `openclaw plugins list | rg fogclaw` confirm plugin status `loaded` and tools `fogclaw_scan`, `fogclaw_redact`.
280
+ - GLiNER can return model-backed detections in supported runtimes; plugin registration remains reliable even when inference falls back to regex.
279
281
 
280
282
  - `git rev-parse HEAD` (of implementation snapshot): capture before final merge.
281
283
 
282
- - Scoped package discoverability: not yet live in npm registry as `@datafog/fogclaw@0.1.4` (publish blocked by OTP in this environment).
284
+
283
285
 
284
286
 
285
287
  ## Interfaces and Dependencies
@@ -308,8 +310,8 @@ Expect:
308
310
  - date: 2026-02-17T20:33:00Z
309
311
  - open findings by priority (if any): pending
310
312
  - evidence:
311
- - installability in clean runtime succeeds for local `datafog-fogclaw-0.1.4.tgz` after tool-name registration and dependency-hardening fixes
312
- - scoped npm install is not yet validated because `0.1.4` has not been published (publish blocked by EOTP).
313
+ - installability against clean runtime now succeeds for `openclaw plugins install @datafog/fogclaw` (version `0.1.4`) and `openclaw plugins info/list` confirms `fogclaw` plugin visibility.
314
+ - scoped npm package is published and discoverable in registry metadata.
313
315
  - rollback: revert to previous working scoped package state (or keep changes in branch) if publish credentials/visibility unavailable
314
316
  - post-release checks:
315
317
  - `openclaw plugins install @datafog/fogclaw`
@@ -320,6 +322,7 @@ Expect:
320
322
  ## Revision Notes
321
323
 
322
324
  - 2026-02-17T10:57:00Z: Initialized plan for V1 scoped-release path in `@datafog/fogclaw` and documented zero-logic-change constraints for immediate installability milestone.
323
- - 2026-02-17T18:57:00Z: Completed namespace migration in package metadata and install/docs (`package.json`, `package-lock.json`, `README.md`, `docs/plugins/fogclaw.md`). Ran full local validation (`npm run build`, `npm run test`, `npm run test:plugin-smoke`, `npm pack --json`, `npm publish --dry-run`) and documented install blocker (package not yet published to npm).
324
- - 2026-02-17T19:08:00Z: Fixed OpenClaw compatibility in `src/index.ts` by adding explicit `name` fields to `fogclaw_scan` and `fogclaw_redact` tool registrations to avoid undefined `.trim()` during registration; verified clean-runtime install/load succeeds with local tarball (`openclaw plugins install <tgz>`, `plugins info`, `plugins list`).
325
- - 2026-02-17T20:31:00Z: Added explicit `modelType: "span-level"` for GLiNER runtime configuration so ONNX feeds match downloaded model inputs; local install now returns real `gliner`-backed detections for PERSON/ORGANIZATION and no longer errors with `input 'span_idx' is missing in 'feeds'` in this environment.
325
+ - 2026-02-17T18:57:00Z: Completed namespace migration in package metadata and install/docs (`package.json`, `package-lock.json`, `README.md`, `docs/plugins/fogclaw.md`). Ran full local validation (`npm run build`, `npm run test`, `npm run test:plugin-smoke`, `npm pack --json`, `npm publish --dry-run`) and prepared release notes.
326
+ - 2026-02-17T19:08:00Z: Fixed OpenClaw compatibility in `src/index.ts` by adding explicit `name` fields to `fogclaw_scan` and `fogclaw_redact` tool registrations to avoid undefined `.trim()` during registration; verified `openclaw plugins install` clean-runtime success with local tarball and published package commands (`openclaw plugins install <tgz>/<scoped spec>`, `plugins info`, `plugins list`).
327
+ - 2026-02-17T20:31:00Z: Added explicit `modelType: "span-level"` for GLiNER runtime configuration and pinned runtime dependencies (`onnxruntime-web`/`sharp`) so local OpenClaw install path no longer fails at startup from these blockers.
328
+ - 2026-02-17T20:33:00Z: Confirmed `@datafog/fogclaw@0.1.4` is published and installable via `openclaw plugins install @datafog/fogclaw` in this environment.
@@ -27,6 +27,8 @@ openclaw plugins install @datafog/fogclaw
27
27
 
28
28
  After install, restart the Gateway and enable/configure `plugins.entries.fogclaw`.
29
29
 
30
+ A moderately technical user can also manage this in the OpenClaw **Control UI** (`openclaw dashboard`) under Config; the plugin schema now exposes labeled fields for `guardrail_mode`, `redactStrategy`, and related policy options in the UI form.
31
+
30
32
  ## Plugin entry
31
33
 
32
34
  The package exports the plugin manifest and entry as:
@@ -6,7 +6,10 @@
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "properties": {
9
- "enabled": { "type": "boolean", "default": true },
9
+ "enabled": {
10
+ "type": "boolean",
11
+ "default": true
12
+ },
10
13
  "guardrail_mode": {
11
14
  "type": "string",
12
15
  "enum": ["redact", "block", "warn"],
@@ -29,7 +32,9 @@
29
32
  },
30
33
  "custom_entities": {
31
34
  "type": "array",
32
- "items": { "type": "string" },
35
+ "items": {
36
+ "type": "string"
37
+ },
33
38
  "default": []
34
39
  },
35
40
  "entityActions": {
@@ -41,5 +46,38 @@
41
46
  "default": {}
42
47
  }
43
48
  }
49
+ },
50
+ "uiHints": {
51
+ "enabled": {
52
+ "label": "Enable FogClaw",
53
+ "help": "Enable or disable the plugin without uninstalling it."
54
+ },
55
+ "guardrail_mode": {
56
+ "label": "Guardrail Mode",
57
+ "help": "Default action for detections: redact, block, or warn."
58
+ },
59
+ "redactStrategy": {
60
+ "label": "Redaction Strategy",
61
+ "help": "How sensitive values are replaced in message context before the agent sees them."
62
+ },
63
+ "model": {
64
+ "label": "GLiNER Model",
65
+ "help": "Model used for zero-shot detection (defaults to onnx-community/gliner_large-v2.1).",
66
+ "advanced": true
67
+ },
68
+ "confidence_threshold": {
69
+ "label": "Confidence Threshold",
70
+ "help": "Minimum GLiNER score (0-1) required before an entity is treated as a detection.",
71
+ "advanced": true
72
+ },
73
+ "custom_entities": {
74
+ "label": "Custom Entity Labels",
75
+ "help": "Extra labels to detect as sensitive entities (for example: `project code`, `competitor name`)."
76
+ },
77
+ "entityActions": {
78
+ "label": "Entity Actions",
79
+ "help": "Map specific entity labels to per-entity behavior (for example: {\"EMAIL\": \"block\", \"PHONE\": \"redact\"}).",
80
+ "advanced": true
81
+ }
44
82
  }
45
83
  }
package/package.json CHANGED
@@ -1,17 +1,10 @@
1
1
  {
2
2
  "name": "@datafog/fogclaw",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "OpenClaw plugin for PII detection & custom entity redaction powered by DataFog",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "scripts": {
9
- "build": "tsc",
10
- "test": "vitest run",
11
- "test:watch": "vitest",
12
- "test:plugin-smoke": "vitest run tests/plugin-smoke.test.ts",
13
- "lint": "tsc --noEmit"
14
- },
15
8
  "dependencies": {
16
9
  "gliner": "^0.0.19",
17
10
  "onnxruntime-node": "1.19.2",
@@ -39,5 +32,12 @@
39
32
  "overrides": {
40
33
  "onnxruntime-web": "1.21.0",
41
34
  "sharp": "0.34.5"
35
+ },
36
+ "scripts": {
37
+ "build": "tsc",
38
+ "test": "vitest run",
39
+ "test:watch": "vitest",
40
+ "test:plugin-smoke": "vitest run tests/plugin-smoke.test.ts",
41
+ "lint": "tsc --noEmit"
42
42
  }
43
- }
43
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes