Commit Graph

833 Commits

Author SHA1 Message Date
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
dal 1084bfd485
add gpt5 to fallback chain on sonnet 4 2025-08-21 09:18:58 -06:00
dal dbe43df0ea
Merge remote-tracking branch 'origin/staging' into dal-fix-report-bugs 2025-08-21 09:02:19 -06:00
dal 170b65887d
Merge pull request #729 from buster-so/improved-sql-parsing
Enhance SQL permission validation to include unauthorized columns in error messages. Update permission error message creation to handle both unauthorized tables and columns. Modify SQL execution functions to validate column permissions alongside table permissions, improving feedback for users lacking access.
2025-08-21 09:02:11 -06:00
dal 84445efa60
tests passing 2025-08-21 08:58:43 -06:00
dal 3b266c07e7
better logging around fallbacks 2025-08-21 08:58:27 -06:00
dal b4e81dcefe
added opus 4.1 to fallback chain for sonnet 2025-08-21 08:50:29 -06:00
dal 5838285c81
Merge remote-tracking branch 'origin/staging' into improved-sql-parsing 2025-08-21 08:31:09 -06:00
dal 2f641e8b2d
Enhance SQL permission validation to include unauthorized columns in error messages. Update permission error message creation to handle both unauthorized tables and columns. Modify SQL execution functions to validate column permissions alongside table permissions, improving feedback for users lacking access. 2025-08-21 08:30:48 -06:00
Nate Kelley 7334ec68b0
Update packages/server-shared/src/reports/requests.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-08-20 22:40:13 -06:00
Nate Kelley 75b4bb44dc
remove server-util entirely 2025-08-20 22:15:58 -06:00
Nate Kelley d4366037bf
Add some platejs tests 2025-08-20 22:13:02 -06:00
dal 5d9c9e6a77
got rid of delta streaming 2025-08-20 16:48:13 -06:00
dal c94ceaa10a
modify metric delta close 2025-08-20 16:08:12 -06:00
dal 415010b8fc
create reports fixes 2025-08-20 13:38:38 -06:00
dal 059c445d04
Merge remote-tracking branch 'origin/staging' into dal-fix-report-bugs 2025-08-20 13:12:55 -06:00
dal 13de96e5f7
Refactor tool call repair strategies to improve error handling and streamline repair logic. Removed unused types and consolidated strategy functions for better clarity. Updated tests to reflect changes in strategy implementations and input handling. 2025-08-20 13:11:55 -06:00
Nate Kelley da11cd8b30
fix: update .gitignore to properly ignore dist folder and remove tracked dist files 2025-08-20 11:37:31 -06:00
dal 2461dc0a77
bugfixes 2025-08-20 11:26:37 -06:00
dal 6ba1fb4c38
Merge remote-tracking branch 'origin/staging' into dal-fix-report-bugs 2025-08-20 10:22:43 -06:00
dal 1cac320006
logic around reports, bug fixes, self healing, etc. 2025-08-20 10:22:35 -06:00
Nate Kelley 47e94527bb
update package versions for workspace AND server 2025-08-20 09:16:28 -06:00
Nate Kelley 7c8ec9e42c
Merge branch 'staging' into big-nate-bus-1657-intergrate-with-report-streaming 2025-08-20 09:05:24 -06:00
Nate Kelley 845e9a73fa
remove add and delete nodes 2025-08-19 22:00:00 -06:00
dal db63ac4c83
update to ci, fix greptile recs 2025-08-19 15:07:34 -06:00
dal 7a1234d141
fix for build and test 2025-08-19 14:41:38 -06:00
dal 5d6ee61ec8
ok last fix 2025-08-19 14:24:20 -06:00
Nate Kelley 2b18f215b9
report files metadata 2025-08-19 14:17:36 -06:00
dal 94f9e7106f
merge staging in 2025-08-19 13:33:13 -06:00
dal 71eb3dd42e
github integration 2025-08-19 13:27:51 -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 5b5191356a
Refactor report creation and modification logic. Introduced batch update functionality for reports, improved version history management, and enhanced error handling during report updates. Adjusted task duration settings for better performance and refined file extraction logic to filter out reports and metrics appropriately. 2025-08-18 17:00:42 -06:00
dal a821af220f
analysis type router fix 2025-08-18 15:31:39 -06:00
dal 0472a5bc46
descriptions with column label formatas 2025-08-18 15:23:07 -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 f9eece00d6
merge staging in 2025-08-18 14:39:59 -06:00
dal 1d107f4125
lots of changes 2025-08-18 12:43:28 -06:00
dal e0d03c6aab
Refactor data metadata handling and improve report creation logic. Updated SimpleType enum for better serialization, removed unused createDataMetadata function, and integrated createMetadataFromResults for data processing. Enhanced report creation with version history management and improved error handling in report updates. 2025-08-18 11:59:56 -06:00
dal c7627b00d6
identify assumptions fixed 2025-08-18 11:24:21 -06:00
dal b3cfa35430
for the most part things are looking good 2025-08-18 11:20:06 -06:00
dal 35e0fc27d7
done tool fix 2025-08-18 10:43:15 -06:00
dal 6d1a0b6c86
todos cleanedup 2025-08-18 10:31:52 -06:00
dal 6b171aae2e
build error map the reasoning message better in web 2025-08-18 10:16:59 -06:00
dal 138bd01d34
Add GitHub integration endpoints and middleware
- Introduced GitHub routes for handling installation callbacks and token management.
- Implemented middleware for validating GitHub webhook requests.
- Added tests for new handlers and middleware to ensure functionality.
- Enhanced sandbox utilities to support GitHub token usage for authenticated operations.
2025-08-18 09:29:18 -06:00
dal 9589ca198b
upgrade and fixes 2025-08-18 08:07:13 -06:00
dal 0cf763d9a3
type error on fallback 2025-08-18 07:27:31 -06:00
dal a63e8da785
Refactor sequential thinking tool to use toolCallId for message entries and improve error handling 2025-08-18 07:19:34 -06:00
dal 95b67529ad
sequential thinking tie off the request. 2025-08-15 19:10:45 -06:00
dal 4c042a34fa
tool result entry 2025-08-15 18:51:10 -06:00
dal e0ea7ce616
normalizer fo optimistic json parsing and file selection logic 2025-08-15 18:45:59 -06:00
dal d0e9852f5d
git server endpoints 2025-08-15 18:32:55 -06:00
dal d11c62446a
ok metrics are working again 2025-08-15 16:18:14 -06:00
dal 3f3b9233f3
ok need to debug dash and metrics 2025-08-15 15:57:35 -06:00
dal 41ca7078ab
initial github queries 2025-08-15 15:29:34 -06:00
dal c476aebd47
tools updating properly 2025-08-15 15:24:05 -06:00
dal e2757c1ad0
now sequential thinkgin 2025-08-15 15:04:03 -06:00
dal 2059988494
sequential thinking 2025-08-15 15:03:58 -06:00
dal 37aa14c43b
respond without assetstool restuls 2025-08-15 14:58:46 -06:00
dal cdb7e4f17e
message user clarifying 2025-08-15 14:48:41 -06:00
dal 641765b430
flip done tool stuff 2025-08-15 14:48:18 -06:00
dal 940ab3f59f
done tool state and context 2025-08-15 14:44:17 -06:00
dal 597f1b56a8
done tool shift in params 2025-08-14 14:39:51 -06:00
dal 5ec0af4273
optimized message queries 2025-08-14 14:38:02 -06:00
dal 82516e4fbb
Update reasoning messages to improve clarity and consistency across tools
- Changed the wording of elapsed time in reasoning messages from "min" to "minutes" for better readability.
- Updated the final reasoning message format to specify "Reasoned for" instead of "Total workflow time," enhancing user understanding of the output.

These changes contribute to a more user-friendly experience and maintain consistency in messaging across different tools.
2025-08-14 14:09:53 -06:00
dal 24e91b2ac7
lots of changes for the entries updates 2025-08-14 13:49:34 -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 6c4fbe027f
Refactor chat types and remove unnecessary request schema
- Updated chat types to include AssetPermissionRoleSchema for better clarity.
- Removed the ShareUpdateRequestSchema as it was deemed unnecessary.
2025-08-14 09:15:39 -06:00
dal ddbc47f0f9
revert the unneeded requests 2025-08-14 09:00:57 -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 ccc27abaee
Enhance tool state management and reasoning entries across various tools
- Introduced start time tracking for tool operations in create, modify, and report tools to improve performance monitoring.
- Updated reasoning entries to include elapsed time for completed operations, enhancing user feedback.
- Refactored tool logic to ensure consistent handling of file statuses and improved clarity in reasoning messages.
- Enhanced logging for better traceability during tool execution.

These changes improve the overall user experience and maintainability of the toolset.
2025-08-13 14:19:32 -06:00
dal ebe496df87
Merge access-controls branch and resolve conflicts
- Combined asset type enums from both branches
- Merged all database query exports
- Integrated access-controls package into server-shared
- Resolved conflicts in AI package instructions
2025-08-13 14:15:20 -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 a3c4238da1
lint fix 2025-08-13 13:48:28 -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 d02d809e59
migration, optimization on entry querires, etc. 2025-08-13 11:50:56 -06:00
dal abc070449b
update the reasoning entries for all of hte tools 2025-08-13 11:04:37 -06:00
dal dab0bce7d2
Refactor tool imports and enhance naming consistency in Think and Prep Agent
- Updated import statements for communication and database tools to improve clarity and organization.
- Introduced constants for tool names in the `execute-sql` and `sequential-thinking-tool` modules to ensure consistent usage across the codebase.
- Enhanced the `createThinkAndPrepAgent` function to utilize these constants, improving maintainability and readability.

These changes streamline the integration of tools within the Think and Prep Agent, enhancing overall code organization.
2025-08-13 10:52:28 -06:00
dal 3e1181c121
more type safety 2025-08-13 10:49:35 -06:00
dal 8299e47e4e
more migration, streaming, type safety, etc 2025-08-13 10:48:07 -06:00
dal eb14e26972
dashboard helpers and tools 2025-08-12 23:26:46 -06:00
dal d9e6c3dee2
done tool no overwrite 2025-08-12 23:23:35 -06:00
dal 6c989b7c25
Refactor tool names and enhance context handling in AnalystAgent
- Updated tool name constants for visualization and communication tools to improve clarity and consistency.
- Modified the AnalystAgent to utilize these constants, ensuring better context handling during tool calls.
- Enhanced the STOP_CONDITIONS to reference the DONE_TOOL_NAME constant, improving maintainability.

These changes streamline the integration of tools within the AnalystAgent, enhancing overall code organization and readability.
2025-08-12 23:05:45 -06:00
dal 0f0a5ed7d1
fix prompts of dashboard and metric tools 2025-08-12 22:42:21 -06:00
dal 5d2631b848
Enhance agent streaming and logging in Analyst and Think and Prep steps
- Added consumption of text streams in both `runAnalystAgentStep` and `runThinkAndPrepAgentStep` to ensure continuous processing of agent responses.
- Introduced detailed logging at various stages of the agent's execution to improve traceability and debugging.
- These changes enhance the robustness of the agent workflow and provide better insights during execution.
2025-08-12 21:47:09 -06:00
dal 855e7b1a55
Integrate dataset handling into Analyst and Think and Prep agents
- Added support for fetching and managing user-specific datasets in the `analystAgentTask`, enhancing the context available for processing.
- Updated the `AnalystAgent` and `ThinkAndPrepAgent` schemas to include datasets, ensuring they are passed correctly in system messages.
- Implemented error handling for dataset retrieval to prevent workflow interruptions.
- Adjusted integration tests to accommodate the new datasets structure, ensuring comprehensive coverage.

These changes improve the agents' ability to utilize relevant datasets, enhancing their functionality and user experience.
2025-08-12 19:31:25 -06:00
dal cc6c407023
Enhance TODO creation process with streaming support
- Introduced a new streaming mechanism for generating TODO lists, allowing for real-time updates and improved user experience.
- Added context handling for datasets in both `AnalystAgent` and `ThinkAndPrepAgent`, ensuring relevant data is included in system messages.
- Implemented new helper functions for managing TODO state and reasoning messages, improving code organization and clarity.
- Updated integration tests to validate the new streaming functionality and ensure consistent message roles.

These changes significantly enhance the functionality and maintainability of the TODO creation process within the agent workflow.
2025-08-12 18:32:56 -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 e52c0c7d72
move sequential thinking away from old inherited context 2025-08-12 16:15:37 -06:00
dal 0b8f8665d6
Refactor agent steps and message roles
- Removed unused `steps` array from `createThinkAndPrepAgent` function to simplify the code.
- Updated message role from 'assistant' to 'user' in `create-todos-step` for better context alignment.
- Adjusted `valuesMessage` role in `extract-values-search-step` to 'user' when extracted values are present, enhancing message clarity.

These changes improve code clarity and ensure consistent message roles across agent steps.
2025-08-12 16:13:41 -06:00
dal a7ced93c6e
move to newer braintrust version 2025-08-12 16:06:00 -06:00
dal 1d0d312ff3
lots of tests passing 2025-08-12 15:54:46 -06:00
dal da4f3605cc
Refactor prompt loading and streamline agent steps
- Replaced file system reads with direct imports of prompt text files in various agent and step files to improve performance and reduce complexity.
- Updated the `runDocsAgentStep` and `runDocsAgentWorkflow` functions to return `void` instead of structured outputs, simplifying their interfaces.
- Enhanced test cases to validate prompt loading without relying on file system checks, ensuring faster and more reliable tests.
- Cleaned up unused imports and optimized code structure across multiple files.

These changes aim to enhance code clarity, maintainability, and performance in the agent workflow and related components.
2025-08-12 14:57:23 -06:00
dal 8c27a3dfff
Merge remote-tracking branch 'origin/staging' into dal/upgrade-to-ai-sdk-v5 2025-08-12 12:53:48 -06:00
dal c6a28e39d5
migration changes 2025-08-12 12:44:15 -06:00