yatfa 1.0.65 → 1.0.66

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/README.md CHANGED
@@ -7,7 +7,7 @@ Run YATFA agents in any Docker container with Ruby.
7
7
  The easiest way to get started is with the interactive setup wizard:
8
8
 
9
9
  ```bash
10
- npx yatfa-agent setup
10
+ npx yatfa setup
11
11
  ```
12
12
 
13
13
  The wizard will guide you through:
@@ -30,7 +30,7 @@ Agents are configured via a `yatfa.env.rb` file in your project root. This Ruby
30
30
 
31
31
  **Do not commit `yatfa.env.rb` to git!** Add it to your `.gitignore`.
32
32
 
33
- **Pro tip:** Use `npx yatfa-agent setup` to generate this file interactively with validation.
33
+ **Pro tip:** Use `npx yatfa setup` to generate this file interactively with validation.
34
34
 
35
35
  Example `yatfa.env.rb`:
36
36
 
@@ -97,7 +97,7 @@ Example `yatfa.env.rb`:
97
97
  ### Setup
98
98
 
99
99
  ```bash
100
- npx yatfa-agent setup
100
+ npx yatfa setup
101
101
  ```
102
102
 
103
103
  Launches interactive setup wizard to configure `yatfa.env.rb`.
@@ -106,16 +106,16 @@ Launches interactive setup wizard to configure `yatfa.env.rb`.
106
106
 
107
107
  ```bash
108
108
  # Start an agent
109
- npx yatfa-agent worker
110
- npx yatfa-agent planner
111
- npx yatfa-agent reviewer
112
- npx yatfa-agent researcher
109
+ npx yatfa worker
110
+ npx yatfa planner
111
+ npx yatfa reviewer
112
+ npx yatfa researcher
113
113
  ```
114
114
 
115
115
  ### Attach to Running Agents
116
116
 
117
117
  ```bash
118
- npx yatfa-agent attach worker
118
+ npx yatfa attach worker
119
119
  ```
120
120
 
121
121
  Opens tmux session to view agent activity.
@@ -123,13 +123,13 @@ Opens tmux session to view agent activity.
123
123
  ### List Running Agents
124
124
 
125
125
  ```bash
126
- npx yatfa-agent list
126
+ npx yatfa list
127
127
  ```
128
128
 
129
129
  ### Stop All Agents
130
130
 
131
131
  ```bash
132
- npx yatfa-agent stop-all
132
+ npx yatfa stop-all
133
133
  ```
134
134
 
135
135
  ## What the Script Does
@@ -2,9 +2,9 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # YATFA Agent Runner (Yet Another Tool For Agents)
5
- # Usage: npx yatfa-agent [worker|planner|reviewer|researcher]
6
- # npx yatfa-agent attach [agent-type]
7
- # npx yatfa-agent setup
5
+ # Usage: npx yatfa [worker|planner|reviewer|researcher]
6
+ # npx yatfa attach [agent-type]
7
+ # npx yatfa setup
8
8
  #
9
9
  # Requirements:
10
10
  # - Docker
@@ -22,18 +22,18 @@ def show_usage
22
22
  puts "YATFA Agent Runner (Yet Another Tool For Agents)"
23
23
  puts ""
24
24
  puts "Usage:"
25
- puts " npx yatfa-agent setup # Interactive setup wizard"
26
- puts " npx yatfa-agent [worker|planner|reviewer|researcher] # Run agent"
27
- puts " npx yatfa-agent attach [agent-type] # Attach to running agent"
25
+ puts " npx yatfa setup # Interactive setup wizard"
26
+ puts " npx yatfa [worker|planner|reviewer|researcher] # Run agent"
27
+ puts " npx yatfa attach [agent-type] # Attach to running agent"
28
28
  puts ""
29
29
  puts "Setup:"
30
- puts " Run 'npx yatfa-agent setup' for interactive configuration"
30
+ puts " Run 'npx yatfa setup' for interactive configuration"
31
31
  puts ""
32
32
  puts "Manual setup:"
33
33
  puts " 1. Create Dockerfile.sandbox (see https://github.com/RoM4iK/yatfa-public/blob/main/README.md)"
34
34
  puts " 2. Create yatfa.env.rb (see https://github.com/RoM4iK/yatfa-public/blob/main/README.md)"
35
35
  puts " 3. echo 'yatfa.env.rb' >> .gitignore"
36
- puts " 4. npx yatfa-agent worker"
36
+ puts " 4. npx yatfa worker"
37
37
  exit 1
38
38
  end
39
39
 
@@ -52,7 +52,7 @@ end
52
52
  # Handle attach command
53
53
  if command == "attach"
54
54
  agent_type = ARGV[1]&.downcase
55
- abort "Usage: npx yatfa-agent attach [agent-type]" unless agent_type
55
+ abort "Usage: npx yatfa attach [agent-type]" unless agent_type
56
56
  config = YatfaAgent::Config.load
57
57
  YatfaAgent::Config.fetch_repositories!(config)
58
58
  YatfaAgent::Agent.attach(agent_type, config, AGENT_CONFIGS)
@@ -20,7 +20,7 @@ module YatfaAgent
20
20
  system("docker", "rm", "-f", container_name, err: File::NULL, out: File::NULL)
21
21
 
22
22
  # Write banner to a persistent temp file (not auto-deleted)
23
- banner_path = "/tmp/yatfa-agent-banner-#{agent_type}.txt"
23
+ banner_path = "/tmp/yatfa-banner-#{agent_type}.txt"
24
24
  FileUtils.rm_rf(banner_path)
25
25
 
26
26
  # Append repository context to banner
@@ -47,7 +47,7 @@ module YatfaAgent
47
47
  if success
48
48
  puts "✅ Agent started in background"
49
49
  puts ""
50
- puts " Attach: npx yatfa-agent attach #{agent_type}"
50
+ puts " Attach: npx yatfa attach #{agent_type}"
51
51
  puts " Logs: docker logs -f #{container_name}"
52
52
  puts " Stop: docker stop #{container_name}"
53
53
  else
@@ -58,7 +58,7 @@ module YatfaAgent
58
58
  puts "║ YATFA Agent Setup Wizard ║"
59
59
  puts "║ (Yet Another Tool For Agents) ║"
60
60
  puts "║ ║"
61
- puts "║ This wizard will guide you through configuring yatfa-agent ║"
61
+ puts "║ This wizard will guide you through configuring yatfa ║"
62
62
  puts "║ ║"
63
63
  puts "╚═══════════════════════════════════════════════════════════════╝"
64
64
  puts ""
@@ -157,7 +157,7 @@ module YatfaAgent
157
157
 
158
158
  # Set defaults from parent directory if available
159
159
  default_name = "YATFA Agent"
160
- default_email = "yatfa-agent@yatfa.ai"
160
+ default_email = "yatfa@yatfa.ai"
161
161
 
162
162
  parent_config = File.join(Dir.pwd, "..", "yatfa.env.rb")
163
163
  if File.exist?(parent_config)
@@ -512,12 +512,12 @@ module YatfaAgent
512
512
  puts ""
513
513
  puts " 3. Start an agent:"
514
514
  if @config[:agents].key?(:worker)
515
- puts " npx yatfa-agent worker"
515
+ puts " npx yatfa worker"
516
516
  elsif @config[:agents].key?(:planner)
517
- puts " npx yatfa-agent planner"
517
+ puts " npx yatfa planner"
518
518
  else
519
519
  agent = @config[:agents].keys.first
520
- puts " npx yatfa-agent #{agent}"
520
+ puts " npx yatfa #{agent}"
521
521
  end
522
522
  puts ""
523
523
  puts "For more information, see: https://github.com/RoM4iK/yatfa-public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yatfa",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "YATFA - Yet Another Tool For Agents",
5
5
  "bin": "./bin/run-yatfa-agent.rb",
6
6
  "files": [