holomime 1.8.0 → 1.9.1

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.
@@ -0,0 +1,49 @@
1
+ /**
2
+ * HoloMime Plugin for OpenClaw
3
+ *
4
+ * Adds behavioral alignment monitoring to any OpenClaw agent.
5
+ * Detects sycophancy, over-apologizing, hedge-stacking, boundary violations,
6
+ * and 4 more behavioral patterns using 8 rule-based detectors.
7
+ *
8
+ * Usage:
9
+ * import register from "holomime/integrations/openclaw";
10
+ * register(api);
11
+ */
12
+ interface OpenClawPluginConfig {
13
+ personalityPath: string;
14
+ autoInject: boolean;
15
+ diagnosisDetail: "summary" | "standard" | "full";
16
+ }
17
+ interface OpenClawPluginApi {
18
+ registerTool(id: string, definition: {
19
+ description: string;
20
+ parameters: Record<string, unknown>;
21
+ handler: (params: Record<string, unknown>, context: ToolContext) => Promise<unknown>;
22
+ }): void;
23
+ registerCommand(definition: {
24
+ name: string;
25
+ description: string;
26
+ acceptsArgs: boolean;
27
+ handler: (ctx: CommandContext) => {
28
+ text: string;
29
+ };
30
+ }): void;
31
+ on(event: string, handler: (event: HookEvent) => void | Promise<void>): void;
32
+ getConfig(): OpenClawPluginConfig;
33
+ }
34
+ interface ToolContext {
35
+ getConversationHistory?(): Array<{
36
+ role: string;
37
+ content: string;
38
+ }>;
39
+ }
40
+ interface CommandContext {
41
+ args?: string;
42
+ }
43
+ interface HookEvent {
44
+ appendSystemContext?(text: string): void;
45
+ prependSystemContext?(text: string): void;
46
+ }
47
+ declare function register(api: OpenClawPluginApi): void;
48
+
49
+ export { type OpenClawPluginApi, type OpenClawPluginConfig, register as default };