[PR #60] Refactor potentially shared functionality into core #61

Open
opened 2026-03-02 04:08:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/gadievron/raptor/pull/60
Author: @joshbouncesecurity
Created: 1/23/2026
Status: 🔄 Open

Base: mainHead: new-refactor


📝 Commits (10+)

  • cec97ba First draft of refactor
  • f684009 Trigger ci
  • caaf694 Keep convenience imports
  • ab533d8 Further refactoring, modifying docs and adding tests
  • 3ee75e9 Small changes to init
  • c9f7772 Add new integration test
  • 5fc864c Merge branch 'gadievron:main' into new-refactor
  • f3e1e8d Removed semgrep version function
  • fed3a21 Remove run streaming
  • faf47bc Remove new git functions

📊 Changes

35 files changed (+1588 additions, -339 deletions)

View changed files

📝 README.md (+1 -1)
📝 core/__init__.py (+28 -0)
core/exec.py (+32 -0)
core/git.py (+74 -0)
core/hash.py (+60 -0)
📝 core/llm/__init__.py (+0 -0)
📝 core/llm/client.py (+0 -0)
📝 core/llm/config.py (+0 -0)
📝 core/llm/providers.py (+0 -0)
core/semgrep.py (+319 -0)
core/tests/__init__.py (+1 -0)
core/tests/test_exec.py (+134 -0)
core/tests/test_git.py (+105 -0)
core/tests/test_hash.py (+198 -0)
core/tests/test_llm.py (+153 -0)
core/tests/test_semgrep.py (+372 -0)
📝 docs/ARCHITECTURE.md (+1 -1)
📝 docs/README.md (+1 -1)
📝 packages/autonomous/dialogue.py (+1 -1)
📝 packages/codeql/PHASE2_OVERVIEW.md (+2 -2)

...and 15 more files

📄 Description

Trying to move functionality that could be shared between packages into core.

Just an idea for now


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/gadievron/raptor/pull/60 **Author:** [@joshbouncesecurity](https://github.com/joshbouncesecurity) **Created:** 1/23/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `new-refactor` --- ### 📝 Commits (10+) - [`cec97ba`](https://github.com/gadievron/raptor/commit/cec97ba463e379c491315ecfd9606daf115997a6) First draft of refactor - [`f684009`](https://github.com/gadievron/raptor/commit/f6840097d386a07594d7e454c10ccf93da3c8502) Trigger ci - [`caaf694`](https://github.com/gadievron/raptor/commit/caaf694a6afb3797af9a73186fa5036dc88dc2ab) Keep convenience imports - [`ab533d8`](https://github.com/gadievron/raptor/commit/ab533d8a85c9a09b74cc75e14393e1eea50671b5) Further refactoring, modifying docs and adding tests - [`3ee75e9`](https://github.com/gadievron/raptor/commit/3ee75e90ea2f64622d124bb3170eb27127938f62) Small changes to init - [`c9f7772`](https://github.com/gadievron/raptor/commit/c9f7772ad8288b17e795150c7effd3d795606681) Add new integration test - [`5fc864c`](https://github.com/gadievron/raptor/commit/5fc864c5f6aadb28739539416549976d35ed362c) Merge branch 'gadievron:main' into new-refactor - [`f3e1e8d`](https://github.com/gadievron/raptor/commit/f3e1e8d90b6d955e2661d47cd00f169607a7e5cf) Removed semgrep version function - [`fed3a21`](https://github.com/gadievron/raptor/commit/fed3a21256b6c1c527208c3e793e096d1e348d49) Remove run streaming - [`faf47bc`](https://github.com/gadievron/raptor/commit/faf47bc0ab2b5a7f892d4f49a1b13f6023c0fc80) Remove new git functions ### 📊 Changes **35 files changed** (+1588 additions, -339 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `core/__init__.py` (+28 -0) ➕ `core/exec.py` (+32 -0) ➕ `core/git.py` (+74 -0) ➕ `core/hash.py` (+60 -0) 📝 `core/llm/__init__.py` (+0 -0) 📝 `core/llm/client.py` (+0 -0) 📝 `core/llm/config.py` (+0 -0) 📝 `core/llm/providers.py` (+0 -0) ➕ `core/semgrep.py` (+319 -0) ➕ `core/tests/__init__.py` (+1 -0) ➕ `core/tests/test_exec.py` (+134 -0) ➕ `core/tests/test_git.py` (+105 -0) ➕ `core/tests/test_hash.py` (+198 -0) ➕ `core/tests/test_llm.py` (+153 -0) ➕ `core/tests/test_semgrep.py` (+372 -0) 📝 `docs/ARCHITECTURE.md` (+1 -1) 📝 `docs/README.md` (+1 -1) 📝 `packages/autonomous/dialogue.py` (+1 -1) 📝 `packages/codeql/PHASE2_OVERVIEW.md` (+2 -2) _...and 15 more files_ </details> ### 📄 Description Trying to move functionality that could be shared between packages into core. Just an idea for now --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/raptor#61
No description provided.