@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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { RECONCILER_LIVENESS_VALUES } from "./types.js";
|
|
11
11
|
import { EXECUTOR_REPORTABLE_END_CAUSE_VALUES, MAX_VERIFICATION_OBSERVATIONS, } from "./completion-contract.js";
|
|
12
|
-
import { readEpicRunCompletionState, } from "../conductor/bridge-api-client.js";
|
|
12
|
+
import { EPIC_CAPABILITY_STATEMENT_READ_TIMEOUT_MS, readEpicCapabilityStatement, readEpicRunCompletionState, } from "../conductor/bridge-api-client.js";
|
|
13
13
|
/** BAPI-1258 — the server's stable `error_code` for refused capacity evidence. */
|
|
14
14
|
export const UNSUPPORTED_TERMINAL_CAPACITY_ERROR_CODE = "UNSUPPORTED_TERMINAL_CAPACITY";
|
|
15
15
|
/**
|
|
@@ -56,9 +56,11 @@ function readDetailErrorCode(bodyText) {
|
|
|
56
56
|
*
|
|
57
57
|
* Mirrors {@link isCapacityEvidenceRefusal}'s shape, but is exported and NOT
|
|
58
58
|
* wired into `mapMutationResponse`: the mutation mapping stays unchanged (a 409
|
|
59
|
-
* still maps to `stale_claim` for every
|
|
60
|
-
*
|
|
61
|
-
*
|
|
59
|
+
* still maps to `stale_claim` for every other response). BAPI-1590: `complete()`
|
|
60
|
+
* alone asks, and marks the result `completionEvidenceRefused` so the job runner —
|
|
61
|
+
* which holds the envelope — can re-report once as `/fail` (the runner-owned
|
|
62
|
+
* `/fail` decision). A 409 `STALE_CLAIM` is never a refusal: the claim is gone and a
|
|
63
|
+
* re-send cannot help.
|
|
62
64
|
*/
|
|
63
65
|
export function isCompletionEvidenceRefusal(status, bodyText) {
|
|
64
66
|
if (status !== 409)
|
|
@@ -322,6 +324,24 @@ export function createExecutorHttpClient(config) {
|
|
|
322
324
|
// stay assignable) purely for the claim path's liveness annotation.
|
|
323
325
|
return { status: res.status, text, headers: res.headers };
|
|
324
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* BAPI-1590: `/complete` only. The exact 409 completion-evidence refusal is
|
|
329
|
+
* returned marked (carrier outcome `invalid_job_result`: terminal and never
|
|
330
|
+
* retried) instead of being read as a lost claim; every other response maps as
|
|
331
|
+
* before. Nothing from the response is retained.
|
|
332
|
+
*/
|
|
333
|
+
async function completeMutation(pathSuffix, body, repoName) {
|
|
334
|
+
try {
|
|
335
|
+
const { status, text } = await post(pathSuffix, body, repoName);
|
|
336
|
+
if (isCompletionEvidenceRefusal(status, text)) {
|
|
337
|
+
return { outcome: "invalid_job_result", completionEvidenceRefused: true };
|
|
338
|
+
}
|
|
339
|
+
return mapMutationResponse(status, text, true);
|
|
340
|
+
}
|
|
341
|
+
catch {
|
|
342
|
+
return { outcome: "fatal_http_error" };
|
|
343
|
+
}
|
|
344
|
+
}
|
|
325
345
|
async function mutate(pathSuffix, body, allowInvalidResult, repoName) {
|
|
326
346
|
try {
|
|
327
347
|
const { status, text } = await post(pathSuffix, body, repoName);
|
|
@@ -538,7 +558,7 @@ export function createExecutorHttpClient(config) {
|
|
|
538
558
|
...completionContractFields(job, completion),
|
|
539
559
|
...deliveryObservationFields(job, completion),
|
|
540
560
|
};
|
|
541
|
-
return
|
|
561
|
+
return completeMutation(`/${job.id}/complete`, body, job.repo_name);
|
|
542
562
|
},
|
|
543
563
|
async fail(job, failure) {
|
|
544
564
|
const body = {
|
|
@@ -600,5 +620,32 @@ export function createExecutorHttpClient(config) {
|
|
|
600
620
|
return { ok: false, reason: "network" };
|
|
601
621
|
}
|
|
602
622
|
},
|
|
623
|
+
/**
|
|
624
|
+
* BAPI-1545: the advisory capability statement, read once per
|
|
625
|
+
* implement-worker spawn. The adapted transport ignores the abort signal, so
|
|
626
|
+
* the short advisory timeout is enforced here with a race. Never throws;
|
|
627
|
+
* every failure is a reason the runner turns into "append nothing".
|
|
628
|
+
*/
|
|
629
|
+
async readEpicCapabilityStatement(repoName) {
|
|
630
|
+
const access = {
|
|
631
|
+
repoName,
|
|
632
|
+
apiKey: keyForRepo(repoName),
|
|
633
|
+
baseUrl: config.baseUrl,
|
|
634
|
+
};
|
|
635
|
+
let timer;
|
|
636
|
+
const timeout = new Promise((resolve) => {
|
|
637
|
+
timer = setTimeout(() => resolve({ ok: false, reason: "timeout" }), EPIC_CAPABILITY_STATEMENT_READ_TIMEOUT_MS);
|
|
638
|
+
});
|
|
639
|
+
try {
|
|
640
|
+
return await Promise.race([
|
|
641
|
+
readEpicCapabilityStatement(access, toConductorGetFetch(config.fetch)).catch(() => ({ ok: false, reason: "network" })),
|
|
642
|
+
timeout,
|
|
643
|
+
]);
|
|
644
|
+
}
|
|
645
|
+
finally {
|
|
646
|
+
if (timer !== undefined)
|
|
647
|
+
clearTimeout(timer);
|
|
648
|
+
}
|
|
649
|
+
},
|
|
603
650
|
};
|
|
604
651
|
}
|