@miraland-labs/conduit-bridge 0.16.137 → 0.16.138
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.
- package/dist/execution.js +2 -6
- package/dist/work-package-schema.js +2 -0
- package/package.json +1 -1
package/dist/execution.js
CHANGED
|
@@ -471,11 +471,6 @@ export function parseDiagnosticRepairBrief(text) {
|
|
|
471
471
|
}
|
|
472
472
|
return parsed.data;
|
|
473
473
|
}
|
|
474
|
-
/**
|
|
475
|
-
* The gate command inside the witness line, for the diagnosis prompt. Repair names the gate from
|
|
476
|
-
* the typed signal; this pattern stays until that prompt moves.
|
|
477
|
-
*/
|
|
478
|
-
const VERIFICATION_GATE_PATTERN = /Verification failed \(([^)]+)\)/;
|
|
479
474
|
/** Prompt for Option C: IDE-depth understanding in the retained tree, with write authority absent. */
|
|
480
475
|
export function buildDiagnosticPrompt(input) {
|
|
481
476
|
const pkg = input.workPackage;
|
|
@@ -488,7 +483,7 @@ export function buildDiagnosticPrompt(input) {
|
|
|
488
483
|
// Bridge re-runs the gate itself after the next authoring run. Without this rule the diagnosis
|
|
489
484
|
// reads the gate as the agent's own command and briefs the agent to run a different one, which
|
|
490
485
|
// cannot change what Bridge runs: the briefed run then fails on identical output.
|
|
491
|
-
const gate =
|
|
486
|
+
const gate = input.gateCommand;
|
|
492
487
|
return [
|
|
493
488
|
"You are Conductor's read-only diagnosis lane. Diagnose the exact failed authoring run in the current retained worktree.",
|
|
494
489
|
"Inspect the actual code, git diff, nearby callers, and relevant tests. Run only the supplied project verification commands when useful.",
|
|
@@ -1413,6 +1408,7 @@ async function runAttempt(client, config, driver, workspace, brief, taskId, watc
|
|
|
1413
1408
|
spec,
|
|
1414
1409
|
workPackage,
|
|
1415
1410
|
failureOutput: diagnosticFailure,
|
|
1411
|
+
gateCommand: workPackage.diagnostic_context?.gate_command ?? null,
|
|
1416
1412
|
verificationCommands: attemptBrief?.verification ?? [],
|
|
1417
1413
|
})
|
|
1418
1414
|
: buildAssignmentPrompt({
|
|
@@ -56,6 +56,8 @@ export const workPackageSchema = z.object({
|
|
|
56
56
|
diagnostic_context: z.object({
|
|
57
57
|
source_attempt_id: z.string().uuid(),
|
|
58
58
|
failure_output: z.string().min(1).max(12_000),
|
|
59
|
+
/** The gate Bridge re-runs, from the failed attempt's verification signal; null names no gate. */
|
|
60
|
+
gate_command: z.string().min(1).max(2_000).nullable(),
|
|
59
61
|
}).strict().optional(),
|
|
60
62
|
/** Working/Delivery language for Bridge assignment prose. */
|
|
61
63
|
working_language: z.enum(["en", "zh"]).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miraland-labs/conduit-bridge",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.138",
|
|
4
4
|
"description": "Conduit Bridge CLI \u2014 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": {
|