@cnpinsight/cnpclawinsights 2.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/README.md +246 -0
- package/dist/api.js +4 -0
- package/dist/index.js +1611 -0
- package/openclaw.plugin.json +100 -0
- package/package.json +65 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cnpclawinsights",
|
|
3
|
+
"activation": {
|
|
4
|
+
"onStartup": true
|
|
5
|
+
},
|
|
6
|
+
"configSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"enabled": {
|
|
11
|
+
"type": "boolean"
|
|
12
|
+
},
|
|
13
|
+
"otel": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"enabled": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"protocol": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"http/protobuf"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"endpoint": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"traces": {
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"tracesEndpoint": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"metrics": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"metricsEndpoint": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"logs": {
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"logsEndpoint": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"serviceName": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"sampleRate": {
|
|
51
|
+
"type": "number",
|
|
52
|
+
"minimum": 0,
|
|
53
|
+
"maximum": 1
|
|
54
|
+
},
|
|
55
|
+
"flushIntervalMs": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"minimum": 1000
|
|
58
|
+
},
|
|
59
|
+
"headers": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"captureContent": {
|
|
66
|
+
"oneOf": [
|
|
67
|
+
{
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "object",
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"properties": {
|
|
74
|
+
"enabled": {
|
|
75
|
+
"type": "boolean"
|
|
76
|
+
},
|
|
77
|
+
"inputMessages": {
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"outputMessages": {
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"toolInputs": {
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
},
|
|
86
|
+
"toolOutputs": {
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"systemPrompt": {
|
|
90
|
+
"type": "boolean"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cnpinsight/cnpclawinsights",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "OpenClaw insights OpenTelemetry exporter",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/openclaw/openclaw"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@opentelemetry/api": "1.9.1",
|
|
12
|
+
"@opentelemetry/api-logs": "0.218.0",
|
|
13
|
+
"@opentelemetry/exporter-logs-otlp-proto": "0.218.0",
|
|
14
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "0.218.0",
|
|
15
|
+
"@opentelemetry/exporter-trace-otlp-proto": "0.218.0",
|
|
16
|
+
"@opentelemetry/resources": "2.7.1",
|
|
17
|
+
"@opentelemetry/sdk-logs": "0.218.0",
|
|
18
|
+
"@opentelemetry/sdk-metrics": "2.7.1",
|
|
19
|
+
"@opentelemetry/sdk-node": "0.218.0",
|
|
20
|
+
"@opentelemetry/sdk-trace-base": "2.7.1",
|
|
21
|
+
"@opentelemetry/semantic-conventions": "1.41.1"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@openclaw/plugin-sdk": "workspace:*"
|
|
25
|
+
},
|
|
26
|
+
"openclaw": {
|
|
27
|
+
"extensions": [
|
|
28
|
+
"./index.ts"
|
|
29
|
+
],
|
|
30
|
+
"install": {
|
|
31
|
+
"clawhubSpec": "clawhub:@cnpinsight/cnpclawinsights",
|
|
32
|
+
"npmSpec": "@cnpinsight/cnpclawinsights",
|
|
33
|
+
"defaultChoice": "npm",
|
|
34
|
+
"minHostVersion": ">=2026.4.25"
|
|
35
|
+
},
|
|
36
|
+
"compat": {
|
|
37
|
+
"pluginApi": ">=2026.5.20"
|
|
38
|
+
},
|
|
39
|
+
"build": {
|
|
40
|
+
"openclawVersion": "2026.5.20"
|
|
41
|
+
},
|
|
42
|
+
"release": {
|
|
43
|
+
"publishToClawHub": true,
|
|
44
|
+
"publishToNpm": true
|
|
45
|
+
},
|
|
46
|
+
"runtimeExtensions": [
|
|
47
|
+
"./dist/index.js"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist/**",
|
|
52
|
+
"openclaw.plugin.json"
|
|
53
|
+
],
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"openclaw": ">=2026.5.20"
|
|
56
|
+
},
|
|
57
|
+
"peerDependenciesMeta": {
|
|
58
|
+
"openclaw": {
|
|
59
|
+
"optional": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
}
|
|
65
|
+
}
|