@bridge_gpt/mcp-server 0.2.70 → 0.2.71
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 +5 -5
- package/build/agent-launchers/claude-executor-adapter.js +10 -1
- package/build/agent-registry.js +5 -5
- package/build/agents.generated.js +11 -1
- package/build/bounded-wait.js +9 -1
- package/build/bridge-permissions.js +13 -5
- package/build/commands.generated.js +3 -3
- package/build/conductor/bridge-api-client.js +260 -2
- package/build/conductor/command-drift-production.js +7 -2
- package/build/conductor/doctor.js +9 -3
- package/build/conductor/epic-implementer-cli.js +4 -0
- package/build/conductor/gate-discovery.js +524 -10
- package/build/conductor/gate-settings-review.js +451 -0
- package/build/conductor/launch-need-probes.js +16 -11
- package/build/conductor/launch-plan.js +145 -0
- package/build/conductor/precheck-timings.js +14 -0
- package/build/conductor/preview-observations.js +10 -0
- package/build/conductor/readiness-sections.js +4 -1
- package/build/conductor/recovery-cli.js +59 -2
- package/build/conductor/recovery-operations.js +45 -2
- package/build/docs.generated.js +1 -1
- package/build/drive-epic.js +188 -45
- package/build/epic-ci-workflow-drift.js +71 -23
- package/build/epic-ci-workflow-install.js +83 -26
- package/build/epic-ci-workflow-v1.js +132 -0
- package/build/epic-ci-workflow.js +174 -13
- package/build/epic-implementer-bin.js +18 -18
- package/build/executor/ci-rerun-job.js +220 -14
- package/build/executor/env.js +207 -3
- package/build/executor/gate-qualification-job.js +20 -5
- package/build/executor/job-runner.js +112 -11
- package/build/executor/likely-tests.js +6 -1
- package/build/executor/preflight.js +5 -0
- package/build/executor/process-containment.js +18 -0
- package/build/executor/prompt-spec.js +72 -13
- package/build/executor/reconcile-overlap-job.js +6 -1
- package/build/executor/worker-command.js +136 -1
- package/build/executor/worker-database.js +30 -11
- package/build/executor/worker-resources.js +12 -1
- package/build/executor/worker-verification-guidance.js +29 -0
- package/build/index.js +221 -165
- package/build/install-bridge-conductor-gate.js +195 -14
- package/build/install-bridge-conductor-setup.js +20 -6
- package/build/install-bridge-conductor.js +355 -37
- package/build/install-bridge.js +1 -1
- package/build/merge-workflow-install.js +20 -0
- package/build/pipelines.generated.js +2 -2
- package/build/plan-execution-ledger.js +23 -8
- package/build/plane/plane-freshness.js +6 -2
- package/build/plane/preflight.js +19 -0
- package/build/printed-remedy-commands.js +8 -1
- package/build/readme.generated.js +1 -1
- package/build/repository-toolchains.js +581 -0
- package/build/setup-epic.js +24 -7
- package/build/test-command-detection.js +58 -21
- package/build/ticket-delivery-artifacts.js +7 -0
- package/build/ticket-delivery-enrollment.js +67 -4
- package/build/version.generated.js +3 -3
- package/docs/EPIC-IMPLEMENTER.md +38 -0
- package/docs/epic-implementer/getting-started.md +58 -2
- package/package.json +2 -2
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
*
|
|
13
13
|
* 1. A stored command (`GET /setup/testing-config`) wins, with no question.
|
|
14
14
|
* 2. Otherwise repository files are scanned, in a fixed order: JavaScript
|
|
15
|
-
* (`package.json` `scripts.test`,
|
|
15
|
+
* (`package.json` `scripts.test`, else a chain of the usable `lint`,
|
|
16
|
+
* `typecheck`/`type-check`, and `build` scripts; the runner comes from the
|
|
17
|
+
* shared lockfile resolver, `repository-toolchains.ts`), Make (a real
|
|
16
18
|
* `test:` target), pytest (each listed marker), Go (`go.mod`), Rust
|
|
17
|
-
* (`Cargo.toml`).
|
|
19
|
+
* (`Cargo.toml`). An uninspectable repository is a `failed` result, never an
|
|
20
|
+
* ordinary absence of scripts or lockfiles.
|
|
18
21
|
* 3. When more than one stack is detected, the learned `unit_testing_stack`
|
|
19
22
|
* prose picks among them through a fixed vocabulary. It is a hint and is
|
|
20
23
|
* never interpreted as a command.
|
|
@@ -35,6 +38,7 @@
|
|
|
35
38
|
* A detected command is an UNVERIFIED proposal: passing the syntax rules does
|
|
36
39
|
* not mean the command was run or that it works.
|
|
37
40
|
*/
|
|
41
|
+
import { readOptionalRepositoryFile, RepositoryReadError, resolveRepositoryToolchains, } from "./repository-toolchains.js";
|
|
38
42
|
import { readStoredTestCommand, readUnitTestingStack, } from "./testing-config-client.js";
|
|
39
43
|
/** The stacks detection recognizes, in detection order. */
|
|
40
44
|
export const DETECTED_STACKS = ["javascript", "make", "python", "go", "rust"];
|
|
@@ -49,21 +53,27 @@ class DetectionReadError extends Error {
|
|
|
49
53
|
this.file = file;
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
|
-
function isMissing(err) {
|
|
53
|
-
const code = typeof err === "object" && err !== null ? err.code : undefined;
|
|
54
|
-
return code === "ENOENT" || code === "ENOTDIR";
|
|
55
|
-
}
|
|
56
56
|
async function readOptional(deps, relPath) {
|
|
57
57
|
try {
|
|
58
|
-
return await deps.readFile
|
|
58
|
+
return await readOptionalRepositoryFile(deps.readFile, relPath);
|
|
59
59
|
}
|
|
60
60
|
catch (err) {
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
throw
|
|
61
|
+
if (err instanceof RepositoryReadError)
|
|
62
|
+
throw new DetectionReadError("repository_read_failed", relPath);
|
|
63
|
+
throw err;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
function selectJavaScriptRunner(resolution) {
|
|
67
|
+
const js = resolution.toolchains.javascript;
|
|
68
|
+
return js === null ? { manager: "npm", lockfile: null } : { manager: js.manager, lockfile: js.dependencyFile };
|
|
69
|
+
}
|
|
70
|
+
/** The scripts a fallback chain may run, in order. `typecheck` wins over `type-check`. */
|
|
71
|
+
const FALLBACK_SCRIPT_GROUPS = [["lint"], ["typecheck", "type-check"], ["build"]];
|
|
72
|
+
function isUsableScript(scripts, name) {
|
|
73
|
+
const value = scripts[name];
|
|
74
|
+
return typeof value === "string" && value.trim().length > 0;
|
|
75
|
+
}
|
|
76
|
+
async function detectJavaScript(deps, resolution) {
|
|
67
77
|
const raw = await readOptional(deps, "package.json");
|
|
68
78
|
if (raw === null)
|
|
69
79
|
return null;
|
|
@@ -80,16 +90,30 @@ async function detectJavaScript(deps) {
|
|
|
80
90
|
const scripts = parsed.scripts;
|
|
81
91
|
if (!scripts || typeof scripts !== "object" || Array.isArray(scripts))
|
|
82
92
|
return null;
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
if ((
|
|
87
|
-
|
|
93
|
+
const table = scripts;
|
|
94
|
+
const { manager, lockfile } = selectJavaScriptRunner(resolution);
|
|
95
|
+
const source = lockfile === null ? "package.json" : `package.json + ${lockfile}`;
|
|
96
|
+
if (isUsableScript(table, "test")) {
|
|
97
|
+
// `bun test` is Bun's own runner, not the script, so Bun runs it explicitly.
|
|
98
|
+
const command = manager === "bun" ? "bun run test" : `${manager} test`;
|
|
99
|
+
return { stack: "javascript", command, provenance: source, verified: false };
|
|
88
100
|
}
|
|
89
|
-
|
|
90
|
-
|
|
101
|
+
// No test script: chain the checks the project defines. Only script NAMES
|
|
102
|
+
// are used; script bodies are never read into a command.
|
|
103
|
+
const chosen = [];
|
|
104
|
+
for (const group of FALLBACK_SCRIPT_GROUPS) {
|
|
105
|
+
const name = group.find((candidate) => isUsableScript(table, candidate));
|
|
106
|
+
if (name !== undefined)
|
|
107
|
+
chosen.push(name);
|
|
91
108
|
}
|
|
92
|
-
|
|
109
|
+
if (chosen.length === 0)
|
|
110
|
+
return null;
|
|
111
|
+
return {
|
|
112
|
+
stack: "javascript",
|
|
113
|
+
command: chosen.map((name) => `${manager} run ${name}`).join(" && "),
|
|
114
|
+
provenance: `${lockfile === null ? "package.json" : source} scripts (${chosen.join(", ")})`,
|
|
115
|
+
verified: false,
|
|
116
|
+
};
|
|
93
117
|
}
|
|
94
118
|
/**
|
|
95
119
|
* Whether a Makefile declares a real `test` target: a rule line (not a recipe,
|
|
@@ -184,9 +208,22 @@ export function stacksNamedByHint(hint) {
|
|
|
184
208
|
* {@link DetectionReadError} for an unreadable or malformed file.
|
|
185
209
|
*/
|
|
186
210
|
async function detectCandidates(deps) {
|
|
211
|
+
const resolution = await resolveRepositoryToolchains(deps.readFile);
|
|
212
|
+
if (resolution.status === "unknown") {
|
|
213
|
+
// Unknown inspection is a failure, never an ordinary absence of lockfiles.
|
|
214
|
+
const first = resolution.failures[0];
|
|
215
|
+
throw new DetectionReadError(first.reason === "unreadable" ? "repository_read_failed" : "malformed_repository_file", first.file);
|
|
216
|
+
}
|
|
187
217
|
const found = [];
|
|
188
|
-
|
|
189
|
-
|
|
218
|
+
const detectors = [
|
|
219
|
+
() => detectJavaScript(deps, resolution),
|
|
220
|
+
() => detectMake(deps),
|
|
221
|
+
() => detectPython(deps),
|
|
222
|
+
() => detectGo(deps),
|
|
223
|
+
() => detectRust(deps),
|
|
224
|
+
];
|
|
225
|
+
for (const detect of detectors) {
|
|
226
|
+
const candidate = await detect();
|
|
190
227
|
if (candidate)
|
|
191
228
|
found.push(candidate);
|
|
192
229
|
}
|
|
@@ -69,12 +69,19 @@ function validateBinding(value, relativePath) {
|
|
|
69
69
|
throw corrupt(relativePath, `binding is missing ${field}`);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
const confirmed = value.confirmed_executor_job_id;
|
|
73
|
+
if (confirmed !== undefined &&
|
|
74
|
+
confirmed !== null &&
|
|
75
|
+
!(typeof confirmed === "number" && Number.isSafeInteger(confirmed) && confirmed > 0)) {
|
|
76
|
+
throw corrupt(relativePath, "binding has an invalid confirmed_executor_job_id");
|
|
77
|
+
}
|
|
72
78
|
return {
|
|
73
79
|
attempt_id: value.attempt_id,
|
|
74
80
|
repo_name: value.repo_name,
|
|
75
81
|
ticket_number: value.ticket_number,
|
|
76
82
|
source_branch: value.source_branch,
|
|
77
83
|
base_branch: value.base_branch,
|
|
84
|
+
...(typeof confirmed === "number" ? { confirmed_executor_job_id: confirmed } : {}),
|
|
78
85
|
};
|
|
79
86
|
}
|
|
80
87
|
function validatePending(value, relativePath) {
|
|
@@ -32,6 +32,18 @@ export const DEFAULT_DELIVERY_JOURNAL_STORE = {
|
|
|
32
32
|
recordSubmissionReceipt,
|
|
33
33
|
listPendingSubmissions,
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* BAPI-1544 — read the executor-injected `BRIDGE_EXECUTOR_JOB_ID`. Only an
|
|
37
|
+
* unpadded positive safe decimal integer counts. No trimming and no partial-number
|
|
38
|
+
* parsing (`"12abc"`, `"1e3"`, `" 7"`, `"0"`, `"-4"`, `"1.5"` are all absent), and
|
|
39
|
+
* anything else is `undefined`, which leaves enrollment exactly as it was.
|
|
40
|
+
*/
|
|
41
|
+
export function parseExecutorJobIdEnv(raw) {
|
|
42
|
+
if (typeof raw !== "string" || !/^[1-9][0-9]*$/.test(raw))
|
|
43
|
+
return undefined;
|
|
44
|
+
const value = Number(raw);
|
|
45
|
+
return Number.isSafeInteger(value) ? value : undefined;
|
|
46
|
+
}
|
|
35
47
|
function storeOf(deps) {
|
|
36
48
|
return deps.store ?? DEFAULT_DELIVERY_JOURNAL_STORE;
|
|
37
49
|
}
|
|
@@ -64,7 +76,8 @@ export async function ensureDeliveryBinding(deps, ticketKey) {
|
|
|
64
76
|
if (remembered &&
|
|
65
77
|
remembered.repo_name === deps.repoName &&
|
|
66
78
|
(sourceBranch === undefined || remembered.source_branch === sourceBranch)) {
|
|
67
|
-
|
|
79
|
+
const confirmed = await confirmExecutorJob(deps, store, ticketKey, journal.registration_key, remembered);
|
|
80
|
+
return { enrollment: "resumed", binding: confirmed, newlyRegistered: false };
|
|
68
81
|
}
|
|
69
82
|
if (!sourceBranch || sourceBranch === "HEAD") {
|
|
70
83
|
return unavailable("the source branch could not be read (detached HEAD or git unavailable)");
|
|
@@ -78,7 +91,8 @@ export async function ensureDeliveryBinding(deps, ticketKey) {
|
|
|
78
91
|
if (recovered.ok) {
|
|
79
92
|
const binding = referenceFrom(recovered.body.binding);
|
|
80
93
|
await store.recordBindingReference(deps.docsDir, ticketKey, binding);
|
|
81
|
-
|
|
94
|
+
const confirmed = await confirmExecutorJob(deps, store, ticketKey, journal.registration_key, binding);
|
|
95
|
+
return { enrollment: "recovered", binding: confirmed, newlyRegistered: false };
|
|
82
96
|
}
|
|
83
97
|
if (recovered.status !== 404) {
|
|
84
98
|
return unavailable(`recovery failed (${recovered.error}): ${recovered.message}`);
|
|
@@ -92,7 +106,7 @@ export async function ensureDeliveryBinding(deps, ticketKey) {
|
|
|
92
106
|
...(deps.executorJobId !== undefined ? { executor_job_id: deps.executorJobId } : {}),
|
|
93
107
|
});
|
|
94
108
|
if (registered.ok) {
|
|
95
|
-
const binding = referenceFrom(registered.body.binding);
|
|
109
|
+
const binding = referenceFrom(registered.body.binding, acknowledgedJobId(registered.body, deps.executorJobId));
|
|
96
110
|
await store.recordBindingReference(deps.docsDir, ticketKey, binding);
|
|
97
111
|
const replayed = registered.body.operation_status === "resumed";
|
|
98
112
|
return {
|
|
@@ -114,15 +128,64 @@ export async function ensureDeliveryBinding(deps, ticketKey) {
|
|
|
114
128
|
return unavailable(err);
|
|
115
129
|
}
|
|
116
130
|
}
|
|
117
|
-
function referenceFrom(view) {
|
|
131
|
+
function referenceFrom(view, confirmedExecutorJobId) {
|
|
118
132
|
return {
|
|
119
133
|
attempt_id: view.attempt_id,
|
|
120
134
|
repo_name: view.repo_name,
|
|
121
135
|
ticket_number: view.ticket_number,
|
|
122
136
|
source_branch: view.source_branch,
|
|
123
137
|
base_branch: view.base_branch,
|
|
138
|
+
...(confirmedExecutorJobId !== undefined ? { confirmed_executor_job_id: confirmedExecutorJobId } : {}),
|
|
124
139
|
};
|
|
125
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* The job ID the server acknowledged, or undefined. An acknowledgement counts only
|
|
143
|
+
* when it equals the ID this call sent: an absent field (an older server, or a
|
|
144
|
+
* request that sent none) or a different value confirms nothing.
|
|
145
|
+
*/
|
|
146
|
+
function acknowledgedJobId(body, sent) {
|
|
147
|
+
return sent !== undefined && body.confirmed_executor_job_id === sent ? sent : undefined;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* BAPI-1544 — make at most ONE registration attempt per call to attach the claimed
|
|
151
|
+
* executor job to a binding the server may hold without one.
|
|
152
|
+
*
|
|
153
|
+
* A remembered or recovered binding skips registration, so a binding created
|
|
154
|
+
* before the worker had its job ID would never learn it. This sends the same
|
|
155
|
+
* registration key with the job ID; the server fills it first-writer-wins and
|
|
156
|
+
* echoes `confirmed_executor_job_id` only when its binding carries exactly that ID.
|
|
157
|
+
* The ID is persisted to the journal only on that exact echo. Everything else
|
|
158
|
+
* (no job ID, already confirmed, a network error, a refusal, an absent or different
|
|
159
|
+
* acknowledgement) leaves the binding as it was and enrollment fail-open, so a
|
|
160
|
+
* later call retries. A continuation that sends a different job ID keeps the same
|
|
161
|
+
* binding and never records a confirmation the server did not give.
|
|
162
|
+
*/
|
|
163
|
+
async function confirmExecutorJob(deps, store, ticketKey, registrationKey, binding) {
|
|
164
|
+
const jobId = deps.executorJobId;
|
|
165
|
+
if (jobId === undefined || binding.confirmed_executor_job_id === jobId)
|
|
166
|
+
return binding;
|
|
167
|
+
try {
|
|
168
|
+
const response = await registerExecution(deps.client, {
|
|
169
|
+
repo_name: binding.repo_name,
|
|
170
|
+
ticket_number: binding.ticket_number,
|
|
171
|
+
source_branch: binding.source_branch,
|
|
172
|
+
base_branch: binding.base_branch,
|
|
173
|
+
registration_key: registrationKey,
|
|
174
|
+
executor_job_id: jobId,
|
|
175
|
+
});
|
|
176
|
+
if (!response.ok)
|
|
177
|
+
return binding;
|
|
178
|
+
const confirmed = acknowledgedJobId(response.body, jobId);
|
|
179
|
+
if (confirmed === undefined)
|
|
180
|
+
return binding;
|
|
181
|
+
const updated = { ...binding, confirmed_executor_job_id: confirmed };
|
|
182
|
+
await store.recordBindingReference(deps.docsDir, ticketKey, updated);
|
|
183
|
+
return updated;
|
|
184
|
+
}
|
|
185
|
+
catch {
|
|
186
|
+
return binding;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
126
189
|
/**
|
|
127
190
|
* Send every pending batch, oldest first. Never throws.
|
|
128
191
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit manually. Regenerate with: npm run build
|
|
2
|
-
export const VERSION = "0.2.
|
|
3
|
-
export const BUILD_COMMIT = "
|
|
4
|
-
export const LAUNCHER_ARGS = ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.
|
|
2
|
+
export const VERSION = "0.2.71";
|
|
3
|
+
export const BUILD_COMMIT = "4cb2a30d7abb";
|
|
4
|
+
export const LAUNCHER_ARGS = ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.71", "serve"];
|
package/docs/EPIC-IMPLEMENTER.md
CHANGED
|
@@ -382,6 +382,44 @@ opens a PR with your own `gh`. It never merges that PR. Replace
|
|
|
382
382
|
`<@org/team|@user>` with the one reviewer of the workflow file before running;
|
|
383
383
|
Bridge cannot infer it.
|
|
384
384
|
|
|
385
|
+
### The test command: `--test-command`
|
|
386
|
+
|
|
387
|
+
Setup stores one test command for the repository, and the CI workflow it installs
|
|
388
|
+
runs that command. Setup prints the stored command on every run, so you can see
|
|
389
|
+
what CI will run. To save or replace it, pass the command yourself:
|
|
390
|
+
|
|
391
|
+
```
|
|
392
|
+
npx -y @bridge_gpt/mcp-server install conductor --test-command "npm run lint && npm run build"
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
- **The flag is your consent for that one write.** There is no command question,
|
|
396
|
+
and the command is never run by setup.
|
|
397
|
+
- **The command is checked before anything else happens.** It must be one line,
|
|
398
|
+
contain no `${{` GitHub Actions expression, and be at most 500 characters. An
|
|
399
|
+
invalid command is refused at parse time, before any prompt, request, or write,
|
|
400
|
+
and the message names the reason, never the command. Passing the flag twice is
|
|
401
|
+
refused. It cannot be combined with `--clear-gate` or `--remove-merge-token`.
|
|
402
|
+
- **The save is read back.** Setup writes once, reads the stored value, and
|
|
403
|
+
reports success only when it matches. If the save may have succeeded but could
|
|
404
|
+
not be verified, it says so and exits `1`; it never retries the write.
|
|
405
|
+
- **The same value again is "Test command unchanged".** Nothing is written.
|
|
406
|
+
- **`--dry-run` saves nothing.** It describes the change and the workflow check
|
|
407
|
+
that would follow, and does not render a workflow from a command that is not
|
|
408
|
+
stored yet.
|
|
409
|
+
- **Two other consents stay separate.** The base URL confirmation is still asked
|
|
410
|
+
first, so the command needs a terminal; the flag never skips it, because your
|
|
411
|
+
API key is not sent to a URL you have not confirmed. Opening the workflow pull
|
|
412
|
+
request asks for itself. A command that is saved stays saved when you decline
|
|
413
|
+
the pull request.
|
|
414
|
+
|
|
415
|
+
After a replacement, setup checks the CI workflow against the new stored value in
|
|
416
|
+
the same run and offers the update pull request. A pull request from an older
|
|
417
|
+
setup that is still open must be merged or closed first; setup names it and does
|
|
418
|
+
not touch it.
|
|
419
|
+
|
|
420
|
+
**Do not put a credential in a test command.** Setup prints the stored command,
|
|
421
|
+
and the workflow file contains it.
|
|
422
|
+
|
|
385
423
|
## MCP profile
|
|
386
424
|
|
|
387
425
|
The Epic Implementer MCP tools are `get_epic_snapshot` and `explain_run`. They
|
|
@@ -27,7 +27,7 @@ Setup checks every item below for you, fixes what it can, and prints the one ste
|
|
|
27
27
|
- **Escalation channel (webhook or email)** (`server.unattended-notify-default`) — Bridge has somewhere to send an escalation: a verified notify webhook, or your account email. Fix: Declare a notify webhook, or verify your account email.
|
|
28
28
|
- **Repository workflow readiness** (`server.repository-workflow-readiness`) — The CI and review workflows are confirmed on the default branch. Fix: Run setup, merge the setup pull request, then run setup again.
|
|
29
29
|
- **Workflows at indexed commit** (`server.indexed-workflows`) — The repository index includes the workflow files on the default branch. Fix: Merge the setup pull request, then run setup again. It starts the re-index and reports this item as pending until the index reaches that commit.
|
|
30
|
-
- **Known test command** (`server.test-command`) — Bridge knows the command that runs this repository's tests. Fix: Run
|
|
30
|
+
- **Known test command** (`server.test-command`) — Bridge knows the command that runs this repository's tests. Fix: Run `npx -y @bridge_gpt/mcp-server install conductor --test-command "<command>"`, replacing `<command>` with the one command that runs your tests, or run setup and answer its test command question.
|
|
31
31
|
- **Service availability** (`server.service-availability`) — Bridge could read this repository's readiness from the server. Fix: Retry in a few minutes. If it keeps failing, email info@bridgegpt.ai.
|
|
32
32
|
- **Claude login** (`install.claude-login`) — Claude Code is signed in on this computer. Fix: Run `claude` and sign in, then run setup again.
|
|
33
33
|
- **Repository identity** (`install.identity`) — Bridge knows which repository this folder is. Fix: Run setup from the repository root, or pass `--repo <name>`.
|
|
@@ -96,6 +96,62 @@ npx -y @bridge_gpt/mcp-server install conductor
|
|
|
96
96
|
|
|
97
97
|
When setup reports that its setup pull request is waiting, it prints `merge the setup PR` with the pull request's address. Merge that pull request, then run setup again. Setup starts the re-index, and reports the item as pending ("indexing is running; re-run setup when it finishes", or "indexing was queued; re-run setup when it finishes") until the index reaches the merged commit. Run setup again until it says "Ready for your first epic".
|
|
98
98
|
|
|
99
|
+
### View or change the test command
|
|
100
|
+
|
|
101
|
+
Setup prints the stored test command on every run:
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
Test command: `npm test` (stored). Change it with --test-command "...".
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
To save or replace it, pass the command yourself:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
npx -y @bridge_gpt/mcp-server install conductor --test-command "npm run lint && npm run build"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The flag is your consent for that one write, so setup asks no command question. It checks the command first (one line, no `${{`, at most 500 characters), saves it once, and reads it back. It reports success only when the stored value matches. Passing the same command again says "Test command unchanged" and writes nothing. With `--dry-run`, nothing is saved.
|
|
114
|
+
|
|
115
|
+
Two things stay separate from the flag. Setup still asks you to confirm the Bridge URL, so the command needs a terminal. And opening the setup pull request asks for its own consent: after you replace the command, setup offers the update pull request in the same run, and a command you declined to ship stays saved.
|
|
116
|
+
|
|
117
|
+
Do not put a credential in the test command. Setup prints it, and the workflow file contains it.
|
|
118
|
+
|
|
119
|
+
### What CI installs automatically
|
|
120
|
+
|
|
121
|
+
The setup pull request adds `.github/workflows/epic-implementer-ci.yml`. Before it runs your test command, the workflow installs your dependencies from the files in your repository root. Bridge reads those files on your computer when it generates the workflow, and it never runs a package manager to decide.
|
|
122
|
+
|
|
123
|
+
| Language | Dependency file, first match wins | What CI runs |
|
|
124
|
+
| --- | --- | --- |
|
|
125
|
+
| JavaScript | `pnpm-lock.yaml`, `yarn.lock`, `npm-shrinkwrap.json`, `package-lock.json`, `bun.lock`, `bun.lockb` | `pnpm install`, `yarn install` (Yarn classic or Berry), `npm ci`, or `bun install`, each in its frozen form so the lockfile is used exactly as committed |
|
|
126
|
+
| Python | `uv.lock`, `poetry.lock`, `requirements.txt` | `uv sync` (frozen), `poetry install`, or `pip install` from `requirements.txt` |
|
|
127
|
+
| Go | `go.mod` | Go is set up from `go.mod`. |
|
|
128
|
+
|
|
129
|
+
- **Mixed repositories** get every language they have, in the order JavaScript, Python, Go.
|
|
130
|
+
- **Versions.** Node comes from `.nvmrc`, then `.node-version`, otherwise Node 24. Python comes from `.python-version`, otherwise Python 3.12. pnpm uses the version in `package.json` `packageManager` when it is valid, otherwise pnpm 10. Yarn is classic or Berry according to `.yarnrc.yml`, `packageManager`, and the lockfile; Berry runs through Corepack, which uses the Yarn version your `package.json` declares, otherwise Yarn 4. Poetry is installed at a fixed version, and Bun at the latest 1.x release. Every action is pinned to a fixed major version.
|
|
131
|
+
- **uv and Poetry** projects must declare development dependencies such as `pytest` in the project. Their environments are put on `PATH`, so your stored command runs unchanged inside the project environment.
|
|
132
|
+
- **If Bridge cannot read a file it needs**, or `package.json` contradicts the lockfile (for example a `packageManager` for a different tool), setup reports the dependency setup as unknown and blocks the workflow. It does not guess.
|
|
133
|
+
- **Upgrades are reviewed.** An older Bridge-written workflow is replaced through a pull request you merge, never silently. If a setup pull request from an earlier release is still open, merge or close it first; setup names it and leaves it alone.
|
|
134
|
+
|
|
135
|
+
### When your command must be self-contained
|
|
136
|
+
|
|
137
|
+
Some repositories get no automatic installation, and setup says so in plain words:
|
|
138
|
+
|
|
139
|
+
- **Python with no `uv.lock`, `poetry.lock`, or `requirements.txt`** (for example only `pyproject.toml` or `Pipfile`) gets no Python installation. Add a supported file, or make the command install what it needs.
|
|
140
|
+
- **Rust** uses the toolchain the CI runner already has. If that is not enough, install what you need inside the command.
|
|
141
|
+
- **No lockfile, or a Make-only project**, shows as `none`: Bridge installs no dependencies, so the command must install them itself.
|
|
142
|
+
|
|
143
|
+
A command that installs its own dependencies is always allowed. Nothing in the workflow adds to your command, wraps it, or sets a prefix in front of it.
|
|
144
|
+
|
|
145
|
+
### Recover from a stale CLI
|
|
146
|
+
|
|
147
|
+
An old copy of the command line tool can print old wording or miss a flag such as `--test-command`. Bridge checks the npm registry for a newer release about once a day and says so at the start of a session. That notice only reports that a newer version exists; it cannot tell you which copy `npx` actually ran. Likely causes are a cached `npx` download or a project-local install that `npx` picked first. Neither is proven for any one machine.
|
|
148
|
+
|
|
149
|
+
1. See which version ran: `npx -y @bridge_gpt/mcp-server doctor`. Its `Bridge MCP version:` line gives the installed version and the latest one, and says when an upgrade is available.
|
|
150
|
+
2. Fetch the newest release by running through `@latest`: `npx -y @bridge_gpt/mcp-server@latest doctor`. The `Bridge MCP version:` line should now show the latest version.
|
|
151
|
+
3. Refresh the installed command files: `npx -y @bridge_gpt/mcp-server@latest install`.
|
|
152
|
+
4. Run setup again: `npx -y @bridge_gpt/mcp-server@latest install conductor`.
|
|
153
|
+
5. If the output is still wrong, email info@bridgegpt.ai with the `Bridge MCP version:` line from step 1 and the setup output, with any secret removed.
|
|
154
|
+
|
|
99
155
|
## 3. Define the epic
|
|
100
156
|
|
|
101
157
|
In Claude Code, run:
|
|
@@ -128,4 +184,4 @@ Add `--dry-run` for a read-only preview, or `--attended` to opt out of unattende
|
|
|
128
184
|
|
|
129
185
|
## If something goes wrong
|
|
130
186
|
|
|
131
|
-
Every refusal names the missing item and its fix, and creates nothing. Run setup again after you fix an item. For a read-only report of every item, run `npx -y @bridge_gpt/mcp-server epic-implementer readiness --json`. If you are stuck, email info@bridgegpt.ai.
|
|
187
|
+
Every refusal names the missing item and its fix, and creates nothing. Run setup again after you fix an item. To stop a run that is already active, run `npx -y @bridge_gpt/mcp-server epic-implementer abandon-run --epic-run-id <id>`, replacing `<id>` with the run ID that `drive-epic` printed when it started the run. Abandoning a run is final. For a read-only report of every item, run `npx -y @bridge_gpt/mcp-server epic-implementer readiness --json`. If you are stuck, email info@bridgegpt.ai.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge_gpt/mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.71",
|
|
4
4
|
"description": "Bridge API MCP server — exposes Jira endpoints as MCP tools for Claude Code agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
46
|
-
"pixelmatch": "^
|
|
46
|
+
"pixelmatch": "^8.0.0",
|
|
47
47
|
"pngjs": "^7.0.0",
|
|
48
48
|
"zod": "^4.4.3"
|
|
49
49
|
},
|