@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.
- package/README.md +116 -56
- package/build/agent-guidance.generated.js +3 -0
- package/build/agent-launchers/claude-executor-adapter.js +3 -0
- package/build/agent-launchers/claude.js +3 -3
- package/build/agent-launchers/prompt.js +8 -11
- package/build/agent-notes.js +178 -0
- package/build/agent-registry.js +5 -2
- package/build/agent-utils.js +58 -0
- package/build/agents.generated.js +1 -1
- package/build/base-ref.js +33 -9
- package/build/bounded-wait.js +174 -0
- package/build/codex-skill-adapter.js +55 -0
- package/build/commands.generated.js +6 -5
- package/build/conductor/bridge-api-client.js +235 -14
- package/build/conductor/bring-up-facts.js +187 -0
- package/build/conductor/claude-hook.js +7 -5
- package/build/conductor/cli.js +28 -0
- package/build/conductor/doctor.js +80 -9
- package/build/conductor/epic-implementer-cli.js +1298 -0
- package/build/conductor/epic-runtime.js +134 -98
- package/build/conductor/errors.js +2 -2
- package/build/conductor/git-ci-types.js +1 -1
- package/build/conductor/git-hooks.js +28 -14
- package/build/conductor/install-doctor.js +11 -5
- package/build/conductor/readiness-cli.js +10 -10
- package/build/conductor/readiness-sections.js +58 -9
- package/build/conductor/readiness.js +120 -4
- package/build/conductor/recovery-cli.js +289 -10
- package/build/conductor/recovery-operations.js +125 -2
- package/build/conductor/repair-contract.js +58 -0
- package/build/conductor/run-branch.js +137 -0
- package/build/conductor/store.js +2 -2
- package/build/conductor/supervisor-runtime.js +1 -1
- package/build/conductor/test-run-branch-vectors.js +165 -0
- package/build/conductor-bin.js +2 -139
- package/build/conductor-claude-hook-bin.js +2 -2
- package/build/conductor-claude-hook-removed-stub-bin.js +31 -0
- package/build/conductor-removed-stub-bin.js +30 -0
- package/build/docs.generated.js +1 -1
- package/build/doctor.js +145 -18
- package/build/drive-epic.js +752 -90
- package/build/epic-implementer-bin.js +145 -0
- package/build/epic-implementer-bundle-cli.js +264 -0
- package/build/epic-implementer-claude-hook-bin.js +3 -0
- package/build/epic-integration-pr.js +5 -3
- package/build/executor/claim-scope.js +104 -0
- package/build/executor/cli.js +14 -25
- package/build/executor/env-file-guard.js +82 -3
- package/build/executor/env.js +6 -0
- package/build/executor/interrupted-worktree.js +60 -0
- package/build/executor/job-errors.js +45 -0
- package/build/executor/job-runner.js +334 -9
- package/build/executor/job-types.js +25 -9
- package/build/executor/merge-tree-classifier.js +171 -0
- package/build/executor/reconcile-overlap-governance.js +129 -0
- package/build/executor/reconcile-overlap-job.js +989 -0
- package/build/executor/reconcile-overlap-types.js +14 -0
- package/build/executor/spawn-job-driver.js +1 -0
- package/build/executor/types.js +2 -0
- package/build/executor/worker-finalization.js +25 -2
- package/build/executor/worker-guard-hook.js +15 -7
- package/build/implement-epic/bridge-client.js +773 -0
- package/build/implement-epic/checkpoint-store.js +542 -0
- package/build/implement-epic/cli.js +3158 -0
- package/build/implement-epic/cut-protocol.js +392 -0
- package/build/implement-epic/lock.js +302 -0
- package/build/implement-epic/pr-state.js +286 -0
- package/build/implement-epic/spawn.js +113 -0
- package/build/index.js +657 -481
- package/build/init.js +72 -8
- package/build/install-bridge-conductor.js +5 -5
- package/build/install-bridge.js +403 -70
- package/build/local-artifact-storage.js +130 -0
- package/build/mcp-host-config.js +22 -60
- package/build/mcp-host-entry-adapter.js +18 -0
- package/build/mcp-host-targets.js +1 -21
- package/build/merge-pull-request.js +1 -1
- package/build/pipelines.generated.js +23 -16
- package/build/plan-epic-conductor-eligibility.js +1 -1
- package/build/plane/cli.js +321 -41
- package/build/plane/manifest.js +209 -1
- package/build/plane/member-roster.js +70 -0
- package/build/plane/preflight.js +128 -12
- package/build/plane/shutdown.js +18 -5
- package/build/plane/status.js +35 -1
- package/build/plane/supervisor.js +546 -164
- package/build/plane/types.js +25 -2
- package/build/polling-policy.js +72 -0
- package/build/readiness-check.js +3 -3
- package/build/readme.generated.js +1 -1
- package/build/review-generation.js +219 -0
- package/build/run-unit-tests-launcher.js +6 -1
- package/build/setup-epic.js +567 -38
- package/build/start-tickets-conductor.js +8 -7
- package/build/ticket-key-utils.js +4 -3
- package/build/ticket-review-artifact-gate.js +461 -0
- package/build/upgrade-cli.js +5 -26
- package/build/version.generated.js +3 -3
- package/build/worker-guard-hook-bin.js +1 -1
- package/docs/CONDUCTOR.md +8 -6
- package/docs/install/mcp-tool-integrations.md +23 -1
- package/package.json +5 -3
- package/pipelines/review-ticket.json +17 -4
package/build/plane/status.js
CHANGED
|
@@ -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
|
"",
|