@mapick/cost-firewall 0.2.2 → 0.2.3
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/README.md +4 -4
- package/dist/index.js +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -11,14 +11,14 @@ AI Call Firewall — real-time monitoring, budget control, automatic circuit bre
|
|
|
11
11
|
|
|
12
12
|
## Install
|
|
13
13
|
|
|
14
|
-
**
|
|
14
|
+
**Install script:**
|
|
15
15
|
```bash
|
|
16
16
|
curl -fsSL https://raw.githubusercontent.com/mapick-ai/cost-firewall/main/install.sh | bash
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
**Manual:**
|
|
20
20
|
```bash
|
|
21
|
-
openclaw plugins install @mapick/cost-firewall
|
|
21
|
+
openclaw plugins update mapick-firewall || openclaw plugins install @mapick/cost-firewall --force --pin
|
|
22
22
|
openclaw plugins enable mapick-firewall
|
|
23
23
|
openclaw gateway restart
|
|
24
24
|
openclaw firewall status
|
|
@@ -101,8 +101,8 @@ Firewall has two modes: **Observe** (record, don't block) and **Protect** (activ
|
|
|
101
101
|
Copy the entire block below and execute:
|
|
102
102
|
|
|
103
103
|
```bash
|
|
104
|
-
# 1. Install the plugin
|
|
105
|
-
openclaw plugins install @mapick/cost-firewall
|
|
104
|
+
# 1. Install or update the plugin
|
|
105
|
+
openclaw plugins update mapick-firewall || openclaw plugins install @mapick/cost-firewall --force --pin
|
|
106
106
|
|
|
107
107
|
# 2. Enable it
|
|
108
108
|
openclaw plugins enable mapick-firewall
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { detectConfigRisks } from "./config-warn.js";
|
|
|
13
13
|
export default {
|
|
14
14
|
id: PLUGIN_ID,
|
|
15
15
|
name: PLUGIN_NAME,
|
|
16
|
-
version: "0.2.
|
|
16
|
+
version: "0.2.3",
|
|
17
17
|
register(api) {
|
|
18
18
|
const config = api.config?.plugins?.entries?.[PLUGIN_ID]?.config ?? {};
|
|
19
19
|
const state = new FirewallState(config);
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapick/cost-firewall",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Mapick Cost Firewall — OpenClaw Plugs",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"test:watch": "vitest",
|
|
26
26
|
"test:coverage": "vitest run --coverage",
|
|
27
|
-
"lint": "eslint src test"
|
|
27
|
+
"lint": "eslint src test",
|
|
28
|
+
"release": "node scripts/release.mjs"
|
|
28
29
|
},
|
|
29
30
|
"openclaw": {
|
|
30
31
|
"extensions": [
|