@bridge_gpt/mcp-server 0.2.72 → 0.2.74
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 +15 -0
- package/build/agents.generated.js +6 -6
- package/build/bridge-config.js +7 -1
- package/build/bridge-permissions.js +30 -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/codex-launcher-pin.js +33 -2
- package/build/codex-skill-adapter.js +3 -1
- package/build/command-host.js +33 -0
- package/build/command-provisioning.js +4 -3
- package/build/commands.generated.js +7 -6
- package/build/conductor/bridge-api-client.js +867 -35
- package/build/conductor/bring-up-facts.js +18 -5
- package/build/conductor/command-drift-production.js +42 -17
- package/build/conductor/command-drift.js +48 -1
- package/build/conductor/declare-blocked.js +554 -0
- package/build/conductor/declared-extras.js +335 -0
- package/build/conductor/doctor.js +108 -21
- 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-pass-output.js +104 -0
- package/build/conductor/driver-pass.js +571 -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 +281 -43
- package/build/conductor/epic-implementer-cli.js +199 -15
- 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-upload.js +1567 -0
- package/build/conductor/epic-server-sfcc.js +85 -0
- package/build/conductor/epic-server-state.js +427 -0
- package/build/conductor/epic-server.js +647 -0
- package/build/conductor/gate-discovery.js +196 -11
- package/build/conductor/gate-settings-review.js +261 -4
- package/build/conductor/launch-need-probes.js +6 -53
- package/build/conductor/launch-plan.js +313 -156
- package/build/conductor/prerequisite-inputs.js +879 -45
- package/build/conductor/readiness-assessment.js +16 -1
- package/build/conductor/readiness-cli.js +20 -9
- package/build/conductor/readiness-prerequisites.js +28 -9
- package/build/conductor/readiness-sections.js +133 -126
- package/build/conductor/readiness.js +1 -1
- package/build/conductor/recovery-cli.js +13 -2
- package/build/conductor/tools.js +6 -5
- package/build/conductor/wait-run-attention.js +2 -2
- package/build/conductor/wait-run-cli.js +208 -22
- package/build/conductor/worker-database-doctor-inspector.js +33 -2
- package/build/conductor/worker-setup-tally.js +27 -0
- package/build/credential-delivery.js +280 -0
- package/build/credential-launch-safety.js +142 -0
- package/build/credential-materialization.js +91 -16
- package/build/credential-references-node-deps.js +29 -0
- package/build/credential-references.js +1394 -0
- package/build/credential-references.test-fixtures.js +211 -0
- package/build/credential-scan-conventions.js +145 -0
- package/build/credential-scan.js +517 -0
- package/build/credential-store.js +121 -1
- package/build/credentials-cli.js +252 -3
- package/build/dependency-install-declarations.js +102 -1
- package/build/docs.generated.js +10 -3
- package/build/doctor.js +95 -3
- package/build/drive-epic-help.js +21 -2
- package/build/drive-epic.js +2095 -375
- package/build/engine-paths.js +20 -0
- package/build/epic-branch-ci-summary.js +157 -0
- package/build/epic-capability-statement.js +175 -0
- package/build/epic-ci-workflow-drift.js +77 -23
- package/build/epic-ci-workflow-install.js +137 -44
- package/build/epic-ci-workflow-v2.js +274 -0
- package/build/epic-ci-workflow-v3.js +273 -0
- package/build/epic-ci-workflow.js +165 -18
- package/build/epic-implementer-bin.js +2204 -56
- package/build/epic-launch-context.js +702 -0
- package/build/epic-server-record.js +288 -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/completion-contract.js +8 -1
- package/build/executor/credential-delivery-step.js +168 -0
- package/build/executor/deps.js +3 -1
- package/build/executor/env.js +98 -23
- package/build/executor/epic-server-context.js +157 -0
- package/build/executor/gate-qualification-job.js +127 -26
- package/build/executor/guarded-fast-forward-push.js +13 -8
- package/build/executor/http-client.js +52 -5
- package/build/executor/job-runner.js +577 -81
- package/build/executor/observation.js +8 -0
- package/build/executor/permissions.js +85 -3
- package/build/executor/pre-pr-checks.js +363 -0
- package/build/executor/prompt-spec.js +149 -3
- package/build/executor/reconcile-overlap-job.js +5 -3
- package/build/executor/required-work-diagnostics.js +4 -2
- package/build/executor/required-work-ledger.js +936 -38
- package/build/executor/results.js +58 -0
- package/build/executor/terminal-mutation.js +8 -0
- package/build/executor/worker-command.js +72 -3
- package/build/executor/worker-database-config.js +281 -0
- package/build/executor/worker-database-target.js +16 -12
- package/build/executor/worker-database.js +320 -101
- package/build/executor/worker-finalization.js +7 -1
- package/build/executor/worker-resources.js +25 -3
- package/build/executor/worker-verification-guidance.js +18 -3
- package/build/executor/worktree.js +20 -1
- package/build/executor-launch.js +58 -4
- package/build/generated-assets-catalog.js +2 -2
- package/build/git-exclude-lock.js +187 -0
- package/build/index.js +824 -366
- package/build/init.js +26 -11
- package/build/install-bridge-conductor-answers.js +528 -0
- package/build/install-bridge-conductor-apply.js +288 -0
- package/build/install-bridge-conductor-assessment.js +1222 -0
- package/build/install-bridge-conductor-compact.js +186 -0
- package/build/install-bridge-conductor-contracts.js +72 -0
- package/build/install-bridge-conductor-gate.js +1312 -198
- package/build/install-bridge-conductor-setup.js +577 -83
- package/build/install-bridge-conductor.js +3381 -544
- package/build/install-bridge.js +280 -25
- package/build/install-doctor.js +38 -8
- package/build/install-maintenance.js +26 -3
- package/build/install-sfcc-detection.js +120 -0
- package/build/install-sfcc-setup.js +185 -0
- package/build/launcher-config-inspection.js +162 -1
- package/build/mcp-grant-candidates.js +779 -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-invoke.js +292 -15
- package/build/mcp-presets.js +107 -0
- package/build/mcp-provisioning.js +155 -6
- package/build/mcp-registration-doctor.js +31 -2
- package/build/mcp-server-invocation.js +19 -1
- package/build/merge-workflow-install.js +243 -110
- package/build/pipelines.generated.js +7 -6
- package/build/plan-discovery.js +97 -4
- package/build/plan-execution-ledger.js +100 -7
- 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 +17 -0
- package/build/plane/preflight.js +50 -10
- package/build/plane/shutdown.js +19 -0
- package/build/plane/status.js +8 -2
- package/build/plane/terminal-run-cleanup.js +18 -4
- package/build/printed-remedy-commands.js +211 -12
- package/build/project-root.js +40 -0
- package/build/readiness-check.js +77 -0
- package/build/readiness-prerequisites.generated.js +122 -14
- package/build/readme.generated.js +1 -1
- package/build/repository-state-paths.js +41 -0
- package/build/repository-toolchains.js +6 -3
- package/build/run-unit-tests-launcher.js +8 -1
- package/build/setup-epic.js +1305 -210
- package/build/setup-progress.js +44 -0
- package/build/setup-question.js +122 -4
- package/build/sfcc/credentials.js +3 -2
- package/build/sfcc/hostname.js +98 -2
- package/build/sfcc/tool-wrapper.js +6 -95
- package/build/start-tickets.js +193 -29
- package/build/test-support/executor-source-files.js +200 -0
- package/build/testing-config-client.js +25 -2
- package/build/third-party-mcp-targets.js +63 -2
- package/build/ticket-delivery-enrollment.js +9 -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/with-credentials.js +208 -0
- package/build/worktree-credential-delivery.js +340 -0
- package/docs/EPIC-IMPLEMENTER-INSTALL.md +9 -1
- package/docs/epic-implementer/getting-started.md +3 -1
- package/docs/epic-implementer/self-hosting.md +14 -1
- package/package.json +2 -2
package/build/doctor.js
CHANGED
|
@@ -47,6 +47,9 @@ 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 { collectCredentialReferenceDiagnostic, formatCredentialReferenceDiagnosticReport, } from "./credential-references.js";
|
|
51
|
+
import { createNodeCredentialReferenceDeps } from "./credential-references-node-deps.js";
|
|
52
|
+
import { collectMcpGrantDiagnostic, formatMcpGrantDiagnosticReport, } from "./mcp-grant-doctor.js";
|
|
50
53
|
import { collectWorkerContainmentDiagnostic, formatWorkerContainmentDiagnosticReport, } from "./worker-containment-diagnostic.js";
|
|
51
54
|
import { BRIDGE_PACKAGE_NAME, describeLauncherReason, DUPLICATE_REGISTRATION_GUIDANCE, inspectLauncherConfigs, isExactVersion, isPrerequisiteFailure, parseLauncherPin as parseSharedLauncherPin, } from "./launcher-config-inspection.js";
|
|
52
55
|
import { MCP_SERVER_NAME, MCP_PACKAGE_NAME, } from "./mcp-identity.js";
|
|
@@ -172,10 +175,26 @@ export function getDoctorUsage() {
|
|
|
172
175
|
"It reads no install-state file, writes nothing, runs no launchctl/systemctl, and",
|
|
173
176
|
"is advisory: missing, malformed, or credential-less units never change the exit code.",
|
|
174
177
|
"",
|
|
178
|
+
"It also includes an advisory 'Worker MCP grant' section: whether this",
|
|
179
|
+
"repository has an owner-approved MCP grant (present, absent, or unusable),",
|
|
180
|
+
"the granted server names, and a warning when the grant file's mode is wider",
|
|
181
|
+
"than 0600. It reads and stats only the grant file under ~/.config/bridge,",
|
|
182
|
+
"never prints a command, argument, or secret, writes nothing, and never",
|
|
183
|
+
"changes the exit code.",
|
|
184
|
+
"",
|
|
185
|
+
"It also includes an advisory 'Worker credential references' section: whether",
|
|
186
|
+
"this repository has recorded credential references (present, absent, or",
|
|
187
|
+
"unusable) and, for each, its name, level, source location, consumers, and",
|
|
188
|
+
"whether the source is present, missing, or unreadable, with a closed reason",
|
|
189
|
+
"(source_missing, key_missing, unreadable, parse_error). Production entries are",
|
|
190
|
+
"inspected but marked as excluded from delivery. It never prints a credential",
|
|
191
|
+
"value, writes nothing, and never changes the exit code.",
|
|
192
|
+
"",
|
|
175
193
|
"It also includes an advisory '/drive-epic-run permission rules' section",
|
|
176
194
|
"whether the project permissions.allow rules and the optional user",
|
|
177
|
-
"autoMode entries (added
|
|
178
|
-
"subcommand, never by install
|
|
195
|
+
"autoMode entries (the run's sandbox description, added only by you running",
|
|
196
|
+
"the bridge-permissions subcommand, never by install or by /drive-epic-run)",
|
|
197
|
+
"are PRESENT, MISSING, or DRIFTED (for",
|
|
179
198
|
"example after the BAPI_MCP_CLI launcher changed). It reads .claude/settings.local.json,",
|
|
180
199
|
"~/.claude/settings.json, and .bridge/bridge-permissions.json, writes nothing,",
|
|
181
200
|
"and never changes the exit code.",
|
|
@@ -773,6 +792,18 @@ export async function inspectLauncherCache(deps) {
|
|
|
773
792
|
});
|
|
774
793
|
continue;
|
|
775
794
|
}
|
|
795
|
+
if (found.action === "skip-local-build") {
|
|
796
|
+
// BAPI-1636: `node <abs>/build/index.js` runs a local build directly. Like
|
|
797
|
+
// the shim, there is no published-package pin to compare or warm.
|
|
798
|
+
inspections.push({
|
|
799
|
+
relPath,
|
|
800
|
+
spec,
|
|
801
|
+
pinnedVersion: null,
|
|
802
|
+
state: "indeterminate",
|
|
803
|
+
remediation: "local build — this registration launches a local build directly, so no published-package pin applies.",
|
|
804
|
+
});
|
|
805
|
+
continue;
|
|
806
|
+
}
|
|
776
807
|
if (found.action === "normalize-unpinned") {
|
|
777
808
|
inspections.push({
|
|
778
809
|
relPath,
|
|
@@ -1867,7 +1898,7 @@ export function formatBridgePermissionsDiagnosticReport(inspection) {
|
|
|
1867
1898
|
else {
|
|
1868
1899
|
lines.push(...formatPermissionScope("project permissions.allow", inspection.project));
|
|
1869
1900
|
}
|
|
1870
|
-
lines.push(...formatPermissionScope("user autoMode entries", inspection.user, `Optional
|
|
1901
|
+
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.`));
|
|
1871
1902
|
const healthy = inspection.project.state === "present" && inspection.user.state === "present";
|
|
1872
1903
|
if (!healthy) {
|
|
1873
1904
|
lines.push(` To repair the project rules: re-run \`npx -y ${MCP_PACKAGE_NAME} install\` in a terminal (it lists every rule it writes).`);
|
|
@@ -2232,6 +2263,67 @@ export async function runDoctorCli(argv, overrides = {}) {
|
|
|
2232
2263
|
/* permission-rule diagnostics are advisory; never block the doctor report */
|
|
2233
2264
|
}
|
|
2234
2265
|
}
|
|
2266
|
+
// BAPI-1545 worker MCP grant section. Read-only (one read and one stat of the
|
|
2267
|
+
// grant file under ~/.config/bridge), advisory, never the exit code.
|
|
2268
|
+
if (overrides.mcpGrant !== false) {
|
|
2269
|
+
try {
|
|
2270
|
+
const injected = deps;
|
|
2271
|
+
const grantOverrides = overrides.mcpGrant ?? {};
|
|
2272
|
+
const grantReadFile = grantOverrides.readFile ?? injected.readFile ?? ((p) => readFile(p, "utf-8"));
|
|
2273
|
+
let repoName = grantOverrides.repoName ?? null;
|
|
2274
|
+
if (grantOverrides.repoName === undefined) {
|
|
2275
|
+
try {
|
|
2276
|
+
const resolved = await resolveRequiredStartTicketsRepoName({ env: deps.env, cwd: deps.cwd, readFile: grantReadFile });
|
|
2277
|
+
repoName = resolved.ok ? resolved.repoName : null;
|
|
2278
|
+
}
|
|
2279
|
+
catch {
|
|
2280
|
+
repoName = null;
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
log(formatMcpGrantDiagnosticReport(await collectMcpGrantDiagnostic({
|
|
2284
|
+
env: grantOverrides.env ?? deps.env,
|
|
2285
|
+
homedir: grantOverrides.homedir ?? injected.homedir ?? os.homedir,
|
|
2286
|
+
readFile: grantReadFile,
|
|
2287
|
+
stat: grantOverrides.stat ?? ((p) => stat(p)),
|
|
2288
|
+
platform: grantOverrides.platform ?? process.platform,
|
|
2289
|
+
repoName,
|
|
2290
|
+
})));
|
|
2291
|
+
}
|
|
2292
|
+
catch {
|
|
2293
|
+
/* the grant section is advisory; never block the doctor report */
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
// BAPI-1646 worker credential references section. Read-only (the record and the
|
|
2297
|
+
// approved source paths), advisory, never the exit code, never a value.
|
|
2298
|
+
if (overrides.credentialReferences !== false) {
|
|
2299
|
+
try {
|
|
2300
|
+
const refOverrides = overrides.credentialReferences ?? {};
|
|
2301
|
+
const injected = deps;
|
|
2302
|
+
const defaults = createNodeCredentialReferenceDeps(refOverrides.env ?? deps.env);
|
|
2303
|
+
const refReadFile = refOverrides.readFile ?? injected.readFile ?? defaults.readFile;
|
|
2304
|
+
let refRepoName = refOverrides.repoName ?? null;
|
|
2305
|
+
if (refOverrides.repoName === undefined) {
|
|
2306
|
+
try {
|
|
2307
|
+
const resolved = await resolveRequiredStartTicketsRepoName({ env: deps.env, cwd: deps.cwd, readFile: refReadFile });
|
|
2308
|
+
refRepoName = resolved.ok ? resolved.repoName : null;
|
|
2309
|
+
}
|
|
2310
|
+
catch {
|
|
2311
|
+
refRepoName = null;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
log(formatCredentialReferenceDiagnosticReport(await collectCredentialReferenceDiagnostic({
|
|
2315
|
+
...defaults,
|
|
2316
|
+
...refOverrides,
|
|
2317
|
+
env: refOverrides.env ?? deps.env,
|
|
2318
|
+
homedir: refOverrides.homedir ?? injected.homedir ?? defaults.homedir,
|
|
2319
|
+
readFile: refReadFile,
|
|
2320
|
+
repoName: refRepoName,
|
|
2321
|
+
})));
|
|
2322
|
+
}
|
|
2323
|
+
catch {
|
|
2324
|
+
/* the credential-reference section is advisory; never block the doctor report */
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2235
2327
|
// Worker containment advisory section (BAPI-1019/A.7). Placed beside the other
|
|
2236
2328
|
// advisory sections and, uniquely, issuing NO probe of any kind — no command,
|
|
2237
2329
|
// no file read, no network call. That is what keeps doctor's "an unsupported
|
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",
|
|
@@ -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",
|