tinker-agent 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup-agent.rb +22 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinker-agent",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Tinker Agent Runner",
5
5
  "bin": {
6
6
  "tinker-agent": "./run-tinker-agent.rb"
package/setup-agent.rb CHANGED
@@ -217,6 +217,27 @@ def setup_mcp_config!
217
217
  end
218
218
  end
219
219
 
220
+ def setup_claude_config!
221
+ home_claude_json = File.expand_path("~/.claude.json")
222
+
223
+ if File.exist?(home_claude_json)
224
+ puts "🔧 Configuring claude.json..."
225
+ begin
226
+ claude_config = JSON.parse(File.read(home_claude_json))
227
+
228
+ # Add bypass permission at top level
229
+ claude_config["bypassPermissionsModeAccepted"] = true
230
+
231
+ File.write(home_claude_json, JSON.pretty_generate(claude_config))
232
+ puts "✅ claude.json configured with bypass permissions"
233
+ rescue JSON::ParserError
234
+ puts "⚠️ claude.json is invalid, skipping configuration"
235
+ end
236
+ else
237
+ puts "⚠️ claude.json not found at #{home_claude_json}"
238
+ end
239
+ end
240
+
220
241
  def setup_claude_md!
221
242
  agent_type = ENV["AGENT_TYPE"]
222
243
  banner = AGENT_BANNERS[agent_type]
@@ -408,6 +429,7 @@ puts ""
408
429
  check_requirements!
409
430
  check_env!
410
431
  setup_mcp_config!
432
+ setup_claude_config!
411
433
  setup_claude_md!
412
434
  setup_github_auth!
413
435
  bin_dir = download_agent_bridge!