@bridge_gpt/mcp-server 0.2.71 → 0.2.73
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 +22 -3
- package/build/agent-notes.js +171 -95
- package/build/agents.generated.js +7 -7
- package/build/bridge-permissions.js +31 -0
- package/build/bridge-worktree-inspection.js +237 -0
- package/build/check-evidence.js +6 -0
- package/build/ci-system-detection.js +50 -0
- package/build/ci-trigger-adapters.js +631 -0
- package/build/ci-trigger-install.js +106 -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-launcher-pin.js +33 -2
- package/build/codex-skill-adapter.js +5 -1
- package/build/command-host.js +33 -0
- package/build/commands.generated.js +7 -6
- package/build/conductor/bridge-api-client.js +1352 -50
- package/build/conductor/bring-up-facts.js +18 -5
- package/build/conductor/command-drift-production.js +42 -17
- package/build/conductor/command-drift.js +47 -0
- package/build/conductor/declare-blocked.js +554 -0
- package/build/conductor/doctor.js +187 -28
- package/build/conductor/driver-commands.js +141 -0
- package/build/conductor/driver-guard.js +277 -0
- package/build/conductor/driver-lapse.js +321 -0
- package/build/conductor/driver-register.js +176 -0
- package/build/conductor/driver-release.js +174 -0
- package/build/conductor/driver-session-state.js +315 -0
- package/build/conductor/epic-branch-ci-inspection.js +222 -29
- package/build/conductor/epic-implementer-cli.js +213 -13
- package/build/conductor/epic-server-database.js +162 -0
- package/build/conductor/epic-server-guidance.js +278 -0
- package/build/conductor/epic-server-journal.js +239 -0
- package/build/conductor/epic-server-processes.js +324 -0
- package/build/conductor/epic-server-recipe.js +397 -0
- package/build/conductor/epic-server-runtime.js +1207 -0
- package/build/conductor/epic-server-sfcc.js +107 -0
- package/build/conductor/epic-server-state.js +427 -0
- package/build/conductor/epic-server.js +594 -0
- package/build/conductor/gate-discovery.js +281 -10
- package/build/conductor/gate-settings-review.js +525 -5
- 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 +6 -53
- package/build/conductor/launch-plan.js +318 -121
- 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/prerequisite-inputs.js +1213 -0
- package/build/conductor/readiness-assessment.js +93 -0
- package/build/conductor/readiness-cli.js +30 -9
- package/build/conductor/readiness-prerequisites.js +77 -5
- package/build/conductor/readiness-sections.js +146 -126
- package/build/conductor/readiness.js +21 -3
- package/build/conductor/recovery-cli.js +236 -15
- package/build/conductor/recovery-operations.js +34 -4
- package/build/conductor/repair-contract.js +33 -0
- package/build/conductor/tools.js +36 -4
- package/build/conductor/wait-run-attention.js +115 -0
- package/build/conductor/wait-run-cli.js +300 -21
- package/build/conductor/worker-database-doctor-inspector.js +34 -2
- package/build/conductor/worker-setup-tally.js +27 -0
- package/build/credential-store.js +96 -21
- package/build/dependency-install-declarations.js +212 -0
- package/build/docs.generated.js +4 -4
- package/build/doctor.js +91 -8
- package/build/drive-epic-help.js +23 -4
- package/build/drive-epic.js +1841 -340
- package/build/engine-paths.js +20 -0
- package/build/epic-branch-ci-summary.js +140 -0
- package/build/epic-capability-statement.js +107 -0
- package/build/epic-ci-workflow-drift.js +30 -15
- package/build/epic-ci-workflow-install.js +110 -42
- package/build/epic-ci-workflow-v2.js +274 -0
- package/build/epic-ci-workflow.js +38 -12
- package/build/epic-implementer-bin.js +2184 -52
- package/build/epic-launch-context.js +607 -0
- package/build/epic-launch-profile.js +1 -1
- package/build/epic-server-record.js +273 -0
- package/build/epic-shared/bridge-client.js +11 -3
- package/build/escalation-reachability.js +43 -0
- package/build/executor/ci-fix-test-runs.js +334 -0
- package/build/executor/cli.js +2 -0
- package/build/executor/completion-contract.js +24 -1
- 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 +119 -17
- package/build/executor/epic-server-context.js +141 -0
- package/build/executor/gate-qualification-job.js +127 -26
- package/build/executor/harness-coverage.js +19 -0
- package/build/executor/http-client.js +87 -6
- package/build/executor/index.js +2 -1
- package/build/executor/install-preflight.js +1 -1
- package/build/executor/job-runner.js +659 -87
- package/build/executor/likely-tests.js +94 -97
- package/build/executor/observation.js +8 -0
- package/build/executor/pre-pr-checks.js +363 -0
- package/build/executor/prompt-spec.js +127 -5
- package/build/executor/reconcile-overlap-job.js +5 -3
- package/build/executor/required-verification.js +28 -0
- package/build/executor/required-work-diagnostics.js +32 -0
- package/build/executor/required-work-ledger.js +955 -39
- package/build/executor/results.js +100 -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/terminal-mutation.js +8 -0
- package/build/executor/test-clock.js +3 -0
- package/build/executor/verification-hints.js +179 -0
- package/build/executor/worker-command.js +126 -5
- package/build/executor/worker-database-config.js +281 -0
- package/build/executor/worker-database-target.js +16 -12
- package/build/executor/worker-database.js +575 -116
- package/build/executor/worker-finalization.js +71 -10
- package/build/executor/worker-guard-hook.js +10 -2
- package/build/executor/worker-resources.js +25 -3
- package/build/executor/worker-verification-guidance.js +55 -5
- package/build/executor/worktree-inspection.js +42 -0
- package/build/executor/worktree.js +20 -1
- package/build/executor-launch.js +54 -2
- package/build/generated-assets-catalog.js +2 -2
- package/build/github-sign-in.js +1 -1
- package/build/index.js +1111 -381
- package/build/init.js +29 -14
- package/build/install-bridge-conductor-answers.js +465 -0
- package/build/install-bridge-conductor-apply.js +259 -0
- package/build/install-bridge-conductor-assessment.js +895 -0
- package/build/install-bridge-conductor-compact.js +161 -0
- package/build/install-bridge-conductor-contracts.js +63 -0
- package/build/install-bridge-conductor-gate.js +1383 -188
- package/build/install-bridge-conductor-setup.js +637 -92
- package/build/install-bridge-conductor.js +3163 -740
- package/build/install-bridge.js +601 -128
- package/build/install-maintenance.js +127 -0
- package/build/install-reexec.js +1 -1
- package/build/launcher-config-inspection.js +162 -1
- package/build/local-cleanup.js +59 -0
- package/build/mcp-grant-candidates.js +767 -0
- package/build/mcp-grant-doctor.js +63 -0
- package/build/mcp-grant.js +288 -0
- package/build/mcp-host-targets.js +8 -0
- package/build/mcp-identity.js +23 -0
- package/build/mcp-install-state.js +68 -2
- package/build/mcp-invoke.js +126 -13
- package/build/mcp-presets.js +107 -0
- package/build/mcp-provisioning.js +134 -2
- package/build/mcp-registration-doctor.js +31 -2
- package/build/mcp-server-invocation.js +6 -1
- package/build/merge-workflow-install.js +236 -111
- 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-discovery.js +97 -4
- package/build/plan-execution-ledger.js +248 -9
- package/build/plan-generation-io.js +262 -0
- package/build/plan-generation.js +424 -0
- package/build/plane/build-freshness.js +6 -1
- package/build/plane/cli.js +75 -9
- package/build/plane/plane-freshness.js +23 -7
- package/build/plane/preflight.js +50 -10
- package/build/plane/shutdown.js +19 -0
- package/build/plane/terminal-run-cleanup.js +23 -5
- package/build/plane/terminal-run-status.js +4 -0
- package/build/printed-remedy-commands.js +229 -15
- package/build/readiness-check.js +1 -1
- package/build/readiness-prerequisites.generated.js +311 -4
- package/build/readme.generated.js +1 -1
- package/build/repository-state-paths.js +38 -0
- package/build/repository-toolchains.js +50 -8
- package/build/run-unit-tests-launcher.js +8 -1
- package/build/setup-change-policy.js +32 -0
- package/build/setup-epic.js +1192 -198
- package/build/setup-progress.js +44 -0
- package/build/setup-question.js +180 -0
- package/build/start-tickets.js +4 -0
- package/build/test-command-detection.js +32 -88
- package/build/test-support/notes-fs.js +40 -0
- package/build/third-party-mcp-targets.js +30 -0
- package/build/ticket-delivery-enrollment.js +30 -8
- package/build/ticket-delivery-run-scope.js +128 -0
- package/build/upgrade-cli.js +85 -2
- package/build/v2-readiness-requirements.js +28 -1
- 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-INSTALL.md +9 -1
- package/docs/EPIC-IMPLEMENTER.md +5 -0
- package/docs/epic-implementer/getting-started.md +42 -15
- package/docs/epic-implementer/self-hosting.md +14 -1
- package/package.json +2 -2
package/build/doctor.js
CHANGED
|
@@ -47,11 +47,13 @@ import { CONDUCTOR_DEFAULT_BASE_URL, resolveConductorBridgeApiAccess } from "./c
|
|
|
47
47
|
import { validateHttpBaseUrl } from "./base-url.js";
|
|
48
48
|
import { getLiveRepositoryConductors, getParseDispatcherHealth, } from "./epic-shared/bridge-client.js";
|
|
49
49
|
import { resolveRequiredStartTicketsRepoName } from "./start-tickets-repo.js";
|
|
50
|
+
import { collectMcpGrantDiagnostic, formatMcpGrantDiagnosticReport, } from "./mcp-grant-doctor.js";
|
|
50
51
|
import { collectWorkerContainmentDiagnostic, formatWorkerContainmentDiagnosticReport, } from "./worker-containment-diagnostic.js";
|
|
51
52
|
import { BRIDGE_PACKAGE_NAME, describeLauncherReason, DUPLICATE_REGISTRATION_GUIDANCE, inspectLauncherConfigs, isExactVersion, isPrerequisiteFailure, parseLauncherPin as parseSharedLauncherPin, } from "./launcher-config-inspection.js";
|
|
52
53
|
import { MCP_SERVER_NAME, MCP_PACKAGE_NAME, } from "./mcp-identity.js";
|
|
53
54
|
import { DEFAULT_AGENT_NAME, resolveAgentSpec, isAgentName, formatValidAgentNames, } from "./agent-registry.js";
|
|
54
55
|
import { getDoctorPrereqDescriptors, probePrerequisite, } from "./start-tickets-prereqs.js";
|
|
56
|
+
import { posixShellQuote } from "./platform-escaping.js";
|
|
55
57
|
import { resolveProfiles } from "./mcp-profile.js";
|
|
56
58
|
import { executorLaunchdDirForHome, executorSystemdDirForHome, executorIdFromLaunchdFilename, executorIdFromSystemdFilename, inspectExecutorServiceArtifact, inspectExecutorServiceDurability, EXECUTOR_SERVICE_BASE_URL_ENV, } from "./executor/index.js";
|
|
57
59
|
import { DEFAULT_BAPI_BASE_URL } from "./executor/credentials.js";
|
|
@@ -123,6 +125,9 @@ export function getDoctorUsage() {
|
|
|
123
125
|
"prints the key value and never writes the credential store. To persist or",
|
|
124
126
|
"migrate a credential, use /install-bridge or the `credentials` subcommand —",
|
|
125
127
|
"doctor stays strictly read-only.",
|
|
128
|
+
"Managed git hooks and Bridge worktrees are advisory cleanup observations;",
|
|
129
|
+
"they show installed/unknown hooks, sizes and prune eligibility without fetching",
|
|
130
|
+
"or changing the exit code. Removal commands require separate consent.",
|
|
126
131
|
"",
|
|
127
132
|
"It includes an advisory 'Worker containment' section reporting the DECLARED",
|
|
128
133
|
"posture an Epic Implementer worker runs under: that the executor strips this",
|
|
@@ -168,10 +173,18 @@ export function getDoctorUsage() {
|
|
|
168
173
|
"It reads no install-state file, writes nothing, runs no launchctl/systemctl, and",
|
|
169
174
|
"is advisory: missing, malformed, or credential-less units never change the exit code.",
|
|
170
175
|
"",
|
|
176
|
+
"It also includes an advisory 'Worker MCP grant' section: whether this",
|
|
177
|
+
"repository has an owner-approved MCP grant (present, absent, or unusable),",
|
|
178
|
+
"the granted server names, and a warning when the grant file's mode is wider",
|
|
179
|
+
"than 0600. It reads and stats only the grant file under ~/.config/bridge,",
|
|
180
|
+
"never prints a command, argument, or secret, writes nothing, and never",
|
|
181
|
+
"changes the exit code.",
|
|
182
|
+
"",
|
|
171
183
|
"It also includes an advisory '/drive-epic-run permission rules' section",
|
|
172
184
|
"whether the project permissions.allow rules and the optional user",
|
|
173
|
-
"autoMode entries (added
|
|
174
|
-
"subcommand, never by install
|
|
185
|
+
"autoMode entries (the run's sandbox description, added only by you running",
|
|
186
|
+
"the bridge-permissions subcommand, never by install or by /drive-epic-run)",
|
|
187
|
+
"are PRESENT, MISSING, or DRIFTED (for",
|
|
175
188
|
"example after the BAPI_MCP_CLI launcher changed). It reads .claude/settings.local.json,",
|
|
176
189
|
"~/.claude/settings.json, and .bridge/bridge-permissions.json, writes nothing,",
|
|
177
190
|
"and never changes the exit code.",
|
|
@@ -769,6 +782,18 @@ export async function inspectLauncherCache(deps) {
|
|
|
769
782
|
});
|
|
770
783
|
continue;
|
|
771
784
|
}
|
|
785
|
+
if (found.action === "skip-local-build") {
|
|
786
|
+
// BAPI-1636: `node <abs>/build/index.js` runs a local build directly. Like
|
|
787
|
+
// the shim, there is no published-package pin to compare or warm.
|
|
788
|
+
inspections.push({
|
|
789
|
+
relPath,
|
|
790
|
+
spec,
|
|
791
|
+
pinnedVersion: null,
|
|
792
|
+
state: "indeterminate",
|
|
793
|
+
remediation: "local build — this registration launches a local build directly, so no published-package pin applies.",
|
|
794
|
+
});
|
|
795
|
+
continue;
|
|
796
|
+
}
|
|
772
797
|
if (found.action === "normalize-unpinned") {
|
|
773
798
|
inspections.push({
|
|
774
799
|
relPath,
|
|
@@ -1356,7 +1381,7 @@ export async function collectExecutorServiceDiagnostics(deps) {
|
|
|
1356
1381
|
noStandingGithubWriteCredential: "unverifiable",
|
|
1357
1382
|
warnings: [
|
|
1358
1383
|
"unit could not be read; its configuration cannot be verified.",
|
|
1359
|
-
"regenerate it through durable-host mode (`install
|
|
1384
|
+
"regenerate it through durable-host mode (`install epic-implementer`) if this persists.",
|
|
1360
1385
|
],
|
|
1361
1386
|
});
|
|
1362
1387
|
continue;
|
|
@@ -1371,12 +1396,12 @@ export async function collectExecutorServiceDiagnostics(deps) {
|
|
|
1371
1396
|
unitWarnings.push(...inspection.credentialDeclarationProblems);
|
|
1372
1397
|
if (credentialDeclaration === "present") {
|
|
1373
1398
|
unitWarnings.push("this unit declares something outside the closed durable-host contract — regenerate it " +
|
|
1374
|
-
"through durable-host mode (`install
|
|
1399
|
+
"through durable-host mode (`install epic-implementer`) and remove the hand edit.");
|
|
1375
1400
|
}
|
|
1376
1401
|
else if (credentialDeclaration === "unverifiable") {
|
|
1377
1402
|
unitWarnings.push("this unit could only be parsed partially, so the no-standing-GitHub-write-credential " +
|
|
1378
1403
|
"property could not be established — regenerate it through durable-host mode " +
|
|
1379
|
-
"(`install
|
|
1404
|
+
"(`install epic-implementer`).");
|
|
1380
1405
|
}
|
|
1381
1406
|
let baseUrlClass;
|
|
1382
1407
|
if (!inspection.baseUrl) {
|
|
@@ -1443,6 +1468,7 @@ export function formatExecutorServiceDiagnosticsReport(diagnostics) {
|
|
|
1443
1468
|
for (const unit of diagnostics.units) {
|
|
1444
1469
|
lines.push(`found ${unit.path}`);
|
|
1445
1470
|
lines.push(` executor id: ${unit.executorId}`);
|
|
1471
|
+
lines.push(` cleanup: npx -y ${MCP_PACKAGE_NAME} executor uninstall-service --executor-id ${posixShellQuote(unit.executorId)}`);
|
|
1446
1472
|
lines.push(` ${EXECUTOR_SERVICE_BASE_URL_ENV}: ${unit.baseUrl ?? "(absent)"} [${unit.baseUrlClass}]`);
|
|
1447
1473
|
lines.push(` repos: ${unit.repos.length > 0 ? unit.repos.join(", ") : "(none parsed)"}`);
|
|
1448
1474
|
lines.push(formatCredentialDeclarationLine(unit.noStandingGithubWriteCredential));
|
|
@@ -1794,7 +1820,7 @@ export function formatOperationalAdvisoryReport(diagnostic) {
|
|
|
1794
1820
|
lines.push(` ${helper}`);
|
|
1795
1821
|
}
|
|
1796
1822
|
lines.push(" These predate the scoped two-phase bring-up and are retired. The supported\n" +
|
|
1797
|
-
" replacement is DURABLE-HOST MODE: run `install
|
|
1823
|
+
" replacement is DURABLE-HOST MODE: run `install epic-implementer` to plan, write, and\n" +
|
|
1798
1824
|
" start the executor as a persistent service, then confirm\n" +
|
|
1799
1825
|
" `drive-epic <EPIC> --plan-file <dag>` works for you, and remove them.\n" +
|
|
1800
1826
|
" doctor performed a PATH-PRESENCE check only: it did not run, read, or\n" +
|
|
@@ -1862,7 +1888,7 @@ export function formatBridgePermissionsDiagnosticReport(inspection) {
|
|
|
1862
1888
|
else {
|
|
1863
1889
|
lines.push(...formatPermissionScope("project permissions.allow", inspection.project));
|
|
1864
1890
|
}
|
|
1865
|
-
lines.push(...formatPermissionScope("user autoMode entries", inspection.user, `Optional
|
|
1891
|
+
lines.push(...formatPermissionScope("user autoMode entries", inspection.user, `Optional, owner-run: to let Claude Code's auto mode recognize the run's own work, run \`npx -y ${MCP_PACKAGE_NAME} bridge-permissions --user-consented\` in your own terminal. Doctor writes nothing.`));
|
|
1866
1892
|
const healthy = inspection.project.state === "present" && inspection.user.state === "present";
|
|
1867
1893
|
if (!healthy) {
|
|
1868
1894
|
lines.push(` To repair the project rules: re-run \`npx -y ${MCP_PACKAGE_NAME} install\` in a terminal (it lists every rule it writes).`);
|
|
@@ -1966,7 +1992,7 @@ export function formatEpicLaunchProfileDiagnosticReport(diagnostic) {
|
|
|
1966
1992
|
lines.push(" (none)");
|
|
1967
1993
|
for (const p of diagnostic.profiles) {
|
|
1968
1994
|
if (p.problem !== undefined) {
|
|
1969
|
-
lines.push(` [fail] ${p.name}: ${p.problem} — re-run \`install
|
|
1995
|
+
lines.push(` [fail] ${p.name}: ${p.problem} — re-run \`install epic-implementer --launch-profile ${p.name}\`.`);
|
|
1970
1996
|
continue;
|
|
1971
1997
|
}
|
|
1972
1998
|
const tag = p.usable ? "[ok] " : "[fail]";
|
|
@@ -2227,6 +2253,36 @@ export async function runDoctorCli(argv, overrides = {}) {
|
|
|
2227
2253
|
/* permission-rule diagnostics are advisory; never block the doctor report */
|
|
2228
2254
|
}
|
|
2229
2255
|
}
|
|
2256
|
+
// BAPI-1545 worker MCP grant section. Read-only (one read and one stat of the
|
|
2257
|
+
// grant file under ~/.config/bridge), advisory, never the exit code.
|
|
2258
|
+
if (overrides.mcpGrant !== false) {
|
|
2259
|
+
try {
|
|
2260
|
+
const injected = deps;
|
|
2261
|
+
const grantOverrides = overrides.mcpGrant ?? {};
|
|
2262
|
+
const grantReadFile = grantOverrides.readFile ?? injected.readFile ?? ((p) => readFile(p, "utf-8"));
|
|
2263
|
+
let repoName = grantOverrides.repoName ?? null;
|
|
2264
|
+
if (grantOverrides.repoName === undefined) {
|
|
2265
|
+
try {
|
|
2266
|
+
const resolved = await resolveRequiredStartTicketsRepoName({ env: deps.env, cwd: deps.cwd, readFile: grantReadFile });
|
|
2267
|
+
repoName = resolved.ok ? resolved.repoName : null;
|
|
2268
|
+
}
|
|
2269
|
+
catch {
|
|
2270
|
+
repoName = null;
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
log(formatMcpGrantDiagnosticReport(await collectMcpGrantDiagnostic({
|
|
2274
|
+
env: grantOverrides.env ?? deps.env,
|
|
2275
|
+
homedir: grantOverrides.homedir ?? injected.homedir ?? os.homedir,
|
|
2276
|
+
readFile: grantReadFile,
|
|
2277
|
+
stat: grantOverrides.stat ?? ((p) => stat(p)),
|
|
2278
|
+
platform: grantOverrides.platform ?? process.platform,
|
|
2279
|
+
repoName,
|
|
2280
|
+
})));
|
|
2281
|
+
}
|
|
2282
|
+
catch {
|
|
2283
|
+
/* the grant section is advisory; never block the doctor report */
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2230
2286
|
// Worker containment advisory section (BAPI-1019/A.7). Placed beside the other
|
|
2231
2287
|
// advisory sections and, uniquely, issuing NO probe of any kind — no command,
|
|
2232
2288
|
// no file read, no network call. That is what keeps doctor's "an unsupported
|
|
@@ -2336,6 +2392,33 @@ export async function runDoctorCli(argv, overrides = {}) {
|
|
|
2336
2392
|
}));
|
|
2337
2393
|
}
|
|
2338
2394
|
}
|
|
2395
|
+
if (overrides.localCleanup !== false) {
|
|
2396
|
+
try {
|
|
2397
|
+
const { inspectConductorGitHooks } = await import("./conductor/git-hooks.js");
|
|
2398
|
+
const { inspectBridgeWorktrees, formatBridgeWorktreeSummary } = await import("./bridge-worktree-inspection.js");
|
|
2399
|
+
log("\nManaged git hooks (advisory)");
|
|
2400
|
+
try {
|
|
2401
|
+
const hooks = inspectConductorGitHooks({ cwd: deps.cwd, presenceOnly: true });
|
|
2402
|
+
if (!hooks.is_worktree)
|
|
2403
|
+
log("unavailable: outside a Git repository");
|
|
2404
|
+
for (const hook of hooks.hooks)
|
|
2405
|
+
log(`${hook.path}: ${hook.managed_block_observation === "unknown" ? "unknown" : hook.managed_block_observation === "present" ? "installed" : "not installed"}`);
|
|
2406
|
+
log("Remove: epic-implementer uninstall-git-hooks [--dry-run]");
|
|
2407
|
+
}
|
|
2408
|
+
catch {
|
|
2409
|
+
log("unavailable: outside a repository or Git hooks could not be inspected");
|
|
2410
|
+
}
|
|
2411
|
+
const worktrees = await inspectBridgeWorktrees({ cwd: deps.cwd, budgetMs: 1000 });
|
|
2412
|
+
log("\nBridge worktrees (advisory)");
|
|
2413
|
+
log(formatBridgeWorktreeSummary(worktrees));
|
|
2414
|
+
for (const wt of worktrees.worktrees.filter(wt => wt.evidence.length))
|
|
2415
|
+
log(`${wt.path}: ${wt.status}; ${wt.retained.join("; ")}`);
|
|
2416
|
+
log(`Inspect local refs and git status before cleanup: npx -y ${MCP_PACKAGE_NAME} worktrees --prune`);
|
|
2417
|
+
}
|
|
2418
|
+
catch {
|
|
2419
|
+
log("Local cleanup observations unavailable (advisory).");
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2339
2422
|
// Advisory conductor-plane credential section (BAPI-756). Read-only and, like
|
|
2340
2423
|
// every section above, never affects the exit code: `plane up` enforces these
|
|
2341
2424
|
// same invariants at the point where they actually block, and an ordinary MCP
|
package/build/drive-epic-help.js
CHANGED
|
@@ -37,6 +37,16 @@ export function getDriveEpicUsage() {
|
|
|
37
37
|
"finalize` writes them for a plan from /plan-epic. A supplied --plan-file",
|
|
38
38
|
"always wins.",
|
|
39
39
|
"",
|
|
40
|
+
"A missing plan is built: when no meta file names the epic and the epic has",
|
|
41
|
+
"no live run, drive-epic builds the plan from the epic's stored children, with",
|
|
42
|
+
"fixed rules and no model. Every node is a current child; order comes from the",
|
|
43
|
+
"epic's ordered child manifest, else ticket-key order; a child whose files are",
|
|
44
|
+
"unknown makes the whole plan run one child at a time. --dry-run builds it in",
|
|
45
|
+
"memory and writes nothing. A real launch rebuilds it and saves it to",
|
|
46
|
+
"{docs_dir}/epic-plans/<epic-key>-generated/ before the run is created. If it",
|
|
47
|
+
"cannot be built, the stop names a fixed reason and keeps the /plan-epic",
|
|
48
|
+
"guidance. Delete that folder to return to the missing-plan behavior.",
|
|
49
|
+
"",
|
|
40
50
|
"Branch strategy: a plan with two or more nodes defaults to a dedicated",
|
|
41
51
|
"epic/<KEY> branch. Child PRs target it, and one draft integration PR targets",
|
|
42
52
|
"the repository base branch. The flags below only override that default.",
|
|
@@ -70,6 +80,11 @@ export function getDriveEpicUsage() {
|
|
|
70
80
|
" --feature-branch.",
|
|
71
81
|
" --attended Opt out of the unattended default. Forwarded verbatim to",
|
|
72
82
|
" setup, which owns what it composes.",
|
|
83
|
+
" --parallel <1-4> Request how many independent children an UNATTENDED run may",
|
|
84
|
+
" run at once. Applies to a NEW run only. Omitted, the choice",
|
|
85
|
+
" is left to the server. Refused with --attended or",
|
|
86
|
+
" --into-base. A run-scoped executor started here serves",
|
|
87
|
+
" that many jobs at a time.",
|
|
73
88
|
"",
|
|
74
89
|
"Policy (forwarded verbatim; drive-epic interprets none of it):",
|
|
75
90
|
" --policy-file <path> JSON file holding the COMPLETE run policy.",
|
|
@@ -100,7 +115,8 @@ export function getDriveEpicUsage() {
|
|
|
100
115
|
"",
|
|
101
116
|
"Already-merged children: when a NEW run is created, drive-epic leaves out plan",
|
|
102
117
|
"children that are provably already merged. A child with a merged PR but no",
|
|
103
|
-
"delivery record is only 'probably done'
|
|
118
|
+
"delivery record is only 'probably done'; it runs automatically, and launch asks",
|
|
119
|
+
"nothing about it. Pass --skip-child to leave it out.",
|
|
104
120
|
"Anything uncertain runs. Skipped children are recorded for audit only.",
|
|
105
121
|
" --keep-child <KEY> Repeatable. Run this child even if it is already merged.",
|
|
106
122
|
" --skip-child <KEY> Repeatable. Leave this child out. Refused unless the",
|
|
@@ -172,13 +188,13 @@ export function getDriveEpicAdvancedUsage() {
|
|
|
172
188
|
"repo-wide executor; a plane already bound to the run needs none. An epic with",
|
|
173
189
|
"several active runs, or a run that cannot be read, is refused by name.",
|
|
174
190
|
"",
|
|
175
|
-
"Repository-wide executors: `install
|
|
191
|
+
"Repository-wide executors: `install epic-implementer --executor-id <id> --repo-wide`",
|
|
176
192
|
"provisions a persistent executor that claims jobs for every run in the",
|
|
177
193
|
"repository. A durable host needs one before it can launch.",
|
|
178
194
|
"",
|
|
179
195
|
"Launch target — decided BEFORE any authenticated request:",
|
|
180
196
|
" --launch-profile <name> Select the host-local launch profile guided setup",
|
|
181
|
-
" approved (`install
|
|
197
|
+
" approved (`install epic-implementer --launch-profile <name>`):",
|
|
182
198
|
" target, repository, mode, runtime, and policy and",
|
|
183
199
|
" credential references. Useful for a local or other",
|
|
184
200
|
" non-production server and for durable hosts.",
|
|
@@ -187,7 +203,10 @@ export function getDriveEpicAdvancedUsage() {
|
|
|
187
203
|
"BAPI_EPIC_LAUNCH_PROFILE selects a host-local launch profile for epic",
|
|
188
204
|
"launches. --launch-profile takes precedence. For an environment-selected",
|
|
189
205
|
"profile, BAPI_BASE_URL remains the general CLI endpoint and does not",
|
|
190
|
-
"conflict with the epic launch target; --base-url still must agree.",
|
|
206
|
+
"conflict with the epic launch target; --base-url still must agree. The",
|
|
207
|
+
"Epic Implementer verbs (wait-run, approve, state reads, recovery verbs, and",
|
|
208
|
+
"prerequisite-inputs lookup) also follow that profile; other CLIs keep",
|
|
209
|
+
"BAPI_BASE_URL.",
|
|
191
210
|
"Without either, BAPI_BASE_URL is used. With none of the three, drive-epic",
|
|
192
211
|
`targets production (${CONDUCTOR_DEFAULT_BASE_URL}) and uses the`,
|
|
193
212
|
"stored bapi:<repo> key when one is available. A stored key approved for a",
|