Commit Graph

4699 Commits

Author SHA1 Message Date
Devin AI 942759fe6f fix: resolve linting issues in grep_search.ts
- Fix optional chaining usage
- Replace explicit any with unknown type
- Remove useless else clause
- Add proper type guards for error handling

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 08:29:09 +00:00
Devin AI c0c87fb476 fix: prefix unused runtimeContext parameter with underscore to resolve lint error
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 08:17:03 +00:00
Devin AI c6b9b37eb0 feat: implement grep_search tool for BUS-1465
- Add new grep_search tool in packages/ai/src/tools/file-tools/
- Support various grep options: recursive, ignoreCase, invertMatch, lineNumbers, wordMatch, fixedStrings, maxCount
- Implement bulk search capabilities with array of search configurations
- Use Node.js child_process for direct grep execution
- Include structured output with successful/failed searches
- Add proper error handling and command injection protection
- Export tool in packages/ai/src/tools/index.ts

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 08:05:24 +00:00
Devin AI 1e60ccf010 feat: implement delete_files tool for file deletion operations
- Add delete-files-tool with sandbox and local execution support
- Support bulk operations with individual success/failure tracking
- Follow established file tools patterns and error handling
- Include comprehensive unit tests with mocking
- Export tool in main index for accessibility

Implements BUS-1464

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 08:03:21 +00:00
Devin AI 973cdedc88 feat: implement bash_execute tool for BUS-1466
- Add bash_execute tool in packages/ai/src/tools/file-tools/bash-execute-tool.ts
- Support both single commands and arrays of commands
- Use Node's child_process with proper timeout and error handling
- Capture stdout, stderr, and exit codes in structured format
- Add unit tests for schema validation
- Export tool in file-tools index and main tools index

Implements BUS-1466: TypeScript-based bash execution tool with graceful error handling

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 08:02:11 +00: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 951e142c6f
Merge pull request #578 from buster-so/dallin/build-lint-unit-tests-ci-cd
Dallin/build lint unit tests ci cd
2025-07-21 01:54:12 -06:00
dal 254e7fc462
default db conn to local when none present 2025-07-21 01:51:33 -06:00
Devin AI 096cd26355 feat: implement ls_files tool for BUS-1467
- Add ls-files-tool with support for standard ls options (-l, -a, -R, -h)
- Support bulk operations with proper error handling
- Parse ls output into structured JSON format
- Handle cross-platform concerns for Windows compatibility
- Follow established Mastra tool patterns with sandbox execution
- Include comprehensive unit tests for both implementation and tool

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 07:43:36 +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 d5eb03831c
Merge remote-tracking branch 'origin/staging' into dallin/build-lint-unit-tests-ci-cd 2025-07-21 01:18:57 -06:00
dal 8e60dd5590
Merge pull request #561 from buster-so/devin/BUS-1449-1752896149
feat: implement edit_files tool for find-and-replace operations (BUS-1449)
2025-07-21 01:17:45 -06:00
dal ee14a855ca
lint fixes 2025-07-21 01:16:28 -06:00
dal 5f4230fa8a
Merge remote-tracking branch 'origin/staging' into devin/BUS-1449-1752896149 2025-07-21 01:15:41 -06:00
dal f5b82bca15
exclude web for now 2025-07-21 01:15:01 -06:00
dal 4685744c30
Merge pull request #576 from buster-so/devin/BUS-1450-1753079457
feat: implement create_files tool for BUS-1450
2025-07-21 01:13:21 -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 2405242950
skip validate env 2025-07-21 00:43:45 -06:00
Devin AI 4cdc049904 refactor: address code review suggestions
- Move createFiles export next to readFiles for better organization
- Remove unused AnalystRuntimeContext import
- Improve code organization and cleanliness

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 06:42:58 +00:00
dal 474dffc1d3
Try again 2025-07-21 00:39:08 -06:00
dal 5ae39a15b3
k lets try this 2025-07-21 00:36:01 -06:00
Devin AI b4afacef85 feat: implement create_files tool for BUS-1450
- Add create-file-tool.ts with Zod schema and bulk file creation support
- Add create-file-functions.ts with sandbox execution and local fallback
- Support both absolute and relative file paths
- Create directories if they don't exist, overwrite existing files
- Handle errors gracefully, continue processing other files on individual failures
- Return detailed success/error results for each file operation
- Include comprehensive unit tests (18 tests, all passing)
- Export tool in index.ts following established patterns

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 06:33:52 +00:00
dal ec4262b87c
ci and a random lint 2025-07-21 00:28:39 -06:00
Devin AI 677c3753f8 refactor: restructure edit_files tool to match read_files pattern
- Move to new subdirectory structure: packages/ai/src/tools/file-tools/edit-files-tool/
- Follow exact same architectural pattern as read_files tool
- Use discriminated union output schema for results
- Implement sandbox execution with fallback to local execution
- Fix regex escaping issues in generated sandbox code
- Maintain all existing find-and-replace validation logic
- Support bulk operations with individual success/failure tracking

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 06:24:22 +00:00
Devin AI 42e4362bc6 Merge remote-tracking branch 'origin/staging' into devin/BUS-1449-1752896149 2025-07-21 06:13:10 +00:00
dal 6d148947c9
Merge pull request #574 from buster-so/devin/BUS-1462-1753076609
feat: add GitHub integrations table for BUS-1462
2025-07-21 00:05:19 -06:00
Devin AI 93e69e84c5 resolve: merge conflict in index.ts - include both editFiles and readFiles exports
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 06:05:13 +00:00
dal 69f3843695
Merge pull request #560 from buster-so/devin/BUS-1448-1752896052
feat: implement read_files tool for BUS-1448
2025-07-21 00:01:03 -06:00
dal 0cb7e2a7cf
feat: enhance file reading capabilities with sandbox support
- Added support for reading files in a sandbox environment using @buster/sandbox.
- Introduced new file reading tool with async operations and error handling.
- Implemented integration tests for sandbox and local execution scenarios.
- Updated package.json and pnpm-lock.yaml to include new dependencies.

Co-Authored-By: [Your Name] <your.email@example.com>
2025-07-20 23:59:55 -06:00
Devin AI 9b9330982a fix: address PR review comments for GitHub integrations
- Make installationId and githubOrgId NOT NULL (required GitHub API fields)
- Change user foreign key to ON DELETE SET NULL to prevent blocking user deletion
- Add index on github_org_id for better query performance
- Maintain unique constraint on organization_id + installation_id pair

Addresses greptile-apps review comments on PR #574

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 05:59:39 +00:00
Devin AI 45749b881b fix: replace manual migration with properly formatted Drizzle migration
- Remove manual migration and use proper Drizzle format
- Update journal metadata to track migration 0084
- Follow exact pattern from auto-generated migrations
- Maintain all GitHub integrations table functionality

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 05:49:00 +00:00
Devin AI 6bc6602028 feat: add GitHub integrations table and migration
- Add githubIntegrationStatusEnum with states: pending, active, suspended, revoked
- Add githubIntegrations table with GitHub App architecture fields:
  - installationId, appId for GitHub App integration
  - githubOrgId, githubOrgName for GitHub organization info
  - tokenVaultKey, webhookSecretVaultKey for secure token storage
  - repositoryPermissions JSONB field for access control
- Add foreign key constraints to organizations and users tables
- Add indexes for organizationId and installationId for query performance
- Add unique constraints for tokenVaultKey and org-installation pairs
- Create migration 0084_github_integrations.sql following Drizzle pattern

Implements BUS-1462: GitHub integrations table for tracking GitHub App integrations

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 05:45:51 +00:00
dal 06249f5e8a
rearrange and get some things right for the initial read file tool 2025-07-20 23:04:11 -06:00
dal 7e1adbec2a
no dist 2025-07-20 22:45:50 -06:00
dal 2abd971be6
Merge branch 'staging' into devin/BUS-1448-1752896052 2025-07-20 22:45:17 -06:00
Devin AI ff0151a1e5 perf: optimize read_files tool with parallel processing
- Convert file operations from sequential to parallel using Promise.all()
- Use async/await with fs.promises for better performance
- Maintain error handling and 1000-line truncation functionality
- All unit tests continue to pass (10/10)

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-21 04:40:17 +00:00
Nate Kelley 53bfc42902
ensure list items are aligned correctly 2025-07-19 23:27:02 -06:00
Nate Kelley b087d45a1b
Merge branch 'staging' into big-nate/bus-1376-make-streaming-individual-words-use-the-streaming-affect 2025-07-19 22:58:11 -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 a9f410f3af
Merge pull request #572 from buster-so/big-nate/bus-1461-prefetch-chats-as-well-as-dashboards-metric_files
prefetch chats route as well
2025-07-19 22:27:07 -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