@hydra_db/openclaw 0.1.1 → 0.2.0
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/README.md +3 -3
- package/commands/onboarding.ts +5 -5
- package/index.ts +3 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ State-of-the-art agentic memory for OpenClaw powered by [Hydra DB](https://hydra
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
openclaw plugins install @hydra_db/openclaw
|
|
8
|
+
openclaw plugins install @hydra_db/openclaw
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Restart OpenClaw after installing.
|
|
@@ -32,7 +32,7 @@ openclaw hydra onboard
|
|
|
32
32
|
openclaw hydra onboard --advanced
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The wizard guides you through configuration with colored prompts and **writes your config to** `plugins.entries.openclaw
|
|
35
|
+
The wizard guides you through configuration with colored prompts and **writes your config to** `plugins.entries.openclaw.config` inside OpenClaw's settings file.
|
|
36
36
|
|
|
37
37
|
The path is resolved in the same order OpenClaw itself uses:
|
|
38
38
|
|
|
@@ -74,7 +74,7 @@ Or configure directly in OpenClaw's settings file:
|
|
|
74
74
|
{
|
|
75
75
|
"plugins": {
|
|
76
76
|
"entries": {
|
|
77
|
-
"openclaw
|
|
77
|
+
"openclaw": {
|
|
78
78
|
"enabled": true,
|
|
79
79
|
"config": {
|
|
80
80
|
"apiKey": "${HYDRA_OPENCLAW_API_KEY}",
|
package/commands/onboarding.ts
CHANGED
|
@@ -239,11 +239,11 @@ function persistConfig(configObj: Record<string, unknown>): boolean {
|
|
|
239
239
|
|
|
240
240
|
if (!root.plugins) root.plugins = {}
|
|
241
241
|
if (!root.plugins.entries) root.plugins.entries = {}
|
|
242
|
-
if (!root.plugins.entries["openclaw
|
|
243
|
-
root.plugins.entries["openclaw
|
|
242
|
+
if (!root.plugins.entries["openclaw"]) {
|
|
243
|
+
root.plugins.entries["openclaw"] = { enabled: true }
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
root.plugins.entries["openclaw
|
|
246
|
+
root.plugins.entries["openclaw"].config = configObj
|
|
247
247
|
|
|
248
248
|
fs.writeFileSync(OPENCLAW_CONFIG_PATH, JSON.stringify(root, null, 2) + "\n")
|
|
249
249
|
return true
|
|
@@ -311,7 +311,7 @@ async function runBasicWizard(cfg?: HydraPluginConfig): Promise<void> {
|
|
|
311
311
|
}
|
|
312
312
|
} else {
|
|
313
313
|
console.log()
|
|
314
|
-
console.log(` ${c.yellow}${c.bold}Add to openclaw.json plugins.entries.openclaw
|
|
314
|
+
console.log(` ${c.yellow}${c.bold}Add to openclaw.json plugins.entries.openclaw.config:${c.reset}`)
|
|
315
315
|
console.log()
|
|
316
316
|
for (const line of JSON.stringify(configObj, null, 2).split("\n")) {
|
|
317
317
|
console.log(` ${c.cyan}${line}${c.reset}`)
|
|
@@ -415,7 +415,7 @@ async function runAdvancedWizard(cfg?: HydraPluginConfig): Promise<void> {
|
|
|
415
415
|
}
|
|
416
416
|
} else {
|
|
417
417
|
console.log()
|
|
418
|
-
console.log(` ${c.yellow}${c.bold}Add to openclaw.json plugins.entries.openclaw
|
|
418
|
+
console.log(` ${c.yellow}${c.bold}Add to openclaw.json plugins.entries.openclaw.config:${c.reset}`)
|
|
419
419
|
console.log()
|
|
420
420
|
for (const line of JSON.stringify(configObj, null, 2).split("\n")) {
|
|
421
421
|
console.log(` ${c.cyan}${line}${c.reset}`)
|
package/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ const NOT_CONFIGURED_MSG =
|
|
|
17
17
|
"[hydra-db] Not configured. Run `openclaw hydra onboard` to set up credentials."
|
|
18
18
|
|
|
19
19
|
export default {
|
|
20
|
-
id: "openclaw
|
|
20
|
+
id: "openclaw",
|
|
21
21
|
name: "Hydra DB",
|
|
22
22
|
description:
|
|
23
23
|
"State-of-the-art agentic memory for OpenClaw powered by Hydra DB — auto-capture, recall, and graph-enriched context",
|
|
@@ -44,7 +44,7 @@ export default {
|
|
|
44
44
|
|
|
45
45
|
if (!cfg) {
|
|
46
46
|
api.registerService({
|
|
47
|
-
id: "openclaw
|
|
47
|
+
id: "openclaw",
|
|
48
48
|
start: () => console.log(NOT_CONFIGURED_MSG),
|
|
49
49
|
stop: () => {},
|
|
50
50
|
})
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
97
97
|
registerOnboardingSlashCommands(api, client, cfg)
|
|
98
98
|
|
|
99
99
|
api.registerService({
|
|
100
|
-
id: "openclaw
|
|
100
|
+
id: "openclaw",
|
|
101
101
|
start: () => log.info("plugin started"),
|
|
102
102
|
stop: () => log.info("plugin stopped"),
|
|
103
103
|
})
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hydra_db/openclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenClaw plugin for Hydra DB — the State-of-the-art agentic memory system with auto-capture, recall, and knowledge graph context for open-claw",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"typescript": "^5.9.3"
|
|
26
26
|
}
|
|
27
|
-
}
|
|
27
|
+
}
|