feat(config): add configurable agent ordering

This commit is contained in:
YeonGyu-Kim
2026-05-08 16:08:18 +09:00
parent 8667d7e5b8
commit 9522dd4ca4
16 changed files with 400 additions and 57 deletions
+9
View File
@@ -37,6 +37,8 @@ const mockCreateHooks = mock(() => ({
const mockCreatePluginInterface = mock(() => ({}))
const mockInitializeOpenClaw = mock(async () => {})
const mockStartTmuxCheck = mock(() => {})
const mockInstallAgentSortShim = mock(() => {})
const mockSetAgentSortOrder = mock(() => {})
let pluginModule: (typeof import("./index"))["default"]
@@ -95,6 +97,11 @@ function installIndexModuleMocks(): void {
})),
}))
mock.module("./shared/agent-sort-shim", () => ({
installAgentSortShim: mockInstallAgentSortShim,
setAgentSortOrder: mockSetAgentSortOrder,
}))
mock.module("./openclaw", () => ({
initializeOpenClaw: mockInitializeOpenClaw,
}))
@@ -130,6 +137,8 @@ describe("oh-my-openagent plugin module", () => {
mockCreatePluginInterface.mockClear()
mockInitializeOpenClaw.mockClear()
mockStartTmuxCheck.mockClear()
mockInstallAgentSortShim.mockClear()
mockSetAgentSortOrder.mockClear()
})
afterEach(() => {