mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:23:33 +00:00
- Normalize session cwd to Git repo root when launched from a subdirectory so file edits and execs resolve from project root. Prevents bad paths like <repo>/docs/.../server/src and related stalls. - Clarify approval plumbing by using (not sub_id) in and log a warning if no pending approval is found. Helps diagnose/avoid approval hangs after user clicks Approve. Closes #20
28 lines
799 B
Ruby
28 lines
799 B
Ruby
class Code < Formula
|
|
desc "Terminal coding agent"
|
|
homepage "https://github.com/just-every/code"
|
|
version "v0.2.67"
|
|
on_macos do
|
|
if Hardware::CPU.arm?
|
|
url "https://github.com/just-every/code/releases/download/v0.2.67/code-aarch64-apple-darwin.tar.gz"
|
|
sha256 "ed8fbb68d8cff0f76d28c9c9b69445dab66f8e645613e9145061e950e8cf7507"
|
|
else
|
|
url "https://github.com/just-every/code/releases/download/v0.2.67/code-x86_64-apple-darwin.tar.gz"
|
|
sha256 "642f656b1d45fe305738f519b5d44c8329bd9963f3e3781ee542a4313d2102f7"
|
|
end
|
|
end
|
|
|
|
def install
|
|
bin.install Dir["code-*"].first => "code"
|
|
# Provide a compatibility shim
|
|
(bin/"coder").write <<~EOS
|
|
#!/bin/bash
|
|
exec "#{bin}/code" "$@"
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/code", "--help"
|
|
end
|
|
end
|