Skip to content

Commit 3f40213

Browse files
committed
Install TurtleTerm agent gateway commands in stable formula template
1 parent 6c26df6 commit 3f40213

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

packaging/homebrew/templates/turtle-term.rb.template

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,21 @@ class TurtleTerm < Formula
3939
bin.install "target/release/wezterm-gui"
4040
bin.install "target/release/wezterm-mux-server"
4141

42-
chmod 0755, "assets/sourceos/bin/sourceos-term"
43-
chmod 0755, "assets/sourceos/bin/turtle-term"
44-
bin.install "assets/sourceos/bin/sourceos-term"
45-
bin.install "assets/sourceos/bin/turtle-term"
42+
turtle_scripts = %w[
43+
sourceos-term
44+
turtle-term
45+
turtle-agentd
46+
turtle-agentctl
47+
turtle-tmux
48+
]
49+
turtle_scripts.each do |script|
50+
chmod 0755, "assets/sourceos/bin/#{script}"
51+
bin.install "assets/sourceos/bin/#{script}"
52+
end
4653

4754
etc.install "assets/sourceos/wezterm.lua" => "turtle-term/wezterm.lua"
4855
pkgshare.install "docs/sourceos"
56+
pkgshare.install "assets/sourceos/skills" => "skills"
4957
end
5058

5159
def caveats
@@ -59,6 +67,7 @@ class TurtleTerm < Formula
5967
To test TurtleTerm:
6068
turtle-term paths
6169
turtle-term run -- echo hello
70+
turtle-agentctl --stdio ping
6271

6372
`sourceos-term` is installed as a compatibility command.
6473
EOS
@@ -67,6 +76,9 @@ class TurtleTerm < Formula
6776
test do
6877
assert_match "TurtleTerm command wrapper", shell_output("#{bin}/sourceos-term --help")
6978
assert_match "TurtleTerm command wrapper", shell_output("#{bin}/turtle-term --help")
79+
assert_match "TurtleTerm local agent gateway", shell_output("#{bin}/turtle-agentd --help")
80+
assert_match "TurtleTerm agent gateway CLI", shell_output("#{bin}/turtle-agentctl --help")
81+
assert_match "TurtleTerm tmux bridge", shell_output("#{bin}/turtle-tmux --help")
7082

7183
events = testpath/"events.ndjson"
7284
receipts = testpath/"receipts"
@@ -81,5 +93,6 @@ class TurtleTerm < Formula
8193
assert_match "hello", shell_output("#{bin}/turtle-term run -- echo hello")
8294
assert_predicate events, :exist?
8395
assert_match "command.completed", events.read
96+
assert_match "turtle-agentd", shell_output("#{bin}/turtle-agentctl --stdio ping")
8497
end
8598
end

0 commit comments

Comments
 (0)