@moltenbot/openclaw-plugin-statocyst 0.1.1 → 0.1.2
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 +8 -8
- package/dist/plugin.js +2 -2
- package/dist/statocyst-client.js +2 -2
- package/openclaw.plugin.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,13 +26,13 @@ openclaw gateway restart
|
|
|
26
26
|
|
|
27
27
|
## Configure
|
|
28
28
|
|
|
29
|
-
Set plugin config under `plugins.entries.statocyst
|
|
29
|
+
Set plugin config under `plugins.entries.openclaw-plugin-statocyst.config`:
|
|
30
30
|
|
|
31
31
|
```json
|
|
32
32
|
{
|
|
33
33
|
"plugins": {
|
|
34
34
|
"entries": {
|
|
35
|
-
"statocyst
|
|
35
|
+
"openclaw-plugin-statocyst": {
|
|
36
36
|
"enabled": true,
|
|
37
37
|
"config": {
|
|
38
38
|
"baseUrl": "https://hub.example.com/v1",
|
|
@@ -60,10 +60,10 @@ File-based config example:
|
|
|
60
60
|
{
|
|
61
61
|
"plugins": {
|
|
62
62
|
"entries": {
|
|
63
|
-
"statocyst
|
|
63
|
+
"openclaw-plugin-statocyst": {
|
|
64
64
|
"enabled": true,
|
|
65
65
|
"config": {
|
|
66
|
-
"configFile": "/etc/molten/statocyst
|
|
66
|
+
"configFile": "/etc/molten/openclaw-plugin-statocyst.json"
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ File-based config example:
|
|
|
71
71
|
}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
`/etc/molten/statocyst
|
|
74
|
+
`/etc/molten/openclaw-plugin-statocyst.json`:
|
|
75
75
|
|
|
76
76
|
```json
|
|
77
77
|
{
|
|
@@ -82,7 +82,7 @@ File-based config example:
|
|
|
82
82
|
}
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
You can also set `STATOCYST_CONFIG_FILE=/path/to/statocyst
|
|
85
|
+
You can also set `STATOCYST_CONFIG_FILE=/path/to/openclaw-plugin-statocyst.json` in the OpenClaw runtime environment.
|
|
86
86
|
When both inline config and `configFile` are present, inline values take precedence.
|
|
87
87
|
|
|
88
88
|
## Statocyst usage registration
|
|
@@ -90,7 +90,7 @@ When both inline config and `configFile` are present, inline values take precede
|
|
|
90
90
|
This plugin actively records usage in Statocyst:
|
|
91
91
|
|
|
92
92
|
- `POST /v1/openclaw/messages/register-plugin` is called before session checks and skill requests.
|
|
93
|
-
- Statocyst stores plugin metadata on the agent profile under `metadata.plugins.statocyst
|
|
93
|
+
- Statocyst stores plugin metadata on the agent profile under `metadata.plugins.openclaw-plugin-statocyst`.
|
|
94
94
|
- Statocyst appends agent activity entries for:
|
|
95
95
|
- plugin registration (`openclaw_plugin`)
|
|
96
96
|
- OpenClaw adapter usage (`openclaw_adapter` events across publish/pull/ack/nack/status/ws)
|
|
@@ -100,7 +100,7 @@ You can inspect this data via `GET /v1/agents/me`.
|
|
|
100
100
|
## OpenClaw onboarding flow
|
|
101
101
|
|
|
102
102
|
1. Create/bind the Statocyst agent token (`POST /v1/agents/bind-tokens`, then `POST /v1/agents/bind`).
|
|
103
|
-
2. Configure plugin entry in OpenClaw (`plugins.entries.statocyst
|
|
103
|
+
2. Configure plugin entry in OpenClaw (`plugins.entries.openclaw-plugin-statocyst.config`).
|
|
104
104
|
3. Ensure your tool policy allows plugin tools:
|
|
105
105
|
- allow `statocyst_skill_request` and `statocyst_session_status` (or allow the plugin id).
|
|
106
106
|
4. Restart OpenClaw gateway.
|
package/dist/plugin.js
CHANGED
|
@@ -130,10 +130,10 @@ function buildClient(api, factory) {
|
|
|
130
130
|
export function createStatocystOpenClawPlugin(deps) {
|
|
131
131
|
const factory = deps?.createClient ?? ((config) => new StatocystClient(config));
|
|
132
132
|
return {
|
|
133
|
-
id: "statocyst
|
|
133
|
+
id: "openclaw-plugin-statocyst",
|
|
134
134
|
name: "Statocyst Realtime",
|
|
135
135
|
description: "Molten AI maintained plugin for realtime skill request/result exchange via Statocyst.",
|
|
136
|
-
version: "0.1.
|
|
136
|
+
version: "0.1.2",
|
|
137
137
|
register: (api) => {
|
|
138
138
|
const client = buildClient(api, factory);
|
|
139
139
|
api.registerTool(skillRequestTool(() => client));
|
package/dist/statocyst-client.js
CHANGED
|
@@ -3,9 +3,9 @@ import { readFileSync } from "node:fs";
|
|
|
3
3
|
import { resolve as resolvePath } from "node:path";
|
|
4
4
|
import WebSocket from "ws";
|
|
5
5
|
const defaultTimeoutMs = 20_000;
|
|
6
|
-
const defaultPluginID = "statocyst
|
|
6
|
+
const defaultPluginID = "openclaw-plugin-statocyst";
|
|
7
7
|
const defaultPluginPackage = "@moltenbot/openclaw-plugin-statocyst";
|
|
8
|
-
const defaultPluginVersion = "0.1.
|
|
8
|
+
const defaultPluginVersion = "0.1.2";
|
|
9
9
|
const defaultDeps = {
|
|
10
10
|
fetchImpl: fetch,
|
|
11
11
|
wsFactory: (url, headers) => new WebSocket(url, { headers }),
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "statocyst
|
|
2
|
+
"id": "openclaw-plugin-statocyst",
|
|
3
3
|
"name": "Statocyst Realtime",
|
|
4
4
|
"description": "Realtime Statocyst messaging and skill request/result tools for OpenClaw.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.2",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": ["statocyst_skill_request", "statocyst_session_status"]
|
|
8
8
|
},
|
package/package.json
CHANGED