egaki 0.7.0 → 0.7.2

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,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 0.7.2
6
+
7
+ 1. **Fixed missing `spiceflow` and `@vitejs/plugin-react` dependencies** — both were listed as optional peer dependencies but imported unconditionally by the Vite plugin. Now included as regular dependencies so `egaki/vite` works out of the box without manually installing them.
8
+
9
+ ## 0.7.1
10
+
11
+ 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.
12
+ 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.
13
+
5
14
  ## 0.7.0
6
15
 
7
16
  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.2",
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",
@@ -111,17 +111,18 @@
111
111
  "tweakpane": "^4.0.5",
112
112
  "yaml": "^2.9.0",
113
113
  "zod": "^4.3.6",
114
+ "@vitejs/plugin-react": "^6.0.2",
115
+ "spiceflow": "1.26.0-rsc.7",
114
116
  "zustand": "^5.0.14"
115
117
  },
116
118
  "peerDependencies": {
117
- "@vitejs/plugin-react": ">=6",
119
+ "vite": ">=6",
118
120
  "motion": ">=12",
119
121
  "motion-dom": ">=12",
120
- "motion-utils": ">=12",
121
- "spiceflow": ">=1.26.0-rsc.5"
122
+ "motion-utils": ">=12"
122
123
  },
123
124
  "peerDependenciesMeta": {
124
- "@vitejs/plugin-react": {
125
+ "vite": {
125
126
  "optional": true
126
127
  },
127
128
  "motion": {
@@ -132,15 +133,11 @@
132
133
  },
133
134
  "motion-utils": {
134
135
  "optional": true
135
- },
136
- "spiceflow": {
137
- "optional": true
138
136
  }
139
137
  },
140
138
  "devDependencies": {
141
139
  "@types/js-yaml": "^4.0.9",
142
140
  "@types/react": "^19.2.17",
143
- "@vitejs/plugin-react": "^6.0.2",
144
141
  "vite": "^8.0.10",
145
142
  "vitest": "^4.1.8"
146
143
  },
@@ -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'