Skip to content

Dev#57

Merged
felix-schultz merged 30 commits intomainfrom
dev
May 4, 2025
Merged

Dev#57
felix-schultz merged 30 commits intomainfrom
dev

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

No description provided.

simonjanssen and others added 30 commits April 26, 2025 14:50
…nced message handling

feat(chat_event): implement PushGlobalSessionNode and PushLocalSessionNode for session management
refactor(commands): reorganize command modules and improve formatting
fix(history): add PartialEq to message content enums for better comparison
- Layer Navigation
… functionality, added more beautiful comments, added renaming and commenting functionality to layers
…ErrorNode, Less Than or Equal Integer, PathBuf to Path, Find Item in Array, Get Element from Array, PushArray, Random Boolean Generator, To String, Get Header, and To Struct
@felix-schultz felix-schultz requested a review from Copilot May 4, 2025 20:40
@deepsource-io
Copy link
Copy Markdown

deepsource-io bot commented May 4, 2025

Here's the code health analysis summary for commits d675c7e..7ae8dc4. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource Rust LogoRust❌ Failure
❗ 121 occurences introduced
🎯 70 occurences resolved
View Check ↗
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 222 occurences introduced
🎯 86 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates documentation for several AI node types and makes backend changes to support enhanced board execution and logging. Key changes include new markdown documentation pages for various AI nodes, modifications to Tauri backend functions (e.g. execution and log querying), and corresponding UI component updates to support additional metadata and routing changes.

Reviewed Changes

Copilot reviewed 378 out of 378 changed files in this pull request and generated no comments.

Show a summary per file
File Description
apps/docs/src/content/docs/nodes/AI/Generative/History/Make History.md New documentation for creating a ChatHistory object
apps/docs/src/content/docs/nodes/AI/Generative/History/Get System Prompt.md New documentation for retrieving system prompts from ChatHistory
apps/docs/src/content/docs/nodes/AI/Generative/History/From Messages.md New documentation describing chat history creation from messages
apps/docs/src/content/docs/nodes/AI/Generative/History/Clear History.md New documentation for clearing history (duplicate pin names issue)
apps/docs/src/content/docs/nodes/AI/Generative/Find Model.md New documentation for a model selection node (title inconsistency)
apps/docs/src/content/docs/nodes/AI/Embedding/Load Embedding Model.md New documentation for loading embedding models
apps/docs/src/content/docs/nodes/AI/Embedding/Embed Query.md New documentation for embedding a query string
apps/docs/src/content/docs/nodes/AI/Embedding/Embed Document.md New documentation for embedding a document (possible type inconsistencies)
apps/docs/astro.config.mjs Reordering of autogenerated docs sections
apps/desktop/src-tauri/src/settings.rs Added default directory functions for logs and temporary storage
apps/desktop/src-tauri/src/lib.rs Updated board execution to return log metadata and register new stores
apps/desktop/src-tauri/src/functions/flow/run.rs Introduced new functions (list_runs, query_run) with extended query logic
apps/desktop/src-tauri/src/functions/flow/board.rs Updated get_open_boards to include app ID for board routing
apps/desktop/src-tauri/src/functions.rs Adjusted error conversions
apps/desktop/components/tauri-provider.tsx Updated API calls to support new run metadata structure
apps/desktop/components/app-sidebar.tsx Updated board navigation links with new route parameters
apps/desktop/app/store/config/logic/page.tsx Modified board execution call to pass run metadata
apps/desktop/app/store/config/layout.tsx Adjusted run invocation and run removal based on new metadata
Cargo.toml & apps/backend/Cargo.toml Added dependency (bytemuck)
Comments suppressed due to low confidence (5)

apps/docs/src/content/docs/nodes/AI/Generative/History/Clear History.md:15

  • The documentation shows two pins with the same name 'History'. Consider renaming one to clarify its purpose (e.g. 'Initial History' vs. 'Cleared History').
| History       | Cleared ChatHistory | Struct | History |

apps/docs/src/content/docs/nodes/AI/Generative/Find Model.md:2

  • The file name is 'Find Model.md' but the title is 'Find LLM Node'. Consider updating the title or file name for consistency.
title: Find LLM Node

apps/desktop/src-tauri/src/functions/flow/run.rs:161

  • Building the query string through direct string interpolation may risk SQL injection if 'node_id' is not properly sanitized. Consider using parameterized queries or escaping special characters.
if let Some(node_id) = node_id { query_string.push_str(&format!("node_id = '{}'", node_id)); }

apps/docs/src/content/docs/nodes/AI/Embedding/Embed Document.md:13

  • [nitpick] The 'Query String' pin specifies a Value Type of 'Map', which is inconsistent with similar nodes (e.g. Embed Query). Verify if 'Map' is correct or if it should be 'String'.
| Query String | The string to embed | String | Map |

apps/desktop/app/store/config/layout.tsx:83

  • The 'execute_run' function is being invoked with the entire runMeta object while other calls use runMeta.run_id. Ensure the API receives consistently typed parameters.
await invoke("execute_run", { id: runMeta });

@felix-schultz felix-schultz merged commit d89bb73 into main May 4, 2025
5 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants