@prefactor/openclaw 0.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.
- package/LICENSE +14 -0
- package/README.md +56 -0
- package/dist/index.cjs +5242 -0
- package/dist/index.js +5225 -0
- package/openclaw.plugin.json +86 -0
- package/package.json +47 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "prefactor",
|
|
3
|
+
"name": "@prefactor/openclaw",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"description": "Comprehensive lifecycle event monitoring and instrumentation for OpenClaw",
|
|
6
|
+
"runtime": "node",
|
|
7
|
+
"entry": "./index.ts",
|
|
8
|
+
"configSchema": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"apiUrl": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Prefactor API URL (e.g., https://api.prefactor.dev)"
|
|
14
|
+
},
|
|
15
|
+
"apiKey": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Prefactor API key for authentication"
|
|
18
|
+
},
|
|
19
|
+
"agentId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Agent ID registered in Prefactor"
|
|
22
|
+
},
|
|
23
|
+
"agentVersion": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Optional user-supplied version suffix for this agent deployment",
|
|
26
|
+
"default": "default"
|
|
27
|
+
},
|
|
28
|
+
"logLevel": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": ["debug", "info", "warn", "error"],
|
|
31
|
+
"default": "info"
|
|
32
|
+
},
|
|
33
|
+
"enableMetrics": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": true
|
|
36
|
+
},
|
|
37
|
+
"userInteractionTimeoutMinutes": {
|
|
38
|
+
"type": "number",
|
|
39
|
+
"description": "Timeout for user interaction spans in minutes (default: 5)",
|
|
40
|
+
"default": 5,
|
|
41
|
+
"minimum": 1,
|
|
42
|
+
"maximum": 60
|
|
43
|
+
},
|
|
44
|
+
"sessionTimeoutHours": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "Timeout for synthetic session spans in hours (default: 24)",
|
|
47
|
+
"default": 24,
|
|
48
|
+
"minimum": 1,
|
|
49
|
+
"maximum": 168
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": []
|
|
53
|
+
},
|
|
54
|
+
"uiHints": {
|
|
55
|
+
"apiUrl": {
|
|
56
|
+
"label": "Prefactor API URL",
|
|
57
|
+
"placeholder": "https://api.prefactor.dev"
|
|
58
|
+
},
|
|
59
|
+
"apiKey": {
|
|
60
|
+
"label": "Prefactor API Key",
|
|
61
|
+
"placeholder": "sk_...",
|
|
62
|
+
"sensitive": true
|
|
63
|
+
},
|
|
64
|
+
"agentId": {
|
|
65
|
+
"label": "Agent ID",
|
|
66
|
+
"placeholder": "your-agent-id"
|
|
67
|
+
},
|
|
68
|
+
"agentVersion": {
|
|
69
|
+
"label": "Agent Version Suffix",
|
|
70
|
+
"placeholder": "default"
|
|
71
|
+
},
|
|
72
|
+
"logLevel": {
|
|
73
|
+
"label": "Log Level",
|
|
74
|
+
"placeholder": "info"
|
|
75
|
+
},
|
|
76
|
+
"enableMetrics": {
|
|
77
|
+
"label": "Enable Metrics Collection"
|
|
78
|
+
},
|
|
79
|
+
"userInteractionTimeoutMinutes": {
|
|
80
|
+
"label": "User Interaction Timeout (minutes)"
|
|
81
|
+
},
|
|
82
|
+
"sessionTimeoutHours": {
|
|
83
|
+
"label": "Session Span Timeout (hours)"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@prefactor/openclaw",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "OpenClaw lifecycle event monitoring and instrumentation for Prefactor",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/index.js",
|
|
16
|
+
"dist/index.cjs",
|
|
17
|
+
"openclaw.plugin.json",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/prefactordev/typescript-sdk"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"openclaw",
|
|
28
|
+
"prefactor",
|
|
29
|
+
"tracing",
|
|
30
|
+
"observability",
|
|
31
|
+
"monitoring"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"zod": "^3.23.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"openclaw": "^2026.2.9",
|
|
38
|
+
"typescript": "^5.0.0",
|
|
39
|
+
"@types/node": "^22.0.0"
|
|
40
|
+
},
|
|
41
|
+
"openclaw": {
|
|
42
|
+
"extensions": ["./dist/index.js"]
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"typecheck": "tsc --noEmit"
|
|
46
|
+
}
|
|
47
|
+
}
|