fastgrc-openclaw 1.0.7 → 1.0.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/dist/bin.js CHANGED
@@ -152,7 +152,11 @@ if (cmd === "unset-policy") {
152
152
  if (cmd === "install-hook") {
153
153
  const targetDir = arg || process.cwd();
154
154
  const hookMdPath = path.join(targetDir, "HOOK.md");
155
- const HOOK_ENTRY = ' - matcher: PreToolUse\n handler: "fastgrc-hook"\n';
155
+ const homeDir = os.homedir();
156
+ const handlerStr = `HOME=${homeDir} fastgrc-hook`;
157
+ const HOOK_ENTRY = ` - matcher: PreToolUse
158
+ handler: "${handlerStr}"
159
+ `;
156
160
  const HOOK_BLOCK = "---\nname: FastGRC Policy Check\ndescription: Evaluate every tool call against your FastGRC compliance policy\nhooks:\n" + HOOK_ENTRY + "---\n";
157
161
  const hasKey = !!(readConfig().apiKey || process.env.FASTGRC_API_KEY);
158
162
  if (!hasKey) {
package/dist/bin.mjs CHANGED
@@ -129,7 +129,11 @@ if (cmd === "unset-policy") {
129
129
  if (cmd === "install-hook") {
130
130
  const targetDir = arg || process.cwd();
131
131
  const hookMdPath = path.join(targetDir, "HOOK.md");
132
- const HOOK_ENTRY = ' - matcher: PreToolUse\n handler: "fastgrc-hook"\n';
132
+ const homeDir = os.homedir();
133
+ const handlerStr = `HOME=${homeDir} fastgrc-hook`;
134
+ const HOOK_ENTRY = ` - matcher: PreToolUse
135
+ handler: "${handlerStr}"
136
+ `;
133
137
  const HOOK_BLOCK = "---\nname: FastGRC Policy Check\ndescription: Evaluate every tool call against your FastGRC compliance policy\nhooks:\n" + HOOK_ENTRY + "---\n";
134
138
  const hasKey = !!(readConfig().apiKey || process.env.FASTGRC_API_KEY);
135
139
  if (!hasKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastgrc-openclaw",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
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",