@bridge_gpt/mcp-server 0.2.53 → 0.2.55

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 (103) hide show
  1. package/README.md +116 -56
  2. package/build/agent-guidance.generated.js +3 -0
  3. package/build/agent-launchers/claude-executor-adapter.js +3 -0
  4. package/build/agent-launchers/claude.js +3 -3
  5. package/build/agent-launchers/prompt.js +8 -11
  6. package/build/agent-notes.js +178 -0
  7. package/build/agent-registry.js +5 -2
  8. package/build/agent-utils.js +58 -0
  9. package/build/agents.generated.js +1 -1
  10. package/build/base-ref.js +33 -9
  11. package/build/bounded-wait.js +174 -0
  12. package/build/codex-skill-adapter.js +55 -0
  13. package/build/commands.generated.js +6 -5
  14. package/build/conductor/bridge-api-client.js +235 -14
  15. package/build/conductor/bring-up-facts.js +187 -0
  16. package/build/conductor/claude-hook.js +7 -5
  17. package/build/conductor/cli.js +28 -0
  18. package/build/conductor/doctor.js +80 -9
  19. package/build/conductor/epic-implementer-cli.js +1298 -0
  20. package/build/conductor/epic-runtime.js +134 -98
  21. package/build/conductor/errors.js +2 -2
  22. package/build/conductor/git-ci-types.js +1 -1
  23. package/build/conductor/git-hooks.js +28 -14
  24. package/build/conductor/install-doctor.js +11 -5
  25. package/build/conductor/readiness-cli.js +10 -10
  26. package/build/conductor/readiness-sections.js +58 -9
  27. package/build/conductor/readiness.js +120 -4
  28. package/build/conductor/recovery-cli.js +289 -10
  29. package/build/conductor/recovery-operations.js +125 -2
  30. package/build/conductor/repair-contract.js +58 -0
  31. package/build/conductor/run-branch.js +137 -0
  32. package/build/conductor/store.js +2 -2
  33. package/build/conductor/supervisor-runtime.js +1 -1
  34. package/build/conductor/test-run-branch-vectors.js +165 -0
  35. package/build/conductor-bin.js +2 -139
  36. package/build/conductor-claude-hook-bin.js +2 -2
  37. package/build/conductor-claude-hook-removed-stub-bin.js +31 -0
  38. package/build/conductor-removed-stub-bin.js +30 -0
  39. package/build/docs.generated.js +1 -1
  40. package/build/doctor.js +145 -18
  41. package/build/drive-epic.js +752 -90
  42. package/build/epic-implementer-bin.js +145 -0
  43. package/build/epic-implementer-bundle-cli.js +264 -0
  44. package/build/epic-implementer-claude-hook-bin.js +3 -0
  45. package/build/epic-integration-pr.js +5 -3
  46. package/build/executor/claim-scope.js +104 -0
  47. package/build/executor/cli.js +14 -25
  48. package/build/executor/env-file-guard.js +82 -3
  49. package/build/executor/env.js +6 -0
  50. package/build/executor/interrupted-worktree.js +60 -0
  51. package/build/executor/job-errors.js +45 -0
  52. package/build/executor/job-runner.js +334 -9
  53. package/build/executor/job-types.js +25 -9
  54. package/build/executor/merge-tree-classifier.js +171 -0
  55. package/build/executor/reconcile-overlap-governance.js +129 -0
  56. package/build/executor/reconcile-overlap-job.js +989 -0
  57. package/build/executor/reconcile-overlap-types.js +14 -0
  58. package/build/executor/spawn-job-driver.js +1 -0
  59. package/build/executor/types.js +2 -0
  60. package/build/executor/worker-finalization.js +25 -2
  61. package/build/executor/worker-guard-hook.js +15 -7
  62. package/build/implement-epic/bridge-client.js +773 -0
  63. package/build/implement-epic/checkpoint-store.js +542 -0
  64. package/build/implement-epic/cli.js +3158 -0
  65. package/build/implement-epic/cut-protocol.js +392 -0
  66. package/build/implement-epic/lock.js +302 -0
  67. package/build/implement-epic/pr-state.js +286 -0
  68. package/build/implement-epic/spawn.js +113 -0
  69. package/build/index.js +657 -481
  70. package/build/init.js +72 -8
  71. package/build/install-bridge-conductor.js +5 -5
  72. package/build/install-bridge.js +403 -70
  73. package/build/local-artifact-storage.js +130 -0
  74. package/build/mcp-host-config.js +22 -60
  75. package/build/mcp-host-entry-adapter.js +18 -0
  76. package/build/mcp-host-targets.js +1 -21
  77. package/build/merge-pull-request.js +1 -1
  78. package/build/pipelines.generated.js +23 -16
  79. package/build/plan-epic-conductor-eligibility.js +1 -1
  80. package/build/plane/cli.js +321 -41
  81. package/build/plane/manifest.js +209 -1
  82. package/build/plane/member-roster.js +70 -0
  83. package/build/plane/preflight.js +128 -12
  84. package/build/plane/shutdown.js +18 -5
  85. package/build/plane/status.js +35 -1
  86. package/build/plane/supervisor.js +546 -164
  87. package/build/plane/types.js +25 -2
  88. package/build/polling-policy.js +72 -0
  89. package/build/readiness-check.js +3 -3
  90. package/build/readme.generated.js +1 -1
  91. package/build/review-generation.js +219 -0
  92. package/build/run-unit-tests-launcher.js +6 -1
  93. package/build/setup-epic.js +567 -38
  94. package/build/start-tickets-conductor.js +8 -7
  95. package/build/ticket-key-utils.js +4 -3
  96. package/build/ticket-review-artifact-gate.js +461 -0
  97. package/build/upgrade-cli.js +5 -26
  98. package/build/version.generated.js +3 -3
  99. package/build/worker-guard-hook-bin.js +1 -1
  100. package/docs/CONDUCTOR.md +8 -6
  101. package/docs/install/mcp-tool-integrations.md +23 -1
  102. package/package.json +5 -3
  103. package/pipelines/review-ticket.json +17 -4
@@ -6,7 +6,7 @@
6
6
  * a hole in the roster (a member that crashed and was deliberately not
7
7
  * restarted) is precisely what this command exists to *show*.
8
8
  */
9
- import { probeManifestMembers, readPlaneManifest, } from "./manifest.js";
9
+ import { planeManifestLifecycle, probeManifestMembers, readPlaneManifest, } from "./manifest.js";
10
10
  import { PLANE_RUNTIME_DIR, PLANE_RUNTIME_LOG_PATH, } from "./types.js";
11
11
  /** Read the manifest and probe every recorded pid. Strictly read-only. */
12
12
  export async function getPlaneStatus(repoRoot, deps) {
@@ -32,6 +32,8 @@ export async function getPlaneStatus(repoRoot, deps) {
32
32
  supervisorPgid: manifest.supervisorPgid,
33
33
  supervisorLiveness: deps.proc.isAlive(manifest.supervisorPid),
34
34
  unrecognizedMemberNames: read.unrecognizedMemberNames,
35
+ lifecycle: planeManifestLifecycle(manifest),
36
+ epicRunId: manifest.epicRunId ?? null,
35
37
  createdAt: manifest.createdAt,
36
38
  updatedAt: manifest.updatedAt,
37
39
  members: probeManifestMembers(manifest, deps.proc).map((probe) => ({
@@ -45,6 +47,36 @@ export async function getPlaneStatus(repoRoot, deps) {
45
47
  })),
46
48
  };
47
49
  }
50
+ /**
51
+ * The lifecycle phase, in operational terms rather than as a bare enum value.
52
+ *
53
+ * Each line says what has happened AND what is being waited for, because the
54
+ * intermediate phases are the ones an operator sees when something is wrong and
55
+ * "lanes-starting" alone does not say whether that is normal.
56
+ *
57
+ * `ready` deliberately does NOT claim the run is dispatchable. A plane can be
58
+ * fully up while the reconciler still holds dispatch — feature-branch index
59
+ * preparation is the common case — and a status line that conflated "every
60
+ * process is up" with "work is flowing" would send an operator hunting for a
61
+ * problem in the plane that is not there.
62
+ */
63
+ function describeLifecycle(phase) {
64
+ switch (phase) {
65
+ case "control-plane-starting":
66
+ return "control plane starting (server, reconciler)";
67
+ case "control-plane-ready":
68
+ return "control plane ready — waiting for a scoped executor-lane request";
69
+ case "lanes-starting":
70
+ return "executor lanes starting — each waits for its own heartbeat gate";
71
+ case "lanes-ready":
72
+ return "executor lanes ready — starting the dead-man observer";
73
+ case "ready":
74
+ return "plane ready (this reports PROCESSES, not whether the run is dispatchable)";
75
+ case "lanes-failed":
76
+ return ("executor lanes FAILED — the lane cohort was stopped and the control plane was " +
77
+ "left running; nothing is claiming jobs. Wind it down with `plane down`.");
78
+ }
79
+ }
48
80
  /** One line per member: name, state, exit status where known, log path. */
49
81
  export function formatPlaneStatus(result) {
50
82
  if (!result.ok)
@@ -55,6 +87,8 @@ export function formatPlaneStatus(result) {
55
87
  const lines = [
56
88
  `Plane ${result.planeId}`,
57
89
  ` supervisor pid ${result.supervisorPid} (group ${result.supervisorPgid}) — ${result.supervisorLiveness}`,
90
+ ` lifecycle ${describeLifecycle(result.lifecycle)}`,
91
+ ...(result.epicRunId !== null ? [` epic run ${result.epicRunId}`] : []),
58
92
  ` started ${result.createdAt}`,
59
93
  ` updated ${result.updatedAt}`,
60
94
  "",