From b67faca60b21b0cf74d5c967f0f8d215ad601e93 Mon Sep 17 00:00:00 2001 From: amankumarsingh77 Date: Tue, 28 Jul 2026 20:30:49 +0530 Subject: refactor(domains): strip comment noise Removes module banners, step markers, and comments restating the code. Keeps one-line notes for safeJs's trust boundary, the select-match null sentinels, the TUI width clamp, the single-window tab rule, the input synthesis quirks (char events, keyCode, mousemove, focus, compositor), the stale AX value, ignored-wrapper recursion, and isolated-tab routing. Co-Authored-By: Claude Opus 5 (1M context) --- src/domains/setup.ts | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/domains/setup.ts') diff --git a/src/domains/setup.ts b/src/domains/setup.ts index c2d8a4f..21fa3b3 100644 --- a/src/domains/setup.ts +++ b/src/domains/setup.ts @@ -1,10 +1,3 @@ -/** - * browser_setup tool — agent-callable browser initialization. - * - * The agent can call this directly when browser tools fail with - * "not initialized" instead of asking the user. Idempotent: safe - * to call even when already connected. - */ import { Type } from "typebox"; import { Text } from "@mariozechner/pi-tui"; @@ -29,12 +22,9 @@ export const setupTool = defineBrowserTool({ ], parameters: SetupArgs, concurrency: "parallel", - // ensureAlive:false — this tool IS the setup; it must bypass the socket guard ensureAlive: false, renderCall: () => new Text("🔧 Initializing browser...", 0, 0), async handler(_args, { client, extensionCtx }): Promise> { - // extensionCtx carries the UI, so the agent calling browser_setup gets the - // same first-run profile picker the user gets from /browser-setup. const result = await performSetup(client, extensionCtx); if (result.success) { return ok({ text: result.data }); -- cgit v1.2.3