Agent mode: an AI agent plays in the player's own tab, with the agent's clock or a running one
The MCP server gains a second session, --browser: the game in the player's tab, reached through the agent relay npm run dev hosts at /agent (loopback unless --host; Host and Origin checked, no token). The player turns it on in Settings → Agent API, a section only the development page has, and picks the clock: a pace of 30 s to 5 min a day that nobody can pause, or the agent's own. Headless gets the running clock too (--clock realtime --pace MS) and both get a wait tool. All of it lives in src/agent/ (development page only). The game offers HOOKS, UI.clockLocked, setSpeed() and runClock(dt), the frame's day block moved out unchanged, and nothing more: the page players get grows by under 1 KB gzipped and runs exactly as before.
This commit is contained in:
parent
2526dd458d
commit
7438fd1065
53 changed files with 1827 additions and 170 deletions
|
|
@ -3850,19 +3850,30 @@
|
|||
"security_and_china.tier_scrubbing_center_online_in_city":"<b>{tier} scrubbing center online in {city}.</b><br>Attacks up to {g} are cleaned, and you can sell DDoS protection.",
|
||||
"security_and_china.tier_scrubbing_unlocks_at_customer":"<b>{tier} scrubbing unlocks at customer level {lv}.</b>",
|
||||
"security_and_china.you_counter_flooded_a_hospital_in":"You counter-flooded a hospital in a country you cannot pronounce.",
|
||||
"settings.a_pace_runs_one_simulated_day":"A pace runs one simulated day every 30 seconds to 5 minutes, and the agent has to keep up. Moved by the agent, the clock stands still until the agent asks for days.",
|
||||
"settings.agent_api":"Agent API",
|
||||
"settings.agent_relay_connected":"Agent relay connected: a tool can now drive this game in this tab.",
|
||||
"settings.agent_s_clock":"Agent's clock",
|
||||
"settings.an_early_heads_up_below_60":"An early heads-up below 60% happiness, long before they are furious.",
|
||||
"settings.auto_follows_your_device_s_reduce":"Auto follows your device’s reduce-motion setting. Off freezes the map: no moving packets, pulses or floating text.",
|
||||
"settings.customers_and_alerts":"Customers and alerts",
|
||||
"settings.display_and_sound":"Display and sound",
|
||||
"settings.for_reporting_layout_bugs_shows_what":"For reporting layout bugs: shows what your screen tells the game.",
|
||||
"settings.let_an_ai_agent_drive_this_game":"Let an AI agent drive this game",
|
||||
"settings.n_min":"{n} min",
|
||||
"settings.n_sec":"{n} s",
|
||||
"settings.only_trouble_and_milestones_pop_up":"Only trouble and milestones pop up; everything else goes quietly into the NOC log. On by default in Best Effort.",
|
||||
"settings.pace_t_per_day":"{t} per simulated day",
|
||||
"settings.pause_on_outages_that_hurt":"Pause on outages that hurt",
|
||||
"settings.pause_when_a_customer_is_furious":"Pause when a customer is furious",
|
||||
"settings.quiet_notifications":"Quiet notifications",
|
||||
"settings.saved_on_this_device":"Saved on this device.",
|
||||
"settings.stops_the_game_when_a_failure":"Stops the game when a failure costs you real traffic, not when it reroutes by itself.",
|
||||
"settings.the_agent_moves_it":"The agent moves it",
|
||||
"settings.the_clock_while_an_agent_plays":"The clock while an agent plays",
|
||||
"settings.the_game_stops_so_you_can":"The game stops so you can fix their service before they cancel. Most useful at high speed.",
|
||||
"settings.warn_when_a_customer_gets_unhappy":"Warn when a customer gets unhappy",
|
||||
"settings.while_agent_mode_is_on_the":"While agent mode is on, the clock is not yours. With a pace it runs by itself and cannot be paused by hand, not even by an open window (yours included), and it waits while no agent is connected. Or the agent moves it, and nothing happens until it asks for days. The page connects to the local agent relay (npm run dev hosts one), so tools like the MCP server can drive this game while you watch.",
|
||||
"share_card.build_the_internet_one_tube_at":"Build the internet, one tube at a time",
|
||||
"share_card.n_in_r_regions":"{n} in {r} regions",
|
||||
"share_card.not_this_time":"not this time",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue