fix(changes): remove opencode evidence mode from ui bridge
This commit is contained in:
parent
ff506d0d96
commit
c065dc703d
3 changed files with 3 additions and 9 deletions
|
|
@ -240,17 +240,10 @@ export interface OpenCodeBackfillTaskLedgerCommandBody {
|
||||||
workspaceRoot?: string;
|
workspaceRoot?: string;
|
||||||
deliveryContextPath?: string;
|
deliveryContextPath?: string;
|
||||||
attributionMode?: OpenCodeBackfillTaskLedgerAttributionMode;
|
attributionMode?: OpenCodeBackfillTaskLedgerAttributionMode;
|
||||||
evidenceMode?: OpenCodeBackfillTaskLedgerEvidenceMode;
|
|
||||||
dryRun?: boolean;
|
dryRun?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type OpenCodeBackfillTaskLedgerAttributionMode = 'strict-delivery' | 'compatible';
|
export type OpenCodeBackfillTaskLedgerAttributionMode = 'strict-delivery' | 'compatible';
|
||||||
export type OpenCodeBackfillTaskLedgerEvidenceMode =
|
|
||||||
| 'off'
|
|
||||||
| 'metadata-only'
|
|
||||||
| 'chain-only'
|
|
||||||
| 'snapshot-probe'
|
|
||||||
| 'snapshot-auto';
|
|
||||||
|
|
||||||
export type OpenCodeBackfillTaskLedgerOutcome =
|
export type OpenCodeBackfillTaskLedgerOutcome =
|
||||||
| 'imported'
|
| 'imported'
|
||||||
|
|
@ -271,7 +264,6 @@ export interface OpenCodeBackfillTaskLedgerCommandData {
|
||||||
workspaceRoot?: string;
|
workspaceRoot?: string;
|
||||||
dryRun: boolean;
|
dryRun: boolean;
|
||||||
attributionMode?: OpenCodeBackfillTaskLedgerAttributionMode;
|
attributionMode?: OpenCodeBackfillTaskLedgerAttributionMode;
|
||||||
evidenceMode?: OpenCodeBackfillTaskLedgerEvidenceMode;
|
|
||||||
strictWindowCandidateCount?: number;
|
strictWindowCandidateCount?: number;
|
||||||
openCodeDbFingerprint?: string;
|
openCodeDbFingerprint?: string;
|
||||||
deliveryLedgerFingerprint?: string;
|
deliveryLedgerFingerprint?: string;
|
||||||
|
|
|
||||||
|
|
@ -308,7 +308,6 @@ export class OpenCodeReadinessBridge implements OpenCodeTeamRuntimeBridgePort {
|
||||||
...(input.workspaceRoot ? { workspaceRoot: input.workspaceRoot } : {}),
|
...(input.workspaceRoot ? { workspaceRoot: input.workspaceRoot } : {}),
|
||||||
dryRun: input.dryRun === true,
|
dryRun: input.dryRun === true,
|
||||||
...(input.attributionMode ? { attributionMode: input.attributionMode } : {}),
|
...(input.attributionMode ? { attributionMode: input.attributionMode } : {}),
|
||||||
...(input.evidenceMode ? { evidenceMode: input.evidenceMode } : {}),
|
|
||||||
scannedSessions: 0,
|
scannedSessions: 0,
|
||||||
scannedToolparts: 0,
|
scannedToolparts: 0,
|
||||||
candidateEvents: 0,
|
candidateEvents: 0,
|
||||||
|
|
|
||||||
|
|
@ -1060,6 +1060,7 @@ describe('ChangeExtractorService', () => {
|
||||||
attributionMode: 'strict-delivery',
|
attributionMode: 'strict-delivery',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
expect(backfillOpenCodeTaskLedger.mock.calls[0]?.[0]).not.toHaveProperty('evidenceMode');
|
||||||
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -1185,6 +1186,8 @@ describe('ChangeExtractorService', () => {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
const backfillCalls = backfillOpenCodeTaskLedger.mock.calls as unknown as Array<[Record<string, unknown>]>;
|
||||||
|
expect(backfillCalls[0]?.[0]).not.toHaveProperty('evidenceMode');
|
||||||
|
|
||||||
expect(settled).toBe(false);
|
expect(settled).toBe(false);
|
||||||
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
expect(workerClient.computeTaskChanges).not.toHaveBeenCalled();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue