summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-06-10 10:06:07 -0600
committert <t@tjp.lol>2026-06-10 12:17:27 -0600
commitbb85e867bc938138f29fb45230169af1ba60761c (patch)
tree5ad1cf50274c61ccfffab7048b4a4e28003d82b5 /src/main.zig
parentd26890bbc52e9f0050db40f208763a7f2b714ddd (diff)
Add addUserText helper; update all call sites
Conversation.addUserMessage now takes a []ContentBlock (symmetric with addAssistantMessage). Introduce a thin addUserText wrapper in agent.zig for the plain-text case and update every call site in agent.zig and anthropic_messages_json.zig accordingly.
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 34a687a..06fd29e 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -355,6 +355,13 @@ pub fn main(init: std.process.Init) !void {
);
}
+ // Bootstrap staged `panto.so` onto the embedded VM's cpath and
+ // configured `package.path`/`cpath`; now wire `require('panto')` to
+ // the native module + the CLI's `ext` subtable. Must run before
+ // `installScheduler` (which writes onto the module table) and before
+ // any extension loads (which `require('panto')`).
+ try rt.installPantoModule();
+
// luv is installed (or already present) at this point; wire the
// libuv-driven coroutine scheduler before any extensions get a
// chance to register tools that might want to yield.