brl-subagent 2.3.4

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.
Files changed (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +257 -0
  3. package/package.json +49 -0
  4. package/presets/code-reviewer.md +37 -0
  5. package/presets/data-analyst.md +33 -0
  6. package/presets/debugger.md +36 -0
  7. package/presets/dev-agent.md +30 -0
  8. package/presets/rapid-prototyper.md +25 -0
  9. package/presets/refactorer.md +34 -0
  10. package/presets/security-auditor.md +39 -0
  11. package/presets/tech-writer.md +33 -0
  12. package/presets/test-engineer.md +34 -0
  13. package/src/concurrency.ts +186 -0
  14. package/src/diff.ts +102 -0
  15. package/src/event-bus.ts +86 -0
  16. package/src/git.ts +187 -0
  17. package/src/history.ts +177 -0
  18. package/src/index.ts +3824 -0
  19. package/src/logging.ts +135 -0
  20. package/src/messaging.ts +164 -0
  21. package/src/metrics.ts +221 -0
  22. package/src/model-availability.ts +73 -0
  23. package/src/notify-completion.ts +207 -0
  24. package/src/params.ts +225 -0
  25. package/src/preflight.ts +150 -0
  26. package/src/presets.ts +425 -0
  27. package/src/prompt.ts +169 -0
  28. package/src/reports.ts +325 -0
  29. package/src/router.ts +133 -0
  30. package/src/runner.ts +877 -0
  31. package/src/sanitize.ts +365 -0
  32. package/src/scheduler.ts +187 -0
  33. package/src/session-manager.ts +1065 -0
  34. package/src/state.ts +590 -0
  35. package/src/templates.ts +469 -0
  36. package/src/transcript-tail.ts +327 -0
  37. package/src/transcript.ts +119 -0
  38. package/src/tui-format.ts +51 -0
  39. package/src/tui.ts +3103 -0
  40. package/src/types.ts +803 -0
  41. package/src/unit-run.ts +269 -0
  42. package/src/update.ts +109 -0
  43. package/src/validate.ts +302 -0
  44. package/templates/analyze-data.md +9 -0
  45. package/templates/code-review.md +10 -0
  46. package/templates/debug-issue.md +9 -0
  47. package/templates/implement-feature.md +9 -0
  48. package/templates/prototype.md +9 -0
  49. package/templates/refactor.md +9 -0
  50. package/templates/security-audit.md +10 -0
  51. package/templates/write-docs.md +9 -0
  52. package/templates/write-tests.md +10 -0
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: debug-issue
3
+ description: Reproduce, isolate, and fix a bug
4
+ preset: debugger
5
+ thinkingLevel: medium
6
+ ---
7
+ Debug ${symptom}. Reproduce it first, then isolate the root cause.
8
+
9
+ Show the failing input, the root cause, and the minimal fix.
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: implement-feature
3
+ description: Feature implementation following project conventions
4
+ preset: dev-agent
5
+ thinkingLevel: medium
6
+ ---
7
+ Implement ${feature} following the project's existing conventions.
8
+
9
+ Read relevant code first, keep changes minimal, and run the tests.
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: prototype
3
+ description: Fast throwaway prototype
4
+ preset: rapid-prototyper
5
+ thinkingLevel: low
6
+ ---
7
+ Prototype ${idea} quickly — working code over polish.
8
+
9
+ Ship the fastest thing that demonstrates the concept.
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: refactor
3
+ description: Behavior-preserving structural refactor
4
+ preset: refactorer
5
+ thinkingLevel: medium
6
+ ---
7
+ Refactor ${target}. Preserve behavior — tests must stay green.
8
+
9
+ Improve structure and readability without changing semantics.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: security-audit
3
+ description: Security audit with severity-ranked findings
4
+ preset: security-auditor
5
+ thinkingLevel: high
6
+ ---
7
+ Audit ${target} for security issues.
8
+
9
+ Cover injection, authz, secrets handling, and dependency risk.
10
+ List findings with severity, evidence, and a concrete fix.
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: write-docs
3
+ description: Developer documentation with examples
4
+ preset: tech-writer
5
+ thinkingLevel: low
6
+ ---
7
+ Document ${topic} for developers new to the codebase.
8
+
9
+ Include a short example and a "gotchas" note.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: write-tests
3
+ description: Test generation with edge-case coverage
4
+ preset: test-engineer
5
+ thinkingLevel: medium
6
+ ---
7
+ Write tests for ${file} covering the happy path and edge cases.
8
+
9
+ Include the test file path in your report and note any
10
+ untestable code paths you skipped.