diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 09:14:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | af127a88b03a4bd1b859993594a34b434e5e59d3 (patch) | |
| tree | 2c98f46f78f14b4ff9c9143dee4e7b99f0ecb8ff /build.zig | |
| parent | 6535f3a59bb2454a0e945d840c083b2423a80b44 (diff) | |
| parent | 2e6777e06e3f3e9d59ec847b98e0cb676d04296a (diff) | |
| download | pardes-af127a88b03a4bd1b859993594a34b434e5e59d3.tar.gz pardes-af127a88b03a4bd1b859993594a34b434e5e59d3.zip | |
integration: the command line as commands that describe themselves, with the editor library, the GPU move, the terminal, the plumber and the diff work
A merge of pardes-next (nsyzqrms) and pardes-cli (xurkunwk). One conflict, the changelog (both sides' entries kept); docs/typ/command-line.txt written again by builtins-json on the merge (the tree's README and words gained the plumber's files and a pane's rows). pardes builds beside a cloud9 at c9-cli (by path, until that cloud9 is published). Gated against the integration line's baseline (.scratch/sketch/gpu/mbase): frame corpus 77/77 identical in Debug and in ReleaseFast, the gated window +0.160% instructions (spread 0.39%, threshold 0.5%), unit-test on gui 1587/1595 with no failure the baseline has not; on tui core-test 811/950 (139 skipped), shell-test 993/996, behaviour-test 269/273 and unit-test 1528/1536 (the four addon ABI tests the base fails, and the perf baseline's harness mismatch), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; ttytaken failed once under load and passed its retry), lib-test, hxdiff 658, parity 738 and hxlib 538 with 0 mismatches, replicas pass.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -254,7 +254,11 @@ pub fn build(b: *std.Build) void { // `b.dependency` below would end the configure to fetch its own alone. const ts = treeSitter(b, io, target, c_optimize, tree_sitter_grammars); inline for (.{ "cloud9", "vaxis", "ghostty", "uucode", "zstbi", "mvzr", "zstd", "xitdb" }) |name| { - if (!std.Build.package_map.get(@field(zon.dependencies, name).hash).?.available) _ = b.lazyDependency(name, .{}); + // One by path (cloud9, until its pin returns) is there already. + const dep = @field(zon.dependencies, name); + if (@hasField(@TypeOf(dep), "hash")) if (!std.Build.package_map.get(dep.hash).?.available) { + _ = b.lazyDependency(name, .{}); + }; } const cloud9 = b.dependency("cloud9", .{ .target = target, .optimize = optimize }).module("cloud9"); for (core_mods) |mod| mod.addImport("cloud9", cloud9); @@ -803,7 +807,7 @@ pub fn build(b: *std.Build) void { // `typst compile` reads it too; a unit test fails when it is stale. // A terminal build writes builtins-tui.json and a window build // builtins-gui.json; style.typ merges the two into one glossary. - const builtins_json_step = b.step("builtins-json", "rewrite docs/typ/builtins-<tui|gui>.json from the builtin registry (-Dplatform=tui or gui)"); + const builtins_json_step = b.step("builtins-json", "rewrite docs/typ/builtins-<tui|gui>.json from the builtin registry, and with tui docs/typ/command-line.txt from pardes help --all (-Dplatform=tui or gui)"); if (requested_platform == .tui or requested_platform == .gui) { const gen = b.addExecutable(.{ .name = "pardes-gen-builtins-json", .root_module = b.createModule(.{ .target = target, @@ -1140,6 +1144,19 @@ pub fn build(b: *std.Build) void { .root_module = root_mod, }); installHome(b, exe, home_bin); + // docs/typ/command-line.txt: `pardes help --all`, the commands' + // help and the tree's README as this build prints them (never a + // session's), which the reference's "The pardes command" shows; + // main.zig's test fails when it is stale. The terminal's build + // writes it, the window's prints the same. + if (requested_platform == .tui) { + const run_help = b.addRunArtifact(exe); + run_help.addArgs(&.{ "help", "--all" }); + const update = b.addUpdateSourceFiles(); + update.addCopyFileToSource(run_help.captureStdOut(.{}), "docs/typ/command-line.txt"); + builtins_json_step.dependOn(&update.step); + for (doc_renders) |r| if (r) |run| run.step.dependOn(&update.step); + } // The addons, a step each: the default install is the binaries // alone, and `zig build image pdf` (or `addons`) puts the libraries // where the start scan finds them, <prefix>/lib/pardes/addons (and |
