@twsxtd/hapi-openclaw 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.
@@ -0,0 +1,60 @@
1
+ {
2
+ "id": "hapi-openclaw",
3
+ "name": "HAPI OpenClaw Adapter",
4
+ "description": "Bridge HAPI's OpenClaw UI to an OpenClaw-native plugin route surface.",
5
+ "uiHints": {
6
+ "hapiBaseUrl": {
7
+ "label": "HAPI Base URL",
8
+ "help": "Base URL for the HAPI hub callback endpoint, for example http://127.0.0.1:3006."
9
+ },
10
+ "sharedSecret": {
11
+ "label": "Shared Secret",
12
+ "help": "Shared secret used for HAPI bearer auth and plugin callback signing.",
13
+ "sensitive": true
14
+ },
15
+ "namespace": {
16
+ "label": "Namespace",
17
+ "help": "Namespace attached to normalized callback events when omitted by HAPI."
18
+ },
19
+ "prototypeCaptureSessionKey": {
20
+ "label": "Prototype Capture Session Key",
21
+ "help": "Optional OpenClaw session key to record transcript updates for milestone-1 event-shape inspection.",
22
+ "advanced": true
23
+ },
24
+ "prototypeCaptureFileName": {
25
+ "label": "Prototype Capture File",
26
+ "help": "Optional file name for transcript-capture JSONL under the plugin state directory.",
27
+ "advanced": true
28
+ }
29
+ },
30
+ "configSchema": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": [
34
+ "hapiBaseUrl",
35
+ "sharedSecret"
36
+ ],
37
+ "properties": {
38
+ "hapiBaseUrl": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "sharedSecret": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "namespace": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "prototypeCaptureSessionKey": {
51
+ "type": "string",
52
+ "minLength": 1
53
+ },
54
+ "prototypeCaptureFileName": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ }
58
+ }
59
+ }
60
+ }
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@twsxtd/hapi-openclaw",
3
+ "version": "0.1.0",
4
+ "description": "Native OpenClaw plugin that bridges HAPI to the OpenClaw Gateway route surface.",
5
+ "license": "AGPL-3.0-only",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "exports": {
9
+ ".": "./dist/index.js",
10
+ "./openclaw.plugin.json": "./openclaw.plugin.json"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "openclaw.plugin.json",
15
+ "README.md"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "scripts": {
21
+ "test": "bun test",
22
+ "typecheck": "tsc --noEmit",
23
+ "build": "bun build src/index.ts --outfile dist/index.js --target node",
24
+ "prepack": "bun run build"
25
+ },
26
+ "dependencies": {
27
+ "hono": "^4.11.2",
28
+ "openclaw": "2026.4.11"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": ">=25",
32
+ "bun-types": "^1.3.5",
33
+ "typescript": "^5"
34
+ },
35
+ "openclaw": {
36
+ "extensions": [
37
+ "./dist/index.js"
38
+ ],
39
+ "compat": {
40
+ "pluginApi": ">=2026.4.11",
41
+ "minGatewayVersion": "2026.4.11"
42
+ },
43
+ "build": {
44
+ "openclawVersion": "2026.4.11",
45
+ "pluginSdkVersion": "2026.4.11"
46
+ }
47
+ }
48
+ }