Commit Graph

329 Commits

Author SHA1 Message Date
dal 3991eccf5c
Merge remote-tracking branch 'origin/staging' into dallin/bus-1469-getting-errors-for-flagging-assumptions-in-production 2025-07-21 12:41:14 -06:00
dal 2307ad21df
Merge pull request #582 from buster-so/devin/BUS-1464-1753084631
feat: implement delete_files tool for file deletion operations
2025-07-21 12:06:45 -06:00
dal 8bb4e4ad8e
optimize dataset caching 2025-07-21 10:55:50 -06:00
dal 4dd59a299d
trim out random period message 2025-07-21 10:17:12 -06:00
dal a3a5c39df9
reorganized system messages and added cache controls to the identify assuptinos and flag-chats 2025-07-21 10:01:40 -06:00
jacob-buster e08117f03b Fixed some assumption logic 2025-07-21 09:51:54 -06:00
dal 2f7cfd1779
initial summary and such should only go when not a slack follow up 2025-07-21 09:26:18 -06: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
dal 254e7fc462
default db conn to local when none present 2025-07-21 01:51:33 -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 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 84be211028
skip validate env on ci 2025-07-21 00:50:53 -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
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 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
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
Devin AI 20bf6d8bf9 fix: address code review suggestions
- Use consistent regex for both validation and replacement
- Add reasonable upper limit (100) for bulk operations to prevent memory issues

Addresses greptile-apps bot feedback on PR #561

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-19 03:57:45 +00:00
Devin AI 754de61bdf feat: implement edit_files tool for find-and-replace operations
- Add edit_files tool in packages/ai/src/tools/file-tools/
- Implement find-and-replace with exact single occurrence validation
- Support bulk operations with individual success/failure tracking
- Handle both relative and absolute file paths
- Return detailed error messages for various failure scenarios
- Follow established patterns using createTool and wrapTraced
- Add comprehensive unit tests with 11 test cases
- Export tool in packages/ai/src/tools/index.ts

Addresses BUS-1449

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-19 03:44:13 +00:00
Devin AI 74687223db feat: implement read_files tool for BUS-1448
- Add read_files tool in packages/ai/src/tools/file-tools
- Support both absolute and relative file paths
- Implement 1000-line truncation with indication
- Handle errors gracefully with discriminated union results
- Include comprehensive unit tests with 10/10 passing
- Export tool from main index
- Update sandbox index to export runTypescript and createSandbox
- Follow established patterns from execute-sql.ts

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-19 03:42:03 +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
dal 97a8bb4c56
lint errors done & unit tests passing 2025-07-18 16:02:24 -06:00
Nate Kelley cd3bc58a57
Merge pull request #558 from buster-so/hot-fix/make-colors-passthrough
Hot fix/make colors passthrough
2025-07-18 15:44:35 -06:00
dal ecd2b67c55
Merge remote-tracking branch 'origin/staging' into dallin/bus-1451-setup-daytona-sandboxing 2025-07-18 15:43:05 -06:00
dal 584d5823eb
interact with filesystem test 2025-07-18 15:42:22 -06:00
Nate Kelley c5fe152bee
DEFAULT must defined colors 2025-07-18 15:38:55 -06:00
dal d60d523e1d
dotenv on the package.json? 2025-07-18 15:37:29 -06:00
dal dac631ce91
run typescript and some int tests 2025-07-18 15:34:08 -06:00
Nate Kelley 5980e9d37d
Fix additional lint errors 2025-07-18 15:17:12 -06:00
dal ca79e9253a
Merge remote-tracking branch 'origin/staging' into dallin/bus-1451-setup-daytona-sandboxing 2025-07-18 15:14:54 -06:00
jacob-buster c53e6ee19a
Update packages/ai/evals/agents/analyst-agent/metrics/example_scorers.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-18 15:12:40 -06:00
jacob-buster 7a60317591 style fixes for eval files 2025-07-18 15:08:15 -06:00
Nate Kelley 542795833a
use zod workspace in shared 2025-07-18 14:54:11 -06:00
dal 9c802af945
move into a management dir 2025-07-18 14:50:45 -06:00
dal 8d92387791
initial sandbox creaetion 2025-07-18 14:47:42 -06:00
dal 584dd215c3
env vars 2025-07-18 14:32:12 -06:00
dal e8cd5473eb
initial commit of daytona package 2025-07-18 14:26:46 -06:00
dal 2de702f425
Merge pull request #553 from buster-so/setup-script
Added setup script + few new changes to address {{variable}} issues
2025-07-18 14:22:42 -06:00