Skip to content

Commit 45cd8e8

Browse files
committed
create new generative-computer folder
1 parent 07f4d15 commit 45cd8e8

35 files changed

+38
-194
lines changed

AUTHENTICATION_FLOW.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ If the backend ever drops to simulator mode you will still get generated content
4343
To confirm credentials outside the UI you can run:
4444

4545
```bash
46-
node -e "import('./backend/check-auth.js').then(m => m.checkGeminiAuth().then(console.log))"
46+
node -e "import('./generative-computer/backend/check-auth.js').then(m => m.checkGeminiAuth().then(console.log))"
4747
```
4848

4949
The command prints a JSON summary highlighting Node version problems, auth failures, or a clean success.
5050

5151
---
5252

53-
With these pieces in place you can focus on iterating with the real Gemini agent. When in doubt, run `./start.sh` from the project root and follow the prompts.
53+
With these pieces in place you can focus on iterating with the real Gemini agent. When in doubt, run `./computer` from the project root and follow the prompts.

README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,27 @@ Press `Ctrl+C` to shut everything down.
7070

7171
```
7272
generative-computer/
73-
├── frontend/
74-
│ ├── src/components/
75-
│ │ ├── CommandInput.tsx # Always-on prompt box (protected from edits)
76-
│ │ ├── Desktop.tsx # Desktop layout and window manager
77-
│ │ ├── Window.tsx # Draggable window wrapper
78-
│ │ └── GeneratedContent.tsx # File Gemini rewrites on every command
79-
│ └── package.json
80-
├── backend/
81-
│ ├── server.js # Express API (POST /api/command)
82-
│ ├── gemini-agent.js # Spawns the Gemini CLI bundle with guardrails
83-
│ └── smart-simulator.js # Deterministic fallback content generator
73+
├── generative-computer/
74+
│ ├── AGENTS.md # Overview of the agent stack and workflows
75+
│ ├── frontend/
76+
│ │ ├── src/components/
77+
│ │ │ ├── CommandInput.tsx # Always-on prompt box (protected from edits)
78+
│ │ │ ├── Desktop.tsx # Desktop layout and window manager
79+
│ │ │ ├── Window.tsx # Draggable window wrapper
80+
│ │ │ └── GeneratedContent.tsx # File Gemini rewrites on every command
81+
│ │ └── package.json
82+
│ └── backend/
83+
│ ├── server.js # Express API (POST /api/command)
84+
│ ├── gemini-agent.js # Spawns the Gemini CLI bundle with guardrails
85+
│ └── smart-simulator.js # Deterministic fallback content generator
8486
├── bundle/ # Output of `npm run build` (gemini.js lives here)
87+
├── computer # Thin wrapper that forwards to start.sh
8588
├── start.sh # Launch script for auth + both services
8689
└── logs/agent/ # Populated when DEBUG_AGENT=true
8790
```
8891

92+
The nested `./generative-computer/` folder keeps the frontend and backend agents grouped together so the top-level `./computer` launcher can keep its original name.
93+
8994
## Stay In The Loop
9095

9196
🚀 **Follow me on Twitter for updates on the project:** [Follow me on Twitter](https://x.com/intent/follow?screen_name=josh_bickett)

REAL_AGENT_SETUP.md

Lines changed: 0 additions & 164 deletions
This file was deleted.

generative-computer/AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Agents Overview
File renamed without changes.

backend/check-auth.js renamed to generative-computer/backend/check-auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { dirname, join } from 'node:path';
1313

1414
const __filename = fileURLToPath(import.meta.url);
1515
const __dirname = dirname(__filename);
16-
const REPO_ROOT = join(__dirname, '..');
16+
const REPO_ROOT = join(__dirname, '..', '..');
1717
const BUNDLE_PATH = join(REPO_ROOT, 'bundle', 'gemini.js');
1818

1919
async function hasAuthFiles() {

backend/gemini-agent.js renamed to generative-computer/backend/gemini-agent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { dirname, join } from 'node:path';
1414
const __filename = fileURLToPath(import.meta.url);
1515
const __dirname = dirname(__filename);
1616

17-
const REPO_ROOT = join(__dirname, '..');
18-
const FRONTEND_SRC = join(REPO_ROOT, 'frontend/src');
17+
const REPO_ROOT = join(__dirname, '..', '..');
18+
const FRONTEND_SRC = join(REPO_ROOT, 'generative-computer', 'frontend', 'src');
1919
const COMPONENTS_DIR = join(FRONTEND_SRC, 'components');
2020
const GENERATED_CONTENT_PATH = join(COMPONENTS_DIR, 'GeneratedContent.tsx');
2121
const GEMINI_BUNDLE = join(REPO_ROOT, 'bundle', 'gemini.js');

backend/package.json renamed to generative-computer/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
"cors": "^2.8.5",
1313
"chokidar": "^3.5.3"
1414
}
15-
}
15+
}

backend/server.js renamed to generative-computer/backend/server.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ app.use(cors());
2424
app.use(express.json());
2525

2626
// Path to the frontend directory where the agent will write
27-
const FRONTEND_DIR = join(__dirname, '../frontend/src/components');
27+
const FRONTEND_DIR = join(__dirname, '..', 'frontend', 'src', 'components');
2828
const GENERATED_CONTENT_PATH = getGeneratedContentPath();
2929

3030
// Toggle between simulation and real agent
@@ -147,7 +147,9 @@ app.listen(PORT, async () => {
147147
console.log('');
148148
console.log('📋 To authenticate:');
149149
console.log(' 1. Open a new terminal');
150-
console.log(' 2. cd /Users/josh/Documents/software/repos/open-imagine');
150+
console.log(
151+
' 2. cd /Users/josh/Documents/software/repos/generative-computer',
152+
);
151153
console.log(' 3. Run: npm start');
152154
console.log(
153155
' 4. Choose "Login with Google" and complete authentication',
File renamed without changes.

0 commit comments

Comments
 (0)