[PR #449] [MERGED] feat(bytecode): add JVM and Python bytecode providers #1996

Closed
opened 2026-10-16 21:13:12 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/449
Author: @morluto
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @morluto

Base: main ← Head: codex/jvm-python-bytecode-367


📝 Commits (1)

  • 4e0127d feat(bytecode): add JVM and Python bytecode providers

📊 Changes

2 files changed (+358 additions, -0 deletions)

View changed files

➕ src/domain/bytecodeProvider.ts (+206 -0)
➕ tests/bytecodeProvider.test.ts (+152 -0)

📄 Description

Summary

Add execution-free providers for JVM bytecode/JAR/WAR and Python bytecode/wheels/zipapps.

Closes #367.

Changes

  • Bytecode families: JVM (class, jar, war, ear) and Python (pyc, pyo, whl, zipapp)
  • Symbol types: class, interface, method, field, function, module, variable
  • Provenance classification: application, generated, vendored, bundled, standard_library
  • Artifact detection: Detects family and format from file extensions
  • Provenance classification: Distinguishes application code from generated, vendored, bundled, and standard library code based on path patterns and symbol names
  • Analysis summary: Computes total symbols and counts by provenance class

Verification

npm run typecheck   # passes
npx vitest run tests/bytecodeProvider.test.ts  # 9 tests pass

Acceptance criteria

  • ✅ Raw bytecode or IL locations are preserved alongside normalized symbols
  • ✅ Generated, vendored, bundled, and application-owned code are detected

🔄 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/morluto/rea/pull/449 **Author:** [@morluto](https://github.com/morluto) **Created:** 7/28/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `codex/jvm-python-bytecode-367` --- ### 📝 Commits (1) - [`4e0127d`](https://github.com/morluto/rea/commit/4e0127d620377e5dc7e09444f9db0977e3d47ed1) feat(bytecode): add JVM and Python bytecode providers ### 📊 Changes **2 files changed** (+358 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/domain/bytecodeProvider.ts` (+206 -0) ➕ `tests/bytecodeProvider.test.ts` (+152 -0) </details> ### 📄 Description ## Summary Add execution-free providers for JVM bytecode/JAR/WAR and Python bytecode/wheels/zipapps. Closes #367. ## Changes - **Bytecode families**: JVM (class, jar, war, ear) and Python (pyc, pyo, whl, zipapp) - **Symbol types**: class, interface, method, field, function, module, variable - **Provenance classification**: application, generated, vendored, bundled, standard_library - **Artifact detection**: Detects family and format from file extensions - **Provenance classification**: Distinguishes application code from generated, vendored, bundled, and standard library code based on path patterns and symbol names - **Analysis summary**: Computes total symbols and counts by provenance class ## Verification ```bash npm run typecheck # passes npx vitest run tests/bytecodeProvider.test.ts # 9 tests pass ``` ## Acceptance criteria - ✅ Raw bytecode or IL locations are preserved alongside normalized symbols - ✅ Generated, vendored, bundled, and application-owned code are detected --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-16 21:13:12 +00:00
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
morluto/rea#1996
No description provided.