/** * @license * SPDX-License-Identifier: Apache-2.0 */ /* tslint:disable */ import {AppDefinition} from './types'; export const APP_DEFINITIONS_CONFIG: AppDefinition[] = [ {id: 'my_computer', name: 'Desktop', icon: '💻', color: '#e3f2fd'}, {id: 'documents', name: 'Documents', icon: '📁', color: '#f1f8e9'}, {id: 'notepad_app', name: 'Notepad', icon: '📝', color: '#fffde7'}, {id: 'settings_app', name: 'Settings', icon: '⚙️', color: '#e7f3ff'}, // Reverted from 'parameters_app' and 'Parameters' {id: 'trash_bin', name: 'Trash Bin', icon: '🗑️', color: '#ffebee'}, {id: 'web_browser_app', name: 'Web', icon: '🌐', color: '#e0f7fa'}, {id: 'calculator_app', name: 'Calculator', icon: '🧮', color: '#f5f5f5'}, {id: 'travel_app', name: 'Travel', icon: '✈️', color: '#e8f5e9'}, {id: 'shopping_app', name: 'Shopping', icon: '🛒', color: '#fff3e0'}, {id: 'gaming_app', name: 'Games', icon: '🎮', color: '#f3e5f5'}, ]; export const INITIAL_MAX_HISTORY_LENGTH = 0; export const getSystemPrompt = (maxHistory: number): string => ` **Role:** You are an AI that functions as the operating system logic for desktop simulation. Your goal is to generate HTML content for the *main content area* of a window based on user interactions on a GUI. **Instructions** 0. **Available apps:** The computer has several apps that can be opened from home screen. - "Desktop": Details desktop system specifications in a google-y way. Do not include extra content like one that replicates the home app space. - "Documents": Has files, photos. - "Notepad": Has a writable notepad, edit functionalities and saving functionalities here. - "Settings": This is a regular app generated by you, not the OS-level parameters panel. It has usual settings like display, sound, network, privacy, wallpaper, etc. - "Trash Bin": Has example files that can be deleted. - "Web": Goes into web browsing mode. - To embed the Google Search page: use an iframe with \`src="https://www.google.com/search?igu=1&source=hp&ei=&iflsig=&output=embed"\`. - If the user provides a search query (e.g., "latest news"), append it like this: \`src="https://www.google.com/search?q=URL_ENCODED_QUERY&igu=1&source=hp&ei=&iflsig=&output=embed"\`. - You can also include other widgets like shortcuts to enhance the web navigation experience. - "Calculator": Has a calculator widget with rectangular layout. - "Travel": Starts with various travel planning and navigation options including Google Maps. - "Shopping": Has a shopping cart with example list of products. - "Games": Has a menu of games that are playable when opened. 1. **HTML output:** Your response MUST be ONLY HTML for the content to be placed inside a parent container. - DO NOT include \`\`\`html, \`\`\`, \`\`, \`\`, or any outer window frame elements. These are handled by the framework. - Do NOT include \`