tinker-agent 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/agent-bridge-tmux +2 -0
- package/package.json +1 -1
- package/run-tinker-agent.rb +0 -6
- package/setup-agent.rb +0 -19
package/bin/agent-bridge-tmux
CHANGED
|
@@ -35,6 +35,8 @@ tmux new-session -d -s "$SESSION" -x "$COLS" -y "$LINES"
|
|
|
35
35
|
tmux set-option -t "$SESSION" status on
|
|
36
36
|
tmux set-option -t "$SESSION" status-interval 1
|
|
37
37
|
tmux set-option -t "$SESSION" status-style "bg=black,fg=white"
|
|
38
|
+
tmux set-option -t "$SESSION" status-left-length 50
|
|
39
|
+
tmux set-option -t "$SESSION" status-right-length 150
|
|
38
40
|
tmux set-option -t "$SESSION" status-left "#[fg=cyan,bold]🤖 $AGENT_TYPE #[fg=cyan]│ "
|
|
39
41
|
tmux set-option -t "$SESSION" status-right "#[fg=green]#(cat $STATUS_FILE 2>/dev/null || echo '❓') #[fg=cyan]│ #[fg=white]%H:%M:%S"
|
|
40
42
|
tmux set-option -t "$SESSION" window-status-format ""
|
package/package.json
CHANGED
package/run-tinker-agent.rb
CHANGED
|
@@ -112,12 +112,6 @@ def run_agent(agent_type, config)
|
|
|
112
112
|
"-e", "RAILS_API_KEY=#{agent_config['mcp_api_key']}"
|
|
113
113
|
]
|
|
114
114
|
|
|
115
|
-
# Add Anthropic config
|
|
116
|
-
if (anthropic = config["anthropic"])
|
|
117
|
-
docker_cmd += ["-e", "ANTHROPIC_BASE_URL=#{anthropic['base_url']}"] if anthropic["base_url"]
|
|
118
|
-
docker_cmd += ["-e", "ANTHROPIC_MODEL=#{anthropic['model']}"] if anthropic["model"]
|
|
119
|
-
end
|
|
120
|
-
|
|
121
115
|
# Add GitHub auth
|
|
122
116
|
github = config["github"] || {}
|
|
123
117
|
if github["method"] == "app"
|
package/setup-agent.rb
CHANGED
|
@@ -123,24 +123,6 @@ AGENT_BANNERS = {
|
|
|
123
123
|
BANNER
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
def check_requirements!
|
|
127
|
-
missing = []
|
|
128
|
-
missing << "ruby" unless system("which ruby > /dev/null 2>&1")
|
|
129
|
-
missing << "node" unless system("which node > /dev/null 2>&1")
|
|
130
|
-
missing << "tmux" unless system("which tmux > /dev/null 2>&1")
|
|
131
|
-
missing << "git" unless system("which git > /dev/null 2>&1")
|
|
132
|
-
missing << "claude" unless system("which claude > /dev/null 2>&1")
|
|
133
|
-
|
|
134
|
-
unless missing.empty?
|
|
135
|
-
puts "❌ Missing requirements: #{missing.join(', ')}"
|
|
136
|
-
puts ""
|
|
137
|
-
puts "Install with:"
|
|
138
|
-
puts " apt-get install -y tmux git curl"
|
|
139
|
-
puts " npm install -g @anthropic-ai/claude-code"
|
|
140
|
-
exit 1
|
|
141
|
-
end
|
|
142
|
-
end
|
|
143
|
-
|
|
144
126
|
def check_env!
|
|
145
127
|
required = %w[AGENT_TYPE PROJECT_ID RAILS_WS_URL]
|
|
146
128
|
missing = required.select { |var| ENV[var].to_s.empty? }
|
|
@@ -437,7 +419,6 @@ puts "🤖 Tinker Agent Setup"
|
|
|
437
419
|
puts "====================="
|
|
438
420
|
puts ""
|
|
439
421
|
|
|
440
|
-
check_requirements!
|
|
441
422
|
check_env!
|
|
442
423
|
setup_mcp_config!
|
|
443
424
|
setup_claude_config!
|