Skip to content

feat(alpha): implement Alpha crawler architecture and stabilization - #1

Merged
cynox-66 merged 7 commits into
mainfrom
alpha/phase-1-stabilization
Jun 26, 2026
Merged

feat(alpha): implement Alpha crawler architecture and stabilization#1
cynox-66 merged 7 commits into
mainfrom
alpha/phase-1-stabilization

Conversation

@cynox-66

Copy link
Copy Markdown
Owner

Alpha Phase 1 — Repository Stabilization & Runtime Correctness

Overview

This PR establishes the first stable architectural baseline for the Knowledge Extractor.

The focus of this phase is repository health, architectural correctness, and eliminating technical debt that would prevent reliable Alpha validation.

No new end-user features are introduced. The goal is to stabilize the foundation before expanding functionality.


Repository Stabilization

  • Removed duplicate macOS Finder artifacts (* 2.*, * 3.*)
  • Removed obsolete codemod utilities
  • Cleaned repository structure
  • Updated TypeScript project references
  • Standardized workspace configuration

Build & CI Improvements

  • Added typecheck support across workspace packages

  • Added proper lint scripts

  • Fixed hidden TypeScript errors

  • Resolved formatting issues

  • Verified:

  • ✅ Build

  • ✅ Typecheck

  • ✅ Lint

  • ✅ Tests

  • ✅ Dependency Cruiser

  • ✅ Format Check


Runtime Architecture Improvements

Unified Extraction Pipeline

Removed duplicated extraction logic from the content script.

The runtime now follows a single extraction path:

Content Script
→ Connector
→ Strategy Chain
→ Parser
→ Normalizer

This removes architectural drift and ensures all extraction passes through the same validated pipeline.


Connector Improvements

  • Unified connector contract
  • Removed duplicate interface definitions
  • Improved type safety
  • Removed remaining any escape hatches

Domain Improvements

Moved Instagram-specific intermediate models out of the shared domain layer.

The shared packages/types package now remains platform agnostic.


Documentation

Updated architectural documentation to reflect the stabilized runtime.


Validation

All repository quality gates pass successfully.

  • Build ✅
  • Typecheck ✅
  • Lint ✅
  • Tests ✅
  • Dependency Cruiser ✅
  • Format Check ✅

This PR establishes the stable Alpha baseline required before implementing crawler orchestration and runtime observability.

cynox-66 and others added 7 commits June 26, 2026 18:37
…fication

A0 — Repository Stabilization:
- Remove all macOS duplicate artifacts (* 2.*, * 3.*) and codemod scripts
- Remove empty stub packages (ai, exporters, extractor, ocr, utils) and
  empty legacy connector dirs; update root tsconfig references
- Add typecheck + lint scripts to every package so the full workspace
  participates in CI (was 1/10 typecheck, 0/10 lint)
- Fix latent extension typecheck errors surfaced by full coverage
- Add .prettierignore; harden eslint ignores

A1 — Runtime Correctness (single extraction path):
- Content Script is now a pure DOM adapter; parsing delegated to the
  connector's StrategyChain (sole runtime extractor)
- Move Instagram-specific types out of packages/types into the connector
- Collapse duplicate IConnector into one canonical generic IConnector<TRaw>;
  InstagramConnector implements it with canHandle()
- Remove all `any` escape hatches in connector src

All gates green: build, typecheck, lint, test, depcruise, format.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cynox-66
cynox-66 merged commit 7152bff into main Jun 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant