mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-28 08:36:17 +08:00
An agent REPL whose terminal went away kept running. Killing the tmux session it ran in, or dropping the ssh connection, left read() returning 0 on stdin while select() kept reporting it readable, and isocline treated that as "no key yet": the editor redrew and read again in a tight loop, allocating each time. Two of them left behind by a screencast had grown past 4 GiB each within minutes. isocline now ends the edit on EOF or a read error, as Ctrl-D on an empty line does, so the REPL quits. Its signal handler also stops swallowing termination signals it has no previous handler to chain to, which is what let the SIGHUP from that hangup go unnoticed. SIGTERM in the REPL still behaves like Ctrl-C: that is Sighandler's no_hard_exit, and isocline never sees it.
61 lines
2.9 KiB
Zig
61 lines
2.9 KiB
Zig
.{
|
|
.name = .browser,
|
|
.version = "1.1.0-dev",
|
|
.fingerprint = 0xda130f3af836cea0, // Changing this has security and trust implications.
|
|
.minimum_zig_version = "0.17.0",
|
|
.dependencies = .{
|
|
.v8 = .{
|
|
.url = "https://github.com/lightpanda-io/zig-v8-fork/archive/b73e4fa2d0afe5036745ae7d332cc5cb7e7adb53.tar.gz",
|
|
.hash = "v8-0.0.0-xddH64tVAwDZKW4zyy2h9cKXeWfWSjupsZIwTbYxSL9T",
|
|
},
|
|
// .v8 = .{ .path = "../zig-v8-fork" },
|
|
.brotli = .{
|
|
// v1.2.1
|
|
.url = "https://github.com/google/brotli/archive/db24a98aed38a16de78cc05ca15cdd8dc2a0d92d.tar.gz",
|
|
.hash = "N-V-__8AAHajKgD1oXsbBWLJka_y0ZSKZnQaTc6L-KURx6-j",
|
|
},
|
|
.zlib = .{
|
|
.url = "https://github.com/madler/zlib/releases/download/v1.3.2/zlib-1.3.2.tar.gz",
|
|
.hash = "N-V-__8AAJ2cNgAgfBtAw33Bxfu1IWISDeKKSr3DAqoAysIJ",
|
|
},
|
|
.zstd = .{
|
|
.url = "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz",
|
|
.hash = "N-V-__8AAPZ7fwBg4JoCzM_0o2A8wxH2hsUUeiU1iuZv53L5",
|
|
},
|
|
.nghttp2 = .{
|
|
.url = "https://github.com/nghttp2/nghttp2/releases/download/v1.70.0/nghttp2-1.70.0.tar.gz",
|
|
.hash = "N-V-__8AACay2gDbHrByjNGWvyH8G9Gp30uRgZqobYOF1nhb",
|
|
},
|
|
.@"boringssl-zig" = .{
|
|
.url = "git+https://github.com/lightpanda-io/boringssl-zig.git#5b5ad66f65c5cc4323680ab71284403598251678",
|
|
.hash = "boringssl-0.1.0-VtJeWc1RAADbO4ypofgJivLdDc6yj5O2ifTBlY-ZDHcH",
|
|
},
|
|
// .@"boringssl-zig" = .{ .path = "../boringssl-zig" },
|
|
.curl = .{
|
|
.url = "https://github.com/curl/curl/releases/download/curl-8_23_0/curl-8.23.0.tar.gz",
|
|
.hash = "N-V-__8AAMjlVwH79yAHsK65VUcPuhOO6BWgpLDvvnlWPLly",
|
|
},
|
|
.sqlite3 = .{
|
|
.url = "https://sqlite.org/2026/sqlite-amalgamation-3530200.zip",
|
|
.hash = "N-V-__8AALc_rgC04POe18O0LKFRm4ouQpLtL3riscEmWp-Q",
|
|
},
|
|
.zenai = .{
|
|
.url = "git+https://github.com/lightpanda-io/zenai.git#1de895f6a44facc789d7b1af8f9d8b1b6f5a2798",
|
|
.hash = "zenai-0.0.0-iOY_VAJHCQBfwIoPimnpcHayNdwoN8gHtUkr6ui5lMi0",
|
|
},
|
|
.isocline = .{
|
|
.url = "git+https://github.com/arrufat/isocline#41bb0c5380950b90440e74215c3e0e4821b8bbce",
|
|
.hash = "N-V-__8AAJVvEwAkVMvqVhi4hrCdFIzrefNcsl_OrnW1q_E4",
|
|
},
|
|
.pcre2 = .{
|
|
.url = "git+https://github.com/PCRE2Project/pcre2#9ad4a2e956876747a5022bf04614c7e39e71d4ec",
|
|
.hash = "pcre2-10.50.0-DEV-IZ6r6yDTrgCmI3jcBntPIdZLWLhNORGZZSi8hxQkc11x",
|
|
},
|
|
.translate_c = .{
|
|
.url = "git+https://codeberg.org/ziglang/translate-c?ref=2.0.0#0da7a16c3235b935b82421646076e0657cda21f6",
|
|
.hash = "translate_c-2.0.0-Q_BUWltOBwA0229IE8wwSxxGzOxyRso3hvcb1nN8oJX_",
|
|
},
|
|
},
|
|
.paths = .{""},
|
|
}
|