egaki 0.7.0 → 0.7.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 CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.7.1
6
+
7
+ 1. **Fixed `egaki/vite` import failing from npm** — the Vite plugin export was pointing to raw `.ts` source files, which Node cannot load from `node_modules`. Now correctly points to compiled JS. The `./cached-generate` export had the same issue.
8
+ 2. **Fixed path resolution in published package** — the Vite plugin resolves `app.tsx` and `motion-timing.ts` from the `src/vite/` directory. Previously it used `import.meta.url` directly, which broke when running from `dist/vite/`. Now resolves relative to the package root.
9
+
5
10
  ## 0.7.0
6
11
 
7
12
  1. **MDX video framework** — write video scenes in MDX files, preview in a browser-based player, and export to MP4 via in-browser WebCodecs rendering. Each `#` heading becomes a timed section. Animation primitives (`Opacity`, `Scale`, `TranslateX`, `TranslateY`, `Blur`) handle motion with composable enter/exit animations:
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../../src/vite/vite-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,MAAM,CAAA;AA2BhD,MAAM,WAAW,kBAAkB;IACjC;;wEAEoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAuCD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAuB3F;AAoCD,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,YAAY,EAAE,CAwalE"}
1
+ {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../../src/vite/vite-plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,MAAM,CAAA;AA4BhD,MAAM,WAAW,kBAAkB;IACjC;;wEAEoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAuCD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAuB3F;AAoCD,wBAAgB,KAAK,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,YAAY,EAAE,CAwalE"}
@@ -21,10 +21,11 @@ import tailwindcss from '@tailwindcss/vite';
21
21
  import { mdxParse } from 'safe-mdx/parse';
22
22
  import { collectServerImportSources } from "./server-mdx.js";
23
23
  import { parseFrontmatter } from "./mdx-parse.js";
24
- // Resolve the package src/ directory from this file's location.
25
- // Used for resolve.alias so the RSC module runner can resolve relative
26
- // imports from app.tsx (same pattern as egaki/vite).
27
- const __srcDir = fileURLToPath(new URL('.', import.meta.url));
24
+ // Resolve the package src/vite/ directory from this file's location.
25
+ // This file may run from src/vite/ (dev) or dist/vite/ (published).
26
+ // Either way, going up 2 levels reaches the package root, then into src/vite/.
27
+ const __pkgRoot = path.resolve(fileURLToPath(new URL('.', import.meta.url)), '../..');
28
+ const __srcDir = path.join(__pkgRoot, 'src', 'vite');
28
29
  const APP_SRC_PATH = path.join(__srcDir, 'app.tsx');
29
30
  const VIRTUAL_APP = 'virtual:egaki-app';
30
31
  const RESOLVED_APP = '\0' + VIRTUAL_APP;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egaki",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "description": "AI image, video, and speech generation CLI with MDX-to-video framework",
6
6
  "main": "./dist/cli/main.js",
@@ -28,12 +28,12 @@
28
28
  "default": "./src/vite/server-components.tsx"
29
29
  },
30
30
  "./cached-generate": {
31
- "types": "./src/cli/cached-generate.ts",
32
- "default": "./src/cli/cached-generate.ts"
31
+ "types": "./dist/cli/cached-generate.d.ts",
32
+ "default": "./dist/cli/cached-generate.js"
33
33
  },
34
34
  "./vite": {
35
- "types": "./src/vite/vite-plugin.ts",
36
- "default": "./src/vite/vite-plugin.ts"
35
+ "types": "./dist/vite/vite-plugin.d.ts",
36
+ "default": "./dist/vite/vite-plugin.js"
37
37
  },
38
38
  "./mdx-components": {
39
39
  "types": "./src/vite/mdx-provided-components.ts",
@@ -24,10 +24,11 @@ import { mdxParse } from 'safe-mdx/parse'
24
24
  import { collectServerImportSources } from './server-mdx.ts'
25
25
  import { parseFrontmatter } from './mdx-parse.ts'
26
26
 
27
- // Resolve the package src/ directory from this file's location.
28
- // Used for resolve.alias so the RSC module runner can resolve relative
29
- // imports from app.tsx (same pattern as egaki/vite).
30
- const __srcDir = fileURLToPath(new URL('.', import.meta.url))
27
+ // Resolve the package src/vite/ directory from this file's location.
28
+ // This file may run from src/vite/ (dev) or dist/vite/ (published).
29
+ // Either way, going up 2 levels reaches the package root, then into src/vite/.
30
+ const __pkgRoot = path.resolve(fileURLToPath(new URL('.', import.meta.url)), '../..')
31
+ const __srcDir = path.join(__pkgRoot, 'src', 'vite')
31
32
  const APP_SRC_PATH = path.join(__srcDir, 'app.tsx')
32
33
 
33
34
  const VIRTUAL_APP = 'virtual:egaki-app'