@claw-fact-bus/openclaw-plugin 1.0.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,94 @@
1
+ {
2
+ "id": "fact-bus",
3
+ "name": "Claw Fact Bus Plugin",
4
+ "description": "Integrates OpenClaw with Claw Fact Bus for fact-driven agent coordination",
5
+ "version": "1.0.0",
6
+ "contracts": {
7
+ "tools": [
8
+ "fact_bus_publish",
9
+ "fact_bus_query",
10
+ "fact_bus_claim",
11
+ "fact_bus_release",
12
+ "fact_bus_resolve",
13
+ "fact_bus_validate"
14
+ ]
15
+ },
16
+ "uiHints": {
17
+ "busUrl": {
18
+ "label": "Fact Bus URL",
19
+ "help": "The URL of the Claw Fact Bus server",
20
+ "placeholder": "http://localhost:8080"
21
+ },
22
+ "clawName": {
23
+ "label": "Claw Name",
24
+ "help": "Unique identifier for this Claw agent"
25
+ },
26
+ "clawDescription": {
27
+ "label": "Claw Description",
28
+ "help": "Description of this Claw's capabilities"
29
+ },
30
+ "capabilityOffer": {
31
+ "label": "Capabilities Offered",
32
+ "help": "List of capabilities this Claw can provide"
33
+ },
34
+ "domainInterests": {
35
+ "label": "Domain Interests",
36
+ "help": "List of domains this Claw is interested in"
37
+ },
38
+ "factTypePatterns": {
39
+ "label": "Fact Type Patterns",
40
+ "help": "Glob patterns for fact types to subscribe to (e.g., 'code.*.needed')"
41
+ }
42
+ },
43
+ "configSchema": {
44
+ "type": "object",
45
+ "additionalProperties": false,
46
+ "properties": {
47
+ "busUrl": {
48
+ "type": "string",
49
+ "default": "http://localhost:8080",
50
+ "description": "Fact Bus server URL"
51
+ },
52
+ "clawName": {
53
+ "type": "string",
54
+ "description": "Name identifier for this Claw"
55
+ },
56
+ "clawDescription": {
57
+ "type": "string",
58
+ "description": "Description of this Claw's purpose"
59
+ },
60
+ "capabilityOffer": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string"
64
+ },
65
+ "description": "Capabilities this Claw offers"
66
+ },
67
+ "domainInterests": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ },
72
+ "description": "Domains this Claw is interested in"
73
+ },
74
+ "factTypePatterns": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "string"
78
+ },
79
+ "description": "Fact type patterns to subscribe"
80
+ },
81
+ "autoReconnect": {
82
+ "type": "boolean",
83
+ "default": true,
84
+ "description": "Auto-reconnect WebSocket on disconnect"
85
+ },
86
+ "reconnectInterval": {
87
+ "type": "number",
88
+ "default": 5000,
89
+ "description": "Reconnect interval in milliseconds"
90
+ }
91
+ },
92
+ "required": ["busUrl"]
93
+ }
94
+ }
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@claw-fact-bus/openclaw-plugin",
3
+ "version": "1.0.0",
4
+ "description": "OpenClaw plugin for Claw Fact Bus integration",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "openclaw.plugin.json",
17
+ "LICENSE",
18
+ "README.md"
19
+ ],
20
+ "scripts": {
21
+ "build": "tsup",
22
+ "dev": "tsup --watch",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest",
25
+ "typecheck": "tsc --noEmit",
26
+ "prepublishOnly": "npm run build"
27
+ },
28
+ "keywords": [
29
+ "openclaw",
30
+ "plugin",
31
+ "fact-bus",
32
+ "agent",
33
+ "ai",
34
+ "claw",
35
+ "lobster"
36
+ ],
37
+ "author": "Carter.Yang",
38
+ "license": "MIT",
39
+ "peerDependencies": {
40
+ "openclaw": ">=2026.3.0"
41
+ },
42
+ "optionalDependencies": {
43
+ "ws": "^8.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^22.0.0",
47
+ "@types/ws": "^8.18.1",
48
+ "tsup": "^8.0.0",
49
+ "typescript": "^5.7.0",
50
+ "vitest": "^3.0.0"
51
+ },
52
+ "openclaw": {
53
+ "extensions": [
54
+ "./dist/index.js"
55
+ ]
56
+ },
57
+ "repository": {
58
+ "type": "git",
59
+ "url": "https://github.com/claw-fact-bus/openclaw-plugin.git"
60
+ },
61
+ "bugs": {
62
+ "url": "https://github.com/claw-fact-bus/openclaw-plugin/issues"
63
+ },
64
+ "homepage": "https://github.com/claw-fact-bus/openclaw-plugin#readme"
65
+ }