@hautechai/sdk 2.3.1 → 2.3.3
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 +48 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -60,3 +60,51 @@ const sdk = createSDK({ authToken: () => accountToken }); // you should call the
|
|
|
60
60
|
### Using SDK
|
|
61
61
|
|
|
62
62
|
Docs about how to use the SDK are available [here](https://docs.hautech.ai/)
|
|
63
|
+
|
|
64
|
+
## Development
|
|
65
|
+
|
|
66
|
+
### Prerequisites
|
|
67
|
+
|
|
68
|
+
- Node.js 22+
|
|
69
|
+
- PNPM 10+
|
|
70
|
+
|
|
71
|
+
### Installation
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pnpm install --frozen-lockfile
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Building
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pnpm build
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Testing
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Run all tests (unit + e2e)
|
|
87
|
+
pnpm test
|
|
88
|
+
|
|
89
|
+
# Run unit tests only
|
|
90
|
+
pnpm test:unit
|
|
91
|
+
|
|
92
|
+
# Run e2e tests only
|
|
93
|
+
pnpm test:e2e
|
|
94
|
+
|
|
95
|
+
# Run tests with coverage
|
|
96
|
+
pnpm test:cov
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Linting and Formatting
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Check code formatting
|
|
103
|
+
npx prettier --check .
|
|
104
|
+
|
|
105
|
+
# Fix code formatting
|
|
106
|
+
npx prettier --write .
|
|
107
|
+
|
|
108
|
+
# Type checking
|
|
109
|
+
npx tsc --noEmit
|
|
110
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hautechai/sdk",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"build": "tsup",
|
|
18
18
|
"generate": "./scripts/generate.sh",
|
|
19
19
|
"test": "pnpm run test:unit && pnpm run test:e2e",
|
|
20
|
-
"test:unit": "vitest run
|
|
21
|
-
"test:e2e": "vitest run --config vitest.e2e.config.ts
|
|
22
|
-
"test:cov": "vitest run --coverage
|
|
20
|
+
"test:unit": "vitest run",
|
|
21
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
22
|
+
"test:cov": "vitest run --coverage",
|
|
23
23
|
"up-versions": "./scripts/up-versions.sh"
|
|
24
24
|
},
|
|
25
25
|
"description": "Hautech SDK",
|