feedeas 0.1.0-alpha.6 → 0.1.0-alpha.8

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.
Files changed (47) hide show
  1. package/.env.example +7 -0
  2. package/README.md +22 -1
  3. package/dist/cli/index.js +671 -116
  4. package/dist/ui/assets/index-B4LfCAUB.css +1 -0
  5. package/dist/ui/assets/index-DwuL9X1n.js +17 -0
  6. package/dist/ui/index.html +1 -1
  7. package/docs/BGM_COMMAND.md +66 -0
  8. package/package.json +14 -3
  9. package/scripts/release-npm.ts +88 -0
  10. package/bun.lock +0 -426
  11. package/index.ts +0 -1
  12. package/src/cli/commands/asset.ts +0 -148
  13. package/src/cli/commands/audio.ts +0 -157
  14. package/src/cli/commands/create-scene.ts +0 -131
  15. package/src/cli/commands/example.ts +0 -151
  16. package/src/cli/commands/imagine.ts +0 -209
  17. package/src/cli/commands/inspect.ts +0 -44
  18. package/src/cli/commands/record.ts +0 -376
  19. package/src/cli/commands/schema.ts +0 -143
  20. package/src/cli/commands/set-scene.ts +0 -51
  21. package/src/cli/commands/validate.ts +0 -131
  22. package/src/cli/index.ts +0 -278
  23. package/src/cli/server/api.ts +0 -145
  24. package/src/cli/server/index.ts +0 -105
  25. package/src/cli/services/ffprobe.ts +0 -85
  26. package/src/cli/services/scene-builder.ts +0 -50
  27. package/src/cli/services/scene-resolver.ts +0 -99
  28. package/src/cli/services/whisper.ts +0 -224
  29. package/src/cli/utils/playwright-installer.ts +0 -93
  30. package/src/ui/App.tsx +0 -48
  31. package/src/ui/components/CanvasPreview.tsx +0 -483
  32. package/src/ui/components/EntityList.tsx +0 -139
  33. package/src/ui/components/Header.tsx +0 -61
  34. package/src/ui/components/PropertyPanel.tsx +0 -313
  35. package/src/ui/components/Timeline.tsx +0 -304
  36. package/src/ui/context/ProjectContext.tsx +0 -130
  37. package/src/ui/index.css +0 -1
  38. package/src/ui/index.html +0 -13
  39. package/src/ui/main.tsx +0 -10
  40. package/src/ui/store/reducer.ts +0 -119
  41. package/src/ui/types.ts +0 -89
  42. package/test-e2e/TESTING_NOTES.md +0 -127
  43. package/test-e2e/output.mp4 +0 -0
  44. package/test-e2e/scene.json +0 -33
  45. package/test-edit-feature/my-scene.json +0 -33
  46. package/tsconfig.json +0 -27
  47. package/vite.config.ts +0 -30
package/.env.example CHANGED
@@ -4,6 +4,13 @@
4
4
  # Get your API key at: https://aistudio.google.com/app/apikey
5
5
  GEMINI_API_KEY=your-gemini-api-key-here
6
6
 
7
+ # Optional: PostHog project key for CLI telemetry
8
+ # If set, Feedeas emits basic command events (started/finished).
9
+ POSTHOG_KEY=your-posthog-project-key-here
10
+
11
+ # Optional: Disable telemetry even when POSTHOG_KEY is set
12
+ # FEDEAS_TELEMETRY_DISABLED=true
13
+
7
14
  # Setup Instructions:
8
15
  # 1. Copy this file to .env
9
16
  # 2. Replace the placeholder value with your actual Gemini API key
package/README.md CHANGED
@@ -56,14 +56,34 @@ export GEMINI_API_KEY="your-api-key"
56
56
  # Basic usage - saves to assets/mountain.png
57
57
  feedeas imagine "A serene mountain landscape"
58
58
 
59
+ # Reel-ready portrait generation (recommended for 9:16 videos)
60
+ feedeas imagine "Electric SUV charging at dusk" --aspect-ratio 9:16 --image-size 2K -o ev_portrait.png
61
+
59
62
  # Multiple images - saves to assets/pattern_1.png, pattern_2.png, etc.
60
63
  feedeas imagine "Abstract art" -n 4 -o pattern.png
61
64
  ```
62
65
 
63
66
  **Images save to `./assets/` by default** - perfect for video workflows!
64
67
 
68
+ `imagine` defaults to `--aspect-ratio auto`:
69
+ - If `scene_1.json` exists, it infers from `meta.width:meta.height`
70
+ - Otherwise it falls back to `9:16`
71
+
65
72
  **[📖 Full Imagine Command Documentation](./docs/IMAGINE_COMMAND.md)**
66
73
 
74
+ ### AI BGM Generation (Contract Draft)
75
+
76
+ Gemini-first command contract and backend request types for `feedeas bgm` are documented here:
77
+
78
+ **[📖 BGM Command Contract](./docs/BGM_COMMAND.md)**
79
+
80
+ Basic usage:
81
+
82
+ ```bash
83
+ # Generate 20s background music into assets/bgm.mp3
84
+ feedeas bgm "ambient cinematic underscore, no vocals" -d 20 -o bgm.mp3
85
+ ```
86
+
67
87
  ### Scene Management
68
88
 
69
89
  - `feedeas example [type]` - Generate example scenes
@@ -109,6 +129,8 @@ your-project/
109
129
  }
110
130
  ```
111
131
 
132
+ For `image` entities, add `"fit": "smart"` to reduce accidental cropping on mismatched aspect ratios.
133
+
112
134
  ## Documentation
113
135
 
114
136
  - [Imagine Command Guide](./docs/IMAGINE_COMMAND.md) - AI image generation
@@ -138,4 +160,3 @@ bun run feedeas
138
160
  ## License
139
161
 
140
162
  This project was created using `bun init` in bun v1.2.2.
141
-