feat: update Makelore modules and conversations
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-07-31 10:08:41 +08:00
parent b8ca3f8eea
commit 80e8386fa6
175 changed files with 8036 additions and 10581 deletions

View File

@@ -890,47 +890,6 @@ describe('OpencodeManager', () => {
}
});
it('installs bundled course agents into the managed opencode config directory before spawning', async () => {
const userDataDir = mkdtempSync(join(tmpdir(), 'niancode-opencode-manager-'));
const bundledCourseAgentsDir = mkdtempSync(join(tmpdir(), 'niancode-course-agents-source-'));
try {
writeFileSync(
join(bundledCourseAgentsDir, 'reviewer.md'),
'---\ndescription: Review course stages.\nmode: all\n---\nReview course evidence.\n',
);
const { children, spawn } = createSpawnHarness();
const manager = new OpencodeManager({
port: 4333,
binPath: '/opt/opencode',
userDataDir,
bundledCourseAgentsDir,
runtimeConfigProvider: () => ({ config: {}, env: {} }),
spawn,
});
const startPromise = manager.start();
children[0].stdout.emit(
'data',
Buffer.from('opencode server listening on http://127.0.0.1:4333\n'),
);
await startPromise;
const installedAgentPath = join(
userDataDir,
'opencode',
'niancode-config',
'agent',
'reviewer.md',
);
expect(existsSync(installedAgentPath)).toBe(true);
expect(readFileSync(installedAgentPath, 'utf8')).toContain('Review course evidence.');
} finally {
rmSync(userDataDir, { recursive: true, force: true });
rmSync(bundledCourseAgentsDir, { recursive: true, force: true });
}
});
it('includes startup stderr in the failed runtime status', async () => {
const { children, spawn } = createSpawnHarness();
const manager = new OpencodeManager({