feat: migrate to DSH 0.1.5-rc.2 with TypeScript refactor, official slot footer and codex selector

This commit is contained in:
2026-09-11 13:58:29 +08:00
parent 4401e9cea7
commit fa098b5192
27 changed files with 4976 additions and 6727 deletions
+20
View File
@@ -0,0 +1,20 @@
import { describe, it, expect, vi } from 'vitest';
import { apply } from '../src/index';
describe('Host plugin', () => {
it('registers models dev exact proxy route', () => {
const registerMock = vi.fn();
const mockCtx = {
effect: (fn: any) => fn(),
webServer: {
register: registerMock,
},
};
apply(mockCtx as any);
expect(registerMock).toHaveBeenCalled();
const callArg = registerMock.mock.calls[0][0];
expect(callArg.path).toBe('/api/models-dev/models');
expect(callArg.kind).toBe('exact');
});
});