@bridge_gpt/mcp-server 0.2.74 → 0.2.76

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 (102) hide show
  1. package/README.md +14 -7
  2. package/build/agent-launchers/prompt.js +9 -21
  3. package/build/agents.generated.js +6 -6
  4. package/build/authored-plan.js +542 -0
  5. package/build/bridge-permissions.js +8 -0
  6. package/build/codex-auto-recovery.js +25 -7
  7. package/build/commands.generated.js +7 -7
  8. package/build/conductor/bridge-api-client.js +807 -52
  9. package/build/conductor/declare-blocked.js +4 -0
  10. package/build/conductor/driver-pass.js +8 -0
  11. package/build/conductor/epic-implementer-cli.js +341 -96
  12. package/build/conductor/epic-server-journal.js +13 -0
  13. package/build/conductor/epic-server-recipe.js +15 -5
  14. package/build/conductor/epic-server-runtime.js +163 -45
  15. package/build/conductor/epic-server.js +13 -6
  16. package/build/conductor/gate-discovery.js +209 -9
  17. package/build/conductor/gate-settings-review.js +7 -11
  18. package/build/conductor/install-doctor.js +30 -2
  19. package/build/conductor/launch-plan.js +58 -12
  20. package/build/conductor/local-merge.js +54 -12
  21. package/build/conductor/open-decision-phrases.js +50 -0
  22. package/build/conductor/pr-ci-producer.js +12 -3
  23. package/build/conductor/prerequisite-inputs.js +181 -14
  24. package/build/conductor/readiness-sections.js +46 -13
  25. package/build/conductor/readiness.js +3 -40
  26. package/build/conductor/recovery-cli.js +12 -12
  27. package/build/conductor/repository-workflow-remedy.js +147 -7
  28. package/build/conductor/ui-readiness.js +224 -0
  29. package/build/conductor/wait-run-attention.js +9 -4
  30. package/build/conductor/wait-run-cli.js +9 -2
  31. package/build/connect-github-api.js +18 -0
  32. package/build/connect-github.js +35 -18
  33. package/build/docs.generated.js +3 -3
  34. package/build/drive-epic.js +787 -37
  35. package/build/epic-ci-workflow.js +3 -2
  36. package/build/epic-implementer-bin.js +200 -66
  37. package/build/epic-implementer-bundle-cli.js +61 -0
  38. package/build/epic-implementer-claude-hook-bin.js +1 -1
  39. package/build/epic-implementer-env.js +3 -4
  40. package/build/epic-integration-pr.js +5 -2
  41. package/build/epic-launch-context.js +8 -1
  42. package/build/epic-shared/cut-protocol.js +55 -3
  43. package/build/executor/completion-contract.js +24 -1
  44. package/build/executor/failure-reason-codes.js +2 -0
  45. package/build/executor/gate-qualification-job.js +193 -23
  46. package/build/executor/gate-qualification-tests-ran.js +232 -0
  47. package/build/executor/integration-job.js +56 -2
  48. package/build/executor/job-runner.js +13 -723
  49. package/build/executor/job-type-wrappers.js +734 -0
  50. package/build/executor/merge-job.js +45 -1
  51. package/build/executor/permissions.js +187 -2
  52. package/build/executor/preflight.js +6 -2
  53. package/build/executor/process-containment.js +8 -1
  54. package/build/executor/provider-checks.js +28 -5
  55. package/build/executor/reconcile-overlap-job.js +70 -17
  56. package/build/executor/required-verification.js +28 -2
  57. package/build/executor/required-work-ledger.js +7 -2
  58. package/build/executor/resume-pre-spawn.js +32 -8
  59. package/build/executor/runner.js +30 -5
  60. package/build/executor/types.js +9 -0
  61. package/build/executor/worker-database.js +6 -1
  62. package/build/executor/worker-guard-hook.js +24 -2
  63. package/build/executor/worktree.js +12 -1
  64. package/build/generated/ticket-status.js +20 -0
  65. package/build/index.js +627 -551
  66. package/build/init.js +16 -0
  67. package/build/install-bridge-conductor-answers.js +32 -1
  68. package/build/install-bridge-conductor-apply.js +21 -3
  69. package/build/install-bridge-conductor-assessment.js +185 -12
  70. package/build/install-bridge-conductor-compact.js +2 -0
  71. package/build/install-bridge-conductor-contracts.js +9 -1
  72. package/build/install-bridge-conductor-gate.js +257 -80
  73. package/build/install-bridge-conductor-setup.js +106 -6
  74. package/build/install-bridge-conductor-trial-report.js +170 -0
  75. package/build/install-bridge-conductor.js +740 -124
  76. package/build/mcp-host-config.js +54 -37
  77. package/build/phase-context-git-probe.js +16 -0
  78. package/build/pipelines.generated.js +15 -15
  79. package/build/plan-execution-ledger.js +27 -0
  80. package/build/plan-generation.js +17 -0
  81. package/build/plane/plane-freshness.js +43 -26
  82. package/build/printed-remedy-commands.js +62 -0
  83. package/build/readme.generated.js +1 -1
  84. package/build/repository-toolchains.js +11 -5
  85. package/build/scripts/saved-commands-config-field-driver.js +65 -0
  86. package/build/secret-redaction.js +3 -0
  87. package/build/setup-epic.js +51 -9
  88. package/build/test-support/create-preview-world.js +232 -0
  89. package/build/test-support/executor-source-files.js +1 -1
  90. package/build/ticket-delivery.js +65 -0
  91. package/build/v2-readiness-requirements.js +13 -4
  92. package/build/version.generated.js +3 -3
  93. package/build/worker-guard-hook-bin.js +2 -2
  94. package/build/worktree-core.js +51 -7
  95. package/docs/EPIC-IMPLEMENTER.md +83 -4
  96. package/docs/epic-implementer/getting-started.md +1 -1
  97. package/docs/install/github-app.md +79 -92
  98. package/package.json +1 -1
  99. package/pipelines/implement-ticket.json +2 -2
  100. package/build/conductor/epic-reconcile.js +0 -603
  101. package/build/conductor/epic-runtime.js +0 -2020
  102. package/build/conductor/epic-state.js +0 -774
package/README.md CHANGED
@@ -412,7 +412,7 @@ later boot.
412
412
  "mcpServers": {
413
413
  "bridge": {
414
414
  "command": "npx",
415
- "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.74", "serve"],
415
+ "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.76", "serve"],
416
416
  "env": {
417
417
  "BAPI_BASE_URL": "https://bridgegpt-api.com",
418
418
  "BAPI_REPO_NAME": "your-repo",
@@ -434,7 +434,7 @@ later boot.
434
434
  "bridge": {
435
435
  "type": "stdio",
436
436
  "command": "npx",
437
- "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.74", "serve"],
437
+ "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.76", "serve"],
438
438
  "env": {
439
439
  "BAPI_BASE_URL": "https://bridgegpt-api.com",
440
440
  "BAPI_REPO_NAME": "your-repo",
@@ -456,7 +456,7 @@ later boot.
456
456
  "bridge": {
457
457
  "type": "stdio",
458
458
  "command": "npx",
459
- "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.74", "serve"],
459
+ "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.76", "serve"],
460
460
  "env": {
461
461
  "BAPI_BASE_URL": "https://bridgegpt-api.com",
462
462
  "BAPI_REPO_NAME": "your-repo",
@@ -479,7 +479,7 @@ Windsurf only supports global MCP configuration.
479
479
  "mcpServers": {
480
480
  "bridge": {
481
481
  "command": "npx",
482
- "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.74", "serve"],
482
+ "args": ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.76", "serve"],
483
483
  "env": {
484
484
  "BAPI_BASE_URL": "https://bridgegpt-api.com",
485
485
  "BAPI_REPO_NAME": "your-repo",
@@ -498,7 +498,7 @@ Windsurf only supports global MCP configuration.
498
498
  ```toml
499
499
  [mcp_servers.bridge]
500
500
  command = "npx"
501
- args = ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.74", "serve"]
501
+ args = ["-y", "--prefer-offline", "@bridge_gpt/mcp-server@0.2.76", "serve"]
502
502
 
503
503
  [mcp_servers.bridge.env]
504
504
  BAPI_BASE_URL = "https://bridgegpt-api.com"
@@ -1306,7 +1306,14 @@ You are never asked to choose. If readiness is not green, it names each missing
1306
1306
 
1307
1307
  **Choosing the server.** With no flags, `drive-epic` targets production and uses the stored `bapi:<repo>` key when there is one. `--base-url <url>` (or `BAPI_BASE_URL`) names another server. A stored key approved for a different endpoint is never sent.
1308
1308
 
1309
- **Finding the plan from the epic key.** `--plan-file` is optional. Without it, `drive-epic` searches `{docs_dir}/epic-plans/*/epic-plan.meta.json` for a file whose `epic_key` is exactly this epic (`docs_dir` is `BAPI_DOCS_DIR`, else `docs/tmp`, resolved against the Git top level; an absolute `BAPI_DOCS_DIR` is used as given). Exactly one match with a sibling `epic-plan.dag.json` is used as if you had passed `--plan-file`, and its path is printed before anything is created. Zero matches, two or more, or an unusable meta file **stop** with the paths found and create nothing. A folder name, a child ticket key, or `sibling-ticket-manifest.json` is never used to guess. A supplied `--plan-file` always wins and discovery does not run.
1309
+ **Finding the plan from the epic key (server first).** `--plan-file` is optional, and a supplied `--plan-file` always wins: nothing else is read. Without it, `drive-epic` first asks the Bridge server for the epic's stored plan, once per invocation:
1310
+
1311
+ - **Stored on the server** — that plan is used, on any machine, with no local plan folder. The output names its source (`server`), authored version, hash, who saved it, and when. A local plan that differs is reported as `local_plan_ignored` and not used.
1312
+ - **Definitely not stored** — local discovery runs as before: `drive-epic` searches `{docs_dir}/epic-plans/*/epic-plan.meta.json` for a file whose `epic_key` is exactly this epic (`docs_dir` is `BAPI_DOCS_DIR`, else `docs/tmp`, resolved against the Git top level; an absolute `BAPI_DOCS_DIR` is used as given). Exactly one match with a sibling `epic-plan.dag.json` is used, and its path is printed before anything is created. The first real launch that creates a run from it saves it to the server and runs the server's copy; if that save fails, the launch stops with `authored_plan_upload_failed` and the retry command. A preview never saves. Zero matches, two or more, or an unusable meta file **stop** with the paths found and create nothing (or, with no plan at all, `drive-epic` builds one from the epic's tickets, which is never saved to the server). A folder name, a child ticket key, or `sibling-ticket-manifest.json` is never used to guess.
1313
+ - **The server has no plan storage yet** (an older server) — local discovery runs as before, with a one-line notice.
1314
+ - **The server could not answer** — `drive-epic` stops with `authored_plan_unknown` when it would create a run, and never falls back to a local or generated plan. Attaching to a live run is unaffected.
1315
+
1316
+ Save a plan by hand with `epic-plan save --epic-key <KEY> [--plan-dir <dir>]`. `/define-tickets` and `emit-epic-implementer-bundle finalize` save it for you.
1310
1317
 
1311
1318
  The meta file is `{"epic_key": "<KEY>"}`, written beside the DAG by `/define-tickets` and by `emit-epic-implementer-bundle finalize` (reported as `meta_path` in `--json`). It is separate from `epic-plan.dag.json` on purpose: the DAG is sent to the server, which rejects unknown fields. A plan finalized before the meta file existed has none, so pass its DAG with `--plan-file`.
1312
1319
 
@@ -1413,7 +1420,7 @@ The full reference — how the engine works, the CI gate, `epic-implementer inst
1413
1420
 
1414
1421
  Two retired names remain as failing pointers: the old event-ledger CLI name and `emit-conductor-bundle`. Both print the new name (`epic-implementer`, `emit-epic-implementer-bundle`) and exit.
1415
1422
 
1416
- > The v1 `epic-implementer epic-tick` command is **frozen** — it throws on every invocation. There is nothing to schedule locally, and `epic-implementer doctor` flags any epic-tick schedule left over from an earlier release so you can cancel it.
1423
+ > The v1 `epic-tick` command is **retired** — the CLI refuses it as an unknown command. There is nothing to schedule locally, and `epic-implementer doctor` flags any epic-tick schedule left over from an earlier release so you can cancel it.
1417
1424
 
1418
1425
  <!-- BEGIN GENERATED: merge-workflow-install (managed by mcp_server/scripts/sync-readme-merge-workflow.js — DO NOT EDIT BY HAND) -->
1419
1426
  ### `install epic-implementer --merge-workflow`
@@ -29,18 +29,13 @@ function schemaSupportsAutoFlag(schema) {
29
29
  }
30
30
  /**
31
31
  * Compute the augmented argv tokens the launched run delegates to the command:
32
- * the normalized `input.args`, plus (only where the command can parse them)
33
- * `--scheduled-at <ISO>` and `--auto`.
32
+ * the normalized `input.args`, plus `--auto` when auto-approve is set and the
33
+ * command's schema declares a boolean `--auto` flag. It is never duplicated if
34
+ * already present in `input.args`.
34
35
  *
35
- * `--scheduled-at` is appended for `epic-tick` (BAPI-418), whose parser accepts
36
- * it as a first-class argument. Every other command rejects unrecognized flags
37
- * and halts (e.g. `start-tickets` stops on any unsupported flag), and the shared
38
- * late-fire gate already embeds the scheduled time — so injecting `--scheduled-at`
39
- * into their argv would break an otherwise launchable command for no benefit.
40
- *
41
- * `--auto` is appended when auto-approve is set AND the command supports it (its
42
- * schema declares a boolean `--auto` flag, or it is `epic-tick`).
43
- * It is never duplicated if already present in `input.args`.
36
+ * No `--scheduled-at` is ever injected: the shared late-fire gate already embeds
37
+ * the scheduled time. A `--scheduled-at` the caller put in `input.args` passes
38
+ * through unchanged.
44
39
  *
45
40
  * This is the SINGLE source of the delegated argv: both the rendered target
46
41
  * command line and the `$ARGUMENTS` body substitution derive from it, so the body
@@ -49,14 +44,7 @@ function schemaSupportsAutoFlag(schema) {
49
44
  */
50
45
  function buildAugmentedArgs(input) {
51
46
  const args = [...input.args];
52
- // Commands whose parsers accept --scheduled-at as a first-class argument.
53
- // epic-tick already accepts --scheduled-at (parseEpicTickArgs, cli.ts) so it
54
- // receives the scheduled time as a structured arg for the late-fire decision,
55
- // not just via the embedded gate text.
56
- if (input.commandName === "epic-tick") {
57
- args.push("--scheduled-at", input.runAtIso);
58
- }
59
- const supportsAuto = schemaSupportsAutoFlag(input.schema) || input.commandName === "epic-tick";
47
+ const supportsAuto = schemaSupportsAutoFlag(input.schema);
60
48
  const alreadyHasAuto = input.args.includes("--auto");
61
49
  if (input.autoApprove && supportsAuto && !alreadyHasAuto) {
62
50
  args.push("--auto");
@@ -105,8 +93,8 @@ function replaceArgumentsPlaceholder(body, argString) {
105
93
  export function renderScheduledPrompt(input) {
106
94
  const gate = renderLateFireGate(input.scheduleId, input.runAtIso, input.autoApprove);
107
95
  const targetCommandLine = buildTargetCommandLine(input);
108
- // `$ARGUMENTS` must match what the command line shows — including the appended
109
- // `--scheduled-at` / `--auto` — so a body that re-parses `$ARGUMENTS` (e.g.
96
+ // `$ARGUMENTS` must match what the command line shows — including an
97
+ // appended `--auto` — so a body that re-parses `$ARGUMENTS` (e.g.
110
98
  // review-ticket reading `--auto`) agrees with the rendered command line.
111
99
  const argString = buildAugmentedArgs(input).map(quotePromptToken).join(" ");
112
100
  const body = replaceArgumentsPlaceholder(input.commandBody, argString);