Skip to content

feat: integrate Project Genie procedural generation simulations - #131

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

feat: integrate Project Genie procedural generation simulations#131
Igor Holt (igor-holt) wants to merge 3 commits into
mainfrom
integrate-project-genie-simulation-3853326311704534357

Conversation

@igor-holt

Copy link
Copy Markdown
Member

This PR integrates Google's Project Genie "live building" capabilities into Yennefer's Genesis Conductor engine by simulating its real-time procedural generation. It adds new visual mutation directives matching the Project Genie capabilities into scripts/genesis.cjs to generate 3D React Three Fiber environments, and sets up a new PM2 service to keep the continuous generation loop running asynchronously.


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

- Added new text directives to the `mutations` array in `scripts/genesis.cjs` that simulate Project Genie capabilities (alien landscape, makerspace workbench, alpine meadow, rainforest canopy) to trigger generation of React Three Fiber environments.
- Added a `project-genie` service configuration to `ecosystem.config.cjs` to orchestrate continuous "live building" using `./scripts/genesis.cjs` with `GENESIS_LOOP: 'true'`.
- Fixed `PATHS.journal` resolution in `scripts/genesis.cjs` to write to `__dirname` to avoid ENOENT errors during continuous loops.

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.

@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 updates the 'genesis.cjs' script by adding new mutation directives and changing the journal path to be relative to the script's directory. The feedback points out that writing runtime logs directly into the 'scripts/' directory can cause issues in read-only or containerized environments, and suggests allowing configuration via an environment variable or placing the file outside the source tree.

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 Outdated
mind: path.join(__dirname, '../yennefer-observatory/public/evolution.json'),
body: path.join(__dirname, '../yennefer-observatory/src/components/generated'),
journal: '/home/yenn/.yennefer/genesis_journal.jsonl'
journal: path.join(__dirname, 'genesis_journal.jsonl')

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

Writing runtime log/journal files directly into the scripts/ directory is problematic for several reasons:\n1. Source Directory Pollution: It mixes runtime state/log files with executable code.\n2. Read-Only Environments: In containerized or production environments, the source code directory is often mounted as read-only, which will cause write operations to fail.\n3. Persistence: Redeployments typically overwrite the source directory, leading to data loss.\n\nRecommendation:\nAllow configuring the journal path via an environment variable, falling back to a dedicated data directory or the project root outside of the source tree.

  journal: process.env.GENESIS_JOURNAL_PATH || path.join(__dirname, '../genesis_journal.jsonl')

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 10, 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 0f678c5 Commit Preview URL

Branch Preview URL
Jul 12 2026, 12:09 AM

Igor Holt (igor-holt) and others added 2 commits July 10, 2026 07:20
…ilure

- Changed the `main` entry point to `workers/index.mjs` and renamed the file accordingly to enforce ESM mode.
- Updated `compatibility_date` to `2024-04-01`.
- Removed the `[placement]` section to prevent "Workers Builds" check failures.
- Updated the `[build]` command to execute `npm run build` inside `yennefer-observatory` with the `--legacy-peer-deps` flag to bypass TypeScript peer dependency conflicts during CI builds.
- Updated the `[assets]` directory to `yennefer-observatory/dist`.

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

Copy link
Copy Markdown

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