personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: update remaining route endpoints for insights migration

- Rename search API route from /api/summaries to /api/insights
- Fix agents workspace url_for calls (topic_content → insight_content, etc.)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

+7 -7
+5 -5
apps/agents/workspace.html
··· 1624 1624 }); 1625 1625 } 1626 1626 1627 - // Load available topics and render cards 1627 + // Load available insights and render cards 1628 1628 function loadAvailableTopics() { 1629 - fetch('{{ url_for('app:agents.available_topics') }}') 1629 + fetch('{{ url_for('app:agents.available_insights') }}') 1630 1630 .then(r => r.json()) 1631 1631 .then(topics => { 1632 1632 availableTopics = topics; ··· 1844 1844 // Determine the correct endpoint based on item type 1845 1845 const contentUrl = itemType === 'agent' 1846 1846 ? `{{ url_for('app:agents.agent_content', agent_id='') }}${itemId}` 1847 - : `{{ url_for('app:agents.topic_content', topic_id='') }}${itemId}`; 1847 + : `{{ url_for('app:agents.insight_content', insight_id='') }}${itemId}`; 1848 1848 1849 1849 // Load agent's config if it's an agent 1850 1850 if (itemType === 'agent') { ··· 2098 2098 color: document.getElementById('modalTopicColor').value 2099 2099 }; 2100 2100 2101 - const updateUrl = `{{ url_for('app:agents.update_topic', topic_id='') }}${currentEditingItem}`; 2101 + const updateUrl = `{{ url_for('app:agents.update_insight', insight_id='') }}${currentEditingItem}`; 2102 2102 2103 2103 try { 2104 2104 const response = await fetch(updateUrl, { ··· 2842 2842 2843 2843 try { 2844 2844 // Create or update the topic 2845 - const response = await fetch(`{{ url_for('app:agents.update_topic', topic_id='') }}${topicId}`, { 2845 + const response = await fetch(`{{ url_for('app:agents.update_insight', insight_id='') }}${topicId}`, { 2846 2846 method: 'PUT', 2847 2847 headers: { 'Content-Type': 'application/json' }, 2848 2848 body: JSON.stringify({
+2 -2
apps/search/routes.py
··· 24 24 ) 25 25 26 26 27 - @search_bp.route("/api/summaries") 28 - def search_summaries_api() -> Any: 27 + @search_bp.route("/api/insights") 28 + def search_insights_api() -> Any: 29 29 query = request.args.get("q", "").strip() 30 30 if not query: 31 31 return jsonify({"total": 0, "results": []})