@aionis/openclaw-adapter 0.1.0 → 0.1.1
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/CHANGELOG.md +11 -0
- package/PRODUCT.md +2 -2
- package/README.md +6 -6
- package/dist/binding/openclaw-hook-binding.js +1 -1
- package/dist/plugin.js +5 -5
- package/examples/openclaw.json +2 -2
- package/openclaw.plugin.json +3 -3
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
Manifest and install-surface alignment release.
|
|
6
|
+
|
|
7
|
+
Included:
|
|
8
|
+
|
|
9
|
+
1. plugin id unified to `openclaw-adapter`
|
|
10
|
+
2. OpenClaw config examples updated to use `plugins.allow` and `plugins.entries.openclaw-adapter`
|
|
11
|
+
3. install/verify docs updated to match the npm package and plugin id actually intended for users
|
|
12
|
+
4. local install smoke verified against the packed tarball with no manifest/package name mismatch warning
|
|
13
|
+
|
|
3
14
|
## 0.1.0
|
|
4
15
|
|
|
5
16
|
Initial standalone adapter release surface.
|
package/PRODUCT.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# OpenClaw
|
|
1
|
+
# Aionis OpenClaw Adapter
|
|
2
2
|
|
|
3
|
-
`openclaw-
|
|
3
|
+
`openclaw-adapter` is a standalone OpenClaw integration layer for Aionis.
|
|
4
4
|
|
|
5
5
|
It is a dedicated adapter that uses OpenClaw's host hook surface to add:
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# OpenClaw
|
|
1
|
+
# Aionis OpenClaw Adapter
|
|
2
2
|
|
|
3
3
|
A standalone adapter for connecting OpenClaw to Aionis execution control.
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ npx @aionis/sdk@0.2.19 health
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
openclaw plugins install @aionis/openclaw-adapter
|
|
18
|
-
openclaw plugins info openclaw-
|
|
18
|
+
openclaw plugins info openclaw-adapter --json
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
3. Add the plugin config shown below.
|
|
@@ -34,9 +34,9 @@ Minimum plugin config:
|
|
|
34
34
|
```json
|
|
35
35
|
{
|
|
36
36
|
"plugins": {
|
|
37
|
-
"allow": ["openclaw-
|
|
37
|
+
"allow": ["openclaw-adapter"],
|
|
38
38
|
"entries": {
|
|
39
|
-
"openclaw-
|
|
39
|
+
"openclaw-adapter": {
|
|
40
40
|
"enabled": true,
|
|
41
41
|
"config": {
|
|
42
42
|
"baseUrl": "http://127.0.0.1:3321",
|
|
@@ -64,8 +64,8 @@ Current package metadata is prepared for publish:
|
|
|
64
64
|
|
|
65
65
|
Current boundary:
|
|
66
66
|
|
|
67
|
-
1.
|
|
68
|
-
2.
|
|
67
|
+
1. publish workflow is not set up in this repo yet
|
|
68
|
+
2. registry users need `0.1.1` or later to get the aligned `openclaw-adapter` plugin id
|
|
69
69
|
|
|
70
70
|
## What it is
|
|
71
71
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function attachToOpenClawHost(api, adapter) {
|
|
2
2
|
if (typeof api.on !== "function") {
|
|
3
|
-
api.logger.warn("openclaw-
|
|
3
|
+
api.logger.warn("openclaw-adapter: host hook API unavailable; binding skipped");
|
|
4
4
|
return;
|
|
5
5
|
}
|
|
6
6
|
api.on("session_start", async (event, ctx) => {
|
package/dist/plugin.js
CHANGED
|
@@ -50,7 +50,7 @@ function createReplayHintResolver(rawCfg) {
|
|
|
50
50
|
function resolveConfig(rawCfg) {
|
|
51
51
|
const baseUrl = asString(rawCfg.baseUrl, process.env.AIONIS_BASE_URL ?? "http://127.0.0.1:3321");
|
|
52
52
|
const tenantId = asString(rawCfg.tenantId, process.env.AIONIS_TENANT_ID ?? "default");
|
|
53
|
-
const actor = asString(rawCfg.actor, process.env.AIONIS_ACTOR ?? "openclaw-
|
|
53
|
+
const actor = asString(rawCfg.actor, process.env.AIONIS_ACTOR ?? "openclaw-adapter");
|
|
54
54
|
const scopePrefix = asString(rawCfg.scopePrefix, process.env.AIONIS_SCOPE_PREFIX ?? "openclaw");
|
|
55
55
|
const scopeMode = asString(rawCfg.scopeMode, "project") || "project";
|
|
56
56
|
const fixedScope = asString(rawCfg.scope, `${scopePrefix}:default`);
|
|
@@ -78,10 +78,10 @@ function resolveConfig(rawCfg) {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
const plugin = {
|
|
81
|
-
id: "openclaw-
|
|
82
|
-
name: "OpenClaw
|
|
81
|
+
id: "openclaw-adapter",
|
|
82
|
+
name: "Aionis OpenClaw Adapter",
|
|
83
83
|
description: "Tool-loop control adapter for Aionis-backed policy, replay, handoff, and evidence capture.",
|
|
84
|
-
version: "0.1.
|
|
84
|
+
version: "0.1.1",
|
|
85
85
|
register(api) {
|
|
86
86
|
const rawCfg = asRecord(api.pluginConfig);
|
|
87
87
|
const resolved = resolveConfig(rawCfg);
|
|
@@ -94,7 +94,7 @@ const plugin = {
|
|
|
94
94
|
});
|
|
95
95
|
const adapter = new AionisLoopControlAdapter(client, resolved);
|
|
96
96
|
attachToOpenClawHost(api, adapter);
|
|
97
|
-
api.logger.info(`openclaw-
|
|
97
|
+
api.logger.info(`openclaw-adapter: registered base=${resolved.baseUrl} tenant=${resolved.tenantId} replayDispatch=${resolved.replayDispatchEnabled} handoffFallback=${resolved.handoffFallbackEnabled}`);
|
|
98
98
|
},
|
|
99
99
|
};
|
|
100
100
|
export default plugin;
|
package/examples/openclaw.json
CHANGED
package/openclaw.plugin.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "openclaw-
|
|
3
|
-
"name": "OpenClaw
|
|
2
|
+
"id": "openclaw-adapter",
|
|
3
|
+
"name": "Aionis OpenClaw Adapter",
|
|
4
4
|
"description": "Standalone OpenClaw adapter for Aionis tool-loop control, policy gating, replay escape, and handoff fallback.",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.1",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aionis/openclaw-adapter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Standalone OpenClaw adapter for Aionis execution control.",
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "tsc -p tsconfig.json --noEmit false",
|
|
28
|
+
"prepack": "npm run build",
|
|
28
29
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
29
30
|
"test": "npm run build && node --test test/*.test.mjs",
|
|
30
31
|
"bench:anti-loop": "npm run build && node scripts/anti-loop-benchmark.mjs",
|