@bridge_gpt/mcp-server 0.2.9 → 0.2.12

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 (43) hide show
  1. package/README.md +59 -7
  2. package/build/commands.generated.js +6 -6
  3. package/build/conductor/bridge-api-client.js +263 -35
  4. package/build/conductor/cli.js +38 -17
  5. package/build/conductor/doctor.js +35 -2
  6. package/build/conductor/done-gate.js +301 -58
  7. package/build/conductor/epic-reconcile.js +318 -4
  8. package/build/conductor/epic-runtime.js +382 -18
  9. package/build/conductor/epic-state.js +188 -15
  10. package/build/conductor/errors.js +12 -0
  11. package/build/conductor/git-ci-types.js +16 -0
  12. package/build/conductor/git-producer.js +4 -4
  13. package/build/conductor/merge-ledger.js +7 -7
  14. package/build/conductor/pr-ci-producer.js +118 -19
  15. package/build/conductor/pr-review-producer.js +116 -0
  16. package/build/conductor/producer-ledger.js +5 -5
  17. package/build/conductor/spec-review-producer.js +88 -0
  18. package/build/conductor/store.js +105 -26
  19. package/build/conductor/supervisor-ledger.js +2 -2
  20. package/build/conductor/supervisor-merge.js +5 -5
  21. package/build/conductor/supervisor-message-relay.js +32 -1
  22. package/build/conductor/supervisor-runtime.js +10 -10
  23. package/build/conductor/taxonomy.js +8 -0
  24. package/build/conductor/tools.js +7 -7
  25. package/build/conductor-bin.js +12350 -19
  26. package/build/conductor-claude-hook-bin.js +167 -17
  27. package/build/decision-page-schema.js +26 -0
  28. package/build/doctor.js +200 -0
  29. package/build/index.js +23696 -4351
  30. package/build/init.js +481 -0
  31. package/build/install-bridge.js +772 -0
  32. package/build/mcp-profile.js +43 -0
  33. package/build/pipelines.generated.js +70 -48
  34. package/build/readme.generated.js +1 -1
  35. package/build/start-tickets-conductor.js +1 -0
  36. package/build/start-tickets.js +186 -10
  37. package/build/upgrade-cli.js +154 -0
  38. package/build/version.generated.js +1 -1
  39. package/package.json +7 -4
  40. package/pipelines/check-ci-ticket.json +2 -2
  41. package/pipelines/implement-ticket.json +2 -2
  42. package/pipelines/learn-repository.json +84 -42
  43. package/smoke-test/SMOKE-TEST.md +11 -17
@@ -0,0 +1,43 @@
1
+ /**
2
+ * MCP profile resolver (BAPI-434 Phase 2a).
3
+ *
4
+ * Defines the four startup-time tool registration profiles and provides pure,
5
+ * unit-testable helpers for resolving the active profile from an env-var string
6
+ * and for checking group membership.
7
+ *
8
+ * Profiles are static — they gate which tools are registered at process startup
9
+ * and cannot be changed mid-session via tools/list_changed.
10
+ */
11
+ const VALID_PROFILES = new Set([
12
+ "core",
13
+ "conductor",
14
+ "pipeline-authoring",
15
+ "full",
16
+ ]);
17
+ /**
18
+ * Resolve the active MCP profile from a raw env-var string.
19
+ *
20
+ * - `undefined` or blank → `"core"` (fail-safe to smallest surface).
21
+ * - Known values (case-insensitive, whitespace-trimmed) → normalized profile.
22
+ * - Unknown / malformed values → `"core"` (fail-safe).
23
+ */
24
+ export function resolveProfile(raw) {
25
+ if (raw === undefined)
26
+ return "core";
27
+ const normalized = raw.trim().toLowerCase();
28
+ if (normalized === "")
29
+ return "core";
30
+ if (VALID_PROFILES.has(normalized))
31
+ return normalized;
32
+ return "core";
33
+ }
34
+ /**
35
+ * Return true when `profile` should include tools from the given gated group.
36
+ *
37
+ * - `"full"` includes every group.
38
+ * - Any other profile includes only its own matching group.
39
+ * - `"core"` includes neither gated group.
40
+ */
41
+ export function profileIncludes(profile, group) {
42
+ return profile === "full" || profile === group;
43
+ }