@trainheroic-unofficial/dto 1.1.0 → 1.1.1
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @trainheroic-unofficial/dto
|
|
2
2
|
|
|
3
3
|
Domain DTOs and zod schemas for the TrainHeroic API. This package is the single source of
|
|
4
|
-
truth for request and response shapes
|
|
5
|
-
their types from here
|
|
4
|
+
truth for request and response shapes. The SDK, the MCP tool layer, and the CLI all import
|
|
5
|
+
their types from here.
|
|
6
6
|
|
|
7
7
|
Part of the [trainheroic-unofficial](../../README.md) workspace.
|
|
8
8
|
|
|
@@ -32,7 +32,7 @@ import { workoutSpecSchema, type WorkoutSpec } from "@trainheroic-unofficial/dto
|
|
|
32
32
|
const spec: WorkoutSpec = workoutSpecSchema.parse(input);
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
It imports no `node:*` and touches no filesystem, so it runs
|
|
35
|
+
It imports no `node:*` and touches no filesystem, so it runs in Node, browsers, and
|
|
36
36
|
Cloudflare workerd.
|
|
37
37
|
|
|
38
38
|
## What's inside
|
|
@@ -57,7 +57,7 @@ re-exported through `index.ts`. The central pieces:
|
|
|
57
57
|
warnings the encoder emits (for example, a prescription whose unit does not match the
|
|
58
58
|
exercise's parameter type).
|
|
59
59
|
- The `responses` module holds the tolerant schemas the SDK uses to sanity-check an API
|
|
60
|
-
response before trusting it
|
|
60
|
+
response before trusting it; these schemas accept unknown fields.
|
|
61
61
|
|
|
62
62
|
## Develop
|
|
63
63
|
|