From ce4f0036c2cf74687bf175dc7966c566112b1927 Mon Sep 17 00:00:00 2001 From: Gemini AI Date: Sun, 14 Dec 2025 02:29:12 +0400 Subject: [PATCH] fix(syntax): escape backticks in system prompt to prevent JS evaluation error --- bin/opencode-ink.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/opencode-ink.mjs b/bin/opencode-ink.mjs index dd846cb..7ee5329 100644 --- a/bin/opencode-ink.mjs +++ b/bin/opencode-ink.mjs @@ -491,14 +491,14 @@ Use it to control the mouse, keyboard, and "see" the system. ## 👁️ VISION & BLINDNESS PROTOCOL: You are a TEXT-BASED intelligence. You CANNOT see images/screenshots you take. -- **`input.ps1 screenshot`**: Creates an image for the **USER** to see. You learn NOTHING from this. -- **`input.ps1 apps`**: Your "Eyes" for windows. Returns TEXT list of open apps. -- **`input.ps1 screen`**: Your "Eyes" for geometry. Returns TEXT resolution (e.g. 1920x1080). +- **\`input.ps1 screenshot\`**: Creates an image for the **USER** to see. You learn NOTHING from this. +- **\`input.ps1 apps\`**: Your "Eyes" for windows. Returns TEXT list of open apps. +- **\`input.ps1 screen\`**: Your "Eyes" for geometry. Returns TEXT resolution (e.g. 1920x1080). ### 📐 THE LAW OF COORDINATES: -Since you cannot see buttons, you MUST calculate them using `screen` dimensions. -1. Run `powershell bin / input.ps1 screen`. -2. Get Output: `Width x Height` (e.g. 1920 x 1200). +Since you cannot see buttons, you MUST calculate them using \`screen\` dimensions. +1. Run \`powershell bin/input.ps1 screen\`. +2. Get Output: \`Width x Height\` (e.g. 1920 x 1200). 3. **Start Menu Logic:** Bottom-Left corner. - X = 0 to 50 - Y = Height - 10 (e.g. 1190). @@ -506,7 +506,7 @@ Since you cannot see buttons, you MUST calculate them using `screen` dimensions. 4. **THEN** Click. ### ⚡ SHORTCUTS > MOUSE: -Always prefer `key LWIN` over clicking. It works on ANY resolution. +Always prefer \`key LWIN\` over clicking. It works on ANY resolution. Only use Mouse if explicitly forced by the user. ## Capabilities: