@silmaril-security/firewall-plugin 1.2.6 → 1.2.8

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/CLAUDE.md CHANGED
@@ -101,10 +101,10 @@ Configuration fields:
101
101
  Classifier requests still include harness provenance. On macOS that provenance
102
102
  can include the local computer name, and classification does not wait for the
103
103
  lookup
104
- - `timeoutMs`: optional classifier timeout in milliseconds. Finite numbers,
105
- including numeric strings, are truncated toward zero and then kept when that
106
- integer is from `250` through `10000`. Omitted, non-finite, or out-of-range
107
- values use `2500`
104
+ - `timeoutMs`: optional classifier timeout in milliseconds. OpenClaw plugin
105
+ configuration accepts JSON integers from `250` through `10000`; omission uses
106
+ `2500`. The host validates the manifest schema before runtime loading and
107
+ rejects numeric strings, fractional numbers, and out-of-range values
108
108
  - `mode`: optional `shadow`, `warn`, or `block` override. A set value wins over
109
109
  the legacy booleans below and over `mode` on the classifier response
110
110
  - `shadowMode`: legacy flag. `true` forces Shadow, including when
@@ -244,7 +244,7 @@ for direct source loading or the CLI install path is unavailable.
244
244
 
245
245
  ```sh
246
246
  npm pack
247
- openclaw plugins install ./silmaril-security-firewall-plugin-1.2.6.tgz
247
+ openclaw plugins install ./silmaril-security-firewall-plugin-1.2.8.tgz
248
248
  openclaw plugins enable firewall-plugin
249
249
  ```
250
250
 
package/README.md CHANGED
@@ -119,10 +119,11 @@ plugin to receive `before_agent_run`. Without that host permission, OpenClaw
119
119
  loads the remaining hooks but skips prompt classification and reports a plugin
120
120
  diagnostic.
121
121
 
122
- `timeoutMs` is optional. Finite numbers, including numeric strings, are
123
- truncated toward zero and then kept when that integer is from `250` through
124
- `10000`. Omitted, non-finite, or out-of-range values use `2500`. That value
125
- bounds each classifier request.
122
+ `timeoutMs` is optional. In OpenClaw plugin configuration, use a JSON integer
123
+ from `250` through `10000`; for example, `"timeoutMs": 2500`. Omit it to use
124
+ `2500`. The host validates configuration against the plugin manifest before
125
+ loading the runtime and rejects numeric strings, fractional numbers, and values
126
+ outside that range. That value bounds each classifier request.
126
127
 
127
128
  The Silmaril endpoint app supplies `endpointId` as a canonical UUID v4. Every classifier request carries plugin-owned `metadata.silmaril.provenance` with `schema_version` `1` and harness `openclaw`. An omitted or invalid endpoint ID omits `endpoint_id`. On macOS, provenance can also include the local computer name. Classification does not wait for that lookup, and other platforms omit it.
128
129
 
@@ -158,7 +159,7 @@ Hooks that receive a classification result can emit one bounded
158
159
  `LocalProtectionEventV1` JSON file for the local Silmaril app.
159
160
  `before_agent_run` emits only when it returns a block. `before_prompt_build`
160
161
  does not emit when the result is a policy candidate in Block mode. Warn events from
161
- `before_prompt_build` record hook `unknown`. `gateway_start` and `message_sent`
162
+ `before_prompt_build` record hook `user_input`. `gateway_start` and `message_sent`
162
163
  do not emit. Set
163
164
  `SILMARIL_LOCAL_EVENT_DIR` to override the directory; otherwise files go
164
165
  to `~/Library/Application Support/Silmaril/Evidence/incoming`.
@@ -177,15 +178,15 @@ not represented as independently verified prevention.
177
178
 
178
179
  ## Install
179
180
 
180
- After version 1.2.6 is published, install that package by name:
181
+ Install the package version documented by this release:
181
182
 
182
183
  ```sh
183
- openclaw plugins install @silmaril-security/firewall-plugin@1.2.6
184
+ openclaw plugins install @silmaril-security/firewall-plugin@1.2.8
184
185
  openclaw plugins enable firewall-plugin
185
186
  openclaw gateway restart
186
187
  ```
187
188
 
188
- The corresponding immutable GitHub release uses tag `v1.2.6`.
189
+ The corresponding immutable GitHub release uses tag `v1.2.8`.
189
190
 
190
191
  This repository also supports direct source loading and two local CLI install styles.
191
192
 
@@ -226,7 +227,7 @@ generated tarball:
226
227
  npm install
227
228
  npm run build
228
229
  npm pack
229
- openclaw plugins install ./silmaril-security-firewall-plugin-1.2.6.tgz
230
+ openclaw plugins install ./silmaril-security-firewall-plugin-1.2.8.tgz
230
231
  openclaw plugins enable firewall-plugin
231
232
  openclaw gateway restart
232
233
  ```
package/dist/index.js CHANGED
@@ -225,7 +225,7 @@ function omitUndefined(record) {
225
225
 
226
226
  // index.ts
227
227
  var PLUGIN_ID = "firewall-plugin";
228
- var PLUGIN_VERSION = "1.2.6";
228
+ var PLUGIN_VERSION = "1.2.8";
229
229
  var LOCAL_EVIDENCE_POLICY_VERSION = "openclaw-plugin-policy-v1";
230
230
  var DEFAULT_CLASSIFY_TIMEOUT_MS = 2500;
231
231
  var MIN_CLASSIFY_TIMEOUT_MS = 250;
@@ -948,6 +948,7 @@ function localHook(meta) {
948
948
  return "subagent";
949
949
  }
950
950
  switch (meta.hookName) {
951
+ case "before_prompt_build":
951
952
  case "before_agent_run":
952
953
  return "user_input";
953
954
  case "before_tool_call":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silmaril-security/firewall-plugin",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "repository": {