fastgrc-openclaw 1.0.10 → 1.0.12
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/plugin.d.mts +8 -1
- package/dist/plugin.d.ts +8 -1
- package/dist/plugin.js +22 -1
- package/dist/plugin.mjs +17 -1
- package/openclaw.plugin.json +10 -10
- package/package.json +1 -1
package/dist/plugin.d.mts
CHANGED
|
@@ -18,5 +18,12 @@ declare const plugin: {
|
|
|
18
18
|
before_tool_call(toolName: string, args: unknown, context: AgentContext): Promise<BeforeToolCallResult>;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
declare function register(api?: unknown): {
|
|
22
|
+
name: string;
|
|
23
|
+
hooks: {
|
|
24
|
+
before_tool_call(toolName: string, args: unknown, context: AgentContext): Promise<BeforeToolCallResult>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare const activate: typeof register;
|
|
21
28
|
|
|
22
|
-
export { plugin as default };
|
|
29
|
+
export { activate, plugin as default, register };
|
package/dist/plugin.d.ts
CHANGED
|
@@ -18,5 +18,12 @@ declare const plugin: {
|
|
|
18
18
|
before_tool_call(toolName: string, args: unknown, context: AgentContext): Promise<BeforeToolCallResult>;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
declare function register(api?: unknown): {
|
|
22
|
+
name: string;
|
|
23
|
+
hooks: {
|
|
24
|
+
before_tool_call(toolName: string, args: unknown, context: AgentContext): Promise<BeforeToolCallResult>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare const activate: typeof register;
|
|
21
28
|
|
|
22
|
-
export { plugin as default };
|
|
29
|
+
export { activate, plugin as default, register };
|
package/dist/plugin.js
CHANGED
|
@@ -30,7 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/plugin.ts
|
|
31
31
|
var plugin_exports = {};
|
|
32
32
|
__export(plugin_exports, {
|
|
33
|
-
|
|
33
|
+
activate: () => activate,
|
|
34
|
+
default: () => plugin_default,
|
|
35
|
+
register: () => register
|
|
34
36
|
});
|
|
35
37
|
module.exports = __toCommonJS(plugin_exports);
|
|
36
38
|
|
|
@@ -144,4 +146,23 @@ var plugin = {
|
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
};
|
|
149
|
+
function register(api) {
|
|
150
|
+
if (api !== void 0) {
|
|
151
|
+
try {
|
|
152
|
+
const keys = Object.keys(api);
|
|
153
|
+
console.log("[fastgrc] register called \u2014 api keys:", keys);
|
|
154
|
+
} catch {
|
|
155
|
+
console.log("[fastgrc] register called \u2014 api:", typeof api);
|
|
156
|
+
}
|
|
157
|
+
} else {
|
|
158
|
+
console.log("[fastgrc] register called \u2014 no api arg");
|
|
159
|
+
}
|
|
160
|
+
return plugin;
|
|
161
|
+
}
|
|
162
|
+
var activate = register;
|
|
147
163
|
var plugin_default = plugin;
|
|
164
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
165
|
+
0 && (module.exports = {
|
|
166
|
+
activate,
|
|
167
|
+
register
|
|
168
|
+
});
|
package/dist/plugin.mjs
CHANGED
|
@@ -108,7 +108,23 @@ var plugin = {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
+
function register(api) {
|
|
112
|
+
if (api !== void 0) {
|
|
113
|
+
try {
|
|
114
|
+
const keys = Object.keys(api);
|
|
115
|
+
console.log("[fastgrc] register called \u2014 api keys:", keys);
|
|
116
|
+
} catch {
|
|
117
|
+
console.log("[fastgrc] register called \u2014 api:", typeof api);
|
|
118
|
+
}
|
|
119
|
+
} else {
|
|
120
|
+
console.log("[fastgrc] register called \u2014 no api arg");
|
|
121
|
+
}
|
|
122
|
+
return plugin;
|
|
123
|
+
}
|
|
124
|
+
var activate = register;
|
|
111
125
|
var plugin_default = plugin;
|
|
112
126
|
export {
|
|
113
|
-
|
|
127
|
+
activate,
|
|
128
|
+
plugin_default as default,
|
|
129
|
+
register
|
|
114
130
|
};
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,10 +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
|
-
"configSchema": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {}
|
|
9
|
-
}
|
|
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
|
+
"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.12",
|
|
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",
|