@bridge_gpt/mcp-server 0.2.73 → 0.2.75

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 (123) hide show
  1. package/README.md +14 -7
  2. package/build/agent-launchers/claude-executor-adapter.js +12 -0
  3. package/build/agent-launchers/prompt.js +9 -21
  4. package/build/agents.generated.js +4 -4
  5. package/build/authored-plan.js +542 -0
  6. package/build/bridge-config.js +7 -1
  7. package/build/bridge-permissions.js +11 -0
  8. package/build/command-provisioning.js +4 -3
  9. package/build/commands.generated.js +6 -6
  10. package/build/conductor/bridge-api-client.js +692 -47
  11. package/build/conductor/command-drift.js +1 -1
  12. package/build/conductor/declared-extras.js +335 -0
  13. package/build/conductor/doctor.js +2 -0
  14. package/build/conductor/driver-pass-output.js +104 -0
  15. package/build/conductor/driver-pass.js +571 -0
  16. package/build/conductor/epic-branch-ci-inspection.js +61 -16
  17. package/build/conductor/epic-implementer-cli.js +370 -93
  18. package/build/conductor/epic-server-sfcc-upload.js +1567 -0
  19. package/build/conductor/epic-server-sfcc.js +58 -80
  20. package/build/conductor/epic-server.js +57 -4
  21. package/build/conductor/gate-discovery.js +253 -13
  22. package/build/conductor/gate-settings-review.js +58 -25
  23. package/build/conductor/launch-plan.js +58 -12
  24. package/build/conductor/open-decision-phrases.js +50 -0
  25. package/build/conductor/prerequisite-inputs.js +181 -14
  26. package/build/connect-github-api.js +18 -0
  27. package/build/connect-github.js +35 -18
  28. package/build/credential-delivery.js +280 -0
  29. package/build/credential-launch-safety.js +142 -0
  30. package/build/credential-materialization.js +91 -16
  31. package/build/credential-references-node-deps.js +29 -0
  32. package/build/credential-references.js +1394 -0
  33. package/build/credential-references.test-fixtures.js +211 -0
  34. package/build/credential-scan-conventions.js +145 -0
  35. package/build/credential-scan.js +517 -0
  36. package/build/credential-store.js +50 -0
  37. package/build/credentials-cli.js +252 -3
  38. package/build/dependency-install-declarations.js +47 -1
  39. package/build/docs.generated.js +8 -1
  40. package/build/doctor.js +41 -0
  41. package/build/drive-epic.js +684 -49
  42. package/build/epic-branch-ci-summary.js +18 -1
  43. package/build/epic-capability-statement.js +71 -3
  44. package/build/epic-ci-workflow-drift.js +52 -13
  45. package/build/epic-ci-workflow-install.js +31 -6
  46. package/build/epic-ci-workflow-v3.js +273 -0
  47. package/build/epic-ci-workflow.js +129 -7
  48. package/build/epic-implementer-bin.js +288 -83
  49. package/build/epic-implementer-bundle-cli.js +61 -0
  50. package/build/epic-implementer-claude-hook-bin.js +1 -1
  51. package/build/epic-implementer-env.js +3 -4
  52. package/build/epic-integration-pr.js +5 -2
  53. package/build/epic-launch-context.js +102 -7
  54. package/build/epic-server-record.js +30 -15
  55. package/build/executor/completion-contract.js +24 -1
  56. package/build/executor/credential-delivery-step.js +168 -0
  57. package/build/executor/deps.js +3 -1
  58. package/build/executor/env.js +39 -1
  59. package/build/executor/epic-server-context.js +23 -7
  60. package/build/executor/gate-qualification-job.js +193 -23
  61. package/build/executor/gate-qualification-tests-ran.js +232 -0
  62. package/build/executor/guarded-fast-forward-push.js +13 -8
  63. package/build/executor/job-runner.js +167 -738
  64. package/build/executor/job-type-wrappers.js +734 -0
  65. package/build/executor/permissions.js +85 -3
  66. package/build/executor/preflight.js +6 -2
  67. package/build/executor/process-containment.js +8 -1
  68. package/build/executor/prompt-spec.js +37 -3
  69. package/build/executor/required-verification.js +28 -2
  70. package/build/executor/runner.js +4 -1
  71. package/build/executor/types.js +9 -0
  72. package/build/executor/worker-database.js +6 -1
  73. package/build/executor/worker-guard-hook.js +24 -2
  74. package/build/executor-launch.js +4 -2
  75. package/build/generated/ticket-status.js +20 -0
  76. package/build/git-exclude-lock.js +187 -0
  77. package/build/index.js +589 -326
  78. package/build/install-bridge-conductor-answers.js +112 -22
  79. package/build/install-bridge-conductor-apply.js +38 -1
  80. package/build/install-bridge-conductor-assessment.js +482 -53
  81. package/build/install-bridge-conductor-compact.js +29 -2
  82. package/build/install-bridge-conductor-contracts.js +10 -1
  83. package/build/install-bridge-conductor-gate.js +379 -89
  84. package/build/install-bridge-conductor-setup.js +46 -8
  85. package/build/install-bridge-conductor-trial-report.js +170 -0
  86. package/build/install-bridge-conductor.js +925 -141
  87. package/build/install-bridge.js +88 -11
  88. package/build/install-doctor.js +38 -8
  89. package/build/install-sfcc-detection.js +120 -0
  90. package/build/install-sfcc-setup.js +185 -0
  91. package/build/mcp-grant-candidates.js +108 -96
  92. package/build/mcp-invoke.js +168 -4
  93. package/build/mcp-provisioning.js +21 -4
  94. package/build/mcp-server-invocation.js +13 -0
  95. package/build/merge-workflow-install.js +9 -1
  96. package/build/pipelines.generated.js +8 -7
  97. package/build/plan-generation.js +17 -0
  98. package/build/plane/status.js +8 -2
  99. package/build/printed-remedy-commands.js +59 -0
  100. package/build/project-root.js +40 -0
  101. package/build/readme.generated.js +1 -1
  102. package/build/repository-state-paths.js +5 -2
  103. package/build/repository-toolchains.js +16 -7
  104. package/build/scripts/saved-commands-config-field-driver.js +65 -0
  105. package/build/setup-epic.js +126 -16
  106. package/build/sfcc/credentials.js +3 -2
  107. package/build/sfcc/hostname.js +98 -2
  108. package/build/sfcc/tool-wrapper.js +6 -95
  109. package/build/start-tickets.js +193 -29
  110. package/build/test-support/executor-source-files.js +200 -0
  111. package/build/testing-config-client.js +25 -2
  112. package/build/third-party-mcp-targets.js +35 -4
  113. package/build/v2-readiness-requirements.js +5 -1
  114. package/build/version.generated.js +3 -3
  115. package/build/with-credentials.js +208 -0
  116. package/build/worker-guard-hook-bin.js +2 -2
  117. package/build/worktree-credential-delivery.js +340 -0
  118. package/docs/EPIC-IMPLEMENTER.md +4 -4
  119. package/docs/install/github-app.md +79 -92
  120. package/package.json +1 -1
  121. package/build/conductor/epic-reconcile.js +0 -603
  122. package/build/conductor/epic-runtime.js +0 -2020
  123. package/build/conductor/epic-state.js +0 -774
@@ -5,6 +5,12 @@
5
5
  * fields to show and write plain reasons from data already in the document. They
6
6
  * read no files, resolve no credentials, decide no policy, and never recompute
7
7
  * the digest.
8
+ *
9
+ * Schema note. These compact fields were added without changing any earlier field:
10
+ * `verdict`, `ready`, and `merge_test_protection` (BAPI-1678), and
11
+ * `missing_learned_fields` (BAPI-1680). The compact proposal also gained
12
+ * `merge_test_protection`, `disclosure`, and `gate_effect_lines` (BAPI-1678).
13
+ * `INSTALL_ASSESSMENT_SCHEMA_VERSION` stays 2, because every change is additive.
8
14
  */
9
15
  function compactChoice(choice) {
10
16
  return {
@@ -20,6 +26,9 @@ function compactChoice(choice) {
20
26
  ...(choice.earlier_answer !== undefined ? { earlier_answer: choice.earlier_answer } : {}),
21
27
  ...(choice.excluded !== undefined ? { excluded: choice.excluded } : {}),
22
28
  ...(choice.invalid_existing !== undefined ? { invalid_existing: choice.invalid_existing } : {}),
29
+ ...(choice.dependency_install !== undefined ? { dependency_install: choice.dependency_install } : {}),
30
+ ...(choice.test_commands !== undefined ? { test_commands: choice.test_commands } : {}),
31
+ ...(choice.credential_references !== undefined ? { credential_references: choice.credential_references } : {}),
23
32
  };
24
33
  }
25
34
  function compactItems(document) {
@@ -49,6 +58,9 @@ export function buildCompactAssessment(document) {
49
58
  dryRun: document.dryRun,
50
59
  ...(document.namedOutcome !== undefined ? { namedOutcome: document.namedOutcome } : {}),
51
60
  ...(document.advisoryVerdict !== undefined ? { advisoryVerdict: document.advisoryVerdict } : {}),
61
+ ...(document.missing_learned_fields !== undefined
62
+ ? { missing_learned_fields: document.missing_learned_fields }
63
+ : {}),
52
64
  items,
53
65
  choices: document.choices.map(compactChoice),
54
66
  repository_facts: document.repository_facts,
@@ -66,10 +78,12 @@ function selectedValue(decision) {
66
78
  case "reference":
67
79
  return "reference";
68
80
  case "epic_server_sfcc":
69
- return "sfcc_shared_active";
81
+ return decision.value.mode;
70
82
  case "profile":
71
83
  return "save";
72
84
  case "command":
85
+ case "commands":
86
+ case "dependency_install_entries":
73
87
  return null;
74
88
  }
75
89
  }
@@ -127,11 +141,20 @@ export function buildCompactProposal(document) {
127
141
  reason: decisionReason(entry, byKey.get(entry.key)),
128
142
  consequential: entry.consequential,
129
143
  }));
144
+ const presentation = document.proposal_presentation;
130
145
  return {
131
146
  ...(document.proposal_digest !== undefined ? { proposal_digest: document.proposal_digest } : {}),
132
147
  view: "compact",
133
148
  ...(document.proposal !== undefined
134
- ? { proposal: { decisions, actions: document.proposal.actions.map(compactAction) } }
149
+ ? {
150
+ proposal: {
151
+ decisions,
152
+ actions: document.proposal.actions.map(compactAction),
153
+ ...(presentation?.merge_test_protection !== undefined ? { merge_test_protection: presentation.merge_test_protection } : {}),
154
+ ...(presentation?.disclosure !== undefined ? { disclosure: presentation.disclosure } : {}),
155
+ ...(presentation !== undefined ? { gate_effect_lines: presentation.gate_effect_lines } : {}),
156
+ },
157
+ }
135
158
  : {}),
136
159
  ...(document.refusal !== undefined ? { refusal: document.refusal } : {}),
137
160
  ...(document.proposal === undefined && document.refusal === undefined ? { stopped: compactStop(document) } : {}),
@@ -151,11 +174,15 @@ function compactWrite(result) {
151
174
  }
152
175
  export function buildCompactApply(document) {
153
176
  const apply = document.apply;
177
+ const presentation = document.apply_presentation;
154
178
  return {
155
179
  view: "compact",
156
180
  complete: apply?.complete ?? false,
157
181
  writes: (apply?.results ?? []).map(compactWrite),
158
182
  ...(document.refusal !== undefined ? { refusal: document.refusal } : {}),
159
183
  ...(apply === undefined && document.refusal === undefined ? { stopped: compactStop(document) } : {}),
184
+ ...(presentation !== undefined ? { verdict: presentation.verdict } : {}),
185
+ ...(presentation?.ready !== undefined ? { ready: presentation.ready } : {}),
186
+ ...(presentation?.merge_test_protection !== undefined ? { merge_test_protection: presentation.merge_test_protection } : {}),
160
187
  };
161
188
  }
@@ -14,7 +14,16 @@
14
14
  */
15
15
  /** The schema version `--json` emits. Version 1 fields are all kept. */
16
16
  export const INSTALL_ASSESSMENT_SCHEMA_VERSION = 2;
17
- /** The digest structure's own version, so a later change cannot collide with this one. */
17
+ /**
18
+ * The digest structure's own version, so a later change cannot collide with this one.
19
+ *
20
+ * Schema note (BAPI-1677): `dependency_install` also accepts
21
+ * `{"entries":[{"cwd","argv","lockfiles"}]}`. The list replaces every declared install,
22
+ * in the submitted order. `{"entries":[]}` is a write, not a keep or a decline: workers
23
+ * and the test trial then run no declared install, and managed CI uses its normal
24
+ * toolchain install. This stays version 1 because the shape adds a decision kind that
25
+ * appears only when used, so no canonical input of an existing answer changes.
26
+ */
18
27
  export const INSTALL_PROPOSAL_DIGEST_VERSION = 1;
19
28
  /** The fixed setup-record path, relative to `docs_dir` (from `ping`). */
20
29
  export const SETUP_RECORD_RELATIVE_PATH = "bridge-setup/epic-implementer-setup-record.md";