yatfa 1.0.88 → 1.0.89
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/lib/yatfa_agent/agent.rb +1 -19
- package/package.json +1 -1
package/lib/yatfa_agent/agent.rb
CHANGED
|
@@ -357,7 +357,6 @@ module YatfaAgent
|
|
|
357
357
|
docker_cmd += ["-e", "YATFA_API_KEY=#{agent_config['mcp_api_key']}"]
|
|
358
358
|
end
|
|
359
359
|
|
|
360
|
-
add_development_mounts!(docker_cmd)
|
|
361
360
|
else
|
|
362
361
|
# Standard agent setup (worker, planner, reviewer, researcher)
|
|
363
362
|
docker_cmd += [
|
|
@@ -371,16 +370,9 @@ module YatfaAgent
|
|
|
371
370
|
add_github_auth!(docker_cmd, config)
|
|
372
371
|
add_git_config!(docker_cmd, config)
|
|
373
372
|
add_repository_mounts!(docker_cmd, config)
|
|
374
|
-
add_development_mounts!(docker_cmd)
|
|
375
373
|
end
|
|
376
374
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
if File.directory?(local_setup_dir)
|
|
380
|
-
docker_cmd += [Config.image_name(config), "ruby", "/tmp/setup/setup-agent.rb"]
|
|
381
|
-
else
|
|
382
|
-
docker_cmd += [Config.image_name(config)]
|
|
383
|
-
end
|
|
375
|
+
docker_cmd += [Config.image_name(config)]
|
|
384
376
|
|
|
385
377
|
docker_cmd
|
|
386
378
|
end
|
|
@@ -442,16 +434,6 @@ module YatfaAgent
|
|
|
442
434
|
end
|
|
443
435
|
end
|
|
444
436
|
|
|
445
|
-
def self.add_development_mounts!(docker_cmd)
|
|
446
|
-
# Check for local setup/ directory (for development)
|
|
447
|
-
setup_dir = File.join(File.dirname(__FILE__), "..", "..", "setup")
|
|
448
|
-
|
|
449
|
-
if File.directory?(setup_dir)
|
|
450
|
-
puts "🔧 Using local setup/ for development"
|
|
451
|
-
docker_cmd.concat(["-v", "#{File.expand_path(setup_dir)}:/tmp/setup:ro"])
|
|
452
|
-
end
|
|
453
|
-
end
|
|
454
|
-
|
|
455
437
|
def self.detect_agent_user(container_name)
|
|
456
438
|
# Determine the user to attach as
|
|
457
439
|
# Robust method: find the user running the agent process (tmux or bridge)
|