From 69a1ee138bb78ad4663fe2d9e58678f7b0d07b74 Mon Sep 17 00:00:00 2001 From: t Date: Tue, 23 Jun 2026 09:38:23 -0600 Subject: ponytail simplifications to panto cli and lua extensiosn --- src/luarocks_runtime.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/luarocks_runtime.zig') diff --git a/src/luarocks_runtime.zig b/src/luarocks_runtime.zig index 7991e4e..1505b8f 100644 --- a/src/luarocks_runtime.zig +++ b/src/luarocks_runtime.zig @@ -2,7 +2,7 @@ //! //! Responsibilities at startup (per LUA_MAKEOVER.md steps 3-5 and Q1-Q5): //! -//! 1. Resolve `$PANTO_HOME` and the per-Lua-version rocks tree +//! 1. Resolve the panto data home and the per-Lua-version rocks tree //! (`panto_home.zig`). Create the directory layout if missing. //! 2. Stage Lua headers under `/include/` (from `@embedFile`) //! so luarocks can compile C rocks against them. Idempotent: a @@ -21,7 +21,7 @@ //! 7. Reconcile the batteries manifest: for each pinned rock, check //! `/lib/luarocks/rocks-///` and invoke //! `luarocks install` for anything missing. (Slow path; only the -//! first run after a fresh `$PANTO_HOME` actually downloads.) +//! first run after a fresh data home actually downloads.) //! //! Step 7 needs a usable `lua` executable on PATH from luarocks's point //! of view \u2014 it shells out for rockspec build scripts. We satisfy @@ -330,7 +330,7 @@ fn ensurePantoModuleSignature( // --------------------------------------------------------------------------- /// Materialize the binary-embedded `agent/` tree under -/// `$PANTO_HOME/agent/`. Each entry's `path` is relative to the agent +/// `/agent/`. Each entry's `path` is relative to the agent /// root and may include subdirectories (`tools/read.lua` etc.); the /// parent directory is created lazily as we encounter files inside it. /// @@ -360,7 +360,7 @@ fn stageAgentTree( } } -/// The default base `config.toml`, materialized at `$PANTO_HOME/config.toml` +/// The default base `config.toml`, materialized at `/config.toml` /// on first run if absent. It declares OpenAI and Anthropic providers, each /// naming an `[auth.]` session whose key comes from the conventional /// env var — so a provider's first request fails with a clear auth error @@ -463,7 +463,7 @@ const default_base_config = \\ ; -/// Materialize the default base config at `$PANTO_HOME/config.toml`, +/// Materialize the default base config at `/config.toml`, /// but only if no file exists there yet. We never overwrite — the base /// config is user-editable, and a stale-but-edited file must win over the /// shipped default. @@ -579,7 +579,7 @@ fn writeShellQuoted(w: anytype, s: []const u8) !void { /// Materialize a luarocks config-.lua under `layout.sysconfdir`. /// This is the file luarocks reads from `SYSCONFDIR`; we point every /// path-typed variable at the in-tree directories so installs land in -/// `$PANTO_HOME/rocks/lua-X.Y.Z/`. +/// `/rocks/lua-X.Y.Z/`. /// /// Format reference: docs/config_file_format.md in the luarocks repo. fn writeLuarocksConfig( -- cgit v1.3