Commit Graph

599 Commits

Author SHA1 Message Date
Nate Kelley 7d7fa078a2
move to shiki 2025-07-22 15:47:25 -06:00
Nate Kelley 8c43acc6ad
Merge branch 'staging' into devin/BUS-1445-1752897550 2025-07-22 13:49:23 -06:00
Nate Kelley 2dca700dcf
Merge branch 'staging' into devin/BUS-1445-1752897550 2025-07-22 13:48:03 -06:00
Nate Kelley f7ccb090f6
Import type only 2025-07-22 13:45:59 -06:00
Nate Kelley 455bc86b26
fix broken unit tests 2025-07-22 13:36:05 -06:00
Nate Kelley 130ac1da31
simplify packages 2025-07-22 13:21:49 -06:00
Nate Kelley a9d6dae0f7
update chartjs to be more dynamic for faster page loads 2025-07-22 13:11:55 -06:00
Nate Kelley d27e0030b5
dynamic imports for chart 2025-07-22 12:47:05 -06:00
Nate Kelley 0fa8e76ff7
Merge branch 'staging' into devin/BUS-1459-1752941309 2025-07-22 12:26:14 -06:00
Nate Kelley c49bdd2426
fix some broken unit tests 2025-07-22 12:14:55 -06:00
Nate Kelley d3bfcbca1b
reroute to asset page check 2025-07-22 11:34:43 -06:00
Nate Kelley 4e3b0004e6
fix unit tests 2025-07-22 11:16:43 -06:00
Devin AI d57a24e6db feat: add optional next parameter to BusterAuthRoutesWithArgs for type safety
- Follow BusterAppRoutesWithArgs pattern for optional parameters
- Enable type-safe redirect URL parameter in AUTH_LOGIN route

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-22 16:54:17 +00:00
Devin AI 82d75da0a7 feat: update AppNoPageAccess to show Login for unauthenticated users and embed pages
- Add authentication state detection using useSupabaseContext
- Detect embed page context using window.location.pathname
- Show 'Login' button with redirect parameter for unauthenticated users or embed pages
- Keep 'Go home' button for authenticated users without asset access
- Include current URL as redirect parameter in login link

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-22 16:54:17 +00:00
Nate Kelley cd173c4fd4
Create assetReroutes.test.ts 2025-07-22 10:49:05 -06:00
Nate Kelley 9b02f11da5
Merge branch 'devin/BUS-1455-1752897143' of https://github.com/buster-so/buster into devin/BUS-1455-1752897143 2025-07-22 10:40:28 -06:00
Nate Kelley 3680285cd9
fix duplicate redirect logic 2025-07-22 10:39:53 -06:00
Devin AI 286c51eb0f Merge branch 'devin/BUS-1455-1752897143' of https://git-manager.devin.ai/proxy/github.com/buster-so/buster into devin/BUS-1455-1752897143 2025-07-22 16:39:06 +00:00
Devin AI d9c847c632 fix: resolve Next.js build error with useSearchParams in LoginForm
- Update login page to be server component that extracts searchParams
- Pass redirectTo as prop to LoginForm instead of using useSearchParams
- Add helper function to reduce code duplication in middleware
- Add URL validation in layout component as suggested in PR comments
- Follow Next.js App Router best practices for server/client components

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-22 16:38:44 +00:00
Nate Kelley 64cdf49d5b
Merge branch 'staging' into devin/BUS-1455-1752897143 2025-07-22 10:17:46 -06:00
Nate Kelley f81736c4c4
Update animation name 2025-07-22 09:51:56 -06:00
Nate Kelley 3638d73547
force the y on package 2025-07-22 09:45:46 -06:00
Nate Kelley ff45432c4e
Merge branch 'staging' into big-nate/bus-1376-make-streaming-individual-words-use-the-streaming-affect 2025-07-22 09:38:10 -06:00
Nate Kelley b618bf53fa
Remove unused animation prop 2025-07-22 09:27:03 -06:00
Nate Kelley ffc255c5d6
Update animation to use css vars 2025-07-22 09:26:04 -06:00
dal fc8ac85280
Merge branch 'staging' into devin/BUS-1465-1753085075 2025-07-22 09:12:05 -06:00
Nate Kelley 1f4ceea012
change is stream finshed prop 2025-07-22 09:11:46 -06:00
dal e1a60bdf11
build fixes 2025-07-22 09:11:36 -06:00
Nate Kelley 0d74bd7f79
Update apps/web/src/components/features/reasoning/ReasoningFileCode.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-22 09:08:06 -06:00
Nate Kelley 0c034d0926
fix small linting error 2025-07-22 09:06:57 -06:00
Nate Kelley 3199b38413
Merge branch 'staging' into devin/BUS-1477-1753139868 2025-07-22 09:02:36 -06:00
dal 43f88dd3a4
Merge pull request #580 from buster-so/devin/BUS-1468-1753084167
feat: implement idle tool for agent system (BUS-1468)
2025-07-22 08:44:59 -06:00
dal 8bfb6ff79b
trigger dependency updates 2025-07-22 08:39:00 -06:00
dal 6e626c2d2b
added in the itertools 2025-07-22 08:20:45 -06:00
Devin AI 64af03809c Remove custom connect_timeout parameter from Redshift connection
- Remove custom .options([("connect_timeout", "120")]) parameter
- Keep existing .acquire_timeout(Duration::from_secs(120)) which uses proper SDK methods
- This allows the SDK to handle connection timeouts using its default mechanisms

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-22 13:34:33 +00:00
Devin AI 1820dd6842 Implement consistent email sorting for individual_permissions arrays
- Backend: Add itertools imports and case-insensitive email sorting to collections, dashboards, and metrics handlers
- Frontend: Add email sorting to React Query mutation onMutate callbacks for share/unshare operations
- Ensures consistent alphabetical ordering by email across API responses and UI state
- Addresses BUS-1477 requirements for predictable individual_permissions ordering

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-22 12:41:40 +00:00
dal 9b9914cd70
build fixes 2025-07-21 17:38:37 -06:00
dal cb3dd968e3
slack markdown fixes 2025-07-21 17:35:58 -06:00
Devin AI 5082831630 Add consistent ordering to individual_permissions queries
- Add .order_by(users::email) to individual_permissions_query in dashboard handler
- Add .order_by(users::email) to individual_permissions_query in metrics handler
- Add .order_by(users::email) to individual_permissions_query in collections handler
- Ensures consistent alphabetical ordering by email across all endpoints

Fixes BUS-1477

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-21 23:17:59 +00:00
dal a7e023ff6f
Merge pull request #588 from buster-so/dallin/bus-1474-investigate-redshift-connection-timeout-issues-with
increase timeouts and a few lint fixes
2025-07-21 16:39:40 -06:00
dal c66c8b910b
here we go agian 2025-07-21 16:38:58 -06:00
dal 0f0c733567
boom frozen 2025-07-21 16:34:33 -06:00
dal cf2ec2b02a
please 2025-07-21 16:27:15 -06:00
Nate Kelley 0eaeb3f12f
Merge pull request #589 from buster-so/cursor/centralize-environment-variables-with-turbo-1ef2
Cursor/centralize environment variables with turbo 1ef2
2025-07-21 16:11:43 -06:00
Nate Kelley 1458d02857
Merge branch 'staging' into cursor/centralize-environment-variables-with-turbo-1ef2 2025-07-21 16:11:26 -06:00
dal 1fa75800fc
unknwon fix and build error 2025-07-21 16:09:39 -06:00
Nate Kelley 8ee892bf2a
Use tsx and .ts files for validation 2025-07-21 16:07:14 -06:00
dal 58eb9e8234
no frozen lockfile 2025-07-21 16:04:00 -06:00
Nate Kelley 3f8b05182d
update server to use tsx 2025-07-21 16:03:02 -06:00
Nate Kelley 4418f4991b
use a shared env validation method 2025-07-21 16:00:10 -06:00
dal d1ab09999f
update so rust build works 2025-07-21 15:46:43 -06:00
Nate Kelley bebdcdc347
Update list invlidation logic 2025-07-21 15:44:08 -06:00
Nate Kelley 4460e4934b
Merge branch 'staging' into devin/BUS-1447-1752896644 2025-07-21 15:40:34 -06:00
dal 64992930a4
increase timeouts and a few lint fixes 2025-07-21 15:39:27 -06:00
Nate Kelley f4b24500e1
check for new chats update 2025-07-21 15:39:14 -06:00
dal 0feb690bbe
try again 2025-07-21 15:19:38 -06:00
dal ae96e2f8b1
docker file stuff 2025-07-21 15:05:33 -06:00
Nate Kelley f9ef8bd1ec
Merge branch 'staging' into big-nate/bus-1376-make-streaming-individual-words-use-the-streaming-affect 2025-07-21 14:48:55 -06:00
Nate Kelley 9d6d613334
markdown smoother stream 2025-07-21 14:43:06 -06:00
Nate Kelley a569460d17
update folder locatoins for components 2025-07-21 13:03:02 -06:00
Nate Kelley 06492d0a9d
update imports for streamable markdown 2025-07-21 12:38:14 -06:00
Nate Kelley ec977bf538
blur in animations are complete 2025-07-21 12:36:05 -06:00
dal cee4483751
message post processing bugfix no longer loading duplicate conversation history 2025-07-21 12:34:34 -06:00
Nate Kelley a2ae1b8b38
update animation lifecycle 2025-07-21 12:21:07 -06:00
Devin AI 5ca93b6de5 revert: remove Rust implementation, keep TypeScript-only idle tool
- Remove idle.rs file completely
- Revert all agent mode files to remove Idle tool integration
- Revert mod.rs to remove idle module
- Keep TypeScript implementation in packages/ai:
  - idle-tool.ts
  - index.ts export
  - analyst-agent.ts integration

Addresses user feedback to implement idle tool only in TypeScript packages/ai

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 18:09:19 +00:00
Nate Kelley d437535d50
update to streaming 2025-07-21 11:34:27 -06:00
Nate Kelley ededd23024
fix streaming bugs 2025-07-21 10:22:51 -06:00
Nate Kelley 7ac895d064
Merge branch 'staging' into big-nate/bus-1376-make-streaming-individual-words-use-the-streaming-affect 2025-07-21 08:32:58 -06:00
Nate Kelley a8c18844ee
fix broken avatar colors 2025-07-21 08:32:39 -06:00
Devin AI 6f6e3ffbc9 feat: implement idle tool for agent system
- Add Rust implementation in idle.rs by copying from done.rs
- Add TypeScript implementation in idle-tool.ts by copying from done-tool.ts
- Update all agent modes (review, analysis, follow_up_initialization, planning) to include idle tool
- Update analyst-agent.ts to include idleTool
- Add idle tool to terminating_tools lists
- Export idle module and tool from respective index files

Addresses BUS-1468: idle tool indicates agent finished current work but available for future tasks

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 07:54:43 +00:00
dal fdb46bba29
electric helpers 2025-07-21 01:37:41 -06:00
dal 5ca40d032b
Enhance unit tests by mocking database interactions and updating organization roles to 'querier' in security-related test files. 2025-07-21 01:37:32 -06:00
dal 5157b4a44a
revert env.mjs back 2025-07-21 01:08:30 -06:00
dal 6ae9f6c3cc
try again 2025-07-21 01:00:08 -06:00
dal 9932261bb5
tyr again with skipping for env.mjs 2025-07-21 00:56:20 -06:00
dal 84be211028
skip validate env on ci 2025-07-21 00:50:53 -06:00
dal 06249f5e8a
rearrange and get some things right for the initial read file tool 2025-07-20 23:04:11 -06:00
Nate Kelley 53bfc42902
ensure list items are aligned correctly 2025-07-19 23:27:02 -06:00
Nate Kelley 34e128874a
Remove height animation from reasoning 2025-07-19 22:57:58 -06:00
Nate Kelley f96d4f42c6
fix markdown with undefiend classes 2025-07-19 22:57:38 -06:00
Nate Kelley adf6d06995
pre cannot be a decendant of p 2025-07-19 22:31:47 -06:00
Nate Kelley 3a78dc0514
Merge branch 'staging' into big-nate/bus-1376-make-streaming-individual-words-use-the-streaming-affect 2025-07-19 22:27:33 -06:00
Nate Kelley 2185d4c478
prefetch chats route as well 2025-07-19 22:26:48 -06:00
Nate Kelley 620ff75876
devin improvements to styles 2025-07-19 22:17:12 -06:00
Devin AI cd90bdd998 fix: revert icon barrel exports to maintain compatibility
Reverted explicit icon exports back to export * pattern to ensure
all icon imports continue working while maintaining bundle optimization
benefits from other changes.

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-19 16:34:22 +00:00
Devin AI 4b21570145 feat: optimize web app bundle size
- Fix Next.js config to enable bundle analyzer
- Replace barrel file exports with explicit named exports for better tree-shaking
- Create dynamic Chart.js component to reduce initial bundle size
- Optimize icon library exports to only include commonly used icons
- Update imports to use dynamic loading for Chart.js components

Bundle analyzer reports generated showing optimization impact.
Addresses BUS-1459.

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-19 16:19:11 +00:00
dal d3e2577d13
New polling logic 2025-07-18 23:30:28 -06:00
dal 18dde9e40b
concurrency and queuing 2025-07-18 23:19:48 -06:00
dal 6e65bec499
Enhance task triggering by adding concurrency key for sequential processing
- Updated `createChatHandler` to include a `concurrencyKey` when triggering the `analyst-agent-task`, ensuring tasks are processed sequentially per chat.
- Adjusted related test cases to verify the inclusion of the `concurrencyKey`.
- Integrated the `concurrencyKey` in the `slackAgentTask` to manage task queuing and notify users when tasks are queued.
2025-07-18 23:01:32 -06:00
dal 8daceae2e3
Add duplicate message check in slack-agent-task
- Introduced a new function `checkForDuplicateMessages` in the database queries to verify if a message already exists in the same chat.
- Integrated the duplicate check in the `slackAgentTask` to prevent processing of duplicate messages, enhancing task efficiency and logging warnings for duplicates detected.
2025-07-18 22:53:02 -06:00
dal 0e46d64683
trigger run id being added during the slack agent task 2025-07-18 22:34:02 -06:00
Devin AI a0dc9e03d2 Fix syntax highlighting flicker by replacing PrismAsyncLight with Shiki
- Replace react-syntax-highlighter with Shiki for synchronous highlighting
- Convert existing light theme to Shiki format in shiki-light-theme.ts
- Eliminate flicker in reasoning slide-out component
- Maintain compatibility with existing SyntaxHighlighter usage
- Remove react-syntax-highlighter dependencies from package.json

Fixes BUS-1445

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-19 04:14:17 +00:00
Devin AI 9896b5cc90 Replace 'Unknown' user name fallback with email address
- Update Rust handlers to use user_email instead of 'Unknown' fallback
- Add user_email field to MessageWithUser and ChatWithUser structs
- Update database queries to select user email field
- Update TypeScript chat-helpers to use email fallback
- Maintain final fallback to 'Unknown'/'Unknown User' if email is null

Fixes BUS-1457

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-19 04:12:13 +00:00
Devin AI 24aaa23a2f feat(BUS-1376): Replace AppMarkdown with AppMarkdownStreaming and fix animation issues
- Replace AppMarkdown with AppMarkdownStreaming in ChatResponseMessage_Text and ReasoningMessage_Text
- Map props correctly: markdown → content, showLoader → isStreamFinished
- Add wrapper divs to handle className prop
- Adjust spring physics in ReasoningMessageSelector to prevent height overshoot:
  - Reduce stiffness from 400→300 and increase damping from 32→40 for animate
  - Reduce stiffness from 450→350 and increase damping from 35→45 for exit
- Improves streaming text animation smoothness and prevents height expansion beyond content

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-19 03:57:22 +00:00
Devin AI 3d632c96ad feat: implement redirect-after-login for BUS-1455
- Update middleware to capture original URL and add as 'next' query param
- Modify layout redirect to include redirect parameter
- Update LoginForm to extract and pass redirect to all auth methods
- Add redirect parameter support to all sign-in functions
- Implement URL validation with fallback to home page
- Update OAuth callback to handle redirects consistently
- Support all authentication methods: email/password, Google, GitHub, Azure

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-19 03:56:19 +00:00
Devin AI 79336d5d9d feat(BUS-1447): Add useTrackAndUpdateNewMessages hook to track external message insertions
- Create new hook to detect message insertions from external sources like Slack
- Configure useShapeStream with 'insert' operations only
- Update chat message_ids array when new messages are detected
- Integrate hook into useChatStreaming alongside existing tracking hooks
- Handle message ordering and deduplication with uniq
- Fix TypeScript errors by ensuring id property is included in onUpdateChat calls

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-19 03:47:42 +00:00
dal ba04450469
Enhance Slack event handling by adding hourglass reaction on app mentions and refactoring reaction management in slack-agent-task. Update CLAUDE.md and global.mdc with new guidelines for testing and development workflows. Adjust .gitignore for rerank package to ensure proper directory exclusion. 2025-07-18 21:40:20 -06:00
Nate Kelley 364fe39069
inline code update 2025-07-18 16:51:09 -06:00
dal f9786c75c8
increase polling time for trigger bc 5 seconds or less still get charged lol 2025-07-18 16:12:03 -06:00
dal 97a8bb4c56
lint errors done & unit tests passing 2025-07-18 16:02:24 -06:00