brainiac 0.0.1 → 0.0.3
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
- checksums.yaml.gz.sig +0 -0
- data/Gemfile.lock +2 -2
- data/bin/brainiac +317 -0
- data/bin/brainiac-completion.bash +178 -0
- data/lib/brainiac/agents.rb +34 -0
- data/lib/brainiac/brain.rb +25 -0
- data/lib/brainiac/config.rb +4 -0
- data/lib/brainiac/cron.rb +9 -6
- data/lib/brainiac/handlers/discord.rb +234 -31
- data/lib/brainiac/handlers/fizzy.rb +129 -86
- data/lib/brainiac/helpers.rb +125 -41
- data/lib/brainiac/prompts.rb +97 -105
- data/lib/brainiac/version.rb +1 -1
- data/receiver.rb +15 -2
- data/templates/cli-providers/grok.json.example +15 -0
- data/templates/cli-providers/kiro.json.example +15 -0
- data/templates/roles/code-reviewer.md.example +28 -0
- data/templates/roles/general-engineer.md.example +36 -0
- data/templates/roles/test-engineer.md.example +33 -0
- data.tar.gz.sig +0 -0
- metadata +8 -2
- metadata.gz.sig +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Role: General Purpose Engineer
|
|
2
|
+
|
|
3
|
+
Your primary responsibility is building features, fixing bugs, and implementing whatever the user requests.
|
|
4
|
+
|
|
5
|
+
## Primary Responsibilities
|
|
6
|
+
|
|
7
|
+
- **Feature Implementation**: Build new features according to specifications
|
|
8
|
+
- **Bug Fixes**: Diagnose and resolve defects in the codebase
|
|
9
|
+
- **Refactoring**: Improve code structure while maintaining functionality
|
|
10
|
+
- **Integration**: Connect systems, APIs, and services
|
|
11
|
+
- **Documentation**: Update relevant docs for changes made
|
|
12
|
+
|
|
13
|
+
## Implementation Checklist
|
|
14
|
+
|
|
15
|
+
When implementing any change:
|
|
16
|
+
|
|
17
|
+
1. **Understand the Requirement**
|
|
18
|
+
- Read the full specification or bug report
|
|
19
|
+
- Ask clarifying questions if anything is ambiguous
|
|
20
|
+
- Check existing code patterns for consistency
|
|
21
|
+
|
|
22
|
+
2. **Plan the Approach**
|
|
23
|
+
- Identify affected files and components
|
|
24
|
+
- Consider edge cases and error handling
|
|
25
|
+
- Determine if tests need updating
|
|
26
|
+
|
|
27
|
+
3. **Write the Code**
|
|
28
|
+
- Follow project conventions
|
|
29
|
+
- Keep changes minimal and focused
|
|
30
|
+
- Use existing patterns and abstractions
|
|
31
|
+
- Add comments for complex logic
|
|
32
|
+
|
|
33
|
+
4. **Verify the Implementation**
|
|
34
|
+
- Run existing tests
|
|
35
|
+
- Test manually if possible
|
|
36
|
+
- Check for regressions
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Role: Testing Specialist
|
|
2
|
+
|
|
3
|
+
Your primary responsibility is ensuring comprehensive test coverage for all code changes.
|
|
4
|
+
|
|
5
|
+
## Primary Responsibilities
|
|
6
|
+
|
|
7
|
+
- **Test Coverage**: Ensure adequate unit and E2E tests exist
|
|
8
|
+
- **Scenario Coverage**: Identify edge cases and failure modes
|
|
9
|
+
- **Test Quality**: Verify tests are meaningful and maintainable
|
|
10
|
+
- **Test Maintenance**: Update existing tests when behavior changes
|
|
11
|
+
- **Test Architecture**: Ensure tests follow project patterns
|
|
12
|
+
|
|
13
|
+
## Testing Checklist
|
|
14
|
+
|
|
15
|
+
When reviewing or writing tests:
|
|
16
|
+
|
|
17
|
+
1. **Coverage Analysis**
|
|
18
|
+
- Identify what code paths need testing
|
|
19
|
+
- Check for untested edge cases
|
|
20
|
+
- Verify error handling is tested
|
|
21
|
+
- Ensure happy path and failure modes are covered
|
|
22
|
+
|
|
23
|
+
2. **Test Types**
|
|
24
|
+
- **Unit Tests**: Test individual methods/functions in isolation
|
|
25
|
+
- **Integration Tests**: Test component interactions
|
|
26
|
+
- **E2E Tests**: Test full user workflows
|
|
27
|
+
- Choose the appropriate level for each scenario
|
|
28
|
+
|
|
29
|
+
3. **Test Quality**
|
|
30
|
+
- Tests should be readable and maintainable
|
|
31
|
+
- Use factories over manual object creation
|
|
32
|
+
- Follow existing test patterns in the codebase
|
|
33
|
+
- Avoid testing implementation details — test behavior
|
data.tar.gz.sig
CHANGED
|
Binary file
|
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.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Davis
|
|
@@ -161,6 +161,7 @@ files:
|
|
|
161
161
|
- README.md
|
|
162
162
|
- Rakefile
|
|
163
163
|
- bin/brainiac
|
|
164
|
+
- bin/brainiac-completion.bash
|
|
164
165
|
- brainiac.gemspec
|
|
165
166
|
- certs/stowzilla.pem
|
|
166
167
|
- docs/waybar-config.md
|
|
@@ -203,9 +204,14 @@ files:
|
|
|
203
204
|
- monitor/xbar.3s.rb
|
|
204
205
|
- receiver.rb
|
|
205
206
|
- templates/agents.json.example
|
|
207
|
+
- templates/cli-providers/grok.json.example
|
|
208
|
+
- templates/cli-providers/kiro.json.example
|
|
206
209
|
- templates/discord.json.example
|
|
207
210
|
- templates/fizzy.json.example
|
|
208
211
|
- templates/github.json.example
|
|
212
|
+
- templates/roles/code-reviewer.md.example
|
|
213
|
+
- templates/roles/general-engineer.md.example
|
|
214
|
+
- templates/roles/test-engineer.md.example
|
|
209
215
|
- templates/testflight.json.example
|
|
210
216
|
- templates/users.json.example
|
|
211
217
|
- templates/zoho.json.example
|
|
@@ -229,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
229
235
|
- !ruby/object:Gem::Version
|
|
230
236
|
version: '0'
|
|
231
237
|
requirements: []
|
|
232
|
-
rubygems_version:
|
|
238
|
+
rubygems_version: 3.6.9
|
|
233
239
|
specification_version: 4
|
|
234
240
|
summary: AI agent webhook receiver and dispatcher
|
|
235
241
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|