Website build error (#1136)

* Fixing model names

* handling arrays of models for agent frontmatter

* Cleaning up some warnings on website build

* adding a workflow to run and perform CI of the website
This commit is contained in:
Aaron Powell
2026-03-23 16:04:46 +11:00
committed by GitHub
parent 165d601f2a
commit 562185066e
6 changed files with 87 additions and 11 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import { setupModal, openFileModal } from '../modal';
import { renderAgentsHtml, sortAgents, type AgentSortOption, type RenderableAgent } from './agents-render';
interface Agent extends SearchItem, RenderableAgent {
model?: string;
model?: string | string[];
tools?: string[];
hasHandoffs?: boolean;
lastUpdated?: string | null;
@@ -51,7 +51,7 @@ function applyFiltersAndRender(): void {
if (currentFilters.models.includes('(none)') && !item.model) {
return true;
}
return item.model && currentFilters.models.includes(item.model);
return item.model && (Array.isArray(item.model) ? item.model.some(m => currentFilters.models.includes(m)) : currentFilters.models.includes(item.model));
});
}