Commit Graph

1398 Commits

Author SHA1 Message Date
dal aa6fbfd437
streaming fix on non done tool responses 2025-09-26 10:47:04 -06:00
dal f0686fa54e
Merge pull request #1169 from buster-so/dallin-bus-1938-report-needs-to-cascade-up-if-metric-modified
sql dialect and tool deltas
2025-09-26 10:41:42 -06:00
dal 07befc89a6
index eexport 2025-09-26 10:33:07 -06:00
dal c98e4a0e7b
Merge pull request #1174 from buster-so/memory-optimization-tools-cleanup
feat: add memory optimization for AI tools and LRU cache
2025-09-26 10:32:43 -06:00
dal 6fafd732be
expot 2025-09-26 10:32:06 -06:00
dal c427f5ae78
get asset latest version 2025-09-26 10:31:42 -06:00
dal af243099ea
try again 2025-09-26 10:24:39 -06:00
Wells Bunker f47bfe2418
fix bug on processing array input for DELETE approved-domains 2025-09-26 10:22:14 -06:00
dal 408caf5642
Merge remote-tracking branch 'origin/staging' into dallin-bus-1938-report-needs-to-cascade-up-if-metric-modified 2025-09-26 10:17:44 -06:00
dal 6d6c531d5c
fix most recent version on the chat 2025-09-26 10:15:52 -06:00
dal d7eab3023c
lint fixes 2025-09-26 10:06:14 -06:00
Blake Rouse 014c39e1d0 edited-final-todo-item 2025-09-26 10:04:42 -06:00
dal de01a39c5c
feat: add memory optimization for AI tools and LRU cache
- Add cleanupState helper to clear tool state after execution
- Update all tool execute functions to clean up state after completion
- Reduce LRU cache from 500 to 10 entries (90% memory reduction)
- Extend cache TTL to 20 minutes for long-running streams
- Prevent memory leaks during 15-minute streaming sessions

This significantly reduces memory usage during long AI streaming sessions
by ensuring tool states are cleared after execution and limiting cache size.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-26 10:02:49 -06:00
Wells Bunker aed9732302
adding optional password on metric_file/[id]/data endpoint 2025-09-26 09:41:14 -06:00
dal 87017115ba
sql dialect and tool deltas 2025-09-26 09:06:03 -06:00
Blake Rouse 45d3d8a027 python-limitation-removed 2025-09-26 08:02:01 -06:00
Nate Kelley 2fc4ec1925
Add rust fix 2025-09-25 22:33:32 -06:00
Nate Kelley 3c11dbf291
lint fixes 2025-09-25 22:26:42 -06:00
Nate Kelley efe668c405
start adding color by drag and drop 2025-09-25 22:10:12 -06:00
Nate Kelley 519f48929f
added different colorBy config 2025-09-25 21:29:36 -06:00
Nate Kelley 1ac26de837
Merge branch 'staging' into big-nate-bus-1830-ability-to-apply-color-theme-by-a-category 2025-09-25 21:07:23 -06:00
dal c0ca22ad8c
Merge remote-tracking branch 'origin/staging' into dallin-bus-1937-the-createmetrics-and-createreports-tool-calls-are-in-an 2025-09-25 18:38:52 -06:00
dal 8f314268e3
fixed the streaming loading infinite state 2025-09-25 18:38:46 -06:00
Wells Bunker 32705b3048
fixing public access for metric_files/data 2025-09-25 17:43:29 -06:00
Nate Kelley b62e66f64a
Merge branch 'staging' into big-nate-bus-1830-ability-to-apply-color-theme-by-a-category 2025-09-25 17:06:55 -06:00
Blake Rouse 600fabc144 hot-fixes-baby 2025-09-25 16:26:30 -06:00
wellsbunk5 dadfd87dbf
Merge pull request #1148 from buster-so/wells-bus-1906-report-should-send-metrics
adding metrics to reports/[id] endpoint
2025-09-25 12:54:22 -06:00
dal aa6523f8e5
fix prompts add tests 2025-09-25 12:52:06 -06:00
Wells Bunker 2d2a0f1476
adding metrics to reports/[id] endpoint 2025-09-25 12:46:39 -06:00
dal afe66b43d9
generate chat title to haiku 2025-09-25 12:37:19 -06:00
Nate Kelley 63e374e422
Merge pull request #1145 from buster-so/nate/better-table-copy-paste
Nate/better table copy paste
2025-09-25 12:21:44 -06:00
Blake Rouse 8b8b681a38 added-to-other-system-prompts 2025-09-25 12:14:11 -06:00
Blake Rouse d803233402 hot-fixes-for-combo-charts 2025-09-25 12:11:51 -06:00
Nate Kelley dae01a103c
remove throw pages 2025-09-25 11:54:52 -06:00
wellsbunk5 d3e480b133
Merge pull request #1144 from buster-so/wells-bus-1849-migrate-frontend-to-use-v2chats-get-endpoint
migrate /chats to use the v2 endpoint from the frontend
2025-09-25 11:53:20 -06:00
Wells Bunker 7bcae1e5d5
migrate /chats to use the v2 endpoint from the frontend 2025-09-25 11:44:35 -06:00
Blake Rouse 4e322f2eed
Merge pull request #1143 from buster-so/time-frame-label-hot-fixes
metric-time-frame-hot-fixes
2025-09-25 11:42:07 -06:00
Blake Rouse 2ecb1f5a2d metric-time-frame-hot-fixes 2025-09-25 11:38:09 -06:00
Nate Kelley bf1b08344c
table content copy 2025-09-25 11:18:44 -06:00
Nate Kelley 113da029fe
Merge branch 'wells-bus-1945-search-endpoint-should-include-updated-at' into big-nate-bus-1935-copying-project-ids-from-buster-reports-results-in-empty 2025-09-25 10:28:56 -06:00
Nate Kelley 9b35106a71
switch search endpoint 2025-09-25 10:28:10 -06:00
Wells Bunker 2960aa58bb
adding updatedAt to the search endpoint 2025-09-25 10:26:26 -06:00
Nate Kelley 6309dff5f7
Merge pull request #1133 from buster-so/big-nate-bus-1933-negative-data-being-drawn-outside-of-chart
Big nate bus 1933 negative data being drawn outside of chart
2025-09-24 22:04:05 -06:00
dal 446a32f6b6
Revert "merge"
This reverts commit fb6edc3c8d, reversing
changes made to af7b1fe329.
2025-09-24 21:43:54 -06:00
dal d0df2ab3db
Merge pull request #1129 from buster-so/dallin-bus-1930-modifying-metrics-from-an-existing-report
version on report file cache
2025-09-24 21:41:02 -06:00
dal fb6edc3c8d
merge 2025-09-24 21:35:50 -06:00
dal 9d21f7cad0
fixes 2025-09-24 21:33:11 -06:00
Nate Kelley 678ee78e84
move dashboard config to the server 2025-09-24 19:44:14 -06:00
Wells Bunker 8edd2cc862
test 2025-09-24 17:43:25 -06:00
Nate Kelley 299ed5d697
move supabase start to its own commands 2025-09-24 16:38:15 -06:00
Wells Bunker 7d89a6f82d
test 2025-09-24 16:34:52 -06:00
dal 2a8923374a
version on report file cache 2025-09-24 16:09:06 -06:00
Wells Bunker 9a046f7911
add metadata to generate suggested prompts 2025-09-24 15:10:11 -06:00
dal e46da44445
make bedrock first choice then anthropic then vertex 2025-09-24 14:49:39 -06:00
wellsbunk5 134fd2d987
Merge pull request #1125 from buster-so/wells-bus-1926-fix-report_file-get-endpoint-to-return-correct-permission-on
Get correct permission for report_file
2025-09-24 14:41:16 -06:00
Wells Bunker 5c9d47a082
Get correct permission for report_file 2025-09-24 14:32:50 -06:00
dal 2e4e4a34ba
Merge pull request #1122 from buster-so/dallin-bus-1925-metric-file-sneaks-into-responses
fix metric sneaking in
2025-09-24 14:10:37 -06:00
dal d29f077bdf
fix metric sneaking in 2025-09-24 13:58:23 -06:00
wellsbunk5 e816fad04b
Merge pull request #1117 from buster-so/wells-bus-1921-make-permission-look-for-public
check for public permissions on any check
2025-09-24 13:50:37 -06:00
Wells Bunker 68043841b3
tests 2025-09-24 13:42:45 -06:00
dal a29e6463cf
Merge pull request #1116 from buster-so/dallin-bus-1886-another-overloaded-error
Dallin-bus-1886-another-overloaded-error
2025-09-24 13:28:28 -06:00
dal a538afe3dd
Merge pull request #1118 from buster-so/jacob-bus-1922-dbinit-seed-script-is-broken
Attempted fix for seed script
2025-09-24 13:26:38 -06:00
jacob-buster a94cb541a1 Attempted fix for seed script 2025-09-24 13:20:25 -06:00
Wells Bunker df07d9fdba
merge staging 2025-09-24 13:19:03 -06:00
Wells Bunker 9927808704
check for public permissions on any check 2025-09-24 13:17:08 -06:00
Wells Bunker 8b981a47f6
remove extra file 2025-09-24 12:35:04 -06:00
Wells Bunker 020f0eae5b
fix default_openai_options 2025-09-24 12:31:57 -06:00
dal 8ff67d62f2
better error handling and logging on streams 2025-09-24 09:53:55 -06:00
dal 030d355f87
Merge pull request #1105 from buster-so/dallin-bus-1910-streaming-broke-towards-the-end-of-its-research
Potential fix on report stream being cut early
2025-09-24 08:01:02 -06:00
dal 89813ef82e
Potential fix on report stream being cut early 2025-09-24 07:50:48 -06:00
dal 08a026189c
Merge pull request #1104 from buster-so/dallin-bus-1894-chats-are-returning-all-individual-metrics-that-were-saved
Fix on metrics being sent up in response messages
2025-09-24 07:46:19 -06:00
dal a2d64ec754
Fix on metrics being sent up in response messages 2025-09-24 07:35:42 -06:00
dal dbc1e7faf7
pull in staging turbo files 2025-09-24 07:08:22 -06:00
dal 8cb38428fe
Merge remote-tracking branch 'origin/staging' into dallin-bus-1864-staging-env-setup 2025-09-24 06:13:20 -06:00
Nate Kelley d539d7e190
added double check for root turbo.json 2025-09-23 22:50:36 -06:00
Nate Kelley de54e28f2e
Added output for the builds 2025-09-23 22:40:45 -06:00
Nate Kelley 6748819e39
error handling for auth login 2025-09-23 21:06:40 -06:00
dal 0ea0b103f7
turborepo build 2025-09-23 17:13:44 -06:00
Nate Kelley 7458b0c227
Merge branch 'staging' into big-nate-bus-1891-tables-on-reports-should-hug-rows-have-a-max-height 2025-09-23 16:33:53 -06:00
Nate Kelley 615a261f57
set default quarter 2025-09-23 16:27:40 -06:00
Blake Rouse 804a90ca23
Merge pull request #1093 from buster-so/key-finding-llm-tweak
Key finding llm tweak
2025-09-23 16:15:45 -06:00
Blake Rouse f44d809a53 key finding titles hot fix 2025-09-23 16:13:06 -06:00
Blake Rouse fed8f3082c Update create-reports-tool standard description for key finding LLM tweak 2025-09-23 16:12:11 -06:00
Wells Bunker b4fb66bc62
fix migration 2025-09-23 16:06:53 -06:00
Blake Rouse c81c11a374
Merge pull request #1089 from buster-so/todo-list-fixes
Help todo list not freak out on ridge-type requests
2025-09-23 15:50:18 -06:00
Blake Rouse b7edce50d1 Help todo list not freak out on ridge-type requests 2025-09-23 15:45:08 -06:00
Nate Kelley 55394967a5
Merge pull request #1070 from buster-so/jacob-bus-1829-100-stacked-bar-chart-isnt-formatted-correctly
If the Y-axis is a % for a stacked chart, auto flip it to a percentag…
2025-09-23 15:43:19 -06:00
Blake Rouse 8c6ef49415
Merge pull request #1087 from buster-so/quick-prompt-changes
date truncation and sign in page update
2025-09-23 15:38:43 -06:00
Blake Rouse 2858a3dfd5 date truncation and sign in page update 2025-09-23 15:31:25 -06:00
dal 77f6b41331
Merge pull request #1085 from buster-so/dallin-bus-1898-metric-download-endpoint-should-accept-report-id
dallin bus 1898 metric download endpoint should accept report id
2025-09-23 15:27:36 -06:00
dal edd1de9f34
metric download query params for report_file_id and metric_version_number 2025-09-23 15:13:38 -06:00
wellsbunk5 55c68720bb
Merge pull request #1082 from buster-so/fixSlackUrlBuilder
Fix the url builder for slack messages to have correct route
2025-09-23 14:38:39 -06:00
Wells Bunker 2b6cdbe476
Fix the url builder for slack messages to have correct route 2025-09-23 14:29:57 -06:00
dal b5041606cd
Merge remote-tracking branch 'origin/big-nate-bus-1895-unify-download-csv-with-the-5000-records-logic' into dallin-bus-1898-metric-download-endpoint-should-accept-report-id 2025-09-23 14:04:56 -06:00
Nate Kelley 6d4f293a2f
download data query params 2025-09-23 13:41:17 -06:00
Nate Kelley d9cde77d0f
download params 2025-09-23 13:35:36 -06:00
Blake Rouse f5042896ed Update analyst agent prompt and metric tool description 2025-09-23 13:15:54 -06:00
Nate Kelley 523601b8c5
Merge branch 'staging' into quick-prompt-changes 2025-09-23 13:01:47 -06:00
Nate Kelley c93b2cd96e
Merge branch 'staging' into jacob-bus-1829-100-stacked-bar-chart-isnt-formatted-correctly 2025-09-23 13:01:41 -06:00
Nate Kelley e517242995
fix busted unit tests 2025-09-23 13:00:33 -06:00
Blake Rouse cc13d60d04 quick-prompt-changes 2025-09-23 12:57:20 -06:00
Blake Rouse 54f95c932f bulk-staging-changes-babyyyy 2025-09-23 12:10:07 -06:00
Blake Rouse acf67fb8e8 Update analyst agent prompt and create reports tool description 2025-09-23 11:29:04 -06:00
Nate Kelley 0fd7ef7d53
Merge pull request #1069 from buster-so/nate/start-commands
Add turbo start commands
2025-09-23 11:18:48 -06:00
Nate Kelley 87a515a95f
add supabase app to workspace 2025-09-23 11:06:12 -06:00
jacob-buster d02ef8459f If the Y-axis is a % for a stacked chart, auto flip it to a percentage-stack 2025-09-23 10:29:09 -06:00
wellsbunk5 9eae2f6507
Merge pull request #1068 from buster-so/wells-bus-1881-running-into-prompt-issues-prompt-too-long
Wells bus 1881 running into prompt issues prompt too long
2025-09-23 10:19:07 -06:00
Wells Bunker aec7443ca9
Change prestep process to use openai and filter to only user and doneTool messages 2025-09-23 10:13:28 -06:00
Nate Kelley 57711b146b
move supabase to be an app 2025-09-23 09:52:33 -06:00
dal 0a45fbd1d8
Merge pull request #1067 from buster-so/jacob-bus-1750-hardcoding-values-in-metrics
Re-pushing hardcoded data fix
2025-09-23 09:49:23 -06:00
jacob-buster 912e09eb14 Repushing hardcoded data fix 2025-09-23 09:42:19 -06:00
dal eeeec56bae
Add in more tests and catch multiple report metric files 2025-09-23 09:31:43 -06:00
Blake Rouse 1bd582b5ff Update create-reports-tool investigation description 2025-09-23 08:51:18 -06:00
Blake Rouse 7ce07c98ea Update think-and-prep-agent investigation prompt 2025-09-23 08:48:35 -06:00
Blake Rouse 1977d50a8b Merge remote-tracking branch 'origin/staging' into feature/update-create-reports-tool-prompts 2025-09-23 08:42:36 -06:00
Blake Rouse 61f7743d19 Update agent prompts and tool descriptions for improved report creation
- Enhanced analyst agent prompt with better structured analysis guidance
- Improved think-and-prep agent investigation prompt for more thorough data exploration
- Updated create-reports-tool descriptions for clearer functionality and usage
2025-09-23 08:36:46 -06:00
wellsbunk5 48b0c5adb4
Merge pull request #1049 from buster-so/wells-bus-1827-add-messages-back-into-the-v2-search
Wells bus 1827 add messages back into the v2 search
2025-09-22 17:25:36 -06:00
Wells Bunker 9d01603aca
Searchs messages and report content now 2025-09-22 17:21:04 -06:00
dal ab8db11332
blake routing changes 2025-09-22 17:10:26 -06:00
dal 1b23afc705
merge staging 2025-09-22 14:23:23 -06:00
dal 2fc673dbbe
dynamic report tool description 2025-09-22 14:22:51 -06:00
dal fc8e4ab5c6
Revert prompt changes from commit 18b4d12c0
Reverting Blake Rouse's prompt improvements from the merge commit #1029
- analyst-agent-prompt.txt
- think-and-prep-agent-investigation-prompt.txt
- think-and-prep-agent-standard-prompt.txt
- create-reports-tool-description.txt
2025-09-22 13:52:02 -06:00
wellsbunk5 483570278c
Merge pull request #1040 from buster-so/fixMetricFileCascadingPermissionsFromReports
Fix metric_file permissions not cascading from report_files
2025-09-22 13:46:13 -06:00
dal 9e0cce2c59
Merge pull request #1039 from buster-so/dallin-bus-1853-report-creation-stuck-in-progress-despite-final-response
dallin bus 1853 report creation stuck in progress despite final response
2025-09-22 13:42:31 -06:00
Wells Bunker 1646e37540
Fix metric_file permissions not cascading from report_files 2025-09-22 13:40:46 -06:00
dal 73746af9fc
Merge pull request #1038 from buster-so/dallin-bus-1872-dashboard-somehow-had-null-version-in-its-version-history
dashboard version fix
2025-09-22 13:40:38 -06:00
dal a7b307a460
report cut off fix 2025-09-22 13:38:27 -06:00
dal cb17d9b167
dashboard version fix 2025-09-22 13:35:54 -06:00
Nate Kelley 5ecf0400ed
Update storage factory test to remove r2 bucket 2025-09-22 13:21:47 -06:00
Blake Rouse 17a3e143ad Update think-and-prep-agent investigation prompt
- Further refinements to think-and-prep-agent-investigation-prompt.txt
2025-09-22 13:14:52 -06:00
Blake Rouse 3c6e99b87d Update agent prompts
- Updated analyst-agent-prompt.txt
- Updated think-and-prep-agent-investigation-prompt.txt
- Updated think-and-prep-agent-standard-prompt.txt
2025-09-22 13:12:42 -06:00
dal b8b2526348
Merge remote-tracking branch 'origin/staging' into dallin-bus-1853-report-creation-stuck-in-progress-despite-final-response 2025-09-22 13:02:29 -06:00
dal 0a430bef5b
report final update fix 2025-09-22 12:59:59 -06:00
dal 7638d1650f
change report to be single entry 2025-09-22 12:57:23 -06:00
Blake Rouse 4510ac43c7 Update create reports tool prompts and descriptions
- Split create-reports-tool-description.txt into separate standard and investigation descriptions
- Updated analyst-agent-prompt.txt
- Added create-reports-tool-investigation-description.txt for investigation-specific prompts
- Added create-reports-tool-standard-description for standard prompts
2025-09-22 12:01:52 -06:00
dal d6d5fd031d
get rid of 1m context header on chat titel 2025-09-22 11:54:09 -06:00
Blake Rouse 8c563490bc
Update packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent-investigation-prompt.txt
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-09-22 10:20:35 -06:00
Blake Rouse 09554bdb93
Update packages/ai/src/tools/visualization-tools/reports/create-reports-tool/create-reports-tool-description.txt
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-09-22 10:20:27 -06:00
Blake Rouse c0c6d8ee4c
Update packages/ai/src/tools/visualization-tools/reports/create-reports-tool/create-reports-tool-description.txt
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-09-22 10:20:21 -06:00
Blake Rouse 6dfbb1f66e
Update packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent-investigation-prompt.txt
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-09-22 10:20:10 -06:00
Blake Rouse b199a7d74c Improve AI agent and tool prompts
- Update analyst agent prompt for better analysis guidance
- Enhance think-and-prep agent prompts (standard and investigation)
- Refine create-reports-tool description for clearer instructions
2025-09-22 10:17:10 -06:00
dal 651af9de4e
report update fixes 2025-09-22 09:47:12 -06:00
dal f9c5253f5d
fix lint 2025-09-22 09:46:37 -06:00
dal ddc9748ad8
merge staging 2025-09-22 09:35:24 -06:00
dal 905ef3509f
sql dialect specific guidance 2025-09-22 09:11:50 -06:00
dal 0cc6fb04b0
merge staging 2025-09-22 09:02:46 -06:00
dal 1adad1b6e9
ssl through url 2025-09-22 09:01:09 -06:00
dal e68032ab8d
lint errors 2025-09-22 08:59:25 -06:00
dal 83aca9300e
percentage instruction fix so llm is better at them 2025-09-22 08:42:35 -06:00
dal e63fd79df5
database ssl connection fix 2025-09-22 08:32:06 -06:00