aboutsummaryrefslogtreecommitdiff
path: root/src/domains/setup.ts
diff options
context:
space:
mode:
authoramankumarsingh77 <amankumarsingh7702@gmail.com>2026-07-28 20:30:49 +0530
committerAman Kumar <145339995+amankumarsingh77@users.noreply.github.com>2026-08-02 19:12:46 +0530
commitb67faca60b21b0cf74d5c967f0f8d215ad601e93 (patch)
tree12e8580e1b88c3ce6a2d9157cfa678cb7a55a73c /src/domains/setup.ts
parenta6ec1d0915106b127affbd6b5fcc9efec48ef712 (diff)
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) <noreply@anthropic.com>
Diffstat (limited to 'src/domains/setup.ts')
-rw-r--r--src/domains/setup.ts10
1 files changed, 0 insertions, 10 deletions
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<Result<ToolOk, ToolErr>> {
- // 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 });