Commit Graph

4002 Commits

Author SHA1 Message Date
Nate Kelley 68f8d66f12
pnpm update for clients 2025-06-19 10:48:08 -06:00
Nate Kelley 3f64edf903
move folders into app 2025-06-19 10:32:28 -06:00
Nate Kelley 7b64ef382f
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-19 09:32:15 -06:00
Nate Kelley 10dfdb50dc
create basic turbo repo setup 2025-06-19 09:31:31 -06:00
dal f1a77398a4
Refactor JSON parsing and enhance error handling in OptimisticJsonParser
- Improved the `closeIncompleteJson` function to handle empty inputs and incomplete values more robustly, ensuring better completion of JSON structures.
- Enhanced regex patterns for extracting values to accommodate scientific notation and various boolean representations.
- Added comprehensive tests for edge cases, including special characters, escape sequences, and deeply nested structures, to ensure reliability in parsing.
- Introduced stress tests to validate performance with large datasets and complex scenarios, ensuring the parser can handle high loads effectively.
2025-06-18 17:27:29 -06:00
Nate Kelley a9e8ac6240
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-18 17:02:30 -06:00
Nate Kelley 311d9ef9ee
Update ChatResponseReasoning.tsx 2025-06-18 17:02:28 -06:00
dal 5b2888d114
chunk processor final message resposne 2025-06-18 16:49:29 -06:00
dal 3bbc4dda65
Enhance SQL execution and validation with retry logic
- Implemented retry mechanism for SQL execution and validation in `execute-sql`, `create-metrics-file-tool`, and `modify-metrics-file-tool` to handle transient errors and timeouts.
- Improved error handling and logging for better debugging and user feedback.
- Updated `ChunkProcessor` to ensure proper handling of SQL statements, including parsing JSON strings and filtering valid statements.
- Adjusted connection pool settings in `SnowflakeAdapter` to support higher concurrency and load management.
2025-06-18 16:39:01 -06:00
Nate Kelley 522587c93f
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-18 16:25:03 -06:00
Nate Kelley bbaee622f0
secondary title update 2025-06-18 16:25:00 -06:00
dal 789a66ab1a
snowflake 2025-06-18 16:19:43 -06:00
Nate Kelley 7da994543c
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-18 15:28:34 -06:00
Nate Kelley e231e289ec
fix issue with file switching 2025-06-18 15:28:26 -06:00
dal 250e5b3040
Implement escape normalization utilities and integrate into ChunkProcessor
- Added `normalizeEscapedText` and related functions to handle double-escaped characters in streaming text, preventing issues during chunk processing.
- Updated `ChunkProcessor` to utilize the new normalization functions for thought and thoughts messages, ensuring proper formatting.
- Introduced comprehensive tests for escape normalization functionality, verifying correct handling of various escape sequences.
- Enhanced the streaming utility exports to include normalization functions for broader accessibility.
2025-06-18 15:10:09 -06:00
Nate Kelley c45c9200e4
streaming bug with better animations 2025-06-18 15:05:02 -06:00
dal c04d19f483
Refactor ChunkProcessor to handle deferred doneTool responses
- Introduced logic to defer the doneTool response when completed files exist, ensuring proper sequencing of response history.
- Added a new method, `addFileAndDoneToolResponses`, to combine file messages and the deferred doneTool response.
- Updated tests to verify the correct behavior of deferred responses and ensure robust handling of file processing.
- Enhanced type safety and clarity in the ChunkProcessor class with additional checks for completed files.
2025-06-18 13:58:06 -06:00
Nate Kelley da3d43d963
fix version pill stuff 2025-06-18 13:16:21 -06:00
Nate Kelley bd4beade67
tailiwind animation updates 2025-06-18 13:07:06 -06:00
Nate Kelley 26af575700
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-18 12:13:55 -06:00
Nate Kelley a4109524d0
filtered messages update 2025-06-18 12:13:52 -06:00
dal c542f9eb6e
Enhance test coverage for file extraction logic in Analyst Step
- Updated the `extractFilesFromReasoning` function to utilize test-specific types for improved error handling and validation.
- Added comprehensive tests to ensure files are correctly excluded based on failure indicators and missing properties.
- Refactored test cases to simulate various error conditions, enhancing robustness in file extraction logic.
- Improved type safety by integrating new test types for reasoning messages and files.
2025-06-18 12:09:34 -06:00
dal 8a6039722d
Add DataMetadata structure and analysis function for query results
- Introduced TypeScript types and enums to represent the DataMetadata structure, including ColumnMetaData and its properties.
- Implemented the createDataMetadata function to analyze query results and generate metadata, calculating min/max values and unique counts for each column.
- Updated metric file tools to utilize the new createDataMetadata function for improved data handling and reporting.
- Enhanced type safety and clarity in the metrics and dashboards file tools by integrating the new metadata analysis.
2025-06-18 12:05:37 -06:00
dal 8b7deae5d0
Enhance file extraction safety checks in Analyst Step
- Introduced multi-layer safety checks in `extractFilesFromReasoning` to prevent inclusion of files from entries with failure indicators.
- Added validation functions to check for failure indicators at both entry and file levels, ensuring only valid files are processed.
- Enhanced logging for rejected files to aid in debugging and traceability.
- Updated tests to verify the new failure detection logic, ensuring robustness in file extraction.
2025-06-18 11:47:34 -06:00
dal 2e5781f9ca
Refactor version history helpers and types for metrics and dashboards
- Introduced functions to convert `MetricYml` and `DashboardYml` from API format (snake_case) to storage format (camelCase).
- Updated `createMetricVersion` and `createDashboardVersion` to store content directly in the new format, removing the enum wrapper.
- Removed generic version management functions in favor of specific functions for metrics and dashboards, enhancing clarity and maintainability.
- Added new storage format schemas for `MetricYml` and `DashboardYml` to ensure type safety and consistency.
2025-06-18 11:28:11 -06:00
Nate Kelley 311f21744c
update auto change layout params 2025-06-18 11:00:34 -06:00
dal e8910b15b5
Refactor version history helpers and types for metrics and dashboards
- Updated version history functions to use unified types for metrics and dashboards, enhancing consistency and type safety.
- Renamed and refactored functions to improve clarity, including `createMetricVersion`, `createDashboardVersion`, and their respective history functions.
- Introduced validation functions for `MetricYml` and `DashboardYml` schemas to ensure data integrity.
- Streamlined version management by consolidating version entry structures and updating related types in `version-history-types.ts`.
2025-06-18 10:58:13 -06:00
dal af4edbff79
Add tests for Analyst Step File ID Mapping
- Introduced comprehensive tests for the `createFileResponseMessages` function to ensure it uses actual file IDs instead of generating random UUIDs.
- Verified consistent ID mapping across multiple calls and handled edge cases with various ID formats.
- Ensured that file metadata structure is preserved with actual IDs, demonstrating the fix for ID mismatch issues.
2025-06-18 10:35:52 -06:00
Nate Kelley 99c25ffb55
splitter update 2025-06-18 10:21:18 -06:00
dal c4486d55f2
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-18 10:18:20 -06:00
dal fa441e986e
Refactor file ID handling in Analyst and ChunkProcessor
- Updated `createFileResponseMessages` to use actual file IDs instead of generating new UUIDs.
- Added methods in `ChunkProcessor` to handle file creation/modification tools, updating dummy IDs with actual IDs from tool results.
- Introduced error handling and logging for ID extraction and updating processes.
- Improved type safety and clarity in file ID management across relevant components.
2025-06-18 10:18:05 -06:00
Nate Kelley 91716e0bff
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-18 10:17:17 -06:00
Nate Kelley 8de7593774
fix disable chat state 2025-06-18 10:17:14 -06:00
dal 714d7c711f
test types 2025-06-18 10:09:57 -06:00
dal c9b91b3def
Refactor version history management in dashboard and metric file tools
- Replaced manual version history handling with helper functions to streamline the creation and modification of version histories for dashboards and metrics.
- Updated `createDashboardFiles` and `modifyDashboardFiles` to utilize `createInitialDashboardVersionHistory` and `addDashboardVersionToHistory`.
- Enhanced `createMetricFiles` and `modifyMetricFiles` to leverage `createInitialMetricVersionHistory` and `addMetricVersionToHistory`.
- Improved type safety and clarity in version history handling across relevant tools.
2025-06-18 10:03:21 -06:00
Nate Kelley 9167895a27
added additional fixes for chat layout 2025-06-18 09:59:02 -06:00
dal 89d92ac316
type fixes on tests 2025-06-18 09:47:25 -06:00
dal 13137e69dd
no silent error on the handler 2025-06-18 09:35:09 -06:00
dal 829e93cd08
tons of type fixes in tests and the get chat handler 2025-06-18 09:26:00 -06:00
Nate Kelley cf770b01fd
Update ctx handler to actually work 2025-06-18 09:08:37 -06:00
dal 08c3a571d9
Refactor retry mechanism and improve test coverage
- Updated the retryableAgentStream and retryableAgentStreamWithHealing functions to remove console logs and replace them with comments for better readability.
- Enhanced integration tests for Analyst and Think and Prep agents to ensure proper handling of conversation history and response structures.
- Improved type definitions in various test files for better type safety and clarity.
- Refactored message accumulation and deduplication tests to ensure accurate message processing and verification.
2025-06-18 07:35:56 -06:00
Nate Kelley 8d706b6d35
fix sql component 2025-06-17 21:23:10 -06:00
Nate Kelley b5f7056d6d
update reasoning 2025-06-17 20:50:56 -06:00
dal 69665167c8
increased timeout to 60 seconds 2025-06-17 17:19:04 -06:00
dal 22507b57a6
Merge branch 'mastra-braintrust' of https://github.com/buster-so/buster into mastra-braintrust 2025-06-17 17:07:11 -06:00
dal 2c67aa2a56
Refactor query method signatures across data source adapters for improved readability
- Reformatted the query method signatures in various database adapters (MySQL, SQL Server, Snowflake, etc.) to enhance code clarity and maintainability.
- Updated related SQL execution logic to ensure consistent handling of parameters, including optional timeout and maxRows.
- Adjusted unit tests to reflect changes in method signatures, ensuring comprehensive coverage and accuracy.
2025-06-17 17:06:55 -06:00
dal a0f3470f65
Enhance SQL query execution with timeout support across data source adapters
- Added timeout parameter to the query method in various database adapters (MySQL, PostgreSQL, SQL Server, etc.) to prevent long-running queries from hanging.
- Implemented timeout handling logic in each adapter to ensure queries respect the specified timeout duration, defaulting to 30 seconds if not provided.
- Updated the validation tool to include timeout in SQL query execution for improved performance and reliability.
2025-06-17 17:06:46 -06:00
Nate Kelley da4c42fbf1
eslint updates 2025-06-17 16:48:25 -06:00
dal bb23e125a0
Remove performance tips from SQL dialect guidance to streamline content and focus on core functions 2025-06-17 16:42:35 -06:00
Nate Kelley 5b28770674
Update next.config.mjs 2025-06-17 16:42:15 -06:00