agent0-sdk 0.2.1 → 0.2.2
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 +2 -0
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -44,6 +44,8 @@ npm install
|
|
|
44
44
|
npm run build
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
+
**Note:** The generated TypeScript types are created automatically during `npm install` (via `postinstall` hook) or manually with `npm run codegen`. Always use `npm run build` instead of running `tsc` directly.
|
|
48
|
+
|
|
47
49
|
## Quick Start
|
|
48
50
|
|
|
49
51
|
### 1. Initialize SDK
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent0-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "TypeScript SDK for agent portability, discovery and trust based on ERC-8004",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"codegen": "graphql-codegen --config codegen.yml",
|
|
9
|
+
"postinstall": "npm run codegen",
|
|
9
10
|
"prebuild": "npm run codegen",
|
|
10
11
|
"build": "tsc",
|
|
11
12
|
"build:watch": "tsc --watch",
|
|
@@ -67,5 +68,9 @@
|
|
|
67
68
|
},
|
|
68
69
|
"engines": {
|
|
69
70
|
"node": ">=18.0.0"
|
|
71
|
+
},
|
|
72
|
+
"overrides": {
|
|
73
|
+
"nanoid": "^5.1.6",
|
|
74
|
+
"parse-duration": "^2.1.3"
|
|
70
75
|
}
|
|
71
76
|
}
|