@escapeaihq/client-core 0.49.0 → 0.49.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 +1 -1
- package/dist/adapters/worldAdapter.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +10 -4
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ The repo deliberately runs three install lifecycles, one per consumer:
|
|
|
141
141
|
|
|
142
142
|
The repo-checked-in `package.json` points `main`/`types`/`exports` at `./src/index.ts` so in-monorepo consumers (`web/`) can `import` TypeScript source directly through Next.js's `transpilePackages`. The published artifact needs to point at `./dist/index.js` instead — the publish workflow rewrites these in place via `npm pkg set` before running `npm publish`. (npm does not honor `publishConfig.main`/`.types`/`.exports` overrides the way pnpm/yarn-berry do, hence the rewrite.) The on-disk file is never committed with the rewritten paths.
|
|
143
143
|
|
|
144
|
-
A second post-build step (`scripts/add-ext.mjs`) appends
|
|
144
|
+
A second post-build step (`scripts/add-ext.mjs`) appends the correct suffix to extension-less relative imports in `dist/*.js`. TypeScript's emitter doesn't add them, and Node strict ESM (used by Nuxt/Rollup in the sibling repo) refuses to resolve `from './foo'` without an explicit extension. The script is **directory-aware**: a specifier whose target is a directory on disk gets `/index.js` (`./reactor` → `./reactor/index.js`), a file target gets `.js`. This matters for the four **directory** modules re-exported from `src/index.ts` (`reactor`, `vision`, `adapters`, `conversation`) — those source re-exports use explicit `/index` (`export * from './reactor/index'`) so `tsc` emits the directory form. (A bare `.js` on a directory specifier was the v0.42.0–0.49.0 packaging bug that broke the sibling Nuxt build; fixed in v0.49.1, tech-debt #486.) After rewriting, the script runs a **build-time guard** that fails the build if any real relative import/export specifier in `dist` doesn't resolve on disk under strict ESM — so a broken barrel can never be published again. **When adding a new directory module to the barrel, always re-export it as `./<dir>/index`, not `./<dir>`.**
|
|
145
145
|
|
|
146
146
|
```bash
|
|
147
147
|
# from the package directory
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdapterRegistry, ROUTE_DEFAULT, ROUTE_FALLBACK, } from './registry.js';
|
|
2
|
-
import { dispatchHeliosCommand, dispatchLongLiveCommand } from '../reactor.js';
|
|
2
|
+
import { dispatchHeliosCommand, dispatchLongLiveCommand } from '../reactor/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* The one world model that exists today. Helios drives the live
|
|
5
5
|
* step-into-video stream over the structural Reactor bridge. Its
|
package/dist/index.d.ts
CHANGED
|
@@ -27,13 +27,13 @@ export * from './websocket';
|
|
|
27
27
|
export * from './api';
|
|
28
28
|
export * from './castProjection';
|
|
29
29
|
export * from './admin';
|
|
30
|
-
export * from './reactor';
|
|
30
|
+
export * from './reactor/index';
|
|
31
31
|
export * from './timeFormat';
|
|
32
32
|
export * from './toolSchemas';
|
|
33
|
-
export * from './vision';
|
|
33
|
+
export * from './vision/index';
|
|
34
34
|
export * from './graphSchema';
|
|
35
35
|
export * from './storyGraph';
|
|
36
|
-
export * from './adapters';
|
|
37
|
-
export * from './conversation';
|
|
36
|
+
export * from './adapters/index';
|
|
37
|
+
export * from './conversation/index';
|
|
38
38
|
export * from './platformAssistant';
|
|
39
39
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AAOxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAI9B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -27,16 +27,22 @@ export * from './websocket.js';
|
|
|
27
27
|
export * from './api.js';
|
|
28
28
|
export * from './castProjection.js';
|
|
29
29
|
export * from './admin.js';
|
|
30
|
-
export
|
|
30
|
+
// Directory modules MUST re-export their barrel as `./<dir>/index` (not the bare
|
|
31
|
+
// `./<dir>`). Under strict-ESM resolvers (Nuxt/Rollup in the ../Web-App sibling),
|
|
32
|
+
// the published `dist/<dir>` has no `package.json` "main", so `from './<dir>.js'`
|
|
33
|
+
// (what a bare specifier compiles to) fails to resolve. The explicit `/index`
|
|
34
|
+
// makes tsc emit `./<dir>/index.js`, which resolves directly to the real file.
|
|
35
|
+
// See specs/technical-debt.md (client-core ESM barrel directory re-export bug).
|
|
36
|
+
export * from './reactor/index.js';
|
|
31
37
|
export * from './timeFormat.js';
|
|
32
38
|
export * from './toolSchemas.js';
|
|
33
|
-
export * from './vision.js';
|
|
39
|
+
export * from './vision/index.js';
|
|
34
40
|
export * from './graphSchema.js';
|
|
35
41
|
// R8.1 — pure story-graph projections (deriveScenes/deriveCast + SceneView/
|
|
36
42
|
// CharacterView). Grepped src/ for these names first per the collision warning
|
|
37
43
|
// above: no existing export owns them. The web studio module re-exports these.
|
|
38
44
|
export * from './storyGraph.js';
|
|
39
|
-
export * from './adapters.js';
|
|
40
|
-
export * from './conversation.js';
|
|
45
|
+
export * from './adapters/index.js';
|
|
46
|
+
export * from './conversation/index.js';
|
|
41
47
|
export * from './platformAssistant.js';
|
|
42
48
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,iFAAiF;AACjF,kFAAkF;AAClF,kFAAkF;AAClF,8EAA8E;AAC9E,+EAA+E;AAC/E,gFAAgF;AAChF,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,4EAA4E;AAC5E,+EAA+E;AAC/E,+EAA+E;AAC/E,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapeaihq/client-core",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.1",
|
|
4
4
|
"description": "Framework-agnostic Seer client library: audio I/O, viseme lip-sync, WebSocket framing, REST. Consumed by both seer-agent's React web/ and the Vue Escape web-app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
package/src/index.ts
CHANGED
|
@@ -28,15 +28,21 @@ export * from './websocket';
|
|
|
28
28
|
export * from './api';
|
|
29
29
|
export * from './castProjection';
|
|
30
30
|
export * from './admin';
|
|
31
|
-
export
|
|
31
|
+
// Directory modules MUST re-export their barrel as `./<dir>/index` (not the bare
|
|
32
|
+
// `./<dir>`). Under strict-ESM resolvers (Nuxt/Rollup in the ../Web-App sibling),
|
|
33
|
+
// the published `dist/<dir>` has no `package.json` "main", so `from './<dir>.js'`
|
|
34
|
+
// (what a bare specifier compiles to) fails to resolve. The explicit `/index`
|
|
35
|
+
// makes tsc emit `./<dir>/index.js`, which resolves directly to the real file.
|
|
36
|
+
// See specs/technical-debt.md (client-core ESM barrel directory re-export bug).
|
|
37
|
+
export * from './reactor/index';
|
|
32
38
|
export * from './timeFormat';
|
|
33
39
|
export * from './toolSchemas';
|
|
34
|
-
export * from './vision';
|
|
40
|
+
export * from './vision/index';
|
|
35
41
|
export * from './graphSchema';
|
|
36
42
|
// R8.1 — pure story-graph projections (deriveScenes/deriveCast + SceneView/
|
|
37
43
|
// CharacterView). Grepped src/ for these names first per the collision warning
|
|
38
44
|
// above: no existing export owns them. The web studio module re-exports these.
|
|
39
45
|
export * from './storyGraph';
|
|
40
|
-
export * from './adapters';
|
|
41
|
-
export * from './conversation';
|
|
46
|
+
export * from './adapters/index';
|
|
47
|
+
export * from './conversation/index';
|
|
42
48
|
export * from './platformAssistant';
|