@bridge_gpt/mcp-server 0.2.70 → 0.2.72
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 +55 -17
- package/build/agent-launchers/claude-executor-adapter.js +29 -4
- package/build/agent-notes.js +171 -95
- package/build/agent-registry.js +5 -5
- package/build/agents.generated.js +12 -2
- package/build/bounded-wait.js +9 -1
- package/build/bridge-permissions.js +17 -5
- package/build/bridge-worktree-inspection.js +237 -0
- package/build/check-evidence.js +6 -0
- package/build/claude-review-workflow.js +1 -1
- package/build/cli-help.js +6 -0
- package/build/codex-auto-recovery.js +126 -0
- package/build/codex-skill-adapter.js +2 -0
- package/build/commands.generated.js +5 -5
- package/build/conductor/bridge-api-client.js +776 -23
- package/build/conductor/command-drift-production.js +7 -2
- package/build/conductor/doctor.js +93 -13
- package/build/conductor/epic-implementer-cli.js +55 -2
- package/build/conductor/gate-discovery.js +659 -19
- package/build/conductor/gate-settings-review.js +751 -0
- package/build/conductor/git-hooks-uninstall.js +112 -0
- package/build/conductor/git-hooks.js +81 -15
- package/build/conductor/guided-repair.js +10 -1
- package/build/conductor/install-doctor.js +2 -4
- package/build/conductor/launch-need-probes.js +16 -11
- package/build/conductor/launch-plan.js +185 -0
- package/build/conductor/local-merge.js +12 -1
- package/build/conductor/merge-execution-contract.js +1 -1
- package/build/conductor/merged-child-check.js +2 -1
- package/build/conductor/precheck-timings.js +14 -0
- package/build/conductor/prerequisite-inputs.js +379 -0
- package/build/conductor/preview-observations.js +10 -0
- package/build/conductor/readiness-assessment.js +78 -0
- package/build/conductor/readiness-cli.js +10 -0
- package/build/conductor/readiness-prerequisites.js +53 -0
- package/build/conductor/readiness-sections.js +25 -9
- package/build/conductor/readiness.js +20 -2
- package/build/conductor/recovery-cli.js +281 -14
- package/build/conductor/recovery-operations.js +78 -5
- package/build/conductor/repair-contract.js +33 -0
- package/build/conductor/tools.js +34 -3
- package/build/conductor/wait-run-attention.js +115 -0
- package/build/conductor/wait-run-cli.js +96 -3
- package/build/conductor/worker-database-doctor-inspector.js +1 -0
- package/build/credential-store.js +25 -20
- package/build/dependency-install-declarations.js +157 -0
- package/build/docs.generated.js +4 -4
- package/build/doctor.js +37 -5
- package/build/drive-epic-help.js +2 -2
- package/build/drive-epic.js +240 -56
- 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 +119 -44
- package/build/epic-launch-profile.js +1 -1
- package/build/executor/ci-rerun-job.js +220 -14
- package/build/executor/cli.js +2 -0
- package/build/executor/completion-contract.js +16 -0
- package/build/executor/credentials.js +1 -1
- package/build/executor/delivery-observations.js +113 -0
- package/build/executor/delivery-outcome.js +30 -0
- package/build/executor/dependency-refresh-runner.js +132 -0
- package/build/executor/dependency-refresh.js +530 -0
- package/build/executor/deps.js +4 -0
- package/build/executor/env.js +274 -5
- package/build/executor/gate-qualification-job.js +20 -5
- package/build/executor/harness-coverage.js +19 -0
- package/build/executor/http-client.js +35 -1
- package/build/executor/index.js +2 -1
- package/build/executor/install-preflight.js +1 -1
- package/build/executor/job-runner.js +355 -36
- package/build/executor/likely-tests.js +100 -98
- package/build/executor/preflight.js +5 -0
- package/build/executor/process-containment.js +18 -0
- package/build/executor/prompt-spec.js +84 -15
- package/build/executor/reconcile-overlap-job.js +6 -1
- package/build/executor/required-verification.js +28 -0
- package/build/executor/required-work-diagnostics.js +30 -0
- package/build/executor/required-work-ledger.js +19 -1
- package/build/executor/results.js +42 -0
- package/build/executor/service-discovery.js +42 -0
- package/build/executor/service-lifecycle.js +109 -2
- package/build/executor/service-uninstall.js +205 -0
- package/build/executor/service-unit.js +5 -3
- package/build/executor/test-clock.js +3 -0
- package/build/executor/verification-hints.js +179 -0
- package/build/executor/worker-command.js +188 -1
- package/build/executor/worker-database.js +299 -40
- package/build/executor/worker-finalization.js +65 -10
- package/build/executor/worker-guard-hook.js +10 -2
- package/build/executor/worker-resources.js +12 -1
- package/build/executor/worker-verification-guidance.js +64 -0
- package/build/executor/worktree-inspection.js +42 -0
- package/build/github-sign-in.js +1 -1
- package/build/index.js +767 -310
- package/build/init.js +3 -3
- package/build/install-bridge-conductor-gate.js +416 -41
- package/build/install-bridge-conductor-setup.js +135 -32
- package/build/install-bridge-conductor.js +769 -353
- package/build/install-bridge.js +419 -124
- package/build/install-maintenance.js +104 -0
- package/build/install-reexec.js +1 -1
- package/build/local-cleanup.js +59 -0
- package/build/mcp-install-state.js +68 -2
- package/build/merge-workflow-install.js +22 -2
- package/build/package-script-semantics.js +10 -0
- package/build/pipeline-utils.js +1 -1
- package/build/pipelines.generated.js +6 -6
- package/build/plan-execution-ledger.js +171 -10
- package/build/plane/plane-freshness.js +12 -9
- package/build/plane/preflight.js +19 -0
- package/build/plane/terminal-run-cleanup.js +5 -1
- package/build/plane/terminal-run-status.js +4 -0
- package/build/printed-remedy-commands.js +31 -4
- package/build/readiness-check.js +1 -78
- package/build/readiness-prerequisites.generated.js +199 -0
- package/build/readme.generated.js +1 -1
- package/build/repository-toolchains.js +623 -0
- package/build/setup-change-policy.js +32 -0
- package/build/setup-epic.js +26 -9
- package/build/setup-question.js +62 -0
- package/build/start-tickets.js +4 -0
- package/build/test-command-detection.js +61 -80
- package/build/test-support/notes-fs.js +40 -0
- package/build/ticket-delivery-artifacts.js +7 -0
- package/build/ticket-delivery-enrollment.js +80 -4
- package/build/ticket-delivery-run-scope.js +128 -0
- package/build/version.generated.js +3 -3
- package/build/worker-guard-hook-bin.js +2 -2
- package/build/worktrees.js +105 -0
- package/docs/EPIC-IMPLEMENTER.md +43 -0
- package/docs/epic-implementer/getting-started.md +95 -14
- package/package.json +2 -2
package/build/doctor.js
CHANGED
|
@@ -52,6 +52,7 @@ import { BRIDGE_PACKAGE_NAME, describeLauncherReason, DUPLICATE_REGISTRATION_GUI
|
|
|
52
52
|
import { MCP_SERVER_NAME, MCP_PACKAGE_NAME, } from "./mcp-identity.js";
|
|
53
53
|
import { DEFAULT_AGENT_NAME, resolveAgentSpec, isAgentName, formatValidAgentNames, } from "./agent-registry.js";
|
|
54
54
|
import { getDoctorPrereqDescriptors, probePrerequisite, } from "./start-tickets-prereqs.js";
|
|
55
|
+
import { posixShellQuote } from "./platform-escaping.js";
|
|
55
56
|
import { resolveProfiles } from "./mcp-profile.js";
|
|
56
57
|
import { executorLaunchdDirForHome, executorSystemdDirForHome, executorIdFromLaunchdFilename, executorIdFromSystemdFilename, inspectExecutorServiceArtifact, inspectExecutorServiceDurability, EXECUTOR_SERVICE_BASE_URL_ENV, } from "./executor/index.js";
|
|
57
58
|
import { DEFAULT_BAPI_BASE_URL } from "./executor/credentials.js";
|
|
@@ -123,6 +124,9 @@ export function getDoctorUsage() {
|
|
|
123
124
|
"prints the key value and never writes the credential store. To persist or",
|
|
124
125
|
"migrate a credential, use /install-bridge or the `credentials` subcommand —",
|
|
125
126
|
"doctor stays strictly read-only.",
|
|
127
|
+
"Managed git hooks and Bridge worktrees are advisory cleanup observations;",
|
|
128
|
+
"they show installed/unknown hooks, sizes and prune eligibility without fetching",
|
|
129
|
+
"or changing the exit code. Removal commands require separate consent.",
|
|
126
130
|
"",
|
|
127
131
|
"It includes an advisory 'Worker containment' section reporting the DECLARED",
|
|
128
132
|
"posture an Epic Implementer worker runs under: that the executor strips this",
|
|
@@ -1356,7 +1360,7 @@ export async function collectExecutorServiceDiagnostics(deps) {
|
|
|
1356
1360
|
noStandingGithubWriteCredential: "unverifiable",
|
|
1357
1361
|
warnings: [
|
|
1358
1362
|
"unit could not be read; its configuration cannot be verified.",
|
|
1359
|
-
"regenerate it through durable-host mode (`install
|
|
1363
|
+
"regenerate it through durable-host mode (`install epic-implementer`) if this persists.",
|
|
1360
1364
|
],
|
|
1361
1365
|
});
|
|
1362
1366
|
continue;
|
|
@@ -1371,12 +1375,12 @@ export async function collectExecutorServiceDiagnostics(deps) {
|
|
|
1371
1375
|
unitWarnings.push(...inspection.credentialDeclarationProblems);
|
|
1372
1376
|
if (credentialDeclaration === "present") {
|
|
1373
1377
|
unitWarnings.push("this unit declares something outside the closed durable-host contract — regenerate it " +
|
|
1374
|
-
"through durable-host mode (`install
|
|
1378
|
+
"through durable-host mode (`install epic-implementer`) and remove the hand edit.");
|
|
1375
1379
|
}
|
|
1376
1380
|
else if (credentialDeclaration === "unverifiable") {
|
|
1377
1381
|
unitWarnings.push("this unit could only be parsed partially, so the no-standing-GitHub-write-credential " +
|
|
1378
1382
|
"property could not be established — regenerate it through durable-host mode " +
|
|
1379
|
-
"(`install
|
|
1383
|
+
"(`install epic-implementer`).");
|
|
1380
1384
|
}
|
|
1381
1385
|
let baseUrlClass;
|
|
1382
1386
|
if (!inspection.baseUrl) {
|
|
@@ -1443,6 +1447,7 @@ export function formatExecutorServiceDiagnosticsReport(diagnostics) {
|
|
|
1443
1447
|
for (const unit of diagnostics.units) {
|
|
1444
1448
|
lines.push(`found ${unit.path}`);
|
|
1445
1449
|
lines.push(` executor id: ${unit.executorId}`);
|
|
1450
|
+
lines.push(` cleanup: npx -y ${MCP_PACKAGE_NAME} executor uninstall-service --executor-id ${posixShellQuote(unit.executorId)}`);
|
|
1446
1451
|
lines.push(` ${EXECUTOR_SERVICE_BASE_URL_ENV}: ${unit.baseUrl ?? "(absent)"} [${unit.baseUrlClass}]`);
|
|
1447
1452
|
lines.push(` repos: ${unit.repos.length > 0 ? unit.repos.join(", ") : "(none parsed)"}`);
|
|
1448
1453
|
lines.push(formatCredentialDeclarationLine(unit.noStandingGithubWriteCredential));
|
|
@@ -1794,7 +1799,7 @@ export function formatOperationalAdvisoryReport(diagnostic) {
|
|
|
1794
1799
|
lines.push(` ${helper}`);
|
|
1795
1800
|
}
|
|
1796
1801
|
lines.push(" These predate the scoped two-phase bring-up and are retired. The supported\n" +
|
|
1797
|
-
" replacement is DURABLE-HOST MODE: run `install
|
|
1802
|
+
" replacement is DURABLE-HOST MODE: run `install epic-implementer` to plan, write, and\n" +
|
|
1798
1803
|
" start the executor as a persistent service, then confirm\n" +
|
|
1799
1804
|
" `drive-epic <EPIC> --plan-file <dag>` works for you, and remove them.\n" +
|
|
1800
1805
|
" doctor performed a PATH-PRESENCE check only: it did not run, read, or\n" +
|
|
@@ -1966,7 +1971,7 @@ export function formatEpicLaunchProfileDiagnosticReport(diagnostic) {
|
|
|
1966
1971
|
lines.push(" (none)");
|
|
1967
1972
|
for (const p of diagnostic.profiles) {
|
|
1968
1973
|
if (p.problem !== undefined) {
|
|
1969
|
-
lines.push(` [fail] ${p.name}: ${p.problem} — re-run \`install
|
|
1974
|
+
lines.push(` [fail] ${p.name}: ${p.problem} — re-run \`install epic-implementer --launch-profile ${p.name}\`.`);
|
|
1970
1975
|
continue;
|
|
1971
1976
|
}
|
|
1972
1977
|
const tag = p.usable ? "[ok] " : "[fail]";
|
|
@@ -2336,6 +2341,33 @@ export async function runDoctorCli(argv, overrides = {}) {
|
|
|
2336
2341
|
}));
|
|
2337
2342
|
}
|
|
2338
2343
|
}
|
|
2344
|
+
if (overrides.localCleanup !== false) {
|
|
2345
|
+
try {
|
|
2346
|
+
const { inspectConductorGitHooks } = await import("./conductor/git-hooks.js");
|
|
2347
|
+
const { inspectBridgeWorktrees, formatBridgeWorktreeSummary } = await import("./bridge-worktree-inspection.js");
|
|
2348
|
+
log("\nManaged git hooks (advisory)");
|
|
2349
|
+
try {
|
|
2350
|
+
const hooks = inspectConductorGitHooks({ cwd: deps.cwd, presenceOnly: true });
|
|
2351
|
+
if (!hooks.is_worktree)
|
|
2352
|
+
log("unavailable: outside a Git repository");
|
|
2353
|
+
for (const hook of hooks.hooks)
|
|
2354
|
+
log(`${hook.path}: ${hook.managed_block_observation === "unknown" ? "unknown" : hook.managed_block_observation === "present" ? "installed" : "not installed"}`);
|
|
2355
|
+
log("Remove: epic-implementer uninstall-git-hooks [--dry-run]");
|
|
2356
|
+
}
|
|
2357
|
+
catch {
|
|
2358
|
+
log("unavailable: outside a repository or Git hooks could not be inspected");
|
|
2359
|
+
}
|
|
2360
|
+
const worktrees = await inspectBridgeWorktrees({ cwd: deps.cwd, budgetMs: 1000 });
|
|
2361
|
+
log("\nBridge worktrees (advisory)");
|
|
2362
|
+
log(formatBridgeWorktreeSummary(worktrees));
|
|
2363
|
+
for (const wt of worktrees.worktrees.filter(wt => wt.evidence.length))
|
|
2364
|
+
log(`${wt.path}: ${wt.status}; ${wt.retained.join("; ")}`);
|
|
2365
|
+
log(`Inspect local refs and git status before cleanup: npx -y ${MCP_PACKAGE_NAME} worktrees --prune`);
|
|
2366
|
+
}
|
|
2367
|
+
catch {
|
|
2368
|
+
log("Local cleanup observations unavailable (advisory).");
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2339
2371
|
// Advisory conductor-plane credential section (BAPI-756). Read-only and, like
|
|
2340
2372
|
// every section above, never affects the exit code: `plane up` enforces these
|
|
2341
2373
|
// same invariants at the point where they actually block, and an ordinary MCP
|
package/build/drive-epic-help.js
CHANGED
|
@@ -172,13 +172,13 @@ export function getDriveEpicAdvancedUsage() {
|
|
|
172
172
|
"repo-wide executor; a plane already bound to the run needs none. An epic with",
|
|
173
173
|
"several active runs, or a run that cannot be read, is refused by name.",
|
|
174
174
|
"",
|
|
175
|
-
"Repository-wide executors: `install
|
|
175
|
+
"Repository-wide executors: `install epic-implementer --executor-id <id> --repo-wide`",
|
|
176
176
|
"provisions a persistent executor that claims jobs for every run in the",
|
|
177
177
|
"repository. A durable host needs one before it can launch.",
|
|
178
178
|
"",
|
|
179
179
|
"Launch target — decided BEFORE any authenticated request:",
|
|
180
180
|
" --launch-profile <name> Select the host-local launch profile guided setup",
|
|
181
|
-
" approved (`install
|
|
181
|
+
" approved (`install epic-implementer --launch-profile <name>`):",
|
|
182
182
|
" target, repository, mode, runtime, and policy and",
|
|
183
183
|
" credential references. Useful for a local or other",
|
|
184
184
|
" non-production server and for durable hosts.",
|