Commit Graph

3583 Commits

Author SHA1 Message Date
dal 27008f1539
deploy to staging (#393) 2025-07-02 14:50:45 -07:00
dal bed288f4e1
cert location copy moved (#392)
* biome clean on ai

* add user to flag chat

* attempt to get vercel deployed

* Update tsup.config.ts

* Update pnpm-lock.yaml

* Add @buster/server2 Hono API app with Vercel deployment configuration

* slack oauth integration

* mainly some clean up and biome formatting

* slack oauth

* slack migration + snapshot

* remove unused files

* finalized docker image for porter

* Create porter_app_buster-server_3155.yml file

* Add integration tests for Slack handler and refactor Slack OAuth service

- Introduced integration tests for the Slack handler, covering OAuth initiation, callback handling, and integration status retrieval.
- Refactored Slack OAuth service to improve error handling and ensure proper integration state management.
- Updated token storage implementation to use a database vault instead of Supabase.
- Enhanced existing tests for better coverage and reliability, including cleanup of test data.
- Added new utility functions for managing vault secrets in the database.

* docker image update

* new prompts

* individual tests and a schema fix

* server build

* final working dockerfile

* Update Dockerfile

* new messages to slack messages (#369)

* Update dockerfile

* Update validate-env.js

* update build pipeline

* Update the dockerfile flow

* finalize logging for pino

* stable base

* Update cors middleware logger

* Update cors.ts

* update docker to be more imformative

* Update index.ts

* Update auth.ts

* Update cors.ts

* Update cors.ts

* Update logger.ts

* remove logs

* more cors updates

* build server shared

* Refactor PostgreSQL credentials handling and remove unused memory storage. Update package dependencies. (#370)

* tons of file parsing errors (#371)

* Refactor PostgreSQL credentials handling and remove unused memory storage. Update package dependencies.

* tons of file parsing errors

* Dev mode updates

* more stable electric handler

* Dal/agent-self-healing-fixes (#372)

* change to 6 min

* optmizations around saving and non-blocking actions.

* stream optimizations

* Dal/agent-self-healing-fixes (#373)

* change to 6 min

* optmizations around saving and non-blocking actions.

* stream optimizations

* change porter staging deploy to mastra-braintrust.

* new path for porter deploy

* deploy to staging fix

* Create porter_app_mastra-braintrust-api_3155.yml file (#375)

Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>

* Update sizing and opacity

* supe up the instance for mastra

* environment staging

* ssl script

* copy path

* Update list padding

* no throttle and the anthropic cached

* move select to the top

* Update margin inline start

* shrink reasoning vertical space to 2px

* semi bold font for headers

* update animation timing

* haiku

* Add createTodoList tool and integrate into create-todos-step

* chat helper on post chat

* only trigger cicd when change made

* Start created streaming text components

* Refactor analyst agent task to initialize Braintrust logging asynchronously and parallelize database queries for improved performance. Adjusted cleanup timeout for Braintrust traces to reduce delays.

* fixed reasoned for X, so that it rounds down to the minute

* Update users page

* update build pipeline for new web

* document title update

* Named chats for page

* Datasets titles

* Refactor visualization tools and enhance error handling in retryable agent stream. Removed unused metricValueLabel from metrics file tool, updated metric configuration schemas, and improved healing mechanism for tool errors during streaming.

* analyst

* document title updates

* Update useDocumentTitle.tsx

* Refactor tool choice configuration in create-todos-step to use structured object. Remove exponential backoff logic from retryable agent stream for healable errors. Introduce new test for real-world healing scenarios in retryable agent stream.

* Refactor SQL validation logic in modify-metrics-file-tool to skip unnecessary checks when SQL has not changed. Enhance error handling and update validation messages. Clean up code formatting for improved readability.

* update collapse for filecard

* chevron collapse

* Jacob prompt changes (#376)

* prompt changes to improve filtering logic and handle priv/sec errors

* prompt changes to make aggregation better and improved filter best practices

* Update packages/ai/src/steps/create-todos-step.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update packages/ai/src/agents/think-and-prep-agent/think-and-prep-instructions.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update packages/ai/src/steps/create-todos-step.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>
Co-authored-by: dal <dallin@buster.so>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* think and prep

* change header and strong fonts weights

* Update get collection

* combo chart x axis update

* Create a chart schemas as types

* schema types

* simple unit tests for line chart props

* fix the response file ordering iwth active selection.

* copy around reasoning messages taken care of

* fix nullable user message and file processing and such.

* update ticks for chart config

* fix todo parsing.

* app markdown update

* Update splitter to use border instead of width

* change ml

* If no file is found we should auto redirect

* Refactor database connection handling to support SSL modes. Introduced functions to extract SSL parameters and manage connections based on SSL requirements, including a custom verifier for unverified connections.

* black box message update

* chat title updates

* optimizations for trigger.

* some keepalive logic on the anthropic cached

* keep title empty until new one

* no duplicate messages

* null user message on asset pull

* posthog error handling

* 20 sec idle timeout on anthropic

* null req message

* fixed modificiation names missing

* Refactor tool call handling to support new content array format in asset messages and context loaders

* cache most recent file from workflow

* Enhance date and number detection in createDataMetadata function to improve data type handling for metrics files

* group hover effect for message

* logging for chat

* Add messageId handling and file association tracking in dashboard and metrics tools

- Updated runtime context to include messageId in create and modify dashboard and metrics file tools.
- Implemented file association tracking based on messageId in create and modify functions for both dashboards and metrics.
- Ensured type consistency by using AnalystRuntimeContext in runtime context parameters.

* logging for chat

* message type update

* Route to first file instead

* trigger moved to catalog

* Enhance file selection logic to support YAML parsing and improve logging

- Updated `extractMetricIdsFromDashboard` to first attempt JSON parsing, falling back to a regex-based YAML parsing for metric IDs.
- Added detailed debug logging in `selectFilesForResponse` to track file selection process, including metrics and dashboards involved.
- Introduced tests for various scenarios in `file-selection.test.ts` to ensure correct behavior with dashboard context and edge cases.

* trigger dev v4-beta

* Retry + Self Healing (#381)

* Refactor retry logic in analyst and think-and-prep steps

Co-authored-by: dallin <dallin@buster.so>

* some fixes

* console log error

* self healing

* todos retry

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* remove lots of logs

* Remove chat streaming

* Remove chat streaming

* timeout

* Change to updated at field

* link to home

* Update timeout settings for HTTP and HTTPS agents from 20 seconds to 10 seconds for improved responsiveness.

* Add utils module and integrate message conversion in post_chat_handler

* Implement error handling for extract values (#382)

* Remove chat streaming

* Improve error handling and logging in extract values and chat title steps

Co-authored-by: dallin <dallin@buster.so>

---------

Co-authored-by: Nate Kelley <nate@buster.so>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* loading icon for buster avatar

* finalize tooltip cache

* upgrade mastra

* increase retries

* Add redo functionality for chat messages

- Introduced `redoFromMessageId` parameter in `handleExistingChat` to allow users to specify a message to redo from.
- Implemented validation to ensure the specified message belongs to the current chat.
- Added `softDeleteMessagesFromPoint` function to soft delete a message and all subsequent messages in the same chat, facilitating the redo feature.

* fix electric potential memory leak

* tooltip cache and chart cleanup

* Update bullet to be more indented

* latest version number

* add support endpoint to new server

* Fix jank in combo bar charts

* index check for dashboard

* Collapse only if there are metrics

* Is finished reasoing back

* Update dependencies and enhance chat message handling

- Upgraded `@mastra/core` to version 0.10.8 and added `node-sql-parser` at version 5.3.10 in the lock file.
- Improved integration tests for chat message redo functionality, ensuring correct behavior when deriving `chat_id` from `message_id`.
- Enhanced error handling and validation in the `initializeChat` function to manage cases where `chat_id` is not provided.

* Update pnpm-lock and enhance chat message integration tests

- Added `node-sql-parser` version 5.3.10 to dependencies and updated the lock file.
- Improved integration tests for chat message redo functionality, ensuring accurate deletion and retrieval of messages.
- Enhanced the `initializeChat` function to derive `chat_id` from `message_id` when not provided, improving error handling and validation.

* remove .env import breaking build

* add updated at to the get chat handler

* zmall runtime error fix

* permission tests passing

* return updated at on the get chat handler now

* slq parser fixes

* Implement chat access control logic and add comprehensive tests

- Developed the `canUserAccessChat` function to determine user access to chats based on direct permissions, collection permissions, creator status, and organizational roles.
- Introduced helper functions for checking permissions and retrieving chat information.
- Added integration tests to validate access control logic, covering various scenarios including direct permissions, collection permissions, and user roles.
- Created unit tests to ensure the correctness of the access control function with mocked database interactions.
- Included simple integration tests to verify functionality with existing database data.

* sql parser and int tests working.

* fix test and lint issues

* comment to kick off deployment lo

* access controls on datasets

* electric context bug fix with sql helpers.

* permission and read only

* Add lru-cache dependency and export cache management functions

- Added `lru-cache` as a dependency in the access-controls package.
- Exported new cache management functions from `chats-cached` module, including `canUserAccessChatCached`, `getCacheStats`, `resetCacheStats`, `clearCache`, `invalidateAccess`, `invalidateUserAccess`, and `invalidateChatAccess`.

* packages deploy as well

* wrong workflow lol

* Update AppVerticalCodeSplitter.tsx

* Add error handling for query run and SQL save operations

Co-authored-by: natemkelley <natemkelley@gmail.com>

* Trim whitespace from input values before sending chat prompts

Co-authored-by: natemkelley <natemkelley@gmail.com>

* type in think-and-prep

* use the cached access chat

* update package version

* new asset import message

* Error fallback for login

* Update BusterChart.BarChart.stories.tsx

* Staging changes to fix number card titles, combo chart axis, and using dynamic filters (#386)

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* db init command pass through

* combo chart fixes (#387)

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* clarifying question and connection logic

* pino pretty error fix

* clarifying is a finishing tool

* change update latest version logic

* Update support endpoint

* fixes for horizontal bar charts and added the combo chart logic to update metrics (#388)

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* permission fix on dashboard metric handlers for workspace and data admin

* Add more try catches

* Hide avatar is no more

* Horizontal bar fixes (#389)

* fixes for horizontal bar charts and added the combo chart logic to update metrics

* hopefully fixed horizontal bar charts

---------

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* reasoning shimmer update

* Make the embed flow work with versions

* new account warning update

* Move support modal

* compact number for pie label

* Add final reasoning message tracking and workflow start time to chunk processor and related steps

- Introduced `finalReasoningMessage` to schemas in `analyst-step`, `mark-message-complete-step`, and `create-todos-step`.
- Updated `ChunkProcessor` to calculate and store the final reasoning message based on workflow duration.
- Enhanced various steps to utilize the new `workflowStartTime` for better tracking of execution duration.
- Improved database update logic to include `finalReasoningMessage` when applicable.

* 9 digit cutoff for pie

* trigger update

* test on mastra braintrust

* test deployment

* testing

* pnpm install

* pnpm

* node 22

* pnpm version

* trigger main

* get initial chat file

* hono main deploymenbt

* clear timeouts

* Remove console logs

* migration test to staging

* db url

* try again

* k get rid of tls var

* hmmm lets try this

* mark migrations

* fix migration file?

* drizzle-kit upgrade

* tweaks to the github actions

* clean up workflows db migration

* cert location copy moved

---------

Co-authored-by: Nate Kelley <nate@buster.so>
Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>
Co-authored-by: Nate Kelley <133379588+nate-kelley-buster@users.noreply.github.com>
Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>
Co-authored-by: jacob-buster <jacob@buster.so>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-07-02 14:47:44 -07:00
dal 58f9d261e6
Mastra braintrust (#391)
* type fixes

* biome clean on ai

* add user to flag chat

* attempt to get vercel deployed

* Update tsup.config.ts

* Update pnpm-lock.yaml

* Add @buster/server2 Hono API app with Vercel deployment configuration

* slack oauth integration

* mainly some clean up and biome formatting

* slack oauth

* slack migration + snapshot

* remove unused files

* finalized docker image for porter

* Create porter_app_buster-server_3155.yml file

* Add integration tests for Slack handler and refactor Slack OAuth service

- Introduced integration tests for the Slack handler, covering OAuth initiation, callback handling, and integration status retrieval.
- Refactored Slack OAuth service to improve error handling and ensure proper integration state management.
- Updated token storage implementation to use a database vault instead of Supabase.
- Enhanced existing tests for better coverage and reliability, including cleanup of test data.
- Added new utility functions for managing vault secrets in the database.

* docker image update

* new prompts

* individual tests and a schema fix

* server build

* final working dockerfile

* Update Dockerfile

* new messages to slack messages (#369)

* Update dockerfile

* Update validate-env.js

* update build pipeline

* Update the dockerfile flow

* finalize logging for pino

* stable base

* Update cors middleware logger

* Update cors.ts

* update docker to be more imformative

* Update index.ts

* Update auth.ts

* Update cors.ts

* Update cors.ts

* Update logger.ts

* remove logs

* more cors updates

* build server shared

* Refactor PostgreSQL credentials handling and remove unused memory storage. Update package dependencies. (#370)

* tons of file parsing errors (#371)

* Refactor PostgreSQL credentials handling and remove unused memory storage. Update package dependencies.

* tons of file parsing errors

* Dev mode updates

* more stable electric handler

* Dal/agent-self-healing-fixes (#372)

* change to 6 min

* optmizations around saving and non-blocking actions.

* stream optimizations

* Dal/agent-self-healing-fixes (#373)

* change to 6 min

* optmizations around saving and non-blocking actions.

* stream optimizations

* change porter staging deploy to mastra-braintrust.

* new path for porter deploy

* deploy to staging fix

* Create porter_app_mastra-braintrust-api_3155.yml file (#375)

Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>

* Update sizing and opacity

* supe up the instance for mastra

* environment staging

* ssl script

* copy path

* Update list padding

* no throttle and the anthropic cached

* move select to the top

* Update margin inline start

* shrink reasoning vertical space to 2px

* semi bold font for headers

* update animation timing

* haiku

* Add createTodoList tool and integrate into create-todos-step

* chat helper on post chat

* only trigger cicd when change made

* Start created streaming text components

* Refactor analyst agent task to initialize Braintrust logging asynchronously and parallelize database queries for improved performance. Adjusted cleanup timeout for Braintrust traces to reduce delays.

* fixed reasoned for X, so that it rounds down to the minute

* Update users page

* update build pipeline for new web

* document title update

* Named chats for page

* Datasets titles

* Refactor visualization tools and enhance error handling in retryable agent stream. Removed unused metricValueLabel from metrics file tool, updated metric configuration schemas, and improved healing mechanism for tool errors during streaming.

* analyst

* document title updates

* Update useDocumentTitle.tsx

* Refactor tool choice configuration in create-todos-step to use structured object. Remove exponential backoff logic from retryable agent stream for healable errors. Introduce new test for real-world healing scenarios in retryable agent stream.

* Refactor SQL validation logic in modify-metrics-file-tool to skip unnecessary checks when SQL has not changed. Enhance error handling and update validation messages. Clean up code formatting for improved readability.

* update collapse for filecard

* chevron collapse

* Jacob prompt changes (#376)

* prompt changes to improve filtering logic and handle priv/sec errors

* prompt changes to make aggregation better and improved filter best practices

* Update packages/ai/src/steps/create-todos-step.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update packages/ai/src/agents/think-and-prep-agent/think-and-prep-instructions.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update packages/ai/src/steps/create-todos-step.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>
Co-authored-by: dal <dallin@buster.so>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* think and prep

* change header and strong fonts weights

* Update get collection

* combo chart x axis update

* Create a chart schemas as types

* schema types

* simple unit tests for line chart props

* fix the response file ordering iwth active selection.

* copy around reasoning messages taken care of

* fix nullable user message and file processing and such.

* update ticks for chart config

* fix todo parsing.

* app markdown update

* Update splitter to use border instead of width

* change ml

* If no file is found we should auto redirect

* Refactor database connection handling to support SSL modes. Introduced functions to extract SSL parameters and manage connections based on SSL requirements, including a custom verifier for unverified connections.

* black box message update

* chat title updates

* optimizations for trigger.

* some keepalive logic on the anthropic cached

* keep title empty until new one

* no duplicate messages

* null user message on asset pull

* posthog error handling

* 20 sec idle timeout on anthropic

* null req message

* fixed modificiation names missing

* Refactor tool call handling to support new content array format in asset messages and context loaders

* cache most recent file from workflow

* Enhance date and number detection in createDataMetadata function to improve data type handling for metrics files

* group hover effect for message

* logging for chat

* Add messageId handling and file association tracking in dashboard and metrics tools

- Updated runtime context to include messageId in create and modify dashboard and metrics file tools.
- Implemented file association tracking based on messageId in create and modify functions for both dashboards and metrics.
- Ensured type consistency by using AnalystRuntimeContext in runtime context parameters.

* logging for chat

* message type update

* Route to first file instead

* trigger moved to catalog

* Enhance file selection logic to support YAML parsing and improve logging

- Updated `extractMetricIdsFromDashboard` to first attempt JSON parsing, falling back to a regex-based YAML parsing for metric IDs.
- Added detailed debug logging in `selectFilesForResponse` to track file selection process, including metrics and dashboards involved.
- Introduced tests for various scenarios in `file-selection.test.ts` to ensure correct behavior with dashboard context and edge cases.

* trigger dev v4-beta

* Retry + Self Healing (#381)

* Refactor retry logic in analyst and think-and-prep steps

Co-authored-by: dallin <dallin@buster.so>

* some fixes

* console log error

* self healing

* todos retry

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* remove lots of logs

* Remove chat streaming

* Remove chat streaming

* timeout

* Change to updated at field

* link to home

* Update timeout settings for HTTP and HTTPS agents from 20 seconds to 10 seconds for improved responsiveness.

* Add utils module and integrate message conversion in post_chat_handler

* Implement error handling for extract values (#382)

* Remove chat streaming

* Improve error handling and logging in extract values and chat title steps

Co-authored-by: dallin <dallin@buster.so>

---------

Co-authored-by: Nate Kelley <nate@buster.so>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* loading icon for buster avatar

* finalize tooltip cache

* upgrade mastra

* increase retries

* Add redo functionality for chat messages

- Introduced `redoFromMessageId` parameter in `handleExistingChat` to allow users to specify a message to redo from.
- Implemented validation to ensure the specified message belongs to the current chat.
- Added `softDeleteMessagesFromPoint` function to soft delete a message and all subsequent messages in the same chat, facilitating the redo feature.

* fix electric potential memory leak

* tooltip cache and chart cleanup

* Update bullet to be more indented

* latest version number

* add support endpoint to new server

* Fix jank in combo bar charts

* index check for dashboard

* Collapse only if there are metrics

* Is finished reasoing back

* Update dependencies and enhance chat message handling

- Upgraded `@mastra/core` to version 0.10.8 and added `node-sql-parser` at version 5.3.10 in the lock file.
- Improved integration tests for chat message redo functionality, ensuring correct behavior when deriving `chat_id` from `message_id`.
- Enhanced error handling and validation in the `initializeChat` function to manage cases where `chat_id` is not provided.

* Update pnpm-lock and enhance chat message integration tests

- Added `node-sql-parser` version 5.3.10 to dependencies and updated the lock file.
- Improved integration tests for chat message redo functionality, ensuring accurate deletion and retrieval of messages.
- Enhanced the `initializeChat` function to derive `chat_id` from `message_id` when not provided, improving error handling and validation.

* remove .env import breaking build

* add updated at to the get chat handler

* zmall runtime error fix

* permission tests passing

* return updated at on the get chat handler now

* slq parser fixes

* Implement chat access control logic and add comprehensive tests

- Developed the `canUserAccessChat` function to determine user access to chats based on direct permissions, collection permissions, creator status, and organizational roles.
- Introduced helper functions for checking permissions and retrieving chat information.
- Added integration tests to validate access control logic, covering various scenarios including direct permissions, collection permissions, and user roles.
- Created unit tests to ensure the correctness of the access control function with mocked database interactions.
- Included simple integration tests to verify functionality with existing database data.

* sql parser and int tests working.

* fix test and lint issues

* comment to kick off deployment lo

* access controls on datasets

* electric context bug fix with sql helpers.

* permission and read only

* Add lru-cache dependency and export cache management functions

- Added `lru-cache` as a dependency in the access-controls package.
- Exported new cache management functions from `chats-cached` module, including `canUserAccessChatCached`, `getCacheStats`, `resetCacheStats`, `clearCache`, `invalidateAccess`, `invalidateUserAccess`, and `invalidateChatAccess`.

* packages deploy as well

* wrong workflow lol

* Update AppVerticalCodeSplitter.tsx

* Add error handling for query run and SQL save operations

Co-authored-by: natemkelley <natemkelley@gmail.com>

* Trim whitespace from input values before sending chat prompts

Co-authored-by: natemkelley <natemkelley@gmail.com>

* type in think-and-prep

* use the cached access chat

* update package version

* new asset import message

* Error fallback for login

* Update BusterChart.BarChart.stories.tsx

* Staging changes to fix number card titles, combo chart axis, and using dynamic filters (#386)

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* db init command pass through

* combo chart fixes (#387)

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* clarifying question and connection logic

* pino pretty error fix

* clarifying is a finishing tool

* change update latest version logic

* Update support endpoint

* fixes for horizontal bar charts and added the combo chart logic to update metrics (#388)

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* permission fix on dashboard metric handlers for workspace and data admin

* Add more try catches

* Hide avatar is no more

* Horizontal bar fixes (#389)

* fixes for horizontal bar charts and added the combo chart logic to update metrics

* hopefully fixed horizontal bar charts

---------

Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>

* reasoning shimmer update

* Make the embed flow work with versions

* new account warning update

* Move support modal

* compact number for pie label

* Add final reasoning message tracking and workflow start time to chunk processor and related steps

- Introduced `finalReasoningMessage` to schemas in `analyst-step`, `mark-message-complete-step`, and `create-todos-step`.
- Updated `ChunkProcessor` to calculate and store the final reasoning message based on workflow duration.
- Enhanced various steps to utilize the new `workflowStartTime` for better tracking of execution duration.
- Improved database update logic to include `finalReasoningMessage` when applicable.

* 9 digit cutoff for pie

* trigger update

* test on mastra braintrust

* test deployment

* testing

* pnpm install

* pnpm

* node 22

* pnpm version

* trigger main

* get initial chat file

* hono main deploymenbt

* clear timeouts

* Remove console logs

* migration test to staging

* db url

* try again

* k get rid of tls var

* hmmm lets try this

* mark migrations

* fix migration file?

* drizzle-kit upgrade

* tweaks to the github actions

---------

Co-authored-by: Nate Kelley <nate@buster.so>
Co-authored-by: porter-deployment-app[bot] <87230664+porter-deployment-app[bot]@users.noreply.github.com>
Co-authored-by: Nate Kelley <133379588+nate-kelley-buster@users.noreply.github.com>
Co-authored-by: Jacob Anderson <jacobanderson@Jacobs-MacBook-Air.local>
Co-authored-by: jacob-buster <jacob@buster.so>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-07-02 14:33:40 -07:00
dal 021646ce47
snowflake issue 2025-06-25 14:14:52 -06:00
dal f7df68880e
Merge branch 'main' into staging 2025-06-24 08:25:55 -07:00
dal 9452bb548d
Merge pull request #360 from buster-so/dal/permissions-bug
refactor: update permission handling for dashboard and metric access
2025-06-24 08:24:34 -07:00
dal 2cc9e0396b
refactor: update permission handling for dashboard and metric access
- Enhanced permission logic in `get_dashboard_handler` and `get_metric_handler` to grant Owner permissions to users with WorkspaceAdmin or DataAdmin roles.
- Updated related tests to reflect the new permission structure, ensuring that admin users receive the correct access level.
- Removed unused `fastembed` dependency from multiple Cargo.toml files to streamline the project.
2025-06-24 09:23:57 -06:00
dal b8b83bc31c
Merge pull request #355 from buster-so/staging
Staging
2025-06-12 09:30:46 -07:00
dal 152b901f8f
windows update for github actions 2025-06-12 08:07:45 -06:00
dal c0394948f1
refactor: streamline Windows CLI artifact build process
- Simplified the Windows CLI artifact build workflow by optimizing the installation steps for PostgreSQL binaries.
- Adjusted environment variable handling and artifact upload paths for improved clarity and efficiency.
- Enhanced the overall structure of the build process to facilitate easier maintenance and updates.
2025-06-12 07:50:43 -06:00
dal e47ce0d842
feat: enhance Windows build process in CLI release workflow
- Added support for building and compressing the Windows CLI artifact, including the installation of PostgreSQL binaries for libpq.
- Updated the workflow to include the necessary environment variables for PostgreSQL and adjusted artifact upload paths.
- Improved the overall structure and clarity of the Windows-specific build steps.
2025-06-12 07:39:02 -06:00
dal 462b13f2fc
Merge pull request #354 from buster-so/staging
feat: implement tool result truncation and enhance data catalog search
2025-06-11 22:14:24 -07:00
dal 8848578e02
feat: implement tool result truncation and enhance data catalog search
- Added a new method to truncate previous tool results for better conversation management, allowing for cleaner interactions by limiting the number of displayed results.
- Updated the `search_data_catalog` tool to automatically truncate previous search results, ensuring that only relevant and recent data is presented to users.
- Enhanced the data catalog search functionality to load all available datasets with fresh value injection, improving the overall user experience and data accessibility.
2025-06-11 23:11:37 -06:00
dal 7a4afbcbd6
Merge pull request #352 from buster-so/staging
refactor: enhance data type handling in Redshift query processing
2025-06-08 17:05:30 -07:00
dal 7189cc0059
refactor: enhance data type handling in Redshift query processing
- Added support for "CHARACTER VARYING" in data type retrieval to improve compatibility with Redshift.
- Maintained the use of `try_get` for safer option handling and consistent data type conversion.
2025-06-07 17:50:56 -06:00
dal ffa4d5fd41
Merge pull request #351 from buster-so/staging
refactor: improve data type handling in Redshift query processing
2025-06-07 14:29:14 -07:00
dal 2f78c11cf0
refactor: improve data type handling in Redshift query processing
- Updated the data type retrieval logic to use `try_get` for safer option handling.
- Enhanced the handling of various data types, including NUMERIC, UUID, TIMESTAMP, and JSON, to ensure proper conversion and error management.
- Improved code readability by reducing redundancy in data type assignments.
2025-06-07 15:28:35 -06:00
dal 993929720e
rip out fastembed due to build errors 2025-06-03 18:01:53 -06:00
dal 5e7c8fc6b1
upgrade fastembed 2025-06-03 17:51:51 -06:00
dal 904665883e
Merge pull request #348 from buster-so/staging
Staging
2025-06-03 16:30:42 -07:00
dal 31df2e1936
dbt clean 2025-06-03 17:26:39 -06:00
dal 06da5e13cd
refactor: simplify semantic YAML path generation in CLI generate command
- Replaced complex logic for determining individual semantic YAML paths with a direct approach.
- Ensured that the output YAML files are named after the model without preserving the directory structure.
- Improved code readability and maintainability by reducing unnecessary variable assignments.
2025-06-03 17:21:13 -06:00
dal 8356f216dd
refactor: restructure SQL file processing in CLI generate command
- Updated the logic to process SQL files by iterating through projects separately.
- Enhanced path handling for SQL files based on project-specific model paths.
- Improved output directory determination for semantic models.
- Added detailed logging for project processing and model generation/update summaries.
- Consolidated counters for models generated, updated, and columns added/removed across all projects.
2025-06-03 17:16:00 -06:00
Nate Kelley 4f5584925d
Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-06-03 16:57:18 -06:00
Nate Kelley c572b7305e
remove scale on chevron hover 2025-06-03 16:50:46 -06:00
dal 1c0a1e16cc
Merge pull request #346 from buster-so/staging
Staging
2025-06-03 15:47:54 -07:00
dal 1fc442b3fe
hotfix: wildcard matching on cli generate 2025-06-03 16:47:23 -06:00
Nate Kelley 1aeec45721
Dashboard chat cards with metrics (#345)
Create chat dashboard card that can dropdown and has the metrics in it
2025-06-03 10:14:38 -06:00
Nate Kelley 2c866f14e9
Create collapse sidebar
- Created a nice little sidebar for the navigation
- Ripped out old AppSplitter in favor a new pixel based on (with better animations)
- Preserved the chat layout on page refresh
2025-06-02 22:15:59 -06:00
dal 4d441d2fe8
Merge pull request #343 from buster-so/staging
Staging
2025-05-31 07:40:07 -07:00
dal 396f17af90
Merge pull request #342 from buster-so/feature-make-recurions-configurable
feat: add support for custom environment variables in CLI commands
2025-05-31 07:39:46 -07:00
github-actions[bot] d94c178430 chore: update tag_info.json with potential release versions [skip ci] 2025-05-31 13:17:50 +00:00
github-actions[bot] d13ab4613d chore(versions): bump api to v0.2.0; bump web to v0.2.0; bump cli to v0.2.0 [skip ci] 2025-05-31 13:17:49 +00:00
dal e9a269983b
feat: add support for custom environment variables in CLI commands
- Introduced `env_vars` option in the `start` command to allow users to set environment variables in KEY=VALUE format.
- Implemented `update_arbitrary_env_vars` function to update the .env file with provided variables.
- Adjusted `setup_persistent_app_environment` to handle custom environment variables.
- Added `MAX_RECURSION` variable to .env.example and updated recursion limit logic in the agent implementation.
2025-05-31 07:15:50 -06:00
dal bee412ebfd
Merge pull request #340 from buster-so/staging
Staging
2025-05-30 16:00:41 -07:00
dal 86c275e70d
hotfix: relationship tweak for LLM 2025-05-30 16:54:49 -06:00
Nate Kelley f98e23f15f
Adjust linting (#338)
* eslint step 1

* update additional packages

* fix some linting errors

* fix some problems

* Fix some linting things
2025-05-30 13:22:56 -06:00
Nate Kelley d4567d52cb
Biome linter test (#336)
* update files for use with biom

* fix prettier formats

* minor biome fixes

* fix additional files

* update linting rules

* fix additional linting errors

* fix linting errors

* update lib

* run check in the lib direcotyr

* update some linting errors

* fix problems

* move addtional files to stricter linting

* fix imports and linting errors

* update some biome settings

* fix query parser

* quick wins

* update files

* fix addtional things

* fix context files

* update additional biome files

* fix additional files

* biome fixes

* fixin files

* fix broken

* fix additional files and problems

* fix biome buster stuff

* fix helpers and

* stricter linting

* fixed

* fix missing types

* fix linting

* remove missing imports

* update more biome test stuff

* update fixes

* update imports

* more updates

* fix some linting errors

* fix broken children as prop errors

* lint ci

* update lint check

* Update package.json

* Update next.config.mjs

* fix some broken tests

* update some tests

* chore(versions): bump api to v0.1.16; bump web to v0.1.16; bump cli to v0.1.16 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-unit-tests.yml

* fix some tests

* chore(versions): bump api to v0.1.17; bump web to v0.1.17; bump cli to v0.1.17 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* update ignore files

* chore(versions): bump api to v0.1.18; bump web to v0.1.18; bump cli to v0.1.18 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-lint.yml

* chore(versions): bump api to v0.1.19; bump web to v0.1.19; bump cli to v0.1.19 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* update boime package settings

* chore(versions): bump api to v0.1.20; bump web to v0.1.20; bump cli to v0.1.20 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* save to dropdown bug fixes

* update console logs

* update chart animation

* chore(versions): bump api to v0.1.21; bump web to v0.1.21; bump cli to v0.1.21 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* update build

* chore(versions): bump api to v0.1.22; bump web to v0.1.22; bump cli to v0.1.22 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* additinal updates for biome 2

* update imports

* chore(versions): bump api to v0.1.23; bump web to v0.1.23; bump cli to v0.1.23 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* final updates

* chore(versions): bump api to v0.1.24; bump web to v0.1.24; bump cli to v0.1.24 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update dashboard-updates.test.ts

* chore(versions): bump api to v0.1.25; bump web to v0.1.25; bump cli to v0.1.25 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* crazy fix

* chore(versions): bump api to v0.1.26; bump web to v0.1.26; bump cli to v0.1.26 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* more attempts for stable tests

* chore(versions): bump api to v0.1.27; bump web to v0.1.27; bump cli to v0.1.27 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* update tests

* split the test off

* chore(versions): bump api to v0.1.28; bump web to v0.1.28; bump cli to v0.1.28 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update pie-styling-updates.spec.ts

* Create web-e2e-tests-optimized.yml

* chore(versions): bump api to v0.1.29; bump web to v0.1.29; bump cli to v0.1.29 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* update tests

* chore(versions): bump api to v0.1.30; bump web to v0.1.30; bump cli to v0.1.30 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-e2e-tests-optimized.yml

* chore(versions): bump api to v0.1.31; bump web to v0.1.31; bump cli to v0.1.31 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-e2e-tests-optimized.yml

* chore(versions): bump api to v0.1.32; bump web to v0.1.32; bump cli to v0.1.32 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-e2e-tests-optimized.yml

* chore(versions): bump api to v0.1.33; bump web to v0.1.33; bump cli to v0.1.33 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-e2e-tests-optimized.yml

* chore(versions): bump api to v0.1.34; bump web to v0.1.34; bump cli to v0.1.34 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-e2e-tests-optimized.yml

* Update web-e2e-tests-optimized.yml

* Revert "Update web-e2e-tests-optimized.yml"

This reverts commit dfc9263a26.

* Update web-e2e-tests-optimized.yml

* chore(versions): bump api to v0.1.35; bump web to v0.1.35; bump cli to v0.1.35 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

* Update web-e2e-tests-optimized.yml

* chore(versions): bump api to v0.1.36; bump web to v0.1.36; bump cli to v0.1.36 [skip ci]

* chore: update tag_info.json with potential release versions [skip ci]

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-05-30 11:16:48 -06:00
Nate Kelley 85102bda90
Merge pull request #335 from buster-so/nate/vitest
Nate/vitest
2025-05-28 13:50:09 -06:00
github-actions[bot] d453f249cf chore: update tag_info.json with potential release versions [skip ci] 2025-05-28 19:42:42 +00:00
github-actions[bot] 572976cc23 chore(versions): bump api to v0.1.15; bump web to v0.1.15; bump cli to v0.1.15 [skip ci] 2025-05-28 19:42:41 +00:00
Nate Kelley d288d40841
Update vitest.config.ts 2025-05-28 13:40:48 -06:00
Nate Kelley f4900d93b5
Merge branch 'nate/vitest' of https://github.com/buster-so/buster into nate/vitest 2025-05-28 13:31:39 -06:00
Nate Kelley 9f16b4d1dd
Update DropdownBase.tsx 2025-05-28 13:26:51 -06:00
github-actions[bot] 835063a44e chore: update tag_info.json with potential release versions [skip ci] 2025-05-28 19:26:43 +00:00
github-actions[bot] 26d7b810fa chore(versions): bump api to v0.1.14; bump web to v0.1.14; bump cli to v0.1.14 [skip ci] 2025-05-28 19:26:43 +00:00
Nate Kelley b19715e62c
Merge branch 'staging' into nate/vitest 2025-05-28 13:24:54 -06:00
Nate Kelley 49adaa1f7e
Merge pull request #334 from buster-so/big-nate/bus-1174-make-zod-or-valibot-types-for-api-protocol-types
Big nate/bus 1174 make zod or valibot types for api protocol types
2025-05-28 13:24:30 -06:00
github-actions[bot] 1d88062d91 chore: update tag_info.json with potential release versions [skip ci] 2025-05-28 19:23:35 +00:00
github-actions[bot] a006f5fa6a chore(versions): bump api to v0.1.13; bump web to v0.1.13; bump cli to v0.1.13 [skip ci] 2025-05-28 19:23:35 +00:00