@convai/embody 0.2.0 → 0.2.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/CHANGELOG.md +15 -0
- package/README.md +9 -2
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @convai/embody
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add a `default` condition to the package exports map.
|
|
8
|
+
|
|
9
|
+
The map previously declared only `types` and `import`, so any resolver using
|
|
10
|
+
CommonJS semantics could not resolve the package at all — Jest's default
|
|
11
|
+
resolver failed to resolve `@convai/embody/react` even to mock it, and
|
|
12
|
+
Next.js's `next/dynamic` build transform (which resolves its target via
|
|
13
|
+
`require.resolveWeak`) failed with "Package path './react' is not exported".
|
|
14
|
+
The first real consumer needed three separate workarounds for this one
|
|
15
|
+
omission. `default` points at the same ESM files; resolvers that only need
|
|
16
|
+
resolution now succeed, and runtimes with `require(esm)` can load them.
|
|
17
|
+
|
|
3
18
|
## 0.2.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -184,6 +184,7 @@ Design, plan and decision history live in [`docs/`](./docs):
|
|
|
184
184
|
| [motion-implementation-plan.md](./docs/motion-implementation-plan.md) | the 12-task TDD plan |
|
|
185
185
|
| [motion-decisions.md](./docs/motion-decisions.md) | 73 rulings, each with its cost if wrong |
|
|
186
186
|
| [motion-execution-ledger.md](./docs/motion-execution-ledger.md) | the full execution record |
|
|
187
|
+
| [testing-spec.md](./docs/testing-spec.md) | standing policy: the module → test manifest CI enforces |
|
|
187
188
|
|
|
188
189
|
## Release channels
|
|
189
190
|
|
|
@@ -216,13 +217,19 @@ pnpm check:hosts # auto-detects the current branch
|
|
|
216
217
|
|
|
217
218
|
```bash
|
|
218
219
|
pnpm install
|
|
219
|
-
pnpm test #
|
|
220
|
+
pnpm test # 183 tests
|
|
220
221
|
pnpm typecheck
|
|
222
|
+
pnpm check:tests # every src/ module has a named test — see docs/testing-spec.md
|
|
221
223
|
pnpm build # emits dist/ with .d.ts
|
|
222
|
-
pnpm verify # hosts + typecheck + test + build
|
|
224
|
+
pnpm verify # hosts + test manifest + typecheck + test + build
|
|
223
225
|
pnpm dev # the demo (see demo/verify.md)
|
|
224
226
|
```
|
|
225
227
|
|
|
228
|
+
Every module in `src/` has a row in [`docs/testing-spec.md`](./docs/testing-spec.md)
|
|
229
|
+
naming its test and what that test must prove, and `pnpm check:tests` enforces
|
|
230
|
+
it in CI. A new file under `src/` with no row fails the build, so adding a
|
|
231
|
+
feature and adding its test are the same commit.
|
|
232
|
+
|
|
226
233
|
## Roadmap
|
|
227
234
|
|
|
228
235
|
- **Zero requests of our own.** Return the body manifest from the connection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/embody",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Give a Convai character a body: resolve 3D characters by characterId and drive them with lipsync and animation. Layered on @convai/web-sdk.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Convai <support@convai.com>",
|
|
@@ -33,11 +33,13 @@
|
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
|
-
"import": "./dist/index.js"
|
|
36
|
+
"import": "./dist/index.js",
|
|
37
|
+
"default": "./dist/index.js"
|
|
37
38
|
},
|
|
38
39
|
"./react": {
|
|
39
40
|
"types": "./dist/react/index.d.ts",
|
|
40
|
-
"import": "./dist/react/index.js"
|
|
41
|
+
"import": "./dist/react/index.js",
|
|
42
|
+
"default": "./dist/react/index.js"
|
|
41
43
|
},
|
|
42
44
|
"./package.json": "./package.json"
|
|
43
45
|
},
|
|
@@ -96,12 +98,13 @@
|
|
|
96
98
|
"typecheck": "tsc --noEmit",
|
|
97
99
|
"test": "vitest run",
|
|
98
100
|
"test:watch": "vitest",
|
|
99
|
-
"verify": "pnpm check:hosts && pnpm typecheck && pnpm test && pnpm build",
|
|
101
|
+
"verify": "pnpm check:hosts && pnpm check:tests && pnpm typecheck && pnpm test && pnpm build",
|
|
100
102
|
"changeset": "changeset",
|
|
101
103
|
"version": "changeset version",
|
|
102
104
|
"release": "pnpm build:prod && changeset publish",
|
|
103
105
|
"release:beta": "pnpm build:beta && changeset publish --tag beta",
|
|
104
106
|
"check:hosts": "node scripts/check-hosts.mjs",
|
|
107
|
+
"check:tests": "node scripts/check-tests.mjs",
|
|
105
108
|
"build:stg": "pnpm clean && BRANCH=stg node scripts/check-hosts.mjs && pnpm build",
|
|
106
109
|
"release:stg": "pnpm build:stg && changeset publish --tag stg",
|
|
107
110
|
"docs": "typedoc",
|