forked from EverMind-AI/EverOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
19 lines (15 loc) · 684 Bytes
/
Copy pathindex.js
File metadata and controls
19 lines (15 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* EverOS OpenClaw Plugin — entry point.
* Registers the EverOS backend as a ContextEngine for memory management.
*/
import { createRequire } from "node:module";
import { createContextEngine } from "./src/engine.js";
const require = createRequire(import.meta.url);
const pluginMeta = require("./openclaw.plugin.json");
export default function register(api) {
const log = api.logger || { info: (...a) => console.log(...a), warn: (...a) => console.warn(...a) };
log.info(`[${pluginMeta.id}] Registering EverOS OpenClaw Plugin`);
api.registerContextEngine(pluginMeta.id, (pluginConfig) => {
return createContextEngine(pluginMeta, pluginConfig, api.logger);
});
}