Skip to content

feat: integrate Project Genie continuous building#104

Draft
Igor Holt (igor-holt) wants to merge 3 commits into
mainfrom
feat/integrate-project-genie-building-4082618492801658122
Draft

feat: integrate Project Genie continuous building#104
Igor Holt (igor-holt) wants to merge 3 commits into
mainfrom
feat/integrate-project-genie-building-4082618492801658122

Conversation

@igor-holt

Copy link
Copy Markdown
Member

Integrating Google's Project Genie into Yennefer's continuous generation cycle by expanding the genesis prompt dictionary with Genie-inspired interactive 3D world prompts. The React Three Fiber procedural generation script was updated to match these prompts to standard 3D geometries and materials. This was connected to the core PM2 orchestrator to continuously generate these worlds, simulating live building.

Project Genie does not have an external API, so integration focuses on extending existing prompt-to-3D simulation capabilities with equivalent functionality, per repository guidelines. The code was further made more robust against directory file system errors.


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

- Added Project Genie-inspired prompts to mutations in `scripts/genesis.cjs`
- Updated `generateEvolutionComponent` to conditionally render specific intrinsic React Three Fiber geometry and materials based on the directive, adhering to codebase limits on external material imports
- Integrated `project-genie` application block to `ecosystem.config.cjs` using an absolute path to launch `scripts/genesis.cjs` with `GENESIS_LOOP` continuously
- Added `writeJournal` wrapper function in `scripts/genesis.cjs` with try/catch fallback to prevent application crashes from `ENOENT` directory missing errors

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 15, 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 1ce0265 Commit Preview URL Jun 15 2026, 07:47 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 adds a new PM2 process configuration for project-genie and refactors the genesis.cjs script to include a robust journal-writing helper with fallback logic, new mutation directives, and dynamic geometry/material generation based on the directive content. Feedback suggests improving portability by using a relative path in the PM2 configuration, enhancing cross-platform compatibility by handling EPERM errors on Windows, maintaining style consistency in the mutation prompts, and using a thin boxGeometry instead of planeGeometry to avoid orientation issues in Three.js.

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 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

Using an absolute path like /home/yenn/scripts/genesis.cjs makes the PM2 configuration non-portable and tied to a specific user's home directory. Using a relative path ensures the configuration works seamlessly across different environments and deployments.

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

Comment thread scripts/genesis.cjs
try {
fs.appendFileSync(PATHS.journal, line);
} catch (e) {
if (e.code === 'ENOENT' || e.code === 'EACCES') {

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

On Windows systems, permission errors can sometimes throw EPERM instead of EACCES. Adding EPERM to the check ensures the fallback logic is robust and works correctly across different operating systems.

    if (e.code === 'ENOENT' || e.code === 'EACCES' || e.code === 'EPERM') {

Comment thread scripts/genesis.cjs
Comment on lines +68 to +70
{ type: "MUTATE", content: "an interactive landscape featuring a rugged alien terrain with reactive dust physics" },
{ type: "MUTATE", content: "a macro-scale makerspace workbench with a polished light-brown wood table" },
{ type: "MUTATE", content: "a photorealistic alpine meadow with wildflowers" }

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 new mutation prompts are written as lowercase noun phrases, which is inconsistent with the existing prompts that use capitalized imperative verbs (e.g., 'Add...', 'Generate...', 'Build...'). Rephrasing them to match the existing style ensures consistency and may improve the predictability of the generation model.

      { type: "MUTATE", content: "Create an interactive landscape featuring a rugged alien terrain with reactive dust physics" },
      { type: "MUTATE", content: "Build a macro-scale makerspace workbench with a polished light-brown wood table" },
      { type: "MUTATE", content: "Generate a photorealistic alpine meadow with wildflowers" }

Comment thread scripts/genesis.cjs
const directiveLower = directive.toLowerCase();

if (directiveLower.includes('landscape') || directiveLower.includes('terrain') || directiveLower.includes('meadow')) {
geometry = '<planeGeometry args={[10, 10, 32, 32]} />';

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

In React Three Fiber / Three.js, a <planeGeometry> is oriented vertically (facing the Z-axis) by default. For landscapes, terrains, or meadows, this will appear as a vertical wall unless the parent mesh is rotated (e.g., rotation={[-Math.PI / 2, 0, 0]}). Since the generator template might not apply this rotation, using a thin <boxGeometry args={[10, 0.1, 10]} /> is a safer and more reliable way to represent a flat ground/landscape without requiring rotation.

    geometry = '<boxGeometry args={[10, 0.1, 10]} />';

Igor Holt (igor-holt) and others added 2 commits June 15, 2026 07:35
- Updated `main` entrypoint to `workers/index.mjs` to enforce ESM mode.
- Updated `compatibility_date` to `2024-04-01`.
- Updated the `[build]` command to run the frontend build in the correct directory (`yennefer-observatory`) and removed unsupported environment variables.
- Updated `[assets]` mapping to `yennefer-observatory/dist`.
- Removed unsupported `[placement]` block (`mode = "smart"`) causing CI failures.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Renamed `workers/index.js` to `workers/index.mjs` to correctly match the `wrangler.toml` entrypoint setting and enforce ES Modules, resolving the ongoing Cloudflare Workers deployment and CI 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