fastgrc-openclaw 1.0.14 → 1.0.16

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 CHANGED
@@ -1,3 +1,8 @@
1
- declare const _default: unknown;
1
+ declare const pluginEntry: {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ register(api: any): void;
6
+ };
2
7
 
3
- export { _default as default };
8
+ export { pluginEntry as default };
package/dist/plugin.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- declare const _default: unknown;
1
+ declare const pluginEntry: {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ register(api: any): void;
6
+ };
2
7
 
3
- export { _default as default };
8
+ export { pluginEntry as default };
package/dist/plugin.js CHANGED
@@ -33,7 +33,6 @@ __export(plugin_exports, {
33
33
  default: () => plugin_default
34
34
  });
35
35
  module.exports = __toCommonJS(plugin_exports);
36
- var import_node_module = require("module");
37
36
 
38
37
  // src/index.ts
39
38
  var fs = __toESM(require("fs"));
@@ -100,7 +99,7 @@ args: ${JSON.stringify(args)}`;
100
99
  }
101
100
 
102
101
  // src/plugin.ts
103
- var import_meta = {};
102
+ process.stderr.write("[fastgrc] plugin.js module loaded\n");
104
103
  var DEFAULT_BASE_URL2 = "https://app.fastgrc.ai";
105
104
  var DEFAULT_TIMEOUT_MS2 = 3e3;
106
105
  var pluginEntry = {
@@ -147,16 +146,5 @@ var pluginEntry = {
147
146
  });
148
147
  }
149
148
  };
150
- function tryLoadDefinePluginEntry(specifier) {
151
- try {
152
- const req = (0, import_node_module.createRequire)(import_meta.url);
153
- const mod = req(specifier);
154
- if (typeof mod.definePluginEntry === "function") {
155
- return mod.definePluginEntry;
156
- }
157
- } catch {
158
- }
159
- return null;
160
- }
161
- var definePluginEntry = tryLoadDefinePluginEntry("openclaw/plugin-sdk/plugin-entry") ?? tryLoadDefinePluginEntry("openclaw/plugin-sdk/core");
162
- var plugin_default = definePluginEntry ? definePluginEntry(pluginEntry) : pluginEntry;
149
+ process.stderr.write("[fastgrc] plugin export shape: " + JSON.stringify({ type: typeof pluginEntry, registerType: typeof pluginEntry.register }) + "\n");
150
+ var plugin_default = pluginEntry;
package/dist/plugin.mjs CHANGED
@@ -1,6 +1,3 @@
1
- // src/plugin.ts
2
- import { createRequire } from "module";
3
-
4
1
  // src/index.ts
5
2
  import * as fs from "fs";
6
3
  import * as os from "os";
@@ -66,6 +63,7 @@ args: ${JSON.stringify(args)}`;
66
63
  }
67
64
 
68
65
  // src/plugin.ts
66
+ process.stderr.write("[fastgrc] plugin.js module loaded\n");
69
67
  var DEFAULT_BASE_URL2 = "https://app.fastgrc.ai";
70
68
  var DEFAULT_TIMEOUT_MS2 = 3e3;
71
69
  var pluginEntry = {
@@ -112,19 +110,8 @@ var pluginEntry = {
112
110
  });
113
111
  }
114
112
  };
115
- function tryLoadDefinePluginEntry(specifier) {
116
- try {
117
- const req = createRequire(import.meta.url);
118
- const mod = req(specifier);
119
- if (typeof mod.definePluginEntry === "function") {
120
- return mod.definePluginEntry;
121
- }
122
- } catch {
123
- }
124
- return null;
125
- }
126
- var definePluginEntry = tryLoadDefinePluginEntry("openclaw/plugin-sdk/plugin-entry") ?? tryLoadDefinePluginEntry("openclaw/plugin-sdk/core");
127
- var plugin_default = definePluginEntry ? definePluginEntry(pluginEntry) : pluginEntry;
113
+ process.stderr.write("[fastgrc] plugin export shape: " + JSON.stringify({ type: typeof pluginEntry, registerType: typeof pluginEntry.register }) + "\n");
114
+ var plugin_default = pluginEntry;
128
115
  export {
129
116
  plugin_default as default
130
117
  };
@@ -2,7 +2,7 @@
2
2
  "id": "fastgrc",
3
3
  "name": "FastGRC Policy Router",
4
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.mjs"],
5
+ "extensions": ["./dist/plugin.js"],
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "properties": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastgrc-openclaw",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
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",