### Prompt to Install Nuxt via npm Source: https://github.com/bananaacid/ai-operator/blob/main/examples/prompts.md A natural language prompt asking for instructions on installing Nuxt using npm, specifically directing the AI to read the Nuxt website for information. The context notes it involves web browsing and can get the correct command from the official site. ```text how do i install nuxt using npm? read the nuxt website to find out ``` -------------------------------- ### Run BAIO CLI Interactively Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This is the basic command to start BAIO. If environment variables or `.baioenvrc` are configured, it will prompt for input. Otherwise, it may guide you through initial setup. ```bash baio ``` -------------------------------- ### Packaging and Installing baio Locally (Powershell) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This Powershell script demonstrates how to package the current project, uninstall any existing global installation, install the newly created package globally, and verify the installation by checking the version. ```powershell $BaioVersion = (gc .\package.json | ConvertFrom-Json).version rm .\baio-${BaioVersion}.tgz ; npm uninstall -g baio ; npm pack ; npm install -g .\baio-${BaioVersion}.tgz baio --version ``` -------------------------------- ### Testing baio Commands (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/examples/prompts.md Provides examples of using the `baio` command-line tool for various testing scenarios, including creating agents, testing specific agents, testing agents with selection, and testing image files. ```bash # create an agent baio --reset-prompts --no-ask "create an @agent" # test a specific agent baio --reset-prompts --no-ask --agent ChickenTalk "list all files in directory" # only test agents with selection baio --reset-prompts --no-ask --agent * "list all files in directory" # test image baio -f cat.jpg "what is this file about" ``` -------------------------------- ### Starting baio for Development (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command is used to start the baio application in a development environment. It assumes the presence of a .env file in the project folder for configuration. ```bash npm start ``` -------------------------------- ### Install BAIO CLI with npm Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command installs the BAIO command-line interface globally using npm. Ensure Node.js v23.10 or newer is installed before running this command. ```bash npm -g baio ``` -------------------------------- ### Example Environment Variables Configuration Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Shows the structure of the `.baioenvrc` file or environment variables used to configure API keys, URLs, invoking shell, and settings prompts for Baio. ```env OLLAMA_API_KEY= OPENAI_API_KEY= GEMINI_API_KEY= OLLAMA_URL= OPENAI_URL= GEMINI_URL= INVOKING_SHELL= ASK_SETTINGS= ``` -------------------------------- ### Prompt to Change Directory and List Files Source: https://github.com/bananaacid/ai-operator/blob/main/examples/prompts.md A natural language prompt instructing the AI to navigate to the user's home directory and then list the files within it. The context explains that this translates into a change directory command followed by a file listing command. ```text go user folder and tell me about the files ``` -------------------------------- ### Prompt to Change Directory and Explain Files Source: https://github.com/bananaacid/ai-operator/blob/main/examples/prompts.md A natural language prompt asking the AI to navigate to the user's home directory and then explain the files found there. The context indicates this results in a change directory command followed by the creation of a table listing files and their descriptions. ```text go user folder and exlpain files ``` -------------------------------- ### Test BAIO without Installation (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command uses npx to run BAIO directly from the npm registry without global installation, setting a temporary API key and providing a direct prompt on MacOS or Linux. ```bash GEMINI_API_KEY=abcdefg1234567890 npx -y baio "list all files" ``` -------------------------------- ### Configuring baio Settings (JSON) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This JSON snippet shows example configuration options available in the baio settings file. These settings control aspects like command display length, automatic execution keys, and whether general prompts are allowed. ```JSON "cmdMaxLengthDisplay": 100, "autoExecKeys": [], "allowGeneralPrompts": false, ``` -------------------------------- ### Test BAIO without Installation (PowerShell) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command uses npx to run BAIO directly from the npm registry without global installation, setting a temporary API key and providing a direct prompt on Windows using PowerShell. ```powershell $env:GEMINI_API_KEY='abcdefg1234567890' ; npx -y baio "list all files" ``` -------------------------------- ### Example tsconfig.json for Type Checking (JSON) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This JSON object provides an example tsconfig.json configuration used solely for type checking purposes in VS Code. It is not required for building the project but helps identify potential type errors. ```JSON { "compilerOptions": { "declaration": true, "declarationMap": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "inlineSources": true, "module": "nodenext", "moduleResolution": "nodenext", "noUncheckedIndexedAccess": true, "resolveJsonModule": true, "skipLibCheck": false, "sourceMap": true, "strict": true, "target": "es2024", "allowImportingTsExtensions": true, "noEmit": true } } ``` -------------------------------- ### Prompt to Read File and Check Spelling Source: https://github.com/bananaacid/ai-operator/blob/main/examples/prompts.md A natural language prompt instructing the AI to read the content of a specific file (`./readme.md`) and check for spelling errors without using external tools. The context indicates it directly reads the file and might generate a command to fix errors. ```text read the content of ./readme.md and check with no tools for spelling errors ``` -------------------------------- ### Autoconfigure BAIO Settings Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command performs an automatic configuration of BAIO settings, including resetting, configuring, and updating, without prompting for settings interactively. Useful for initial setup or re-configuration. ```bash baio --reset --config --update --no-settings ``` -------------------------------- ### AI Operator Faster Startup Configuration (JSON) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Provides JSON configuration options that can be modified to potentially reduce the startup time of the AI operator by disabling certain pre-checks. ```JSON "precheckUpdate": true, "precheckDriverApi": true, "precheckLinksInstalled": true, ``` -------------------------------- ### baio Command Line Arguments Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This snippet shows the usage syntax and available command-line options for the 'baio' tool. It includes flags for selecting drivers, models, agents, controlling system environment access, managing prompt ending, importing history, adding files, updating configuration, resetting settings, and opening configuration files. ```Shell baio [-vhdmtaseifucr] ["prompt string"] -v, --version -h, -?, --help -d, --driver Select a driver (ollama, openai, googleai) -d *, --driver * Ask for a driver with a list, even if it would not -m, --model Select a model -m *, --model * Ask for a model with a list, even if it would not -t, --temp Set a temperature, e.g. 0.7 (0 for model default) -a, --agent , ... Select an agent or multiple, (a set of prompts for specific tasks) -a *, --agent * Ask for agent with a list, even if it would not -s, --sysenv Allow to use the complete system environment --no-sysenv ... to disable -e, --end End prompting if assumed done --no-end ... to disable -i, --import Import context from a history file or list files select from -i *, --import * Ask for history file with a list, even if it would not -f, --file , ... Add a single or multiple files to the prompt -u, --update Update user config, and automatically use the same settings next time --no-update ... to disable -c, --config Do not prompt, use with other config params --settings Only shows the settings to edit -r, --reset Reset (remove) config --reset-prompts Reset prompts only (use this after an update) --open Open the file in the default editor or the agents path (env, config, agents, history) Settings config path: ................../.baiorc Environment config path: ................../.baioenvrc Agents config path: ................../.baio/agents/ History config path: ................../.baio/history/ ``` -------------------------------- ### Open BAIO Environment Configuration Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command opens the `.baioenvrc` file in your default editor, allowing you to set API keys and other configuration settings for BAIO. ```bash baio --open env ``` -------------------------------- ### Append API Key to .baioenvrc (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Demonstrates how to append a specific API key (GEMINI_API_KEY) with a placeholder value to the `.baioenvrc` configuration file in the user's home directory using a Bash command. ```Bash echo "GEMINI_API_KEY=abcdefg1234567" >> $HOME/.baioenvrc ``` -------------------------------- ### Append API Key to .baioenvrc (PowerShell) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Demonstrates how to append a specific API key (GEMINI_API_KEY) with a placeholder value to the `.baioenvrc` configuration file in the user's profile directory using a PowerShell command. ```PowerShell echo "GEMINI_API_KEY=abcdefg1234567" >> $env:USERPROFILE\.baioenvrc ``` -------------------------------- ### List Baio File Paths via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Execute this command to display the paths to important configuration and data files used by Baio, such as env, config, agents, and history. ```bash baio --help ``` -------------------------------- ### Run BAIO CLI with Direct Prompt Source: https://github.com/bananaacid/ai-operator/blob/main/README.md After BAIO has been run once and configured to automatically use the same settings, you can provide a prompt directly as a command-line argument. ```bash baio "list all files" ``` -------------------------------- ### Open Baio Configuration File via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Use this command to open the main configuration file for editing. ```bash baio --open config ``` -------------------------------- ### Set Temporary Env Vars and Run Baio (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Shows how to set environment variables (OLLAMA_API_KEY, OLLAMA_URL) temporarily for a single command execution before running the `baio` application in a Bash shell. ```Bash OLLAMA_API_KEY=sdfghjk45678 OLLAMA_URL=http://localhost:11434 baio ``` -------------------------------- ### AI Operator Prompt Triggers (Command) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Lists the commands that can be entered at the prompt to trigger specific actions within the AI operator tool, including help, settings, file operations, history management, and debugging. ```Command /:help /:cmds /:settings /:read /:write /clip:read /clip:write /file:add [] /history:export [] /history:export:md [] /history:open /history:open:md /history:import [] /history:clear [] /:clear /:end [] /debug:result /debug:exec /debug:get /debug:set /debug:settings [all\|*] /:quit /:exit ``` -------------------------------- ### Re-open Baio Settings Prompt via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md If settings were previously saved to automatically skip the prompt, use this command to force the settings configuration prompt to appear again on launch. ```bash baio --settings ``` -------------------------------- ### Set Temporary Env Vars and Run Baio (PowerShell) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Shows how to set environment variables (OLLAMA_API_KEY, OLLAMA_URL) temporarily for the current session before running the `baio` application in a PowerShell shell, using the `$env:` prefix and command separator `;`. ```PowerShell $env:OLLAMA_API_KEY='sdfghjk45678' ; $env:OLLAMA_URL='http://localhost:11434' ; baio ``` -------------------------------- ### Testing baio with Prompt Reset (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command executes the baio tool directly using node, specifically including the --reset-prompts flag. This is useful for testing scenarios where the prompt state needs to be cleared. ```bash node bin/baio --reset-prompts ... ``` -------------------------------- ### Test BAIO with Temporary API Key (PowerShell) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command demonstrates how to set the GEMINI_API_KEY environment variable temporarily for a single BAIO execution on Windows using PowerShell. ```powershell $env:GEMINI_API_KEY='abcdefg1234567890' ; baio ``` -------------------------------- ### drivers.ts AI API Methods (Typescript) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This Typescript snippet lists the primary methods available in the drivers.ts file. These methods provide functionality for interacting with Ollama, OpenAI, and Google AI REST APIs using native fetch. ```typescript getModels(settings: ModelSelectionSettings, showSimple = true): Promise makePromptAddition(type: string, content: string, mimeType: string): GoogleAiPromptAddition|PromptAdditionError getChatResponse(settings: ChatResponseSettings, history: any[], promptText: PromptText, promptAdditions?: PromptAdditions): Promise ``` -------------------------------- ### Test BAIO with Temporary API Key (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command demonstrates how to set the GEMINI_API_KEY environment variable temporarily for a single BAIO execution on MacOS or Linux using bash. ```bash GEMINI_API_KEY=abcdefg1234567890 baio ``` -------------------------------- ### Testing baio Folder Analysis (Powershell) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This command tests baio's ability to analyze the current folder. It is expected to scan files, read the readme, and output a summary based on the project's content. ```powershell baio what is this folder about ``` -------------------------------- ### Open Baio Environment File via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Use this command to open the environment configuration file for editing. ```bash baio --open env ``` -------------------------------- ### Open Baio Agents Folder via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Use this command to open the directory containing agent definitions for editing or management. ```bash baio --open agents ``` -------------------------------- ### Select All Agents via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Use this command with the wildcard '*' to select all available agents without being prompted for individual settings. ```bash baio -a * ``` -------------------------------- ### Pulling Multiple Ollama Models (Powershell) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This Powershell script defines an array of Ollama pull commands and executes them as background jobs. It then waits for all background jobs to complete, allowing multiple models to be pulled concurrently. ```powershell #!powershell $commands = @() $commands += {ollama pull gemma3:12b} $commands += {ollama pull JOSIEFIED-Qwen2.5} $commands += {ollama pull phi4} $commands += {ollama pull deepseek-r1:8b} $commands += {ollama pull command-r7b} foreach($command in $commands){ start-job $command } # wait for jobs, only 5 will be run in parallel, rest is waiting While (@(Get-Job | Where { $_.State -eq "Running" }).Count -ne 0) { Write-Host "Waiting for background jobs..." Get-Job #Just showing all the jobs Start-Sleep -Seconds 1 } ``` -------------------------------- ### Pulling Multiple Ollama Models (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md This Bash script defines an array of Ollama pull commands and executes each command in the background using the '&' operator. It then enters a loop that waits for all background jobs to finish before exiting. ```bash #!/bin/bash commands=( "ollama pull gemma3:12b" "ollama pull JOSIEFIED-Qwen2.5" "ollama pull phi4" "ollama pull deepseek-r1:8b" "ollama pull command-r7b" ) for cmd in "${commands[@]}"; do eval "$cmd" & done while [ $(jobs -p | wc -l) -gt 0 ]; do echo "Waiting for background jobs..." jobs sleep 1 done ``` -------------------------------- ### Define PowerShell Function for links2-dump Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Defines a PowerShell function `links2-dump` that wraps the `links.exe` command-line tool to dump HTML content with numbered links from a given URL. This function simplifies calling links2 from the operator. ```PowerShell function links2-dump($url) { . "C:\Program Files\Links\links.exe" "-html-numbered-links" 1 -dump $url } ``` -------------------------------- ### Change Baio Settings via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Use this command to open and modify the current settings configuration for the Baio tool. ```bash baio --settings ``` -------------------------------- ### Edit Auto Execute Keys in Baio Config via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Open the main Baio configuration file to manually edit the `autoExecKeys` setting, which controls which commands are automatically executed. ```bash baio --open config ``` -------------------------------- ### AI Operator Debug Environment Variables (env) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Specifies environment variables that can be set to enable various types of debugging output for the AI operator, such as error details, API call information, and execution traces. ```env DEBUG_ERROR= DEBUG_OUTPUT= DEBUG_APICALLS= DEBUG_SYSTEMPROMPT= DEBUG_OUTPUT_MODELS= DEBUG_OUTPUT_MODELNAME= DEBUG_OUTPUT_EXECUTION= DEBUG_OUTPUT_SYSTEMPROMPT= DEBUG_APICALLS_PRETEND_ERROR= ``` -------------------------------- ### Open Baio History File via CLI (Bash) Source: https://github.com/bananaacid/ai-operator/blob/main/README.md Use this command to open the conversation history file. ```bash baio --open history ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.