@agentcash/router 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.
- package/LICENSE +21 -0
- package/README.md +379 -0
- package/dist/index.cjs +1177 -0
- package/dist/index.d.cts +273 -0
- package/dist/index.d.ts +273 -0
- package/dist/index.js +1159 -0
- package/package.json +74 -0
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentcash/router",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Unified route builder for Next.js App Router APIs with x402, MPP, SIWX, and API key auth",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"require": {
|
|
13
|
+
"types": "./dist/index.d.cts",
|
|
14
|
+
"default": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@coinbase/x402": "^2.1.0",
|
|
26
|
+
"@x402/core": "^2.3.0",
|
|
27
|
+
"@x402/evm": "^2.3.0",
|
|
28
|
+
"@x402/extensions": "^2.3.0",
|
|
29
|
+
"mpay": "^0.2.4",
|
|
30
|
+
"next": ">=15.0.0",
|
|
31
|
+
"zod": "^4.0.0",
|
|
32
|
+
"zod-openapi": "^5.0.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"mpay": {
|
|
36
|
+
"optional": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@coinbase/x402": "^2.1.0",
|
|
41
|
+
"@eslint/js": "^10.0.1",
|
|
42
|
+
"@types/node": "^22.0.0",
|
|
43
|
+
"@x402/core": "^2.3.0",
|
|
44
|
+
"@x402/evm": "^2.3.0",
|
|
45
|
+
"@x402/extensions": "^2.3.0",
|
|
46
|
+
"eslint": "^10.0.0",
|
|
47
|
+
"mpay": "^0.2.4",
|
|
48
|
+
"next": "^15.0.0",
|
|
49
|
+
"prettier": "^3.8.1",
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"tsup": "^8.0.0",
|
|
52
|
+
"typescript": "^5.8.0",
|
|
53
|
+
"typescript-eslint": "^8.55.0",
|
|
54
|
+
"vitest": "^3.0.0",
|
|
55
|
+
"zod": "^4.0.0",
|
|
56
|
+
"zod-openapi": "^5.0.0"
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/merit-systems/agentcash-router"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "tsup",
|
|
65
|
+
"typecheck": "tsc --noEmit",
|
|
66
|
+
"lint": "eslint src/",
|
|
67
|
+
"lint:fix": "eslint src/ --fix",
|
|
68
|
+
"format": "prettier --write 'src/**/*.ts' 'tests/**/*.ts' '*.json' '*.mjs'",
|
|
69
|
+
"format:check": "prettier --check 'src/**/*.ts' 'tests/**/*.ts' '*.json' '*.mjs'",
|
|
70
|
+
"test": "vitest run",
|
|
71
|
+
"test:watch": "vitest",
|
|
72
|
+
"check": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm build && pnpm test"
|
|
73
|
+
}
|
|
74
|
+
}
|