diff --git a/src/lightpanda.zig b/src/lightpanda.zig index 630b3db7..fed1bf41 100644 --- a/src/lightpanda.zig +++ b/src/lightpanda.zig @@ -47,7 +47,7 @@ pub const HttpClient = @import("browser/HttpClient.zig"); pub const mcp = @import("mcp.zig"); pub const agent = @import("agent.zig"); -pub const script = @import("browser/script.zig"); +pub const script = @import("script.zig"); pub const cookies = @import("cookies.zig"); pub const build_config = @import("build_config"); pub const crash_handler = @import("crash_handler.zig"); diff --git a/src/browser/script.zig b/src/script.zig similarity index 98% rename from src/browser/script.zig rename to src/script.zig index 1ca7a031..781592b4 100644 --- a/src/browser/script.zig +++ b/src/script.zig @@ -1,9 +1,8 @@ //! PandaScript: a tiny DSL for recording and replaying browser sessions. //! -//! Lives under `browser/` because it sits below both `agent/` (the LLM -//! REPL) and `mcp/` (the external-agent server), both of which consume it -//! to translate between recorded `.lp` files and the shared `tools.zig` -//! action surface. +//! Sits above `browser/` (alongside `agent/` and `mcp/`) — both the LLM +//! REPL and the external-agent server consume it to translate between +//! recorded `.lp` files and the shared `browser/tools.zig` action surface. //! //! This file owns the deterministic helpers (line splicing, atomic file //! rewrite, path validation, the shared `mcp_driver_guidance` system diff --git a/src/browser/script/Command.zig b/src/script/Command.zig similarity index 100% rename from src/browser/script/Command.zig rename to src/script/Command.zig diff --git a/src/browser/script/Recorder.zig b/src/script/Recorder.zig similarity index 100% rename from src/browser/script/Recorder.zig rename to src/script/Recorder.zig diff --git a/src/browser/script/Verifier.zig b/src/script/Verifier.zig similarity index 98% rename from src/browser/script/Verifier.zig rename to src/script/Verifier.zig index 840cb452..bdf4cf30 100644 --- a/src/browser/script/Verifier.zig +++ b/src/script/Verifier.zig @@ -2,7 +2,7 @@ const std = @import("std"); const lp = @import("lightpanda"); const browser_tools = lp.tools; const Command = @import("Command.zig"); -const CDPNode = @import("../../cdp/Node.zig"); +const CDPNode = @import("../cdp/Node.zig"); const Self = @This();