Commit Graph

830 Commits

Author SHA1 Message Date
dal 87559314b8
Merge from staging 2025-08-25 01:05:16 -06:00
dal 1dcaaca339
get rid of env and other crap 2025-08-25 00:37:35 -06:00
dal f469b2a152
Update PostgreSQL adapter SSL configuration to allow self-signed certificates
- Modified the SSL configuration in both the PostgreSQL adapter and its tests to use { rejectUnauthorized: false } instead of a boolean true value.
- Ensured consistency in handling SSL settings across the adapter and its tests.
2025-08-25 00:26:29 -06:00
dal 570624a112
posgres ssl fix 2025-08-25 00:15:09 -06:00
dal 4e82c14f52
feat: migrate AI package from process.env to @buster/secrets
- Update all LLM model files to use getSecretSync with AI_KEYS constants
- Migrate OpenAI GPT models (gpt-5, gpt-5-mini, gpt-5-nano) to use secrets system
- Migrate Anthropic models (sonnet-4, haiku-3-5) to use secrets for both Anthropic API and Vertex AI credentials
- Update provider files (openai.ts, anthropic.ts, vertex.ts) to use getSecretSync
- Migrate evaluation workflow to use BRAINTRUST_KEY from secrets
- Implement proper error handling for missing credentials with try-catch blocks
- Test files will be migrated in a separate update

All non-test source files now use centralized secrets management instead of direct process.env access.
2025-08-24 23:42:12 -06:00
dal 2e24d830f0
Refactor database credential handling across adapters
- Updated all database adapter tests and implementations to replace the 'database' field with 'default_database' for consistency.
- Ensured backward compatibility in the Redshift adapter by allowing both 'database' and 'default_database' fields.
- Enhanced SQLServer and MySQL adapters to reflect the new credential structure, improving clarity and maintainability.
2025-08-24 23:35:46 -06:00
dal 4b21ef1fea
set up infiscal and remove test and env packages 2025-08-24 22:30:45 -06:00
dal 9bdfe81cd5
final tweak 2025-08-24 22:09:45 -06:00
dal 7b9afdbb2f
Enhance tool result conversion by validating toolCallId
- Added checks to ensure toolCallId exists and is a valid string before processing tool results.
- Preserves the original part if toolCallId is missing or invalid, improving robustness in message conversion.
2025-08-24 21:51:13 -06:00
dal 980a786d21
fix build errors 2025-08-24 21:42:38 -06:00
dal 455888cdcd
ai sdk v4 to v5 conversion 2025-08-24 21:31:16 -06:00
dal ce8d9a3064
Refactor updateMessageEntries for cache-first streaming approach
- Updated logic to prioritize cache as the source of truth during streaming, with asynchronous database updates for persistence.
- Improved error handling for background database updates, ensuring cache validity even if DB update fails.
- Cleaned up mergeResponseMessages and mergeReasoningMessages functions by removing redundant code.
2025-08-22 20:43:44 -06:00
dal 0d44a230d7
Update packages/database/src/queries/messages/helpers/merge-entries.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-08-22 17:37:43 -06:00
dal 948a07ec72
Update packages/database/src/queries/messages/helpers/merge-entries.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-08-22 17:37:34 -06:00
dal 77cd39b151
Update packages/database/src/queries/messages/update-message-entries.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-08-22 17:37:10 -06:00
dal b14054a033
Add lru-cache dependency and refactor updateMessageEntries function
- Introduced lru-cache version 11.1.0 in package.json and pnpm-lock.yaml.
- Refactored updateMessageEntries to utilize TypeScript-based merge logic with write-through caching.
- Improved error handling for fetching existing message entries and updated database logic to merge new entries with existing ones.
2025-08-22 17:34:40 -06:00
dal affe7b710b
update message entries query fix 2025-08-22 17:03:41 -06:00
dal dcf1687b50
Refactor sequential thinking tool to remove raw LLM message entries
- Removed the creation and handling of raw LLM message entries in both start and finish functions.
- Updated message entry updates to only include reasoning messages, simplifying the logic and improving clarity.
2025-08-22 16:50:55 -06:00
dal 50c9575d6f
Merge pull request #756 from buster-so/analyst-workflow-output
Enhance Analyst Workflow with Tool Integration and Output Structuring
2025-08-22 16:33:18 -06:00
dal d01259e728
Enhance Analyst Workflow with Tool Integration and Output Structuring
- Added imports for various dashboard, metrics, and report tools to the analyst workflow.
- Updated the `runAnalystWorkflow` function to return a comprehensive output, including tool call results, charts created, and summary statistics.
- Implemented logic to extract tool calls and segment messages by user requests, improving the overall workflow output structure.
2025-08-22 16:28:05 -06:00
dal 1cff29d936
update messages 2025-08-22 16:22:11 -06:00
dal fe5819efe1
Update AWS SDK dependencies and enhance metric data handling
- Upgraded '@aws-sdk/client-s3' to version 3.873.0 across multiple packages.
- Introduced caching mechanisms for metric data retrieval in the getMetricDataHandler function.
- Updated API endpoints to support report_file_id for cache lookups and data retrieval.
- Enhanced error handling and logging for cache operations.
- Refactored related components to accommodate new caching logic and parameters.
2025-08-22 12:45:05 -06:00
dal 87d3efc3c5
Merge pull request #754 from buster-so/Jacob-report-prompt-v5
Improved Prompts
2025-08-22 12:01:08 -06:00
jacob-buster f539ca2566 Improved Prompts 2025-08-22 11:59:12 -06:00
dal ec4a04b814
Merge pull request #752 from buster-so/share-report-functionality
Add report sharing endpoints and integrate with existing routes
2025-08-22 11:51:44 -06:00
dal db775397d9
Enhance report sharing functionality with response type integration
- Updated DELETE, GET, and POST handlers to return structured response types (ShareDeleteResponse, ShareGetResponse, SharePostResponse) for better consistency and clarity.
- Refactored permission checks and report existence validation to streamline logic.
- Improved optimistic UI updates in the frontend for sharing reports, ensuring a smoother user experience.
- Added response schemas for sharing operations to the shared reports module.
2025-08-22 11:46:30 -06:00
dal f3cf5f46c4
Refactor report retrieval to include permission checks and enhance filtering options
- Updated GET reports endpoint to use `getReportsWithPermissions` for improved access control.
- Added support for filtering reports based on `shared_with_me` and `only_my_reports` flags.
- Introduced `getReportsWithPermissions` function to handle complex permission logic in the database layer.
- Enhanced report metadata retrieval to ensure proper access validation before fetching report details.
2025-08-22 11:14:50 -06:00
dal 21a2d3f2d7
Refactor report generation handling and UI updates
- Simplified the `GeneratingContent` component to display a static loading message.
- Updated `ReportPageController` to determine if a report is being generated based on the current message context.
- Adjusted report status handling in the delta creation process to maintain 'loading' status during streaming.
- Enhanced logic in the modify reports helper to ensure file status reflects loading during streaming and only updates to completed or failed when all edits are finalized.
- Modified database query to preserve input order for new messages during updates.
2025-08-22 10:05:07 -06:00
dal ad4d7a3134
Merge pull request #750 from buster-so/migrate-metric-data-endpoints-to-ts
Migrate-metric-data-endpoints-to-ts
2025-08-22 09:06:46 -06:00
dal d1155e5978
Enhance metric query execution and metadata handling
- Introduced `executeMetricQuery` utility for standardized metric SQL query execution with retry logic.
- Updated `getMetricDataHandler` and metric tool execution functions to utilize the new query utility, improving error handling and result processing.
- Added metadata generation from query results to provide detailed insights into data structure.
- Refactored SQL validation to ensure only read-only queries are executed, enhancing data integrity.
2025-08-22 09:01:28 -06:00
dal 05575fe65e
Implement integration tests for chat creation and enhance report menu functionality 2025-08-22 08:46:28 -06:00
dal 33e37edeba
add in the report file for start chat 2025-08-21 22:30:25 -06:00
dal 44c8191f94
Merge remote-tracking branch 'origin/staging' into migrate-metric-data-endpoints-to-ts 2025-08-21 22:00:26 -06:00
dal 60d7bd67d1
Update modify-reports-transform-helper to display elapsed time only when all edits are complete, ensuring accurate reporting during the editing process. 2025-08-21 21:53:13 -06:00
dal 1eb3b8369a
Merge remote-tracking branch 'origin/staging' into migrate-metric-data-endpoints-to-ts 2025-08-21 21:31:19 -06:00
dal 0bf2c95147
Merge remote-tracking branch 'origin/staging' into migrate-metric-data-endpoints-to-ts 2025-08-21 16:57:08 -06:00
dal 71efdff64e
Add data source integration for metric data retrieval
- Added '@buster/data-source' dependency to the server and pnpm lock files.
- Enhanced the getMetricDataHandler function to support versioning and data source integration.
- Updated the metric data query schema to include an optional version number parameter.
- Modified the API endpoint to accommodate the new versioning feature for metric data retrieval.
2025-08-21 16:57:04 -06:00
dal 1f8cb7e8f3
Enhance SQL permission validation error messages with actionable guidance. Update tests to reflect improved error handling and specific feedback for unauthorized queries and wildcard usage. Ensure consistency in error reporting across various SQL operations. 2025-08-21 16:53:48 -06:00
dal d137cfe678
follow ups with tool result error solved for other tool calls 2025-08-21 16:20:08 -06:00
dal 3c8f1f4615
Add metric data retrieval endpoint and update schemas
- Introduced a new endpoint to retrieve metric data with pagination at /metric_files/:id/data.
- Added MetricDataParamsSchema and MetricDataQuerySchema for request validation.
- Updated GetMetricDataRequestSchema to include an optional limit parameter for pagination.
2025-08-21 15:55:19 -06:00
dal 93fdbd07b3
fixes on tests and stuff 2025-08-21 14:15:58 -06:00
dal 81c703a472
Update dependencies to version 4.0.1 for @trigger.dev/build, @trigger.dev/core, and @trigger.dev/sdk; enhance UUID validation in modify-reports-delta tool. 2025-08-21 13:34:26 -06:00
dal 4f7ef9525e
Add basic task examples and update SDK version in Trigger.dev documentation 2025-08-21 13:27:31 -06:00
dal bb6d932f26
Implement caching for report snapshots in modify and create reports tools 2025-08-21 12:57:12 -06:00
dal 0ac8921a8a
small prompt fix 2025-08-21 12:47:31 -06:00
dal 7b693d1c3d
streaming 2025-08-21 12:20:40 -06:00
dal 6e41a4122b
sql fixes and report streaming 2025-08-21 10:31:36 -06:00
dal 6a4da2ed57
staging changes 2025-08-21 09:21:52 -06:00
dal e3cbe674ce
sonnet 4 logging and logic 2025-08-21 09:20:48 -06:00
dal 85b121e8b0
Merge remote-tracking branch 'origin/main' into staging 2025-08-21 09:20:13 -06:00