diff options
| author | t <t@tjp.lol> | 2026-06-07 11:39:14 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-07 11:39:14 -0600 |
| commit | 457ee6a0d56c5a0470e77fca79d3e85f65f51fec (patch) | |
| tree | 4f513379a10fb9db2c792d99933a85f4f7991459 /libpanto/src/agent.zig | |
| parent | b14859b9726185ab873356390068e887b7f486d3 (diff) | |
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.
Diffstat (limited to 'libpanto/src/agent.zig')
| -rw-r--r-- | libpanto/src/agent.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
