@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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-repository state records kept OUTSIDE every worktree (BAPI-1545).
|
|
3
|
+
*
|
|
4
|
+
* Three 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
|
+
* - `worker-credentials/<repo>.json` — the owner-approved credential
|
|
10
|
+
* references, names and source locations only, never values
|
|
11
|
+
* (`credential-references.ts` owns the contract).
|
|
12
|
+
*
|
|
13
|
+
* All sit beside the user credential store, under `~/.config/bridge` (or
|
|
14
|
+
* `$XDG_CONFIG_HOME/bridge` when that is set, exactly as the credential store
|
|
15
|
+
* resolves it). A worker's worktree never contains them, so nothing a worker
|
|
16
|
+
* commits or edits inside its checkout can change them.
|
|
17
|
+
*
|
|
18
|
+
* The repository name comes from a trusted caller (the executor's claim
|
|
19
|
+
* response, or the install run's resolved access). It is validated with
|
|
20
|
+
* `validateRepoName()` and used directly as the file name. It is never derived
|
|
21
|
+
* from a checkout.
|
|
22
|
+
*/
|
|
23
|
+
import path from "path";
|
|
24
|
+
import { validateRepoName } from "./bridge-config.js";
|
|
25
|
+
import { getPrimaryCredentialStorePath } from "./credential-store.js";
|
|
26
|
+
/** The Bridge user config directory (the credential store's own directory). */
|
|
27
|
+
export function bridgeUserConfigDir(deps) {
|
|
28
|
+
return path.dirname(getPrimaryCredentialStorePath(deps));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Resolve `<bridge config dir>/<kind>/<repo>.json`. An invalid repository name
|
|
32
|
+
* is a structured failure with a fixed message; the name is never echoed.
|
|
33
|
+
*/
|
|
34
|
+
export function repositoryStateRecordPath(kind, repoName, deps) {
|
|
35
|
+
const validated = validateRepoName(repoName);
|
|
36
|
+
if (!validated.ok || validated.value === "." || validated.value === "..") {
|
|
37
|
+
return { ok: false, error: "the repository name is not usable as a record name" };
|
|
38
|
+
}
|
|
39
|
+
const dir = path.join(bridgeUserConfigDir(deps), kind);
|
|
40
|
+
return { ok: true, dir, path: path.join(dir, `${validated.value}.json`), repoName: validated.value };
|
|
41
|
+
}
|
|
@@ -532,13 +532,16 @@ export function installArgvForJavaScript(js) {
|
|
|
532
532
|
* BAPI-1551 — the fixed install argv for a Python toolchain. pip's argv is kept
|
|
533
533
|
* for the description only: a bare `pip install` targets whatever interpreter is
|
|
534
534
|
* first on `PATH`, so a dependency refresh never proposes it.
|
|
535
|
+
*
|
|
536
|
+
* BAPI-1677 — `extras` holds only keys the install target declares. With none, every
|
|
537
|
+
* caller's argv is byte-identical to before. pip takes none: it is never proposed.
|
|
535
538
|
*/
|
|
536
|
-
export function installArgvForPython(py) {
|
|
539
|
+
export function installArgvForPython(py, extras = []) {
|
|
537
540
|
switch (py.manager) {
|
|
538
541
|
case "uv":
|
|
539
|
-
return ["uv", "sync", "--frozen"];
|
|
542
|
+
return ["uv", "sync", "--frozen", ...extras.flatMap((name) => ["--extra", name])];
|
|
540
543
|
case "poetry":
|
|
541
|
-
return ["poetry", "install"];
|
|
544
|
+
return ["poetry", "install", ...extras.flatMap((name) => ["-E", name])];
|
|
542
545
|
case "pip":
|
|
543
546
|
return ["pip", "install", "-r", "requirements.txt"];
|
|
544
547
|
}
|
|
@@ -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
|
}
|