|
1 | | -# AI / AGI / AIM Unified Tool GUI |
2 | | - |
3 | | -This is a web-based graphical user interface for the "AI/AGI/AIM Unified Processing Tool," a command-line script designed to process files, interact with a local Ollama AI model, and manage the system environment. This UI provides a user-friendly way to access the script's core functionalities directly in your browser. |
4 | | - |
5 | | -## ✨ Features |
6 | | - |
7 | | -- **System Tab**: |
8 | | - - **Installer (`ai init`)**: A one-click simulation to install the `ai` tool, which adapts `.bashrc` and copies the script to the user's bin directory. |
9 | | - - **Environment Scan (`ai .`)**: Simulates a scan of the system environment, showing variables, disk usage, and more. |
10 | | -- **AI Modes**: |
11 | | - - **Direct Input Processing**: Process raw text or fetch content from a URL to be analyzed by the local Ollama model. |
12 | | - - **File Processing (`ai -`)**: Upload one or more files to apply the script's standard AI processing. |
13 | | - - **Script Processing (`ai +`)**: A placeholder for future script-aware AI logic. |
14 | | -- **AGI Modes**: Placeholders simulating advanced functionalities that require direct filesystem access, such as watching a folder for changes (`ai agi +`). |
15 | | -- **Dynamic Output Viewer**: |
16 | | - - View processed code or text output. |
17 | | - - See a live HTML preview if the output is web content. |
18 | | - - Monitor detailed logs of all operations in a clean, color-coded terminal-style interface. |
19 | | - |
20 | | -## 🚀 Getting Started: Using the GUI |
21 | | - |
22 | | -The GUI is designed to be a direct visual interface for the command-line script. All actions are simulations of what would happen in a real Termux or proot-distro environment. |
23 | | - |
24 | | -### System Tab |
25 | | - |
26 | | -This tab is for system-level operations. |
27 | | - |
28 | | -1. **Install Tool**: Click the **"Install `ai` Command"** button to simulate the `ai init` command. This will show logs indicating that the `.bashrc` file has been adapted and the script has been installed to `~/bin/ai`. |
29 | | -2. **Scan Environment**: Click the **"Scan Environment"** button to simulate the `ai .` command. The output viewer will display a mock report of environment variables, disk usage, and directory listings. |
30 | | - |
31 | | -### AI Tab |
32 | | - |
33 | | -This is the primary tab for all AI-driven processing tasks. |
34 | | - |
35 | | -- **Direct Input**: |
36 | | - 1. Enter text, paste code, or provide a URL in the respective input fields. |
37 | | - 2. Click **"Process Input"**. |
38 | | - 3. The UI will simulate sending this content to a local Ollama model and display the result. If Ollama isn't found, it will simply display the input back, as per the script's logic. |
39 | | -- **File Processing**: |
40 | | - 1. Drag and drop files onto the designated area or click to browse your local system. |
41 | | - 2. Click **"Process File(s)"**. |
42 | | - 3. The UI simulates running `ai - [your-files...]`. It will show logs indicating each file is backed up and then processed. Since the UI can't run Ollama, it will show the script's fallback behavior, which is to output a "universal law" into a `.processed` file. |
43 | | - |
44 | | -### AGI Tab |
45 | | - |
46 | | -This tab contains placeholders for advanced features that require direct filesystem access and cannot be run in a browser environment. |
47 | | - |
48 | | -- **Watch Mode**: Simulates the `ai agi +` command, which would normally watch a directory for file changes. |
49 | | -- **Virtual Screenshot**: Simulates the `ai agi -` command. |
50 | | - |
51 | | ---- |
52 | | - |
53 | | -## 💻 Command-Line Script Reference |
54 | | - |
55 | | -The UI is based on the following script commands: |
56 | | - |
57 | | -- `ai init`: Installs the tool. (System Tab) |
58 | | -- `ai .`: Scans the environment. (System Tab) |
59 | | -- `ai [prompt|url|file]`: The default action. Processes input with Ollama. (AI Tab -> Direct Input) |
60 | | -- `ai - [files...]`: Processes one or more files. (AI Tab -> File Processing) |
61 | | -- `ai +`: Placeholder for script logic. (AI Tab) |
62 | | -- `ai * [pattern]`: Batch processes files matching a pattern. (Represented by multi-file selection in the UI). |
63 | | -- `ai :[f1:f2]`: Pipeline processing. (Represented by multi-file selection in the UI). |
64 | | -- `ai agi + [folder]`: Watches a folder for changes. (AGI Tab) |
65 | | -- `ai agi -`: Takes a virtual screenshot. (AGI Tab) |
| 1 | +. |
0 commit comments