Skip to content

feat: Simulate Project Genie procedural 3D generation#119

Draft
Igor Holt (igor-holt) wants to merge 3 commits into
mainfrom
project-genie-simulation-17739196411407255998
Draft

feat: Simulate Project Genie procedural 3D generation#119
Igor Holt (igor-holt) wants to merge 3 commits into
mainfrom
project-genie-simulation-17739196411407255998

Conversation

@igor-holt

Copy link
Copy Markdown
Member

This commit simulates the integration of Google's Project Genie (which is currently a closed research prototype without a public API) into the continuous live-building process of Yennefer.

It leverages the existing scripts/genesis.cjs generation script and expands its text-to-3D simulation capabilities by reading Project Genie-esque prompts and deterministically generating appropriate React Three Fiber geometries and styled materials, instead of random shapes. The PM2 orchestration has been updated to automatically restart and manage this simulation.


PR created automatically by Jules for task 17739196411407255998 started by Igor Holt (@igor-holt)

- Merged project-genie configuration into ecosystem.config.cjs
- Refactored scripts/genesis.cjs to interpret Project Genie-style text directives
- Replaced random primitive selection with deterministic conditional geometry/material mapping based on keywords
- Fixed file permission fallback by pointing journal writes to __dirname
- Verified generation loop and frontend integration build

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
yennefer 552d614 Commit Preview URL Jun 25 2026, 07:42 AM

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates 'Project Genie' by adding a new PM2 process configuration in ecosystem.config.cjs and updating scripts/genesis.cjs to procedurally generate React Three Fiber components based on new mutation directives. Feedback on these changes highlights two key issues: first, calling directive.toLowerCase() directly in generateEvolutionComponent risks a runtime TypeError if directive is undefined or an object; second, the PM2 configuration uses a hardcoded absolute script path, which should be changed to a relative path to ensure environment portability.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread scripts/genesis.cjs
const geometry = geometries[Math.floor(Math.random() * geometries.length)];
let geometry;
let material;
const dirLower = directive.toLowerCase();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Calling directive.toLowerCase() directly can lead to a runtime TypeError if directive is undefined (e.g., when no mutation is triggered) or if directive is an object (such as { type: 'MUTATE', content: '...' } returned by consultTheVisionary). Safely extract the string content and handle potential undefined values to prevent crashes.

  const dirLower = (typeof directive === 'string' ? directive : (directive?.content || '')).toLowerCase();

Comment thread ecosystem.config.cjs
},
{
name: 'project-genie',
script: '/home/yenn/scripts/genesis.cjs',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The script path is hardcoded to an absolute path /home/yenn/scripts/genesis.cjs. This makes the PM2 configuration environment-dependent and non-portable. Consider using a relative path like ./scripts/genesis.cjs to ensure it works across different environments and setups.

      script: './scripts/genesis.cjs',

Igor Holt (igor-holt) and others added 2 commits June 25, 2026 07:34
- Updated `wrangler.toml` build command to target `yennefer-observatory` and output to `dist`
- Set `compatibility_date` to `2024-04-01`
- Removed unsupported `[placement]` block
- Renamed `workers/index.js` to `workers/index.mjs` and updated the `main` entry point to match, enforcing ESM required by Cloudflare Workers CI.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Updated GitHub Actions `.github/workflows/cloudflare-deploy.yml` paths to watch `yennefer-observatory/` instead of `frontend/`
- Set root `package.json` build script to the required dummy step (`echo 'No build step required'`) to avoid root CRA build failures.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant