@miraland-labs/conduit-bridge 0.16.9 → 0.16.10

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.
@@ -141,7 +141,7 @@ export function projectCursor(executionClass, input) {
141
141
  if (grants.includes("test_run")) {
142
142
  allow.push(...verificationCommands.filter(isBoundedVerificationCommand).map((command) => `Shell(${command})`));
143
143
  }
144
- if (executionClass === "mutate_repo") {
144
+ if (executionClass === "mutate_repo" && !input.diagnosis) {
145
145
  if (grants.includes("branch_create"))
146
146
  allow.push(...branchCreateCommands.map((command) => `Shell(${command})`));
147
147
  if (grants.includes("pr_create"))
@@ -169,6 +169,19 @@ export function projectClaude(executionClass, input) {
169
169
  if (executionClass === "observe" || executionClass === "observe_network") {
170
170
  return { allowedTools: ["Read", "Glob", "Grep", ...fetchTools], disallowedTools, acceptEdits: false };
171
171
  }
172
+ // Diagnosis is read-only whatever class the assignment was stamped with — the same
173
+ // class-independent rule Cursor, Codex, and Grok already enforce on the flag itself.
174
+ if (input.diagnosis) {
175
+ return {
176
+ allowedTools: [
177
+ "Read", "Glob", "Grep",
178
+ ...verificationCommands.filter(isBoundedVerificationCommand).map((command) => `Bash(${command}:*)`),
179
+ ...fetchTools,
180
+ ],
181
+ disallowedTools,
182
+ acceptEdits: false,
183
+ };
184
+ }
172
185
  if (executionClass === "publish_artifact") {
173
186
  return {
174
187
  allowedTools: ["Read", "Glob", "Grep", "Edit", "Write", "Bash", ...fetchTools],
@@ -180,7 +193,6 @@ export function projectClaude(executionClass, input) {
180
193
  return {
181
194
  allowedTools: [
182
195
  "Read",
183
- ...(input.diagnosis ? ["Glob", "Grep"] : []),
184
196
  ...verificationCommands.filter(isBoundedVerificationCommand).map((command) => `Bash(${command}:*)`),
185
197
  ...fetchTools,
186
198
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miraland-labs/conduit-bridge",
3
- "version": "0.16.9",
3
+ "version": "0.16.10",
4
4
  "description": "Conduit Bridge CLI — join, connect, disconnect, multi-driver lanes, and run Claude Code / Codex / Cursor / OpenCode / Pi / Kiro / Antigravity / Grok Build agents for a Conduit organization",
5
5
  "type": "module",
6
6
  "bin": {