@aionis/openclaw-adapter 0.1.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/CHANGELOG.md +13 -0
- package/PRODUCT.md +30 -0
- package/README.md +341 -0
- package/dist/adapter/heuristics.d.ts +4 -0
- package/dist/adapter/heuristics.js +52 -0
- package/dist/adapter/loop-control-adapter.d.ts +35 -0
- package/dist/adapter/loop-control-adapter.js +347 -0
- package/dist/adapter/state.d.ts +47 -0
- package/dist/adapter/state.js +53 -0
- package/dist/binding/openclaw-hook-binding.d.ts +3 -0
- package/dist/binding/openclaw-hook-binding.js +36 -0
- package/dist/client/aionis-http-client.d.ts +108 -0
- package/dist/client/aionis-http-client.js +216 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/plugin.d.ts +15 -0
- package/dist/plugin.js +100 -0
- package/dist/types/aionis.d.ts +129 -0
- package/dist/types/aionis.js +1 -0
- package/dist/types/config.d.ts +36 -0
- package/dist/types/config.js +10 -0
- package/dist/types/openclaw.d.ts +81 -0
- package/dist/types/openclaw.js +1 -0
- package/examples/openclaw.json +34 -0
- package/openclaw.plugin.json +54 -0
- package/package.json +64 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "openclaw-aionis-adapter",
|
|
3
|
+
"name": "OpenClaw Aionis Adapter",
|
|
4
|
+
"description": "Standalone OpenClaw adapter for Aionis tool-loop control, policy gating, replay escape, and handoff fallback.",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"configSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"baseUrl": { "type": "string" },
|
|
11
|
+
"apiKey": { "type": "string" },
|
|
12
|
+
"authBearer": { "type": "string" },
|
|
13
|
+
"tenantId": { "type": "string" },
|
|
14
|
+
"actor": { "type": "string" },
|
|
15
|
+
"scope": { "type": "string" },
|
|
16
|
+
"scopePrefix": { "type": "string" },
|
|
17
|
+
"scopeMode": { "type": "string", "enum": ["fixed", "session", "project"] },
|
|
18
|
+
"enabled": { "type": "boolean" },
|
|
19
|
+
"strictToolBlocking": { "type": "boolean" },
|
|
20
|
+
"replayDispatchEnabled": { "type": "boolean" },
|
|
21
|
+
"handoffFallbackEnabled": { "type": "boolean" },
|
|
22
|
+
"replayPlaybookId": { "type": "string" },
|
|
23
|
+
"replayVersion": { "type": "number" },
|
|
24
|
+
"replayMode": { "type": "string", "enum": ["simulate", "strict", "guided"] },
|
|
25
|
+
"replayMaxSteps": { "type": "number" },
|
|
26
|
+
"maxSteps": { "type": "number" },
|
|
27
|
+
"maxSameToolStreak": { "type": "number" },
|
|
28
|
+
"maxDuplicateObservationStreak": { "type": "number" },
|
|
29
|
+
"maxNoProgressStreak": { "type": "number" },
|
|
30
|
+
"maxEstimatedTokenBurn": { "type": "number" },
|
|
31
|
+
"maxBroadTestInvocations": { "type": "number" },
|
|
32
|
+
"maxBroadScanInvocations": { "type": "number" }
|
|
33
|
+
},
|
|
34
|
+
"required": []
|
|
35
|
+
},
|
|
36
|
+
"uiHints": {
|
|
37
|
+
"baseUrl": { "label": "Aionis Base URL", "help": "Example: http://127.0.0.1:3321" },
|
|
38
|
+
"apiKey": { "label": "Aionis API Key", "sensitive": true },
|
|
39
|
+
"authBearer": { "label": "Aionis Bearer Token", "sensitive": true, "advanced": true },
|
|
40
|
+
"tenantId": { "label": "Tenant ID" },
|
|
41
|
+
"actor": { "label": "Actor" },
|
|
42
|
+
"scopeMode": { "label": "Scope Mode", "help": "project is recommended" },
|
|
43
|
+
"scopePrefix": { "label": "Scope Prefix" },
|
|
44
|
+
"replayPlaybookId": { "label": "Replay Playbook ID", "help": "Optional deterministic replay escape hatch" },
|
|
45
|
+
"strictToolBlocking": { "label": "Strict Tool Blocking" },
|
|
46
|
+
"replayDispatchEnabled": { "label": "Replay Dispatch Enabled" },
|
|
47
|
+
"handoffFallbackEnabled": { "label": "Handoff Fallback Enabled" },
|
|
48
|
+
"maxSteps": { "label": "Max Steps", "advanced": true },
|
|
49
|
+
"maxSameToolStreak": { "label": "Max Same Tool Streak", "advanced": true },
|
|
50
|
+
"maxDuplicateObservationStreak": { "label": "Max Duplicate Observation Streak", "advanced": true },
|
|
51
|
+
"maxNoProgressStreak": { "label": "Max No Progress Streak", "advanced": true },
|
|
52
|
+
"maxEstimatedTokenBurn": { "label": "Max Estimated Token Burn", "advanced": true }
|
|
53
|
+
}
|
|
54
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aionis/openclaw-adapter",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Standalone OpenClaw adapter for Aionis execution control.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Cognary/clawbot-aionis-adapter.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/Cognary/clawbot-aionis-adapter/issues"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/Cognary/clawbot-aionis-adapter#readme",
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"main": "dist/index.js",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"openclaw.plugin.json",
|
|
21
|
+
"README.md",
|
|
22
|
+
"PRODUCT.md",
|
|
23
|
+
"CHANGELOG.md",
|
|
24
|
+
"examples"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc -p tsconfig.json --noEmit false",
|
|
28
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
29
|
+
"test": "npm run build && node --test test/*.test.mjs",
|
|
30
|
+
"bench:anti-loop": "npm run build && node scripts/anti-loop-benchmark.mjs",
|
|
31
|
+
"smoke:openclaw-load": "npm run build && python3 scripts/openclaw-load-smoke.py",
|
|
32
|
+
"bench:openclaw-ab": "npm run build && node scripts/openclaw-anti-loop-ab-benchmark.mjs",
|
|
33
|
+
"bench:live-task": "npm run build && node scripts/live-task-benchmark.mjs",
|
|
34
|
+
"bench:semi-live-token": "npm run build && node scripts/semi-live-token-benchmark.mjs",
|
|
35
|
+
"bench:completion": "npm run build && node scripts/completion-benchmark.mjs",
|
|
36
|
+
"bench:loader-backed-semi-live-token": "python3 scripts/openclaw-loader-backed-semi-live-benchmark.py",
|
|
37
|
+
"smoke:gateway-backed-feasibility": "python3 scripts/openclaw-gateway-backed-feasibility.py",
|
|
38
|
+
"smoke:adapter-activity": "python3 scripts/openclaw-adapter-activity-probe.py",
|
|
39
|
+
"bench:google-runtime": "python3 scripts/openclaw-google-runtime-benchmark.py",
|
|
40
|
+
"bench:google-runtime-ab": "python3 scripts/openclaw-google-runtime-benchmark.py --repeats 5"
|
|
41
|
+
},
|
|
42
|
+
"exports": {
|
|
43
|
+
".": "./dist/index.js",
|
|
44
|
+
"./plugin": "./dist/plugin.js"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"aionis",
|
|
48
|
+
"openclaw",
|
|
49
|
+
"adapter",
|
|
50
|
+
"loop-control",
|
|
51
|
+
"policy",
|
|
52
|
+
"replay",
|
|
53
|
+
"handoff"
|
|
54
|
+
],
|
|
55
|
+
"openclaw": {
|
|
56
|
+
"extensions": [
|
|
57
|
+
"./dist/plugin.js"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/node": "^24.3.0",
|
|
62
|
+
"typescript": "^5.9.2"
|
|
63
|
+
}
|
|
64
|
+
}
|