@bridge_gpt/mcp-server 0.2.50 → 0.2.52

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 (76) hide show
  1. package/README.md +24 -8
  2. package/build/agent-capabilities/probe-context.js +15 -7
  3. package/build/agent-capabilities/probes.js +42 -6
  4. package/build/agent-launchers/claude-executor-adapter.js +98 -14
  5. package/build/commands.generated.js +1 -1
  6. package/build/conduct-epic/bridge-client.js +115 -1
  7. package/build/conduct-epic/cli.js +351 -33
  8. package/build/conduct-epic/cut-protocol.js +65 -0
  9. package/build/conductor/bridge-api-client.js +171 -5
  10. package/build/conductor/deny-enforcement-preflight.js +107 -10
  11. package/build/conductor/local-merge.js +170 -11
  12. package/build/conductor-bin.js +2 -2
  13. package/build/connect-bitbucket-api.js +370 -0
  14. package/build/connect-bitbucket.js +437 -0
  15. package/build/docs.generated.js +1 -1
  16. package/build/doctor.js +230 -1
  17. package/build/drive-epic.js +423 -11
  18. package/build/env-file-link.js +164 -0
  19. package/build/epic-integration-pr.js +290 -0
  20. package/build/executor/cli.js +41 -6
  21. package/build/executor/deps.js +5 -1
  22. package/build/executor/env-file-guard.js +113 -0
  23. package/build/executor/env.js +78 -1
  24. package/build/executor/heartbeat.js +9 -0
  25. package/build/executor/http-client.js +90 -22
  26. package/build/executor/job-errors.js +43 -2
  27. package/build/executor/job-runner.js +137 -29
  28. package/build/executor/merge-job.js +102 -6
  29. package/build/executor/permissions.js +106 -0
  30. package/build/executor/preflight.js +38 -13
  31. package/build/executor/resume-pre-spawn.js +2 -1
  32. package/build/executor/runner.js +175 -4
  33. package/build/executor/service-unit.js +15 -0
  34. package/build/executor/terminal-mutation.js +22 -1
  35. package/build/executor/types.js +86 -0
  36. package/build/executor/worker-command.js +21 -5
  37. package/build/executor/worker-guard-hook.js +939 -0
  38. package/build/executor/worker-log.js +56 -0
  39. package/build/executor/worktree.js +11 -0
  40. package/build/git-reachability.js +147 -0
  41. package/build/index.js +535 -95
  42. package/build/install-bridge.js +95 -0
  43. package/build/pipelines.generated.js +10 -2
  44. package/build/plan-epic-conductor-eligibility.js +213 -0
  45. package/build/plane/cli.js +78 -15
  46. package/build/plane/defaults.js +165 -0
  47. package/build/plane/manifest.js +63 -8
  48. package/build/plane/member-logs.js +6 -0
  49. package/build/plane/member-roster.js +195 -11
  50. package/build/plane/preflight.js +43 -0
  51. package/build/plane/shutdown.js +25 -3
  52. package/build/plane/status.js +11 -0
  53. package/build/plane/supervisor.js +343 -14
  54. package/build/plane/test-fakes.js +43 -0
  55. package/build/plane/types.js +82 -11
  56. package/build/pr-base-contract.js +20 -0
  57. package/build/readme.generated.js +1 -1
  58. package/build/review-synthesis-config.js +60 -0
  59. package/build/scripts/executor-protocol-contract-driver.js +311 -0
  60. package/build/setup-epic.js +592 -139
  61. package/build/sfcc/log-query.js +2 -1
  62. package/build/sfcc/reads-custom-object-def.js +10 -13
  63. package/build/sfcc/reads-site-preference.js +5 -5
  64. package/build/sfcc/reads-system-object.js +4 -4
  65. package/build/sfcc/writes-custom-object-def.js +7 -7
  66. package/build/sfcc/writes-site-preference.js +4 -3
  67. package/build/sfcc/writes-system-object.js +7 -6
  68. package/build/start-tickets-conductor.js +11 -2
  69. package/build/start-tickets.js +69 -2
  70. package/build/version.generated.js +3 -3
  71. package/build/worker-containment-diagnostic.js +97 -0
  72. package/build/worker-guard-hook-bin.js +6 -0
  73. package/docs/CONDUCTOR.md +27 -0
  74. package/docs/install/mcp-tool-integrations.md +3 -2
  75. package/package.json +5 -3
  76. package/pipelines/plan-epic.json +5 -0
@@ -89,17 +89,33 @@ export function resolveExecutorPrompt(job) {
89
89
  error: `no usable prompt for job_type '${job.job_type}' (no payload.prompt and no ticket_key)`,
90
90
  };
91
91
  }
92
- /** The ratified default — the pre-BAPI-725 behavior for every job. */
93
- export const DEFAULT_WORKER_PERMISSION_POSTURE = "skip_permissions";
92
+ /**
93
+ * The ratified default (BAPI-1020).
94
+ *
95
+ * `auto` runs the worker under Claude's own permission classifier: a flagged call
96
+ * is DENIED WITH A REASON and the worker continues. It replaces `skip_permissions`,
97
+ * which bypassed that classifier entirely — the posture Architecture Miss 28 ran
98
+ * under. `skip_permissions` is still accepted, but only as an explicit revert an
99
+ * operator asks for by name; an unset key no longer hands out full bypass.
100
+ *
101
+ * `auto` shares its spelling with the Claude CLI's own mode name. That coincidence
102
+ * does NOT make this vocabulary a passthrough for argv: the mapping still lives in
103
+ * the adapter, and `resolveWorkerPermissionPosture` still rejects every CLI-shaped
104
+ * spelling it rejected before (`acceptEdits`, `dangerously-skip-permissions`).
105
+ */
106
+ export const DEFAULT_WORKER_PERMISSION_POSTURE = "auto";
94
107
  const WORKER_PERMISSION_POSTURES = [
108
+ "auto",
95
109
  "skip_permissions",
96
110
  "accept_edits",
97
111
  ];
98
112
  /**
99
113
  * Resolve the permission posture at the payload boundary.
100
114
  *
101
- * - ABSENT (`undefined`/`null`) → the ratified `skip_permissions` default, so
102
- * legacy jobs enqueued before BAPI-725 keep working unchanged.
115
+ * - ABSENT (`undefined`/`null`) → the ratified `auto` default (BAPI-1020). A job
116
+ * enqueued by an older server, or by one whose policy omits the key, therefore
117
+ * spawns under the GUARDED posture rather than under bypass — the direction a
118
+ * missing value should fail in.
103
119
  * - a supported value → returned as-is.
104
120
  * - present but unsupported → THROWS a named contract error before argv
105
121
  * construction, so the job fails loudly instead of spawning under a posture
@@ -121,7 +137,7 @@ export function resolveWorkerPermissionPosture(payload) {
121
137
  return raw;
122
138
  }
123
139
  throw new ExecutorNamedError("ContractError.PermissionPosture", "job payload worker_permission_posture is present but is not a supported posture " +
124
- "(expected 'skip_permissions' or 'accept_edits').");
140
+ "(expected 'auto', 'skip_permissions', or 'accept_edits').");
125
141
  }
126
142
  // Argv construction, model-alias resolution, and the worker executable name all
127
143
  // live in the resolved executor adapter now (BAPI-781). `job-runner.ts` requests