tinker-agent 1.0.12 → 1.0.14
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 +4 -4
- package/package.json +1 -1
- package/run-tinker-agent.rb +12 -2
package/bin/agent-bridge-tmux
CHANGED
|
@@ -36,10 +36,10 @@ 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
38
|
# Set lengths globally and for session to ensure they stick
|
|
39
|
-
tmux set-option -g status-left-length
|
|
40
|
-
tmux set-option -g status-right-length
|
|
41
|
-
tmux set-option -t "$SESSION" status-left-length
|
|
42
|
-
tmux set-option -t "$SESSION" status-right-length
|
|
39
|
+
tmux set-option -g status-left-length 30
|
|
40
|
+
tmux set-option -g status-right-length 300
|
|
41
|
+
tmux set-option -t "$SESSION" status-left-length 30
|
|
42
|
+
tmux set-option -t "$SESSION" status-right-length 300
|
|
43
43
|
tmux set-option -t "$SESSION" status-left "#[fg=cyan,bold]🤖 $AGENT_TYPE #[fg=cyan]│ "
|
|
44
44
|
tmux set-option -t "$SESSION" status-right "#[fg=green]#(cat $STATUS_FILE 2>/dev/null || echo '❓') #[fg=cyan]│ #[fg=white]%H:%M:%S"
|
|
45
45
|
tmux set-option -t "$SESSION" window-status-format ""
|
package/package.json
CHANGED
package/run-tinker-agent.rb
CHANGED
|
@@ -115,18 +115,28 @@ def run_agent(agent_type, config)
|
|
|
115
115
|
# Add GitHub auth
|
|
116
116
|
github = config["github"] || {}
|
|
117
117
|
if github["method"] == "app"
|
|
118
|
+
key_path = File.expand_path(github["app_private_key_path"].to_s)
|
|
119
|
+
|
|
120
|
+
unless File.exist?(key_path) && !File.directory?(key_path)
|
|
121
|
+
puts "❌ Error: GitHub App private key not found at: #{key_path}"
|
|
122
|
+
puts " Please check 'app_private_key_path' in tinker.env.json"
|
|
123
|
+
exit 1
|
|
124
|
+
end
|
|
125
|
+
|
|
118
126
|
docker_cmd += [
|
|
119
127
|
"-e", "GITHUB_APP_CLIENT_ID=#{github['app_client_id']}",
|
|
120
128
|
"-e", "GITHUB_APP_INSTALLATION_ID=#{github['app_installation_id']}",
|
|
121
129
|
# Path is set dynamically in entrypoint.sh based on user home
|
|
122
|
-
"-v", "#{
|
|
130
|
+
"-v", "#{key_path}:/tmp/github-app-privkey.pem:ro"
|
|
123
131
|
]
|
|
124
132
|
puts "🔐 Using GitHub App authentication"
|
|
125
133
|
elsif github["token"]
|
|
126
134
|
docker_cmd += ["-e", "GH_TOKEN=#{github['token']}"]
|
|
127
135
|
puts "🔑 Using GitHub token authentication"
|
|
128
136
|
else
|
|
129
|
-
puts "
|
|
137
|
+
puts "❌ Error: No GitHub authentication configured"
|
|
138
|
+
puts " Please configure 'github' in tinker.env.json"
|
|
139
|
+
exit 1
|
|
130
140
|
end
|
|
131
141
|
|
|
132
142
|
# Add git config
|