Module: Pi::Browser::Taskbar::Rails::Broker

Defined in:
lib/pi/browser/taskbar/rails/broker.rb

Defined Under Namespace

Classes: Client, Identity, Runtime, Server, Unavailable

Constant Summary collapse

PROTOCOL_VERSION =
1
MAX_RECORD_BYTES =
1_000_000
MAX_OUTPUT_BYTES =
32 * 1024
DIALOG_METHODS =
%w[select confirm input editor].freeze
DEFAULT_ABORT_TIMEOUT =
5
DEFAULT_TERMINATION_TIMEOUT =
1
DEFAULT_RESTART_ATTEMPTS =
3
DEFAULT_RESTART_DELAY =
0.1
ONE_SHOT_SYSTEM_PROMPT =
"You are handling a one-shot browser task with no reply channel. Complete the user's request autonomously without asking follow-up questions. Inspect the repository and use the supplied browser context. Resolve missing details with conservative assumptions. Act directly on implementation requests, but preserve explicit planning and read-only constraints. Do not repeat a failed approach unchanged. If safe completion is impossible, stop and report the exact blocker.".freeze