@bridge_gpt/mcp-server 0.2.21 → 0.2.24

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 (41) hide show
  1. package/README.md +144 -18
  2. package/build/base-ref.js +151 -0
  3. package/build/commands.generated.js +6 -4
  4. package/build/conductor/bridge-api-client.js +44 -3
  5. package/build/conductor/doctor.js +33 -22
  6. package/build/conductor/epic-runtime.js +101 -5
  7. package/build/conductor/pr-ci-producer.js +21 -2
  8. package/build/conductor/pr-discovery.js +12 -2
  9. package/build/conductor-bin.js +50 -20
  10. package/build/credential-store.js +564 -64
  11. package/build/decision-page-template.js +9 -4
  12. package/build/docs.generated.js +5 -0
  13. package/build/executor/base-branch.js +50 -0
  14. package/build/executor/env.js +12 -1
  15. package/build/executor/job-errors.js +1 -0
  16. package/build/executor/job-runner.js +38 -7
  17. package/build/executor/test-clock.js +6 -1
  18. package/build/executor/worker-finalization.js +88 -1
  19. package/build/executor/worktree.js +21 -1
  20. package/build/index.js +2741 -702
  21. package/build/init.js +29 -0
  22. package/build/install-bridge.js +1076 -114
  23. package/build/pipelines.generated.js +2 -2
  24. package/build/pr-base-contract.js +36 -0
  25. package/build/readme.generated.js +1 -1
  26. package/build/setup-epic.js +483 -0
  27. package/build/sfcc/log-gate.js +85 -0
  28. package/build/sfcc/log-query.js +170 -0
  29. package/build/sfcc/register.js +10 -0
  30. package/build/sfcc/setup-status.js +33 -3
  31. package/build/start-tickets.js +164 -75
  32. package/build/version.generated.js +1 -1
  33. package/build/worktree-core.js +62 -10
  34. package/{CONDUCTOR.md → docs/CONDUCTOR.md} +88 -29
  35. package/docs/install/github-app.md +189 -0
  36. package/docs/install/mcp-tool-integrations.md +305 -0
  37. package/docs/install/sfcc-integration.md +140 -0
  38. package/package.json +5 -5
  39. package/public/js/main.min.js +55 -10
  40. package/public/js/main.min.js.map +1 -1
  41. package/smoke-test/SMOKE-TEST.md +3 -2
package/build/init.js CHANGED
@@ -13,6 +13,7 @@ import { writeFile, mkdir, readFile, stat } from "fs/promises";
13
13
  import path from "path";
14
14
  import { COMMANDS } from "./commands.generated.js";
15
15
  import { AGENTS } from "./agents.generated.js";
16
+ import { DOCS } from "./docs.generated.js";
16
17
  import { VERSION } from "./version.generated.js";
17
18
  import { reconstructAgentMarkdown, translateAgentToCopilot } from "./agent-utils.js";
18
19
  import { validateRepoName } from "./bridge-config.js";
@@ -301,6 +302,34 @@ export async function runInit(cwd) {
301
302
  if (skippedFiles.size > 0)
302
303
  console.log(` Skipped (unchanged): ${skippedFiles.size}`);
303
304
  console.log(` ${dirNames}`);
305
+ // ---- Phase 4b: Scaffold shipped documentation assets ----
306
+ // The capability catalog (docs/mcp-tool-integrations.md) the /install-bridge
307
+ // capability report cites for each gate's human "why". Keyed by target path
308
+ // RELATIVE to the consumer project root; content is never secret.
309
+ const docsWritten = new Set();
310
+ const docsSkipped = new Set();
311
+ for (const [relTarget, content] of Object.entries(DOCS)) {
312
+ const target = path.join(cwd, relTarget);
313
+ await mkdir(path.dirname(target), { recursive: true });
314
+ try {
315
+ const existing = await readFile(target, "utf-8");
316
+ if (existing === content) {
317
+ docsSkipped.add(relTarget);
318
+ continue;
319
+ }
320
+ }
321
+ catch { /* file doesn't exist */ }
322
+ await writeFile(target, content, "utf-8");
323
+ docsWritten.add(relTarget);
324
+ }
325
+ const docsTotal = Object.keys(DOCS).length;
326
+ if (docsTotal > 0) {
327
+ console.log(`\nDocumentation: scaffolded ${docsTotal} doc asset${docsTotal === 1 ? "" : "s"}`);
328
+ if (docsWritten.size > 0)
329
+ console.log(` Written: ${[...docsWritten].join(", ")}`);
330
+ if (docsSkipped.size > 0)
331
+ console.log(` Skipped (unchanged): ${[...docsSkipped].join(", ")}`);
332
+ }
304
333
  // ---- Phase 5: Scaffold agent directories ----
305
334
  const agentWritten = new Set();
306
335
  const agentSkipped = new Set();