feat(knowledge): add pipeline support and build mode selection

refactor(configuration): reorganize naive config form with pipeline selector
feat(form): add RadioFormField component for build mode selection
docs: add ahooks usage guide for common patterns
style: update app title and favicon
chore: clean up unused agent interfaces
This commit is contained in:
2025-11-06 23:06:23 +08:00
parent e325beea4b
commit d24b371929
16 changed files with 550 additions and 60 deletions

View File

@@ -44,7 +44,13 @@ export const useAgentList = (initialParams?: IAgentPaginationParams) => {
setLoading(true);
setError(null);
try {
const response = await agentService.listCanvas(params);
const envMode = import.meta.env.MODE;
let response: any = null;
if (envMode === 'flask') {
response = await agentService.teamlistCanvas(params);
} else {
response = await agentService.listCanvas(params);
}
const res = response.data || {};
logger.info('useAgentList fetchAgentList', res);
const data = res.data