From 457ee6a0d56c5a0470e77fca79d3e85f65f51fec Mon Sep 17 00:00:00 2001 From: t Date: Sun, 7 Jun 2026 11:39:14 -0600 Subject: Add public.zig as the libpanto root; delete root.zig public.zig is now the sole exported root (build.zig points the panto module at it). It defines the curated public API allowlist: behavioral facades (Agent/Stream/Conversation wrapping a pointer to the heap-pinned internal), the ResultParts struct, Pricing, the session seam, and data-type aliases for the Config/Conversation/Event families. A clearly-marked transitional block re-exports the internal module namespaces and the freestanding result-part helpers the panto CLI still imports directly; Phase 4 trims these as the CLI migrates onto the curated surface. Stream.Phase is now pub so State can alias it. The refAllDecls test contract moved from root.zig into public.zig. --- libpanto/src/agent.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpanto/src/agent.zig') diff --git a/libpanto/src/agent.zig b/libpanto/src/agent.zig index 604ee55..5f9bee5 100644 --- a/libpanto/src/agent.zig +++ b/libpanto/src/agent.zig @@ -1076,7 +1076,7 @@ pub const Stream = struct { /// drained. `next()` yields the queue first, then this error. pending_error: ?anyerror = null, - const Phase = enum { + pub const Phase = enum { /// Open the next provider response (with retries). turn_start, /// Pump the active provider response into events. -- cgit v1.3