fastgrc-openclaw 1.0.8 → 1.0.10
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/dist/bin.js +13 -1
- package/dist/bin.mjs +13 -1
- package/openclaw.plugin.json +10 -6
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -171,8 +171,20 @@ Restart OpenClaw \u2014 FastGRC will evaluate every tool call.
|
|
|
171
171
|
process.exit(0);
|
|
172
172
|
}
|
|
173
173
|
const existing = fs.readFileSync(hookMdPath, "utf8");
|
|
174
|
+
if (existing.includes(handlerStr)) {
|
|
175
|
+
process.stdout.write(`\u2713 FastGRC hook already up to date in ${hookMdPath}
|
|
176
|
+
`);
|
|
177
|
+
process.exit(0);
|
|
178
|
+
}
|
|
174
179
|
if (existing.includes("fastgrc-hook")) {
|
|
175
|
-
|
|
180
|
+
const patched = existing.replace(
|
|
181
|
+
/handler:\s*"[^"]*fastgrc-hook[^"]*"/,
|
|
182
|
+
`handler: "${handlerStr}"`
|
|
183
|
+
);
|
|
184
|
+
fs.writeFileSync(hookMdPath, patched, "utf8");
|
|
185
|
+
process.stdout.write(`\u2713 Updated handler in ${hookMdPath} \u2014 added HOME prefix.
|
|
186
|
+
|
|
187
|
+
Restart OpenClaw to activate.
|
|
176
188
|
`);
|
|
177
189
|
process.exit(0);
|
|
178
190
|
}
|
package/dist/bin.mjs
CHANGED
|
@@ -148,8 +148,20 @@ Restart OpenClaw \u2014 FastGRC will evaluate every tool call.
|
|
|
148
148
|
process.exit(0);
|
|
149
149
|
}
|
|
150
150
|
const existing = fs.readFileSync(hookMdPath, "utf8");
|
|
151
|
+
if (existing.includes(handlerStr)) {
|
|
152
|
+
process.stdout.write(`\u2713 FastGRC hook already up to date in ${hookMdPath}
|
|
153
|
+
`);
|
|
154
|
+
process.exit(0);
|
|
155
|
+
}
|
|
151
156
|
if (existing.includes("fastgrc-hook")) {
|
|
152
|
-
|
|
157
|
+
const patched = existing.replace(
|
|
158
|
+
/handler:\s*"[^"]*fastgrc-hook[^"]*"/,
|
|
159
|
+
`handler: "${handlerStr}"`
|
|
160
|
+
);
|
|
161
|
+
fs.writeFileSync(hookMdPath, patched, "utf8");
|
|
162
|
+
process.stdout.write(`\u2713 Updated handler in ${hookMdPath} \u2014 added HOME prefix.
|
|
163
|
+
|
|
164
|
+
Restart OpenClaw to activate.
|
|
153
165
|
`);
|
|
154
166
|
process.exit(0);
|
|
155
167
|
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "fastgrc",
|
|
3
|
-
"name": "FastGRC Policy Router",
|
|
4
|
-
"description": "Evaluate every tool call against your FastGRC compliance policy before it executes. Blocks violations, flags drift, builds an audit trail.",
|
|
5
|
-
"extensions": ["./dist/plugin.js"]
|
|
6
|
-
|
|
1
|
+
{
|
|
2
|
+
"id": "fastgrc",
|
|
3
|
+
"name": "FastGRC Policy Router",
|
|
4
|
+
"description": "Evaluate every tool call against your FastGRC compliance policy before it executes. Blocks violations, flags drift, builds an audit trail.",
|
|
5
|
+
"extensions": ["./dist/plugin.js"],
|
|
6
|
+
"configSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {}
|
|
9
|
+
}
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastgrc-openclaw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "FastGRC agent compliance plugin for OpenClaw — evaluates every tool call against your policy before it executes",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|