[PR #21] [MERGED] feat(core): extract logic and implement CLI (v2.0) #23

Closed
opened 2026-03-02 11:45:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karant-dev/AutoRedact/pull/21
Author: @karant-dev
Created: 12/13/2025
Status: Merged
Merged: 12/13/2025
Merged by: @karant-dev

Base: mainHead: feature/v2.0-core-cli


📝 Commits (3)

  • fcf8292 feat(core): extract logic and implement CLI (v2.0)
  • 3fb3558 fix(pr): address review feedback (types, validation, robustness)
  • 4305efb chore: cleanup temporary test files

📊 Changes

12 files changed (+1621 additions, -407 deletions)

View changed files

📝 README.md (+19 -1)
📝 package-lock.json (+969 -22)
📝 package.json (+10 -2)
src/adapters/BrowserCanvasAdapter.ts (+38 -0)
src/adapters/NodeCanvasAdapter.ts (+17 -0)
src/cli.ts (+144 -0)
src/core/image-processing.ts (+36 -0)
src/core/interfaces.ts (+30 -0)
src/core/matcher.ts (+112 -0)
src/core/processor.ts (+218 -0)
📝 src/utils/canvas.ts (+2 -39)
📝 src/utils/ocr.ts (+26 -343)

📄 Description

Closes #20

Summary

Decoupled core logic from the DOM and implemented a CLI tool.

Key Changes

  • Core Separation: Moved logic to src/core.
  • Adapters: Created BrowserCanvasAdapter and NodeCanvasAdapter.
  • CLI: Added src/cli.ts with full commander support.
  • Verification: Verified Web App regression and CLI functionality.

🔄 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/karant-dev/AutoRedact/pull/21 **Author:** [@karant-dev](https://github.com/karant-dev) **Created:** 12/13/2025 **Status:** ✅ Merged **Merged:** 12/13/2025 **Merged by:** [@karant-dev](https://github.com/karant-dev) **Base:** `main` ← **Head:** `feature/v2.0-core-cli` --- ### 📝 Commits (3) - [`fcf8292`](https://github.com/karant-dev/AutoRedact/commit/fcf829233be16c2f5dac0353770a5550acd5b647) feat(core): extract logic and implement CLI (v2.0) - [`3fb3558`](https://github.com/karant-dev/AutoRedact/commit/3fb3558c437886c2e9ebeca10802bd006dacd137) fix(pr): address review feedback (types, validation, robustness) - [`4305efb`](https://github.com/karant-dev/AutoRedact/commit/4305efb1edb1b91dff3f3916ad29a547b1f873ed) chore: cleanup temporary test files ### 📊 Changes **12 files changed** (+1621 additions, -407 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+19 -1) 📝 `package-lock.json` (+969 -22) 📝 `package.json` (+10 -2) ➕ `src/adapters/BrowserCanvasAdapter.ts` (+38 -0) ➕ `src/adapters/NodeCanvasAdapter.ts` (+17 -0) ➕ `src/cli.ts` (+144 -0) ➕ `src/core/image-processing.ts` (+36 -0) ➕ `src/core/interfaces.ts` (+30 -0) ➕ `src/core/matcher.ts` (+112 -0) ➕ `src/core/processor.ts` (+218 -0) 📝 `src/utils/canvas.ts` (+2 -39) 📝 `src/utils/ocr.ts` (+26 -343) </details> ### 📄 Description Closes #20 ## Summary Decoupled core logic from the DOM and implemented a CLI tool. ## Key Changes - **Core Separation**: Moved logic to `src/core`. - **Adapters**: Created `BrowserCanvasAdapter` and `NodeCanvasAdapter`. - **CLI**: Added `src/cli.ts` with full `commander` support. - **Verification**: Verified Web App regression and CLI functionality. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:45:04 +03: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
starred/AutoRedact#23
No description provided.