@bridge_gpt/mcp-server 0.2.75 → 0.2.77

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 (94) hide show
  1. package/README.md +8 -6
  2. package/build/agents.generated.js +5 -5
  3. package/build/cli-dispatch.js +333 -0
  4. package/build/codex-auto-recovery.js +25 -7
  5. package/build/commands.generated.js +8 -8
  6. package/build/conductor/bridge-api-client.js +193 -13
  7. package/build/conductor/declare-blocked.js +146 -7
  8. package/build/conductor/driver-pass.js +8 -0
  9. package/build/conductor/driver-register.js +8 -2
  10. package/build/conductor/epic-implementer-cli.js +15 -10
  11. package/build/conductor/epic-server-journal.js +52 -22
  12. package/build/conductor/epic-server-recipe.js +15 -5
  13. package/build/conductor/epic-server-runtime.js +163 -45
  14. package/build/conductor/epic-server.js +13 -6
  15. package/build/conductor/install-doctor.js +30 -2
  16. package/build/conductor/launch-plan.js +28 -7
  17. package/build/conductor/local-merge.js +55 -13
  18. package/build/conductor/pr-ci-producer.js +12 -3
  19. package/build/conductor/readiness-prerequisites.js +89 -2
  20. package/build/conductor/readiness-sections.js +46 -13
  21. package/build/conductor/readiness.js +3 -40
  22. package/build/conductor/recovery-cli.js +14 -12
  23. package/build/conductor/repository-workflow-remedy.js +147 -7
  24. package/build/conductor/ui-readiness.js +224 -0
  25. package/build/conductor/wait-run-attention.js +9 -4
  26. package/build/conductor/wait-run-cli.js +9 -2
  27. package/build/docs.generated.js +67 -4
  28. package/build/doctor.js +97 -1
  29. package/build/drive-epic.js +625 -33
  30. package/build/engine-paths.js +10 -0
  31. package/build/epic-coherence-input-cli.js +105 -10
  32. package/build/epic-coherence-input.js +877 -4
  33. package/build/epic-coherence-input.test-fixtures.js +117 -0
  34. package/build/epic-implementer-bin.js +947 -120
  35. package/build/epic-implementer-env.js +2 -2
  36. package/build/epic-launch-context.js +8 -1
  37. package/build/epic-shared/cut-protocol.js +55 -3
  38. package/build/executor/completion-contract.js +14 -1
  39. package/build/executor/failure-reason-codes.js +2 -0
  40. package/build/executor/guarded-fast-forward-push.js +25 -2
  41. package/build/executor/integration-job.js +56 -2
  42. package/build/executor/job-runner.js +87 -28
  43. package/build/executor/likely-tests.js +78 -6
  44. package/build/executor/merge-job.js +45 -1
  45. package/build/executor/permissions.js +187 -2
  46. package/build/executor/provider-checks.js +101 -5
  47. package/build/executor/rebase-finalization.js +29 -27
  48. package/build/executor/reconcile-overlap-job.js +70 -17
  49. package/build/executor/rename-aside.js +265 -0
  50. package/build/executor/required-work-ledger.js +89 -6
  51. package/build/executor/resume-pre-spawn.js +32 -8
  52. package/build/executor/runner.js +26 -4
  53. package/build/executor/types.js +121 -0
  54. package/build/executor/worktree.js +39 -2
  55. package/build/index.js +2500 -495
  56. package/build/init.js +16 -0
  57. package/build/install-bridge-conductor-answers.js +4 -0
  58. package/build/install-bridge-conductor-apply.js +10 -0
  59. package/build/install-bridge-conductor-assessment.js +84 -0
  60. package/build/install-bridge-conductor-contracts.js +9 -1
  61. package/build/install-bridge-conductor-setup.js +103 -3
  62. package/build/install-bridge-conductor.js +440 -812
  63. package/build/install-bridge.js +4 -11
  64. package/build/language-catalog.generated.js +2649 -0
  65. package/build/mcp-host-config.js +54 -37
  66. package/build/phase-context-git-probe.js +16 -0
  67. package/build/pipelines.generated.js +47 -19
  68. package/build/plan-execution-ledger.js +35 -0
  69. package/build/plan-generation.js +34 -0
  70. package/build/plane/build-freshness.js +6 -0
  71. package/build/plane/cli.js +12 -5
  72. package/build/plane/plane-freshness.js +43 -26
  73. package/build/printed-remedy-commands.js +17 -0
  74. package/build/readiness-prerequisites.generated.js +28 -0
  75. package/build/readme.generated.js +1 -1
  76. package/build/run-unit-tests-launcher.js +3 -1
  77. package/build/secret-redaction.js +3 -0
  78. package/build/server.js +7946 -0
  79. package/build/setup-epic.js +41 -8
  80. package/build/start-tickets-prereqs.js +3 -6
  81. package/build/test-support/console-guard.js +30 -0
  82. package/build/test-support/create-preview-world.js +232 -0
  83. package/build/test-support/module-imports.js +155 -0
  84. package/build/test-support/server-client.js +96 -0
  85. package/build/test-support/stdio-server.js +146 -0
  86. package/build/ticket-delivery.js +65 -0
  87. package/build/v2-readiness-requirements.js +39 -5
  88. package/build/version.generated.js +3 -3
  89. package/build/worktree-core.js +51 -7
  90. package/docs/EPIC-IMPLEMENTER.md +150 -2
  91. package/docs/epic-implementer/getting-started.md +5 -1
  92. package/package.json +3 -3
  93. package/pipelines/implement-ticket.json +2 -2
  94. package/pipelines/learn-repository.json +19 -1
@@ -174,3 +174,120 @@ export const EXPECTED_DIGESTS = {
174
174
  child_evidence_sha256: "146a6d4e49f8aab7217266e01f20bfd2cad9dbe11a2cb6ee4a02fd78f75f4f87",
175
175
  non_child_owners_sha256: "282d913b2805713ac370fbfd0e289b1a9872eb69608792b5cc810da6db9099d7",
176
176
  };
177
+ // ===========================================================================
178
+ // BAPI-1766 fixtures: structural declarations, design council, draft fidelity
179
+ // ===========================================================================
180
+ /** Every stable code `check --structural` may prefix an error with. */
181
+ export const STRUCTURAL_CODES = [
182
+ "unclaimed_epic_ac",
183
+ "malformed_handoff_role",
184
+ "malformed_e2e_marker",
185
+ "non_child_e2e_owner",
186
+ "handoff_missing_role",
187
+ "handoff_missing_write_or_caller",
188
+ "missing_e2e_owner",
189
+ "no_cross_child_declaration",
190
+ "no_cross_child_flow_contradicted",
191
+ "depends_on_unknown_child",
192
+ "depends_on_self",
193
+ "depends_on_cycle",
194
+ "recommended_after_unknown_child",
195
+ "recommended_after_self",
196
+ "malformed_design_council",
197
+ ];
198
+ /** The codes of the errors that carry one (`code: ...`); shape errors carry none. */
199
+ export function errorCodes(errors) {
200
+ const codes = new Set();
201
+ for (const error of errors) {
202
+ const match = /^([a-z0-9_]+): /.exec(error);
203
+ if (match && STRUCTURAL_CODES.includes(match[1]))
204
+ codes.add(match[1]);
205
+ }
206
+ return [...codes].sort();
207
+ }
208
+ export const CHILD_1_OBLIGATION = "Writer test: saving a key stores H-1 in the settings row";
209
+ export const CHILD_2_E2E_OBLIGATION = "End-to-end test: install writes H-1 and the worker reads it back unchanged";
210
+ /**
211
+ * A clean two-child document for `check --structural`: both ACs claimed, H-1
212
+ * written and called by child 1 and read by child 2, and child 2 owning the
213
+ * end-to-end test. It names no files, so no check touches the filesystem.
214
+ */
215
+ export function structuralDocument() {
216
+ return {
217
+ epic: {
218
+ key: "BAPI-9001",
219
+ title: "Shared settings hand-off",
220
+ acceptance_criteria: [
221
+ { id: "AC-1", text: "Keys are saved.", verification: "A writer test." },
222
+ { id: "AC-2", text: "Workers read saved keys.", verification: "An end-to-end test." },
223
+ ],
224
+ },
225
+ design_text: "## Design\n\nChild 1 writes H-1; child 2 reads it.",
226
+ manifest: [
227
+ {
228
+ id: "1", title: "Write settings", scope: "Save the key.", size_band: "L",
229
+ depends_on: [], recommended_after: [], touched_files: [], read_files: [],
230
+ owns_verifications: [{ epic_ac: "AC-1", obligation: CHILD_1_OBLIGATION }],
231
+ handoff_roles: [{ thing: "H-1", role: "write" }, { thing: "H-1", role: "caller" }],
232
+ },
233
+ {
234
+ id: "2", title: "Read settings", scope: "Read the key.", size_band: "L",
235
+ depends_on: ["1"], recommended_after: [], touched_files: [], read_files: [],
236
+ owns_verifications: [{ epic_ac: "AC-2", obligation: CHILD_2_E2E_OBLIGATION, e2e: true }],
237
+ handoff_roles: [{ thing: "H-1", role: "read" }],
238
+ },
239
+ ],
240
+ child_evidence: [],
241
+ };
242
+ }
243
+ /** A well-formed design council whose materiality is all `"unchanged"`. */
244
+ export function designCouncil(overrides = {}) {
245
+ return {
246
+ council_id: "council-42",
247
+ design_revision: "rev-3",
248
+ split_reviewed: false,
249
+ materiality: {
250
+ requirements: "unchanged",
251
+ interfaces_or_contracts: "unchanged",
252
+ ownership: "unchanged",
253
+ dependencies: "unchanged",
254
+ end_to_end_proof: "unchanged",
255
+ blast_radius: "unchanged",
256
+ },
257
+ ...overrides,
258
+ };
259
+ }
260
+ /** A non-child owner claiming `epicAc`, optionally marking it e2e. */
261
+ export function ownerClaiming(epicAc, e2e) {
262
+ return {
263
+ ...OWNER,
264
+ owns_verifications: [
265
+ { epic_ac: epicAc, obligation: "Post the smoke-test output on the epic", ...(e2e === undefined ? {} : { e2e }) },
266
+ ],
267
+ };
268
+ }
269
+ /**
270
+ * Wrap a memory repo so every mutating call is recorded, not just `writeFile`.
271
+ * Returns the list the calls are appended to.
272
+ */
273
+ export function recordMutations(repo) {
274
+ const calls = [];
275
+ const { writeFile, rename, unlink, mkdir } = repo.fs;
276
+ repo.fs.writeFile = async (p, data) => {
277
+ calls.push(`writeFile ${p}`);
278
+ return writeFile(p, data);
279
+ };
280
+ repo.fs.rename = async (from, to) => {
281
+ calls.push(`rename ${from}`);
282
+ return rename(from, to);
283
+ };
284
+ repo.fs.unlink = async (p) => {
285
+ calls.push(`unlink ${p}`);
286
+ return unlink(p);
287
+ };
288
+ repo.fs.mkdir = async (p) => {
289
+ calls.push(`mkdir ${p}`);
290
+ return mkdir(p);
291
+ };
292
+ return calls;
293
+ }