@bugb-technologies/bravos 1.7.0 → 1.9.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.
Files changed (57) hide show
  1. package/README.md +11 -7
  2. package/dist/ci.js +1 -1
  3. package/dist/cli.js +271 -111
  4. package/dist/codegraph.js +21 -0
  5. package/dist/context.js +1 -1
  6. package/dist/doctor.js +20 -11
  7. package/dist/global.js +3 -3
  8. package/dist/graphbin.js +2 -0
  9. package/dist/guardlink.js +1 -1
  10. package/dist/guide.js +12 -10
  11. package/dist/help.js +45 -19
  12. package/dist/hooks.js +44 -21
  13. package/dist/install.js +2 -1
  14. package/dist/lock.js +1 -0
  15. package/dist/mcp.js +21 -5
  16. package/dist/palette.js +2 -2
  17. package/dist/plugin-release.js +2 -2
  18. package/dist/plugin.js +3 -3
  19. package/dist/prefs.js +66 -0
  20. package/dist/review-wait.js +76 -0
  21. package/dist/setup-route.js +37 -0
  22. package/dist/setup.js +3 -2
  23. package/dist/skills.js +1 -1
  24. package/dist/start/answers.js +36 -7
  25. package/dist/start/index.js +190 -69
  26. package/dist/start/repos.js +1 -1
  27. package/dist/start/ui.js +2 -2
  28. package/dist/upkeep.js +89 -0
  29. package/dist/watch-frame.js +1 -1
  30. package/dist/watch.js +1 -1
  31. package/docs/GUIDE.md +23 -11
  32. package/docs/UPGRADING.md +43 -1
  33. package/hooks/lib/autopilot.mjs +3 -18
  34. package/hooks/lib/briefing.mjs +93 -14
  35. package/hooks/lib/graph-autobuild.mjs +131 -0
  36. package/hooks/lib/legacy-skills.mjs +68 -0
  37. package/hooks/lib/palette.mjs +4 -4
  38. package/hooks/lib/prefs.mjs +108 -0
  39. package/hooks/lib/refresh.mjs +45 -1
  40. package/hooks/lib/setup.mjs +8 -8
  41. package/hooks/lib/snapshot.mjs +19 -1
  42. package/hooks/session-start.mjs +7 -2
  43. package/package.json +1 -1
  44. package/skills/bravos/SKILL.md +5 -4
  45. package/skills/bravos-annotate/SKILL.md +4 -4
  46. package/skills/bravos-cicd/SKILL.md +1 -1
  47. package/skills/bravos-codegraph/SKILL.md +1 -1
  48. package/skills/bravos-context/SKILL.md +6 -6
  49. package/skills/bravos-env/SKILL.md +2 -2
  50. package/skills/bravos-env/scope.example.yaml +2 -1
  51. package/skills/bravos-prove/SKILL.md +2 -2
  52. package/skills/bravos-recheck/SKILL.md +1 -1
  53. package/skills/bravos-resync/SKILL.md +1 -1
  54. package/skills/bravos-schedule/SKILL.md +1 -1
  55. package/skills/bravos-ship/SKILL.md +3 -3
  56. package/skills/bravos-templatize/SKILL.md +1 -1
  57. package/templates/review/review.html +1 -1
package/README.md CHANGED
@@ -16,21 +16,25 @@ Requires **Node.js 20 or newer**.
16
16
 
17
17
  ```bash
18
18
  npm install -g @bugb-technologies/bravos
19
- bravos start
19
+ bravos setup
20
20
  ```
21
21
 
22
- `bravos start` guides you through licence, tools, repository and agent setup, PR checks and scheduled upkeep. It shows the changes before you choose Apply, then tells you what to type in your agent. Bravos never starts an agent itself.
22
+ `bravos setup` is the one command for setting Bravos up. Run it in a repository, in a terminal:
23
23
 
24
- For manual setup, run `bravos init` in your repository to write skills, hooks and MCP wiring. `bravos setup` installs the analyzer and code graph (Team); `bravos setup --tools -y` also installs missing or incompatible GuardLink and cxg tools.
24
+ - **The first time on a machine** it signs you in, installs the tools, then asks about the repository: which agents, PR checks, scheduled upkeep and testing. It shows the changes before you choose Apply.
25
+ - **In another repository** it skips what the machine already has and asks only that repository's questions.
26
+ - **In a repository that already has Bravos** it brings this machine and the repository up to date; `bravos setup --change` asks the repository's questions again.
27
+
28
+ Then open your agent and say anything: Bravos begins with what the app is for. Bravos never starts an agent itself.
29
+
30
+ For scripts, flags do one part without questions: `bravos setup --tools -y` installs GuardLink and cxg, `bravos setup --agent claude --autopilot --ci` sets up a repository, and `bravos setup --yes` does a first setup with the defaults.
25
31
 
26
32
  ## Core commands
27
33
 
28
34
  | Command | Purpose |
29
35
  |---|---|
30
- | `bravos start` | Guided setup. |
31
- | `bravos init` | Install skills, hooks and MCP wiring in a repository. |
32
- | `bravos sync` | Refresh installed skills and wiring after an upgrade. |
33
- | `bravos setup` | Install the tools Bravos drives. |
36
+ | `bravos setup` | Set up this machine and this repository, or bring them up to date. |
37
+ | `bravos setup --check` | Say what is installed and what setup would do; changes nothing. |
34
38
  | `bravos graph build .` | Index the repository for code graph questions. |
35
39
  | `bravos sast run` | Run static analysis against the repository. |
36
40
  | `bravos doctor` | Check installed tools and configuration. |
package/dist/ci.js CHANGED
@@ -7,7 +7,7 @@ export const WORKFLOW_MARKER = 'bravos:generated';
7
7
  export const CADENCES = ['weekday', 'daily', 'weekly'];
8
8
  // 03:17 UTC, off the hour so it does not land with everyone else's cron.
9
9
  export const CRON = { weekday: '17 3 * * 1-5', daily: '17 3 * * *', weekly: '17 3 * * 0' };
10
- /** The workflow files, by the name bravos init --workflows takes. */
10
+ /** The workflow files, by the name bravos setup --workflows takes. */
11
11
  export const WORKFLOW_NAMES = ['pr-gate', 'nightly-claude', 'nightly-codex', 'nightly-copilot'];
12
12
  // @comment -- "The files each workflow name writes. The Copilot nightly also writes copilot-setup-steps.yml, the fixed file GitHub reads to prepare Copilot's session."
13
13
  export const WORKFLOW_FILES = {