x_aeon_agents 1.2.0 β 1.3.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +11 -3
- data/lib/x_aeon_agents/cli.rb +4 -0
- data/lib/x_aeon_agents/config.rb +13 -0
- data/lib/x_aeon_agents/config_dsl.rb +10 -0
- data/lib/x_aeon_agents/helpers.rb +10 -2
- data/lib/x_aeon_agents/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ad694c34995a4a2ae110fbc5d9692b4fecd0ced12fd9307042d100d9eb21fef
|
|
4
|
+
data.tar.gz: 1b1ae0dfcfb2c133219969af207b216d60c42d2de08d45d05daadbab7a602041
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5aab40193178b7db1c9e8414fe0da5036c23fe526538a9e30fa24802b187309824cb402cbd938fd62398b6a7230e9f95e80784f904e3ff00a2ef872b65fb228
|
|
7
|
+
data.tar.gz: cc5e14027141ed92f1e1e19866c360b252f055e6ed1962870cfcc4a9da34f8a9e7c1ff32f16415717661e08c4830ebfd6e76e0f9d1daf45422d09c29e56c8fa7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# [v1.3.0](https://github.com/Muriel-Salvan/x_aeon_agents/compare/v1.2.0...v1.3.0) (2026-10-13 14:54:19)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* [feat: add --no-interactive flag and interactive config option](https://github.com/Muriel-Salvan/x_aeon_agents/commit/51db8e5a1723e5c89311131ac73ed7ede23a9d21)
|
|
6
|
+
|
|
1
7
|
# [v1.2.0](https://github.com/Muriel-Salvan/x_aeon_agents/compare/v1.1.1...v1.2.0) (2026-09-11 17:57:31)
|
|
2
8
|
|
|
3
9
|
### Features
|
data/README.md
CHANGED
|
@@ -204,7 +204,7 @@ Each of these secrets can alternatively be retrieved by custom code declared in
|
|
|
204
204
|
- πΏ **Task bootstrapping** β create a feature branch, set up a git worktree, push it upstream and open it in the editor, with `setup_project` and `on_open_worktree` hooks
|
|
205
205
|
- π§© **Composable agent framework** β orchestrating agents (planner β coder β tester β committer β documenter β PR creator) built on `ai-agents`/`composable_agents`, backed by a Cline/OpenRouter provider via RubyLLM
|
|
206
206
|
- βοΈ **Extensible config DSL** β optional `.x_aeon_agents.rb` file with secrets handling, per-agent model tuning (`configure_agent`) and a project test command
|
|
207
|
-
- πΎ **Session persistence & debugging** β global `--session-id` to resume AI conversations
|
|
207
|
+
- πΎ **Session persistence & debugging** β global `--session-id` to resume AI conversations, a `--debug` flag for verbose logging and a `--no-interactive` flag to skip interactive review prompts
|
|
208
208
|
- π¦ **Reusable Ruby library** β require the gem and trigger agents programmatically (e.g. `Agents::CommitterAgent.new.run`)
|
|
209
209
|
|
|
210
210
|
## Public API
|
|
@@ -266,13 +266,14 @@ Files are looked up in the following locations and evaluated from the lowest pri
|
|
|
266
266
|
3. The path given by the `X_AEON_AGENTS_CONFIG` environment variable, if set β overrides both
|
|
267
267
|
|
|
268
268
|
> [!NOTE]
|
|
269
|
-
> All existing files are evaluated in this order (not just the first one found), and explicit CLI flags (`--debug`) still override everything. The file is evaluated in a cleanroom: only the DSL methods below are exposed at its top level, but regular Ruby code works inside the blocks given to those methods.
|
|
269
|
+
> All existing files are evaluated in this order (not just the first one found), and explicit CLI flags (`--debug`, `--interactive`) still override everything. The file is evaluated in a cleanroom: only the DSL methods below are exposed at its top level, but regular Ruby code works inside the blocks given to those methods.
|
|
270
270
|
|
|
271
271
|
#### Possible methods
|
|
272
272
|
|
|
273
273
|
| Method | Description |
|
|
274
274
|
| --- | --- |
|
|
275
275
|
| `debug(value)` | Enable debug logging |
|
|
276
|
+
| `interactive(value)` | Enable interactive content reviews (defaults to `true`) |
|
|
276
277
|
| `data_dir 'dir'` | Data directory where X-Aeon Agents stores its data |
|
|
277
278
|
| `cline_api_key { ... }` / `openrouter_api_key { ... }` / `github_token { ... }` | Define the code retrieving a secret |
|
|
278
279
|
| `setup_project { ... }` | Steps to install the project's dependencies in a fresh worktree |
|
|
@@ -286,6 +287,12 @@ Files are looked up in the following locations and evaluated from the lowest pri
|
|
|
286
287
|
debug true
|
|
287
288
|
```
|
|
288
289
|
|
|
290
|
+
- **`interactive(value)`** β set the interactive mode: when disabled, content reviews (commit comments, implementation plansβ¦) are accepted as-is, without opening any file nor prompting the user. Defaults to `true`:
|
|
291
|
+
|
|
292
|
+
```ruby
|
|
293
|
+
interactive false
|
|
294
|
+
```
|
|
295
|
+
|
|
289
296
|
- **`data_dir(path)`** β set the data directory where X-Aeon Agents stores its data (sessions, etc.). Defaults to `.x_aeon_agents`:
|
|
290
297
|
|
|
291
298
|
```ruby
|
|
@@ -357,6 +364,7 @@ Public methods:
|
|
|
357
364
|
- `data_dir` / `data_dir=` β data directory (`.x_aeon_agents` by default). [doc](https://www.rubydoc.info/gems/x-aeon_agents/XAeonAgents/Config#data_dir-class_method)
|
|
358
365
|
- `default_cline_cli_args` / `default_cline_cli_args=` β default Cline CLI arguments. [doc](https://www.rubydoc.info/gems/x-aeon_agents/XAeonAgents/Config#default_cline_cli_args-class_method)
|
|
359
366
|
- `debug` / `debug=` β enable debug logging. [doc](https://www.rubydoc.info/gems/x-aeon_agents/XAeonAgents/Config#debug-class_method)
|
|
367
|
+
- `interactive` / `interactive=` β enable interactive content reviews (defaults to true). [doc](https://www.rubydoc.info/gems/x-aeon_agents/XAeonAgents/Config#interactive-class_method)
|
|
360
368
|
- `config_paths` β candidate paths of the optional `.x_aeon_agents.rb` config file. [doc](https://www.rubydoc.info/gems/x-aeon_agents/XAeonAgents/Config#config_paths-class_method)
|
|
361
369
|
- `logger` β the shared logger instance. [doc](https://www.rubydoc.info/gems/x-aeon_agents/XAeonAgents/Config#logger-class_method)
|
|
362
370
|
|
|
@@ -440,7 +448,7 @@ The documented public methods (browseable on RubyDoc.info):
|
|
|
440
448
|
|
|
441
449
|
- The [`xaa`](https://github.com/Muriel-Salvan/x_aeon_agents/blob/main/bin/xaa) executable boots [Zeitwerk](https://github.com/fxn/zeitwerk) auto-loading and calls `XAeonAgents::Cli.start(ARGV)`.
|
|
442
450
|
- The CLI ([`lib/x_aeon_agents/cli.rb`](https://github.com/Muriel-Salvan/x_aeon_agents/blob/main/lib/x_aeon_agents/cli.rb)) is a [Thor](https://github.com/rails/thor) application: every sub-command (`commit`, `create-pr`, `review-comments`, `implement-issue`, `generate-readme`β¦) maps **1:1** to an agent class.
|
|
443
|
-
- On startup it loads the optional `.x_aeon_agents.rb` config (home directory, then project directory) so project-level settings override global ones, and explicit CLI flags (`--session-id`, `--debug`) override both.
|
|
451
|
+
- On startup it loads the optional `.x_aeon_agents.rb` config (home directory, then project directory) so project-level settings override global ones, and explicit CLI flags (`--session-id`, `--debug`, `--interactive`) override both.
|
|
444
452
|
|
|
445
453
|
### Agents as composable workflows π§©
|
|
446
454
|
|
data/lib/x_aeon_agents/cli.rb
CHANGED
|
@@ -8,6 +8,9 @@ module XAeonAgents
|
|
|
8
8
|
# Defaults to nil so the absence of the flag can be told apart from an
|
|
9
9
|
# explicit --no-debug (which lets the config file or ENV take precedence).
|
|
10
10
|
class_option :debug, type: :boolean, default: nil, desc: 'Enable debug mode'
|
|
11
|
+
# Defaults to nil so the absence of the flag can be told apart from an
|
|
12
|
+
# explicit --no-interactive (which lets the config file take precedence).
|
|
13
|
+
class_option :interactive, type: :boolean, default: nil, desc: 'Enable interactive prompts with the user'
|
|
11
14
|
|
|
12
15
|
# --------------------------------------------------------------------------- #
|
|
13
16
|
# review-comments: Address Pull Request review comments
|
|
@@ -390,6 +393,7 @@ module XAeonAgents
|
|
|
390
393
|
super
|
|
391
394
|
Config.load
|
|
392
395
|
Config.debug = options[:debug] unless options[:debug].nil?
|
|
396
|
+
Config.interactive = options[:interactive] unless options[:interactive].nil?
|
|
393
397
|
end
|
|
394
398
|
end
|
|
395
399
|
end
|
data/lib/x_aeon_agents/config.rb
CHANGED
|
@@ -98,6 +98,19 @@ module XAeonAgents
|
|
|
98
98
|
@debug ||= ENV['X_AEON_AGENTS_DEBUG'] == '1'
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
+
# @return [Boolean] The interactive mode, controlling whether content reviews prompt the user
|
|
102
|
+
attr_writer :interactive
|
|
103
|
+
|
|
104
|
+
# Get the interactive mode.
|
|
105
|
+
# Defaults to true when never explicitly set, and honors an explicit false.
|
|
106
|
+
#
|
|
107
|
+
# @return [Boolean] The interactive mode
|
|
108
|
+
def interactive
|
|
109
|
+
return true if @interactive.nil?
|
|
110
|
+
|
|
111
|
+
@interactive
|
|
112
|
+
end
|
|
113
|
+
|
|
101
114
|
# Candidate absolute paths of the configuration file, ordered by increasing
|
|
102
115
|
# priority (lowest first): user home directory, current directory, then the
|
|
103
116
|
# path given by the X_AEON_AGENTS_CONFIG environment variable if set.
|
|
@@ -15,6 +15,16 @@ module XAeonAgents
|
|
|
15
15
|
|
|
16
16
|
expose :debug
|
|
17
17
|
|
|
18
|
+
# Set the interactive mode, controlling whether content reviews prompt the user.
|
|
19
|
+
#
|
|
20
|
+
# Parameters::
|
|
21
|
+
# * *value* (Boolean): The interactive mode to set
|
|
22
|
+
def interactive(value)
|
|
23
|
+
Config.interactive = value
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
expose :interactive
|
|
27
|
+
|
|
18
28
|
# Set the data directory used by X-Aeon Agents to store its data.
|
|
19
29
|
#
|
|
20
30
|
# Parameters::
|
|
@@ -140,6 +140,10 @@ module XAeonAgents
|
|
|
140
140
|
|
|
141
141
|
# Allow user to review and edit content before using it
|
|
142
142
|
#
|
|
143
|
+
# When the interactive mode is disabled (Config.interactive), no review file
|
|
144
|
+
# is written, nothing is opened and no user input is asked: the given content
|
|
145
|
+
# is accepted as-is and an empty user prompt is returned.
|
|
146
|
+
#
|
|
143
147
|
# @param reviews_dir [String] Directory that can be used to store files to be reviewed
|
|
144
148
|
# @param name [String] Name used for the temporary file
|
|
145
149
|
# @param description [String] Description shown to the user
|
|
@@ -147,8 +151,8 @@ module XAeonAgents
|
|
|
147
151
|
# @param promptable [Boolean] Indicates if user can issue a prompt as an answer
|
|
148
152
|
# @param content [String] Initial content to present
|
|
149
153
|
# @return [Array<String>] 2 values are returned:
|
|
150
|
-
# - [String] Content after user review (same as content if editable is false)
|
|
151
|
-
# - [String] User prompt
|
|
154
|
+
# - [String] Content after user review (same as content if editable is false or the interactive mode is disabled)
|
|
155
|
+
# - [String] User prompt (empty when the interactive mode is disabled)
|
|
152
156
|
def review_content(
|
|
153
157
|
reviews_dir: "#{Config.data_dir}/reviews",
|
|
154
158
|
name: 'content.txt',
|
|
@@ -157,6 +161,10 @@ module XAeonAgents
|
|
|
157
161
|
promptable: false,
|
|
158
162
|
content: ''
|
|
159
163
|
)
|
|
164
|
+
# When the interactive mode is disabled, accept the content as-is without
|
|
165
|
+
# writing any review file nor asking anything to the user.
|
|
166
|
+
return [content, ''] unless Config.interactive
|
|
167
|
+
|
|
160
168
|
content_file = "#{reviews_dir}/#{Time.now.utc.strftime('%F-%H-%M-%S')}-#{name}"
|
|
161
169
|
FileUtils.mkdir_p File.dirname(content_file)
|
|
162
170
|
File.write(content_file, content)
|