@bridge_gpt/mcp-server 0.2.60 → 0.2.65

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.
Files changed (89) hide show
  1. package/README.md +58 -11
  2. package/build/agent-launchers/claude-executor-adapter.js +134 -3
  3. package/build/agent-launchers/executor-adapter.js +54 -2
  4. package/build/agents.generated.js +10 -1
  5. package/build/bounded-wait.js +32 -1
  6. package/build/commands.generated.js +8 -7
  7. package/build/conductor/bridge-api-client.js +678 -14
  8. package/build/conductor/bring-up-facts.js +3 -1
  9. package/build/conductor/doctor.js +23 -14
  10. package/build/conductor/epic-child-continuation.js +324 -0
  11. package/build/conductor/epic-implementer-cli.js +142 -17
  12. package/build/conductor/git-hooks.js +529 -118
  13. package/build/conductor/hook-runtime-qualification.js +340 -0
  14. package/build/conductor/merge-execution-contract.js +30 -5
  15. package/build/conductor/merge-execution-eligibility.js +10 -9
  16. package/build/conductor/readiness-sections.js +104 -20
  17. package/build/conductor/readiness.js +129 -25
  18. package/build/conductor/recovery-cli.js +354 -13
  19. package/build/conductor/recovery-operations.js +251 -5
  20. package/build/conductor/repair-contract.js +8 -0
  21. package/build/conductor-bundle-artifacts.js +1 -0
  22. package/build/credential-store.js +194 -0
  23. package/build/docs.generated.js +2 -1
  24. package/build/doctor.js +161 -7
  25. package/build/drive-epic-key.js +12 -0
  26. package/build/drive-epic.js +1318 -111
  27. package/build/epic-coherence-input-cli.js +137 -0
  28. package/build/epic-coherence-input.js +920 -0
  29. package/build/epic-coherence-input.test-fixtures.js +175 -0
  30. package/build/epic-implementer-bin.js +35 -29
  31. package/build/epic-implementer-bundle-cli.js +14 -1
  32. package/build/epic-integration-pr.js +61 -15
  33. package/build/epic-launch-profile.js +464 -0
  34. package/build/epic-run-status.js +5 -0
  35. package/build/epic-shared/bridge-client.js +46 -4
  36. package/build/executor/cli.js +48 -0
  37. package/build/executor/completion-contract.js +423 -0
  38. package/build/executor/completion-supervision.js +286 -0
  39. package/build/executor/credentials.js +19 -1
  40. package/build/executor/deps.js +65 -1
  41. package/build/executor/env.js +6 -0
  42. package/build/executor/heartbeat.js +13 -3
  43. package/build/executor/http-client.js +117 -1
  44. package/build/executor/integration-job.js +759 -0
  45. package/build/executor/job-errors.js +48 -0
  46. package/build/executor/job-runner.js +1386 -35
  47. package/build/executor/job-types.js +10 -2
  48. package/build/executor/observation.js +114 -7
  49. package/build/executor/preflight.js +99 -0
  50. package/build/executor/process-containment.js +756 -0
  51. package/build/executor/process.js +235 -5
  52. package/build/executor/prompt-spec.js +262 -1
  53. package/build/executor/provider-checks.js +69 -0
  54. package/build/executor/rebase-finalization.js +351 -0
  55. package/build/executor/reconcile-overlap-job.js +77 -84
  56. package/build/executor/required-verification.js +313 -0
  57. package/build/executor/required-work-ledger.js +1121 -0
  58. package/build/executor/results.js +142 -0
  59. package/build/executor/resume-pre-spawn.js +87 -4
  60. package/build/executor/runner.js +246 -1
  61. package/build/executor/test-declaration.js +20 -0
  62. package/build/executor/types.js +55 -0
  63. package/build/executor/worker-command.js +49 -13
  64. package/build/executor/worker-finalization.js +88 -11
  65. package/build/executor/worker-guard-hook.js +29 -4
  66. package/build/executor/worktree.js +13 -0
  67. package/build/executor-launch.js +658 -0
  68. package/build/index.js +772 -954
  69. package/build/install-bridge-conductor.js +622 -40
  70. package/build/install-bridge.js +92 -16
  71. package/build/merge-pull-request.js +1 -1
  72. package/build/merge-workflow-config.js +54 -0
  73. package/build/merge-workflow-drift.js +35 -4
  74. package/build/merge-workflow.js +386 -2
  75. package/build/pipelines.generated.js +9 -8
  76. package/build/plan-discovery.js +137 -0
  77. package/build/plan-epic-implementer-eligibility.js +2 -2
  78. package/build/plane/cli.js +37 -3
  79. package/build/plane/member-logs.js +3 -0
  80. package/build/plane/member-roster.js +7 -1
  81. package/build/plane/shutdown.js +59 -1
  82. package/build/plane/supervisor.js +148 -0
  83. package/build/readme.generated.js +1 -1
  84. package/build/scripts/executor-protocol-contract-driver.js +13 -3
  85. package/build/setup-epic.js +130 -48
  86. package/build/version.generated.js +3 -3
  87. package/build/worker-guard-hook-bin.js +2 -2
  88. package/docs/CONDUCTOR.md +116 -2
  89. package/package.json +2 -1
@@ -13,6 +13,10 @@
13
13
  * never pushed, so there is nothing to recreate from (TDD §7).
14
14
  * - `BranchMismatch` — a `resume` worktree is on the wrong branch; working there
15
15
  * would corrupt an unrelated branch, so abort rather than proceed (TDD §7).
16
+ * - `ContinuationWorktreeMissing` / `ContinuationLineageMismatch` — a parked-child
17
+ * continuation (BAPI-1300) could not prove its retained work: the worktree is
18
+ * gone, or its HEAD does not descend from the authorized head. Refused before
19
+ * any local mutation; never recreated, reset, or cleaned.
16
20
  * - `WorkerFinalizationMissingRemoteBranchAndPr` — an implementation-style job
17
21
  * (BAPI-551) exited cleanly but produced neither a PR URL nor a pushed origin
18
22
  * branch, stranding the implement gate; see `worker-finalization.ts`.
@@ -112,6 +116,18 @@ import { normalizeMcpServerNames } from "./observation.js";
112
116
  export const MissingVerdictArtifact = "MissingVerdictArtifact";
113
117
  export const WorktreeLostBeforePush = "WorktreeLostBeforePush";
114
118
  export const BranchMismatch = "BranchMismatch";
119
+ /**
120
+ * BAPI-1300: a parked-child CONTINUATION found no retained worktree for its
121
+ * branch. A continuation never recreates one from origin — that would silently
122
+ * drop unpushed work the continuation exists to carry — so it refuses instead.
123
+ */
124
+ export const ContinuationWorktreeMissing = "ContinuationWorktreeMissing";
125
+ /**
126
+ * BAPI-1300: the retained worktree's HEAD does not descend from the head the
127
+ * continuation was authorized against. Checked BEFORE the WIP checkpoint, so an
128
+ * unrelated history is never committed onto and never adopted as the new head.
129
+ */
130
+ export const ContinuationLineageMismatch = "ContinuationLineageMismatch";
115
131
  export const WorkerFinalizationMissingRemoteBranchAndPr = "WorkerFinalizationMissingRemoteBranchAndPr";
116
132
  export const WorkerFinalizationPrBaseMismatch = "WorkerFinalizationPrBaseMismatch";
117
133
  export const WorkerFinalizationPrNotAttached = "WorkerFinalizationPrNotAttached";
@@ -139,6 +155,38 @@ export const StaleArtifactCleanupFailed = "ContractError.StaleArtifactCleanupFai
139
155
  * than proceeding on an unverified premise.
140
156
  */
141
157
  export const WorkerEnvFilePresent = "ContractError.WorkerEnvFilePresent";
158
+ /**
159
+ * BAPI-1296: a `ci_fix` job could not be run as a FOCUSED repair. Raised before
160
+ * any worktree effect when the payload's focused contract is missing, malformed,
161
+ * or carries an explicit prompt (a legacy full-recipe prompt included), and under
162
+ * the worktree lock when the prepared checkout's repository, branch, or HEAD does
163
+ * not match the dispatched CI observation. The message carries a fixed
164
+ * `reason=<code>` token and never ticket, check, or log text. The job is refused
165
+ * rather than downgraded to `/implement-ticket`: re-running the whole recipe to
166
+ * fix one check is the cost this contract removes.
167
+ */
168
+ export const CiFixContext = "ContractError.CiFixContext";
169
+ /**
170
+ * BAPI-1311: a `rebase` job carrying a `payload.focused_rebase` context could not
171
+ * be run as a FOCUSED merge-stage repair — an unsupported context version, a
172
+ * malformed or missing field, a blank server prompt, an identity that does not
173
+ * match the claimed job, or a claim that lacks the focused capability. Raised
174
+ * before any worktree effect. The message carries a fixed `reason=<code>` token
175
+ * and never prompt, ticket, or payload text. The job is refused rather than
176
+ * reinterpreted as a legacy rebase or downgraded to `/implement-ticket`.
177
+ */
178
+ export const FocusedRebaseContext = "ContractError.FocusedRebaseContext";
179
+ /**
180
+ * BAPI-1311: a focused rebase pushed its repair but the post-push wait PROVED it
181
+ * cannot succeed — a required check concluded red at the pushed head, the pull
182
+ * request closed or reads unmergeable, or the bound pull request / head / head
183
+ * branch / base changed. The SAME kind the server records when its completion
184
+ * verifier rejects a rebase (`REBASE_CONTRACT_ERROR_KIND` in
185
+ * `api/library/epic_implementer/rebase_completion_contract.py`), so an executor-
186
+ * observed and a server-observed contract miss read as one state. Unavailable
187
+ * evidence at the deadline is NOT this kind; it is the ordinary `Timeout`.
188
+ */
189
+ export const RebaseNotVerified = "ContractError.RebaseNotVerified";
142
190
  /**
143
191
  * BAPI-1152 — `reconcile_overlap` failure kinds. Each names ONE way the
144
192
  * wrapper's merge-into-child could not reach a verified push, so an operator