@bridge_gpt/mcp-server 0.2.72 → 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 +5 -5
- package/build/agent-launchers/claude-executor-adapter.js +3 -0
- package/build/agents.generated.js +6 -6
- package/build/bridge-permissions.js +27 -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/commands.generated.js +7 -6
- package/build/conductor/bridge-api-client.js +842 -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 +47 -0
- package/build/conductor/declare-blocked.js +554 -0
- package/build/conductor/doctor.js +106 -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-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 +166 -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.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 +150 -5
- package/build/conductor/gate-settings-review.js +224 -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-store.js +71 -1
- package/build/dependency-install-declarations.js +55 -0
- package/build/docs.generated.js +2 -2
- package/build/doctor.js +54 -3
- package/build/drive-epic-help.js +21 -2
- package/build/drive-epic.js +1811 -351
- 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 +2101 -44
- package/build/epic-launch-context.js +607 -0
- 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/completion-contract.js +8 -1
- package/build/executor/env.js +59 -22
- package/build/executor/epic-server-context.js +141 -0
- package/build/executor/gate-qualification-job.js +127 -26
- package/build/executor/http-client.js +52 -5
- package/build/executor/job-runner.js +423 -69
- package/build/executor/observation.js +8 -0
- package/build/executor/pre-pr-checks.js +363 -0
- package/build/executor/prompt-spec.js +114 -2
- 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 +54 -2
- package/build/generated-assets-catalog.js +2 -2
- package/build/index.js +664 -335
- package/build/init.js +26 -11
- 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 +1197 -196
- package/build/install-bridge-conductor-setup.js +535 -79
- package/build/install-bridge-conductor.js +2885 -560
- package/build/install-bridge.js +199 -21
- package/build/install-maintenance.js +26 -3
- package/build/launcher-config-inspection.js +162 -1
- 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-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 +234 -109
- package/build/pipelines.generated.js +5 -5
- 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/terminal-run-cleanup.js +18 -4
- package/build/printed-remedy-commands.js +206 -12
- 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 +38 -0
- package/build/run-unit-tests-launcher.js +8 -1
- package/build/setup-epic.js +1190 -196
- package/build/setup-progress.js +44 -0
- package/build/setup-question.js +122 -4
- package/build/third-party-mcp-targets.js +30 -0
- 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/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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-repository state records kept OUTSIDE every worktree (BAPI-1545).
|
|
3
|
+
*
|
|
4
|
+
* Two record families live here, one file per repository:
|
|
5
|
+
*
|
|
6
|
+
* - `mcp-grants/<repo>.json` — the owner-approved MCP grant (`mcp-grant.ts`).
|
|
7
|
+
* - `epic-server/<repo>.json` — the epic-server record child 3 writes
|
|
8
|
+
* (`epic-server-record.ts` owns the contract).
|
|
9
|
+
*
|
|
10
|
+
* Both sit beside the user credential store, under `~/.config/bridge` (or
|
|
11
|
+
* `$XDG_CONFIG_HOME/bridge` when that is set, exactly as the credential store
|
|
12
|
+
* resolves it). A worker's worktree never contains them, so nothing a worker
|
|
13
|
+
* commits or edits inside its checkout can change them.
|
|
14
|
+
*
|
|
15
|
+
* The repository name comes from a trusted caller (the executor's claim
|
|
16
|
+
* response, or the install run's resolved access). It is validated with
|
|
17
|
+
* `validateRepoName()` and used directly as the file name. It is never derived
|
|
18
|
+
* from a checkout.
|
|
19
|
+
*/
|
|
20
|
+
import path from "path";
|
|
21
|
+
import { validateRepoName } from "./bridge-config.js";
|
|
22
|
+
import { getPrimaryCredentialStorePath } from "./credential-store.js";
|
|
23
|
+
/** The Bridge user config directory (the credential store's own directory). */
|
|
24
|
+
export function bridgeUserConfigDir(deps) {
|
|
25
|
+
return path.dirname(getPrimaryCredentialStorePath(deps));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Resolve `<bridge config dir>/<kind>/<repo>.json`. An invalid repository name
|
|
29
|
+
* is a structured failure with a fixed message; the name is never echoed.
|
|
30
|
+
*/
|
|
31
|
+
export function repositoryStateRecordPath(kind, repoName, deps) {
|
|
32
|
+
const validated = validateRepoName(repoName);
|
|
33
|
+
if (!validated.ok || validated.value === "." || validated.value === "..") {
|
|
34
|
+
return { ok: false, error: "the repository name is not usable as a record name" };
|
|
35
|
+
}
|
|
36
|
+
const dir = path.join(bridgeUserConfigDir(deps), kind);
|
|
37
|
+
return { ok: true, dir, path: path.join(dir, `${validated.value}.json`), repoName: validated.value };
|
|
38
|
+
}
|
|
@@ -483,13 +483,20 @@ function runWithReports(group, options, ordinary, quarantined, nodeOptions, log)
|
|
|
483
483
|
writeFileSync(temporary, JSON.stringify(inventory, null, 2));
|
|
484
484
|
renameSync(temporary, path.join(outputDirectory, "inventory.json"));
|
|
485
485
|
};
|
|
486
|
+
// Unit children never run the startup npm update check. Importing index.js
|
|
487
|
+
// otherwise fetches the registry whenever the shared ~/.config cache is
|
|
488
|
+
// missing or stale, and that call lands in the tests' fetch stubs. The
|
|
489
|
+
// integration harness sets the same flag for its own children.
|
|
490
|
+
const childEnv = group === "integration"
|
|
491
|
+
? process.env
|
|
492
|
+
: { ...process.env, BAPI_MCP_UPDATE_CHECK_ENABLED: "false" };
|
|
486
493
|
publish(); // Complete expected inventory is durable before the first spawn.
|
|
487
494
|
log(`run-unit-tests: group="${group}" files=${ordinary.length + quarantined.length} batches=${plans.length}`);
|
|
488
495
|
for (const [index, plan] of plans.entries()) {
|
|
489
496
|
plan.state = "started";
|
|
490
497
|
publish();
|
|
491
498
|
try {
|
|
492
|
-
const result = spawnFn(execPath, args(plan.files, index, plan.forceExit), { cwd: root, stdio: "inherit", shell: false });
|
|
499
|
+
const result = spawnFn(execPath, args(plan.files, index, plan.forceExit), { cwd: root, stdio: "inherit", shell: false, env: childEnv });
|
|
493
500
|
plan.status = result.status;
|
|
494
501
|
plan.state = result.status === null || !existsSync(path.join(outputDirectory, plan.report)) ? "failed" : "completed";
|
|
495
502
|
}
|