feat(opencode): 新增 OpenCode server provider 串接 #16

Merged
admin merged 5 commits from develop into master 2026-06-17 07:00:28 +00:00
Showing only changes of commit a9ac7857be - Show all commits
+2 -1
View File
@@ -163,6 +163,7 @@ describe('postNewCriticalComments', () => {
});
it('handles multiple criticals, posting inline where possible and degrading the rest', async () => {
const criticalCommentPattern = /嚴重問題/;
const inlineCalls = [];
const issueCalls = [];
const findings = [
@@ -181,6 +182,6 @@ describe('postNewCriticalComments', () => {
assert.equal(inlineCalls[0].path, 'app/a.js');
assert.equal(inlineCalls[0].line, 10);
assert.equal(issueCalls.length, 2);
assert.ok(issueCalls.every(b => /嚴重問題/.test(b)));
assert.ok(issueCalls.every(b => criticalCommentPattern.test(b)));
});
});