brainiac 0.0.29 → 0.0.30
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/Gemfile.lock +2 -2
- data/lib/brainiac/agents.rb +11 -4
- data/lib/brainiac/version.rb +1 -1
- data/templates/cli-providers/gemini.json.example +17 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4d6606e86024e1763e4d3d7de19d4ef3acaa178114029a84ae6f4ee40ecca291
|
|
4
|
+
data.tar.gz: b02c691f2076dbc31afb9a180d7fc0ef0de056bb298f7771902b74102e4cd212
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16d1d6b39da2a6be050fcaa303628720e8dd909b73daf681cc3a52776c8d6bdd6ac54cced6fa18b3e92eda35f3e18eb4ecf9660b527614717c279ad94191ae3d
|
|
7
|
+
data.tar.gz: d5118e7d1dc22b77b6da10ef95f2b9e0f821fd57ebd189726ac3d391a109eab6e804f86cfc0722f4e44f6baf5fadc6eb13e31f72944c9730d191166368b4eb8f
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
brainiac (0.0.
|
|
4
|
+
brainiac (0.0.30)
|
|
5
5
|
puma (~> 7.2)
|
|
6
6
|
rackup (~> 2.3)
|
|
7
7
|
sinatra (~> 4.1)
|
|
@@ -84,7 +84,7 @@ DEPENDENCIES
|
|
|
84
84
|
CHECKSUMS
|
|
85
85
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
86
86
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
87
|
-
brainiac (0.0.
|
|
87
|
+
brainiac (0.0.30)
|
|
88
88
|
json (2.19.9) sha256=9b9025b7cdddafa38d316eca0b2358488e42d417045c1b90d216a9fefe46b79a
|
|
89
89
|
language_server-protocol (3.17.0.5) sha256=fd1e39a51a28bf3eec959379985a72e296e9f9acfce46f6a79d31ca8760803cc
|
|
90
90
|
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
data/lib/brainiac/agents.rb
CHANGED
|
@@ -72,15 +72,22 @@ def reload_agent_registry!(force: false)
|
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
#
|
|
75
|
+
# Default environment for all agent processes. Prevents git from hanging
|
|
76
|
+
# on COMMIT_EDITMSG when rebasing in non-interactive sessions.
|
|
77
|
+
DEFAULT_AGENT_ENV = {
|
|
78
|
+
"GIT_EDITOR" => "true"
|
|
79
|
+
}.freeze
|
|
80
|
+
|
|
81
|
+
# Get the env hash for an agent. Merges default agent env with agent-specific env.
|
|
82
|
+
# Returns at minimum the DEFAULT_AGENT_ENV even if no agent-specific env is configured.
|
|
76
83
|
def agent_env_for(agent_name)
|
|
77
|
-
return
|
|
84
|
+
return DEFAULT_AGENT_ENV.dup unless agent_name
|
|
78
85
|
|
|
79
86
|
key = agent_name.downcase.gsub(/[^a-z0-9-]/, "-")
|
|
80
87
|
entry = AGENT_REGISTRY[key]
|
|
81
|
-
return
|
|
88
|
+
return DEFAULT_AGENT_ENV.dup unless entry.is_a?(Hash)
|
|
82
89
|
|
|
83
|
-
entry["env"] || {}
|
|
90
|
+
DEFAULT_AGENT_ENV.merge(entry["env"] || {})
|
|
84
91
|
end
|
|
85
92
|
|
|
86
93
|
# Get a specific env var for an agent. Returns nil if not set.
|
data/lib/brainiac/version.rb
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"binary": "stdbuf",
|
|
3
|
+
"default_args": "-oL agy --mode=accept-edits --dangerously-skip-permissions",
|
|
4
|
+
"agent_flag": null,
|
|
5
|
+
"model_flag": "--model",
|
|
6
|
+
"prompt_mode": "stdin",
|
|
7
|
+
"resume_flag": null,
|
|
8
|
+
"list_models_command": null,
|
|
9
|
+
"models": {
|
|
10
|
+
"gemini": "gemini-3.1-pro",
|
|
11
|
+
"pro": "gemini-3.1-pro",
|
|
12
|
+
"flash": "gemini-3.5-flash",
|
|
13
|
+
"flash-lite": "gemini-3.5-flash",
|
|
14
|
+
"sonnet": "claude-sonnet-4.6",
|
|
15
|
+
"opus": "claude-opus-4.6"
|
|
16
|
+
}
|
|
17
|
+
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brainiac
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Davis
|
|
@@ -163,6 +163,7 @@ files:
|
|
|
163
163
|
- templates/agents.json.example
|
|
164
164
|
- templates/brainiac.json.example
|
|
165
165
|
- templates/cli-providers/codex.json.example
|
|
166
|
+
- templates/cli-providers/gemini.json.example
|
|
166
167
|
- templates/cli-providers/grok.json.example
|
|
167
168
|
- templates/cli-providers/kiro.json.example
|
|
168
169
|
- templates/hooks/pre-commit
|