@moltnet/guard 1.0.0 → 1.0.2
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 +2 -2
- package/clawdbot.plugin.json +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ clawdbot plugins install @moltnet/guard
|
|
|
28
28
|
{
|
|
29
29
|
"plugins": {
|
|
30
30
|
"entries": {
|
|
31
|
-
"
|
|
31
|
+
"guard": {
|
|
32
32
|
"enabled": true,
|
|
33
33
|
"config": {
|
|
34
34
|
"token": "mg_your_token_here",
|
|
@@ -99,7 +99,7 @@ If you're running your own MoltGuard instance:
|
|
|
99
99
|
{
|
|
100
100
|
"plugins": {
|
|
101
101
|
"entries": {
|
|
102
|
-
"
|
|
102
|
+
"guard": {
|
|
103
103
|
"enabled": true,
|
|
104
104
|
"config": {
|
|
105
105
|
"url": "https://your-moltguard.com",
|
package/clawdbot.plugin.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "guard",
|
|
3
3
|
"name": "MoltGuard",
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"description": "Security & observability for AI agents. See what your agent is thinking, approve risky actions, control it remotely.",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"description": "How often to poll for commands (ms)"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"required": [
|
|
53
|
+
"required": []
|
|
54
54
|
},
|
|
55
55
|
"uiHints": {
|
|
56
56
|
"url": { "label": "MoltGuard URL", "placeholder": "https://guard.moltnet.ai" },
|
package/index.ts
CHANGED
|
@@ -249,7 +249,7 @@ function getToolRisk(toolName: string, params: Record<string, unknown>): 'low' |
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
const register: PluginRegisterFn = (api: PluginAPI) => {
|
|
252
|
-
const config = api.config.plugins?.entries?.
|
|
252
|
+
const config = api.config.plugins?.entries?.guard?.config as MoltGuardConfig | undefined;
|
|
253
253
|
|
|
254
254
|
if (!config?.token) {
|
|
255
255
|
console.log('[moltguard] No token configured. Get one at https://guard.moltnet.ai');
|