@alfe.ai/openclaw-database 0.0.17 → 0.0.19
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.cts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin2.cjs +1 -2
- package/dist/plugin2.js +1 -2
- package/package.json +10 -2
package/dist/plugin.d.cts
CHANGED
|
@@ -15,7 +15,7 @@ interface PluginApi {
|
|
|
15
15
|
logger: PluginLogger;
|
|
16
16
|
registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
|
|
17
17
|
registerTool(tool: unknown): void;
|
|
18
|
-
registerService
|
|
18
|
+
registerService(service: {
|
|
19
19
|
id: string;
|
|
20
20
|
start: (ctx: PluginServiceContext) => void | Promise<void>;
|
|
21
21
|
stop?: (ctx: PluginServiceContext) => void | Promise<void>;
|
package/dist/plugin.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ interface PluginApi {
|
|
|
15
15
|
logger: PluginLogger;
|
|
16
16
|
registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
|
|
17
17
|
registerTool(tool: unknown): void;
|
|
18
|
-
registerService
|
|
18
|
+
registerService(service: {
|
|
19
19
|
id: string;
|
|
20
20
|
start: (ctx: PluginServiceContext) => void | Promise<void>;
|
|
21
21
|
stop?: (ctx: PluginServiceContext) => void | Promise<void>;
|
package/dist/plugin2.cjs
CHANGED
|
@@ -507,7 +507,7 @@ const plugin = {
|
|
|
507
507
|
}
|
|
508
508
|
log.info("Database plugin deactivated");
|
|
509
509
|
};
|
|
510
|
-
|
|
510
|
+
api.registerService({
|
|
511
511
|
id: "alfe-database-mongo",
|
|
512
512
|
start() {
|
|
513
513
|
startDatabaseService();
|
|
@@ -516,7 +516,6 @@ const plugin = {
|
|
|
516
516
|
await stopDatabaseService();
|
|
517
517
|
}
|
|
518
518
|
});
|
|
519
|
-
else startDatabaseService();
|
|
520
519
|
},
|
|
521
520
|
async deactivate(api) {
|
|
522
521
|
g[ACTIVATED_KEY] = false;
|
package/dist/plugin2.js
CHANGED
|
@@ -507,7 +507,7 @@ const plugin = {
|
|
|
507
507
|
}
|
|
508
508
|
log.info("Database plugin deactivated");
|
|
509
509
|
};
|
|
510
|
-
|
|
510
|
+
api.registerService({
|
|
511
511
|
id: "alfe-database-mongo",
|
|
512
512
|
start() {
|
|
513
513
|
startDatabaseService();
|
|
@@ -516,7 +516,6 @@ const plugin = {
|
|
|
516
516
|
await stopDatabaseService();
|
|
517
517
|
}
|
|
518
518
|
});
|
|
519
|
-
else startDatabaseService();
|
|
520
519
|
},
|
|
521
520
|
async deactivate(api) {
|
|
522
521
|
g[ACTIVATED_KEY] = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/openclaw-database",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "OpenClaw database plugin — MongoDB access for agents via MCP tools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/plugin.js",
|
|
@@ -28,9 +28,17 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"mongodb": "^6.12.0",
|
|
31
|
-
"@alfe.ai/agent-api-client": "0.1.
|
|
31
|
+
"@alfe.ai/agent-api-client": "0.1.3",
|
|
32
32
|
"@alfe.ai/config": "0.0.8"
|
|
33
33
|
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"openclaw": ">=2026.3.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"openclaw": {
|
|
39
|
+
"optional": true
|
|
40
|
+
}
|
|
41
|
+
},
|
|
34
42
|
"license": "UNLICENSED",
|
|
35
43
|
"scripts": {
|
|
36
44
|
"build": "tsdown",
|