@agentcash/telemetry 0.3.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/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@agentcash/telemetry",
3
+ "version": "0.3.0",
4
+ "description": "ClickHouse telemetry plugin for @agentcash/router. Logs request lifecycle, payments, settlements, and provider quota to ClickHouse.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./siwx": {
15
+ "types": "./dist/siwx.d.ts",
16
+ "import": "./dist/siwx.mjs",
17
+ "require": "./dist/siwx.js"
18
+ },
19
+ "./builder": {
20
+ "types": "./dist/builder.d.ts",
21
+ "import": "./dist/builder.mjs",
22
+ "require": "./dist/builder.js"
23
+ },
24
+ "./plugin": {
25
+ "types": "./dist/router-plugin.d.ts",
26
+ "import": "./dist/router-plugin.mjs",
27
+ "require": "./dist/router-plugin.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "keywords": [
34
+ "x402",
35
+ "agentcash",
36
+ "telemetry",
37
+ "clickhouse",
38
+ "payments"
39
+ ],
40
+ "license": "MIT",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "peerDependencies": {
45
+ "@clickhouse/client": "^1.12.0",
46
+ "@x402/core": "^2.2.0",
47
+ "@x402/extensions": "^2.3.0",
48
+ "@x402/next": "^2.2.0",
49
+ "next": ">=15.0.0",
50
+ "zod": "^4.0.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "@x402/next": {
54
+ "optional": true
55
+ },
56
+ "@x402/extensions": {
57
+ "optional": true
58
+ },
59
+ "zod": {
60
+ "optional": true
61
+ }
62
+ },
63
+ "devDependencies": {
64
+ "@clickhouse/client": "^1.16.0",
65
+ "@eslint/js": "^9.0.0",
66
+ "@x402/core": "^2.2.0",
67
+ "@x402/extensions": "^2.3.0",
68
+ "@x402/next": "^2.2.0",
69
+ "eslint": "^9.0.0",
70
+ "next": "16.0.10",
71
+ "prettier": "^3.8.1",
72
+ "tsup": "^8.0.0",
73
+ "typescript": "^5.7.0",
74
+ "typescript-eslint": "^8.55.0",
75
+ "vitest": "^4.0.18",
76
+ "zod": "^4.1.13"
77
+ },
78
+ "scripts": {
79
+ "build": "tsup",
80
+ "lint": "eslint src/",
81
+ "lint:fix": "eslint src/ --fix",
82
+ "format": "prettier --write 'src/**/*.ts' '*.json' '*.mjs'",
83
+ "format:check": "prettier --check 'src/**/*.ts' '*.json' '*.mjs'",
84
+ "typecheck": "tsc --noEmit",
85
+ "test": "vitest run",
86
+ "check": "npm run format:check && npm run lint && npm run typecheck && npm run build && npm test"
87
+ }
88
+ }