Commit Graph

229 Commits

Author SHA1 Message Date
dal 001fbff65c
try for docker build again 2025-08-19 11:14:30 -06:00
dal 9efd1f49ff
test image for hono server 2025-08-19 11:03:14 -06:00
dal eb9a87e14b
get rid of cache on the dockerfile 2025-08-19 10:48:03 -06:00
dal e97b4d2ae1
Refactor chat cancellation logic to improve type handling for tool calls and results. Introduced type guards for ToolCallPart and ToolResultPart, updated related functions to use these new types, and streamlined the message processing flow. 2025-08-18 23:52:26 -06:00
dal 1d3146e35b
Enhance Slack integration by adding support for direct messages (DMs) and updating event handling. Introduced new environment variables for Slack integration, updated deployment command to use the latest version, and improved message filtering logic for DMs. Refactored Slack event processing to differentiate between app mentions and direct messages, ensuring proper handling and logging. Updated webhook types to include message IM events. 2025-08-18 23:19:51 -06:00
dal bc6782e156
test fixes 2025-08-18 23:08:41 -06:00
dal 5e7467aefc
fix: improve Slack messaging reliability and error handling
- Add proper error handling for Slack API failures with typed responses
- Implement message operation types for better type safety
- Add retry logic with exponential backoff for transient failures
- Export webhook types for external consumers
- Update Slack agent task to handle errors gracefully and continue processing
- Add proper validation and error messages for failed operations
- Include structured error tracking for debugging

🤖 Generated with Anthropic

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 20:36:29 -06:00
dal eb5b1506be
Merge remote-tracking branch 'origin/staging' into dal/upgrade-to-ai-sdk-v5 2025-08-18 17:01:10 -06:00
dal 6f65e25e63
Update pnpm-lock.yaml to resolve merge conflicts and synchronize package versions, including updates to '@aws-sdk/credential-provider-web-identity' and 'platejs' dependencies. 2025-08-18 15:19:01 -06:00
dal 4fe488e1bd
fix: throw error when Slack events API returns success: false
Ensure the Slack events endpoint never returns an HTTP 200 with success: false in the response body. Any failed event processing will now properly throw an error and return an appropriate error status code.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 14:43:03 -06:00
dal 9b2c92ade7
trigger set to bun and electric handler lint 2025-08-18 14:40:13 -06:00
dal f9eece00d6
merge staging in 2025-08-18 14:39:59 -06:00
dal 978c6b684b
Add report files proxy router and integrate with existing API 2025-08-18 13:54:43 -06:00
dal 35193e53ce
- fix lower case slack
- return error response on slack bot verification
- auth scope fix
2025-08-18 13:28:32 -06:00
dal 6b171aae2e
build error map the reasoning message better in web 2025-08-18 10:16:59 -06:00
dal 2a7f17660f
hotfix on multiple trigger tasks 2025-08-14 12:11:20 -06:00
dal f8f9f4b0e0
few tweaks from greptile comments 2025-08-14 10:19:40 -06:00
dal 0428552454
lint build test fixes 2025-08-14 09:55:37 -06:00
dal f7feb4b3d1
rolling back more of claudes mistakes - no need for them 2025-08-14 09:04:08 -06:00
dal e5481bc30a
Refactor chat asset type conversion and enhance error handling
- Changed chatAssetTypeToDatabaseAssetType to a Partial<Record> for better type safety.
- Updated convertChatAssetTypeToDatabaseAssetType to throw an error for unmapped asset types.
- Modified downloadMetricFileHandler tests to use fake timers and improve timeout handling.
- Updated report sharing endpoint to use SharePermissionsUpdateRequest for better clarity.
- Renamed schemas in server-shared for backward compatibility while maintaining clarity.
- Adjusted GetTitleRequestSchema to restrict asset types to those supporting title retrieval.
2025-08-13 14:55:37 -06:00
dal 35623ad987
Integrate access controls with metric file downloads
- Added permission checks to metric file download handler
- Added permission checks to export-metric-data trigger task
- Created comprehensive tests for access control integration
- Updated AssetType enums to include report_file
- Resolved export conflicts in server-shared package
- Fixed AI package imports for new getPermissionedDatasets API
2025-08-13 14:25:41 -06:00
dal 594f08202b
Refactor metric file handling and improve error handling
- Updated type definitions for better clarity and type safety in metric file download and export tasks.
- Enhanced error handling in the metric files API to utilize HTTPException for more consistent error responses.
- Added environment variable validation in export tasks to ensure necessary credentials are present before execution.
- Improved type assertions for content in metric export queries to ensure proper handling of JSONB data.
2025-08-13 14:01:46 -06:00
dal 3eb80ae630
Add metric file export functionality with Cloudflare R2 support
- Introduced new API endpoint for downloading metric files as CSV.
- Implemented export logic to handle large datasets (up to 1 million rows) and generate presigned URLs for secure downloads.
- Added cleanup task to remove exported files from R2 storage after 60 seconds.
- Updated environment configuration to include Cloudflare R2 credentials.
- Enhanced error handling for various export scenarios.
- Refactored related database queries and schemas for better integration.
- Updated documentation for new features and usage instructions.
2025-08-13 13:36:42 -06:00
dal 1e594ac4ec
Refactor chat message handling by removing unused fields
- Eliminated `responseMessages`, `reasoning`, and `rawLlmMessages` from chat creation and handling functions to streamline data processing.
- Updated the `generateJsonbArraySql` function to accept pre-stringified JSON for better performance and clarity.

These changes enhance the efficiency of chat message management and reduce unnecessary complexity in the codebase.
2025-08-12 16:38:20 -06:00
dal ccc4528396
Refactor chat cancellation logic and remove unused components
- Updated type imports in `cancel-chat.ts` from `CoreMessage` to `ModelMessage` and adjusted related function signatures for consistency.
- Modified the structure of tool result messages to use `ToolResultPart` instead of the deprecated types.
- Deleted the `AIMenu.tsx` and `ai-kit.tsx` files to remove unused components, streamlining the codebase.
- These changes enhance the clarity and maintainability of the chat cancellation functionality while cleaning up the project structure.
2025-08-12 14:17:04 -06:00
Nate Kelley a2190e677e
Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-08-11 11:39:29 -06:00
Nate Kelley 28e704c53e
added env validation for server 2025-08-11 11:39:08 -06:00
dal b96cb39b78
turbo fast web build 2025-08-11 11:33:18 -06:00
Nate Kelley 216e610aa8
Added some additional safe parse element stuff 2025-08-07 17:21:38 -06:00
Nate Kelley 75950ae108
super nested list items 2025-08-07 17:01:45 -06:00
Nate Kelley 7a45e20903
Add more error handling for get report 2025-08-07 16:42:04 -06:00
Nate Kelley 358e74149a
try catch wrap 2025-08-07 15:09:49 -06:00
Nate Kelley 1ef2983d15
Merge branch 'staging' into big-nate-bus-1617-create-report-page-and-file-page 2025-08-07 14:08:59 -06:00
Nate Kelley e67f896b7f
Update turbo.json 2025-08-07 12:51:44 -06:00
Nate Kelley 8e31d18066
Add markdown conversion function 2025-08-05 13:40:16 -06:00
dal a26242c46d
Enhance report handling by integrating markdown to PlateJS conversion in the report retrieval process, improving content formatting and error handling. Update report update schema to accept string content for markdown streaming. 2025-08-05 12:02:40 -06:00
Nate Kelley 1ef0d18c61
Report playground updates for fixed toolbar 2025-08-05 10:15:22 -06:00
Nate Kelley 44787f5478
Add additional asset queries 2025-08-04 22:13:09 -06:00
Nate Kelley 43af5fdb4d
add a fix for broken migrate 2025-08-04 20:45:30 -06:00
Nate Kelley 62644bffeb
better error handling for get report 2025-08-04 19:27:18 -06:00
Nate Kelley 4196b8bcd8
type safe create list by date 2025-08-04 19:15:40 -06:00
Nate Kelley ffeee17365
move enum types 2025-08-04 18:04:32 -06:00
Nate Kelley 87ea87e963
collection and assets queries 2025-08-04 16:45:49 -06:00
Nate Kelley a3198003a3
get report 2025-08-04 15:05:18 -06:00
Nate Kelley aae819e151
create new schema for reports 2025-08-04 14:03:52 -06:00
Nate Kelley fad6670e83
fix type assertion
added safe guards around report_fule

pass generics through

fix list pass throughs
2025-08-04 10:06:59 -06:00
Nate Kelley cf5d549af3
stubbed in report lists 2025-08-02 21:48:15 -06:00
Nate Kelley 605b79f9b9
update parsing 2025-08-02 21:24:06 -06:00
Nate Kelley a4f960ff13
Update scheams for get list 2025-08-02 20:35:34 -06:00
Nate Kelley 7b3975c4ae
update schemas 2025-08-02 20:15:48 -06:00