Commit Graph

5460 Commits

Author SHA1 Message Date
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 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
dal 8f6af02663
Add dev:fast scripts and update dependencies
- Introduced `dev:fast` scripts across multiple packages for improved development speed.
- Updated package dependencies in `package.json` files, including `@trigger.dev/build` to version `4.0.0-v4-beta.27`.
- Enhanced environment variable loading in various components to streamline configuration.
- Refactored Supabase client initialization for better performance and reliability.
- Cleaned up unused imports and optimized code structure in several files.

These changes aim to enhance the development experience and maintain code quality across the project.
2025-08-12 12:53:54 -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
dal 79103376f1
more migratsion 2025-08-12 12:30:38 -06:00
dal 7e6e406727
more changes 2025-08-12 12:10:21 -06:00
dal 8f58ff84de
lots of migration and report tooling 2025-08-12 12:08:30 -06:00
dal 4871f49f59
Refactor identify assumptions step and related tests
- Updated type imports from `CoreMessage` to `ModelMessage` for consistency across the identify assumptions step.
- Changed argument names from `args` to `input` and `result` to `output` in the integration tests to align with the new structure.
- Removed legacy step export for `identifyAssumptionsStepLegacy` to clean up the codebase.
- Adjusted the reporting tools to import `StatusSchema` from the correct path.
- Deleted outdated test files and helper functions related to the docs agent workflow to streamline the project structure.

These changes improve code clarity and maintainability while ensuring the integration tests reflect the latest design patterns.
2025-08-12 11:58:15 -06:00
dal 299efd1c13
format follow up messages 2025-08-12 11:50:29 -06:00
dal 4a241ce419
repository tree cleanup 2025-08-12 11:46:15 -06:00
dal 9052bc6251
build issues cleaned up 2025-08-12 11:43:54 -06:00
dal cf3dc3387b
modify metrics finish 2025-08-12 11:33:39 -06:00
dal eb68b4edff
flag chat step clean 2025-08-12 11:33:01 -06:00
dal b699b9f2c9
versioned asset details 2025-08-12 11:32:37 -06:00
dal 72150c2ee1
clean bar line tests 2025-08-12 11:32:28 -06:00
dal 31c3cbc1b7
refactor: enhance reporting tools with new create and modify functionalities
- Introduced `createReports` and `modifyReports` tools, enabling users to create and modify reports with improved state management.
- Added new schemas for report input and output, enhancing type safety and clarity.
- Implemented helper functions for transforming report state and generating reasoning entries.
- Improved test coverage for the new reporting functionalities to ensure robust integration.

These changes streamline the reporting process and enhance overall code maintainability.
2025-08-12 11:19:07 -06:00
dal 819b2dd0d6
tons of migration from mastra to ai sdk 2025-08-12 10:36:55 -06:00
dal a5422360ec
migrating over docs agetn 2025-08-12 10:13:16 -06:00
dal 9d9690bb35
analysis type router 2025-08-12 09:36:40 -06:00
dal 77bc071f4b
more migrations 2025-08-12 09:32:07 -06:00
dal 29708e8d7d
create and modify 2025-08-12 09:10:23 -06:00
dal 7872ad2f29
refactor: enhance modify dashboards tool with improved state management and type definitions
- Updated the `modifyDashboardsDelta` and `modifyDashboardsFinish` functions to streamline state handling and improve message entry updates.
- Refactored helper functions for better clarity and type safety in dashboard modifications.
- Introduced new schemas for state management, enhancing type definitions for dashboard files and their statuses.
- Improved test coverage to ensure robust functionality and integration of the modify dashboards tool.

These changes optimize the dashboard modification process and enhance code maintainability.
2025-08-11 22:30:14 -06:00
dal d3870430c2
create dashboard fixes 2025-08-11 19:00:33 -06:00
dal e2d0d332c1
create dashboard functions debugged 2025-08-11 18:37:31 -06:00
dal c4da2a6af3
Merge pull request #703 from buster-so/staging
Staging
2025-08-11 17:54:19 -06:00
Nate Kelley 9079a768ab
fixed strange issue causing initial token to be undefined 2025-08-11 17:24:39 -06:00
dal 70193aad4f
fix lint issues 2025-08-11 16:57:49 -06:00
dal 4e7e8f0f0e
Merge pull request #702 from buster-so/staging
Staging
2025-08-11 16:49:27 -06:00
Nate Kelley 9d023db3f8
Merge pull request #699 from buster-so/cursor/ensure-active-auth-session-38b9
Ensure active auth session
2025-08-11 16:48:30 -06:00
Nate Kelley 34cc2226b9
Update supbase 2025-08-11 16:44:25 -06:00
Nate Kelley 2fee9a2311
Update next config to support supabase url 2025-08-11 16:41:11 -06:00
dal 72dd803467
Merge pull request #701 from buster-so/staging
Staging
2025-08-11 16:35:37 -06:00
dal 4e7f6b080e
no reports in todos 2025-08-11 16:22:50 -06:00
dal f1d9293946
refactor: enhance create dashboards tool with improved state management and type definitions
- Removed unused properties from the dashboard state and output schemas for clarity.
- Introduced a new state file schema to better represent dashboard files.
- Updated helper functions to streamline file transformation and reasoning message creation.
- Improved type safety by utilizing the newly defined `StatusSchema`.

These changes optimize the dashboard creation process and enhance code maintainability.
2025-08-11 15:59:29 -06:00
dal 95c29cf507
Refactor analyst and think-and-prep agent instructions to remove report generation capabilities and streamline workflow. Update the analyst agent to exclude report-related tools and adjust think-and-prep instructions for clarity and focus on analysis preparation. Ensure consistent handling of SQL guidance and improve overall structure for better readability. 2025-08-11 15:58:07 -06:00
Nate Kelley d8451325cc
Update vitest.setup.ts 2025-08-11 15:52:45 -06:00
Nate Kelley d64f911442
Fix imports 2025-08-11 15:46:47 -06:00
dal 317b7cb8c3
bump max tokens 2025-08-11 15:41:34 -06:00
Cursor Agent 6b68d16461 Changes from background agent bc-654437a1-f840-4d59-90ee-87a733d631b1 2025-08-11 21:26:34 +00:00
Nate Kelley a369ba2b32
browser client update 2025-08-11 15:22:17 -06:00
Nate Kelley 48fa337303
can parse dollar signs 2025-08-11 15:10:55 -06:00