Commit Graph

5565 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 da7af5f384
remove main hono server deploy job 2025-08-25 00:18:22 -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 210fa646b1
ci cd fixes 2025-08-24 22:35:49 -06:00
dal 4b21ef1fea
set up infiscal and remove test and env packages 2025-08-24 22:30:45 -06:00
dal a03776ed0a
fix docker buiild and deploy in ci 2025-08-24 22:29:12 -06:00
dal c1ad9cd710
ci cd fixes and clean up 2025-08-24 22:14:06 -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 c5d5e28cc5
Merge branch 'main' into staging 2025-08-22 21:44:27 -06:00
dal 39caebef28
Merge pull request #757 from buster-so/update-message-entries-pass-through-cache
Add lru-cache dependency and refactor updateMessageEntries function
2025-08-22 20:48:39 -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 9031d3d2a6
Merge pull request #755 from buster-so/add-static-dataframe-caching
Add-static-dataframe-caching
2025-08-22 13:00:34 -06:00
dal 649767b17e
Merge remote-tracking branch 'origin/staging' into add-static-dataframe-caching 2025-08-22 12:48:21 -06:00
dal 416dfa8714
fix query requests.. 2025-08-22 12:47:07 -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 7b35398e05
delpoy on staging and main 2025-08-22 12:42:32 -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 07c212b80c
Merge pull request #753 from buster-so/add-access-controls-to-reports
Refactor report retrieval to include permission checks and enhance filtering options
2025-08-22 11:21:21 -06:00
dal 82e81ec964
Merge remote-tracking branch 'origin/staging' into add-access-controls-to-reports 2025-08-22 11:15:47 -06:00
dal 250c02db3b
Merge remote-tracking branch 'origin/staging' into share-report-functionality 2025-08-22 11:15:38 -06:00
dal c1e1c1edac
Refactor report sharing endpoints for improved structure and clarity
- Exported handler functions for DELETE, GET, POST, and PUT endpoints to enhance modularity.
- Removed redundant authentication middleware from individual endpoint files, consolidating it in the index route.
- Cleaned up code formatting for better readability.
- Deleted outdated test file for report sharing endpoints.
2025-08-22 11:15:35 -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 4558f22f7e
refactor: remove duplicate report functionality from ReportThreeDotMenu
- Removed the duplicate report item from the dropdown menu.
- Cleaned up related code and comments for clarity.
2025-08-22 11:07:52 -06:00
dal 17ee5d2197
hide verification in UI 2025-08-22 10:53:28 -06:00
dal eedf5f42f8
Add report sharing endpoints and integrate with existing routes
- Implemented DELETE, GET, POST, and PUT endpoints for report sharing functionality.
- Added logic to handle sharing permissions, including validation of user access and email checks.
- Updated the sharing index route to include new endpoints.
- Created comprehensive tests for sharing functionalities to ensure proper behavior.
- Enhanced the frontend with hooks for sharing reports, unsharing reports, and updating sharing settings.
2025-08-22 10:49:05 -06:00
dal 550b86255a
Merge pull request #751 from buster-so/add-report-to-collection-functionality
Add-report-to-collection-functionality
2025-08-22 10:47:36 -06:00
dal cd5ea1a3a6
Merge remote-tracking branch 'origin/staging' into add-report-to-collection-functionality 2025-08-22 10:41:57 -06:00
dal cfafa773ea
move reports above collections 2025-08-22 10:41:46 -06:00
dal d308b20c3e
fix: enable report navigation and display in collections
- Fix report route to use APP_REPORTS_ID instead of APP_REPORT_ID
- Add report icon to CollectionIconRecord
- Add report case to createAssetLink function for proper navigation
2025-08-22 10:39:22 -06:00
dal ff0828d75a
Merge remote-tracking branch 'origin/staging' into add-report-to-collection-functionality 2025-08-22 10:28:36 -06:00
dal 49e072979c
fix: add ReportContent variant to VersionContent enum
- Add ReportContent(String) variant to handle report version history
- Reports store content as plain strings unlike metrics/dashboards which use YAML
- Fixes deserialization error when fetching reports with version history
2025-08-22 10:20:33 -06:00