From e8ba8385615a958f984b03f826ffaf66dc8e1a64 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Mon, 6 Jul 2026 19:44:27 -0700 Subject: [PATCH] =?UTF-8?q?ac-electron=200.1.50:=20Go=20=E2=86=92=20prompt?= =?UTF-8?q?.ac=20menu=20item=20(=E2=8C=98=E2=87=A7P)=20opens=20the=20shell?= =?UTF-8?q?html=20window;=20query-string=20load=20sidesteps=20the=20profil?= =?UTF-8?q?e's=20forever-cached=20301=20from=20prompt.ac's=20redirect=20er?= =?UTF-8?q?a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ac-electron/main.js | 35 +++++++++++++++++++++++++++++++++++ ac-electron/package-lock.json | 4 ++-- ac-electron/package.json | 2 +- 3 files changed, 38 insertions(+), 3 deletions(-) diff --git a/ac-electron/main.js b/ac-electron/main.js index 644072c91f..7a7ea6285a 100644 --- a/ac-electron/main.js +++ b/ac-electron/main.js @@ -987,6 +987,12 @@ function createMenu() { { label: 'Whistlegraph', click: () => navigateTo('whistlegraph') + }, + { type: 'separator' }, + { + label: 'prompt.ac', + accelerator: 'CmdOrCtrl+Shift+P', + click: () => openPromptAcWindow() } ] }, @@ -1810,6 +1816,35 @@ function openNotepatOverlayWindow() { return notepatOverlayWindow; } +// Open prompt.ac window — the shellhtml experience: DOM bar + corner chip +// chrome over the low-res buffer, hosted at its own domain. +function openPromptAcWindow() { + const { width, height } = screen.getPrimaryDisplay().workAreaSize; + const win = new BrowserWindow({ + width: Math.min(1200, width * 0.8), + height: Math.min(800, height * 0.8), + title: 'prompt.ac', + backgroundColor: '#0a0a0c', // matches the shell's --bg + webPreferences: { + nodeIntegration: false, + contextIsolation: true, + }, + }); + + // The query string sidesteps Chromium's forever-cached 301 from the era + // when prompt.ac redirected everything to aesthetic.computer (the profile + // still holds it; a bare load would skip the shell entirely). + win.loadURL('https://prompt.ac/?electron=1'); + + const windowId = windowIdCounter++; + windows.set(windowId, { window: win, mode: 'promptac' }); + win.on('closed', () => { + windows.delete(windowId); + }); + + return win; +} + // Open KidLisp window (kidlisp.com) function openKidLispWindow() { const { width, height } = screen.getPrimaryDisplay().workAreaSize; diff --git a/ac-electron/package-lock.json b/ac-electron/package-lock.json index 8df6701274..eb7336ee17 100644 --- a/ac-electron/package-lock.json +++ b/ac-electron/package-lock.json @@ -1,12 +1,12 @@ { "name": "aesthetic-computer", - "version": "0.1.49", + "version": "0.1.50", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aesthetic-computer", - "version": "0.1.49", + "version": "0.1.50", "license": "MIT", "dependencies": { "@electron/rebuild": "^4.0.2", diff --git a/ac-electron/package.json b/ac-electron/package.json index c9fd180cb5..1a98cf3b17 100644 --- a/ac-electron/package.json +++ b/ac-electron/package.json @@ -1,6 +1,6 @@ { "name": "aesthetic-computer", - "version": "0.1.49", + "version": "0.1.50", "description": "Aesthetic Computer", "homepage": "https://aesthetic.computer", "author": "Aesthetic Computer ", -- 2.51.2