@silmaril-security/firewall-plugin 1.2.7 → 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
@@ -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.7.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
@@ -159,7 +159,7 @@ Hooks that receive a classification result can emit one bounded
159
159
  `LocalProtectionEventV1` JSON file for the local Silmaril app.
160
160
  `before_agent_run` emits only when it returns a block. `before_prompt_build`
161
161
  does not emit when the result is a policy candidate in Block mode. Warn events from
162
- `before_prompt_build` record hook `unknown`. `gateway_start` and `message_sent`
162
+ `before_prompt_build` record hook `user_input`. `gateway_start` and `message_sent`
163
163
  do not emit. Set
164
164
  `SILMARIL_LOCAL_EVENT_DIR` to override the directory; otherwise files go
165
165
  to `~/Library/Application Support/Silmaril/Evidence/incoming`.
@@ -178,15 +178,15 @@ not represented as independently verified prevention.
178
178
 
179
179
  ## Install
180
180
 
181
- The currently published npm release is 1.2.6. Install it by name:
181
+ Install the package version documented by this release:
182
182
 
183
183
  ```sh
184
- openclaw plugins install @silmaril-security/firewall-plugin@1.2.6
184
+ openclaw plugins install @silmaril-security/firewall-plugin@1.2.8
185
185
  openclaw plugins enable firewall-plugin
186
186
  openclaw gateway restart
187
187
  ```
188
188
 
189
- The corresponding immutable GitHub release uses tag `v1.2.6`.
189
+ The corresponding immutable GitHub release uses tag `v1.2.8`.
190
190
 
191
191
  This repository also supports direct source loading and two local CLI install styles.
192
192
 
@@ -227,7 +227,7 @@ generated tarball:
227
227
  npm install
228
228
  npm run build
229
229
  npm pack
230
- openclaw plugins install ./silmaril-security-firewall-plugin-1.2.7.tgz
230
+ openclaw plugins install ./silmaril-security-firewall-plugin-1.2.8.tgz
231
231
  openclaw plugins enable firewall-plugin
232
232
  openclaw gateway restart
233
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.7";
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.7",
3
+ "version": "1.2.8",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "repository": {