@kynver-app/openclaw-agent-os 0.1.19 → 0.1.20
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 +31 -10
- package/dist/index.js +3 -2
- package/dist/index.js.map +2 -2
- package/package.json +5 -1
- package/scripts/bootstrap-openclaw.mjs +136 -0
package/README.md
CHANGED
|
@@ -24,6 +24,19 @@ openclaw plugins install @kynver-app/openclaw-agent-os@latest --force
|
|
|
24
24
|
If your OpenClaw install does not support package installs yet, install this package into the OpenClaw
|
|
25
25
|
extensions directory and enable the plugin from there. The runtime entry point is `dist/index.js`.
|
|
26
26
|
|
|
27
|
+
For a wiped machine or new-user setup, use the packaged bootstrap command:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
export KYNVER_API_URL="https://www.kynver.com"
|
|
31
|
+
export KYNVER_API_KEY="kynver_xxx"
|
|
32
|
+
export KYNVER_HARNESS_REPO="/path/to/Kynver" # optional, enables kynver_harness_* tools
|
|
33
|
+
|
|
34
|
+
npx -y -p @kynver-app/openclaw-agent-os@latest kynver-openclaw-agent-os-bootstrap
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
See `docs/runbooks/openclaw-agent-os-bootstrap.md` in the Kynver repo for the
|
|
38
|
+
full recovery/onboarding runbook.
|
|
39
|
+
|
|
27
40
|
## Configure
|
|
28
41
|
|
|
29
42
|
Recommended direct HTTP config:
|
|
@@ -31,14 +44,19 @@ Recommended direct HTTP config:
|
|
|
31
44
|
```json
|
|
32
45
|
{
|
|
33
46
|
"plugins": {
|
|
34
|
-
"
|
|
47
|
+
"entries": {
|
|
35
48
|
"kynver-agent-os-tools": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
"enabled": true,
|
|
50
|
+
"config": {
|
|
51
|
+
"kynverApiUrl": "https://www.kynver.com",
|
|
52
|
+
"kynverApiKey": "kynver_xxx",
|
|
53
|
+
"enableDirectHttp": true,
|
|
54
|
+
"enableSessionLifecycle": true,
|
|
55
|
+
"enableRuntimeSkillManifest": true,
|
|
56
|
+
"enableContinuityGuidance": true,
|
|
57
|
+
"enableHarnessTools": true,
|
|
58
|
+
"harnessRepo": "/path/to/Kynver"
|
|
59
|
+
}
|
|
42
60
|
}
|
|
43
61
|
}
|
|
44
62
|
}
|
|
@@ -57,10 +75,13 @@ Compatibility config through an existing `mcporter.json` still works:
|
|
|
57
75
|
```json
|
|
58
76
|
{
|
|
59
77
|
"plugins": {
|
|
60
|
-
"
|
|
78
|
+
"entries": {
|
|
61
79
|
"kynver-agent-os-tools": {
|
|
62
|
-
"
|
|
63
|
-
"
|
|
80
|
+
"enabled": true,
|
|
81
|
+
"config": {
|
|
82
|
+
"agentOsServer": "kynver-agent-os",
|
|
83
|
+
"mcporterConfigPath": "<home>/.openclaw/workspace/config/mcporter.json"
|
|
84
|
+
}
|
|
64
85
|
}
|
|
65
86
|
}
|
|
66
87
|
}
|
package/dist/index.js
CHANGED
|
@@ -75,7 +75,8 @@ var pluginConfigSchema = {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
function resolvePluginConfig(
|
|
78
|
+
function resolvePluginConfig(rawEntry) {
|
|
79
|
+
const raw = rawEntry?.config && typeof rawEntry.config === "object" && !Array.isArray(rawEntry.config) ? rawEntry.config : rawEntry;
|
|
79
80
|
const rawServer = typeof raw?.agentOsServer === "string" && raw.agentOsServer.trim() ? raw.agentOsServer.trim() : "kynver-agent-os";
|
|
80
81
|
if (!/^[a-zA-Z0-9_-]+$/.test(rawServer)) {
|
|
81
82
|
throw new Error("Invalid agentOsServer: use letters, numbers, hyphens, and underscores only.");
|
|
@@ -2731,7 +2732,7 @@ var plugin = {
|
|
|
2731
2732
|
description: "First-class OpenClaw tools for Kynver AgentOS, using direct Kynver HTTP with mcporter fallback.",
|
|
2732
2733
|
configSchema: pluginConfigSchema,
|
|
2733
2734
|
register(api) {
|
|
2734
|
-
const config = resolvePluginConfig(api?.config);
|
|
2735
|
+
const config = resolvePluginConfig(api?.pluginConfig ?? api?.config);
|
|
2735
2736
|
const tools = createAllTools(config);
|
|
2736
2737
|
for (const tool of tools) {
|
|
2737
2738
|
api.registerTool(tool);
|