Skip to content

Plan 4: Real Adapters Implementation #7

@iamladi

Description

@iamladi

Overview

Implement real adapters for GitHub CLI and Claude CLI with streaming JSON support.

Research Source

  • research/research-workflows-tdd-migration-deep.md
  • Migration Roadmap Phase 3 (Tasks 9-12)
  • Section 1.2: Hexagonal Architecture Adapters

Tasks

  • Add dependencies: execa, ndjson
  • Create src/adapters/github-cli.adapter.ts implementing IGitHubClient
  • Implement getCIStatus, getComments, pollUntilComplete with streaming
  • Create tests/integration/adapters/github-cli.test.ts
  • Create src/adapters/claude-cli.adapter.ts implementing IClaudeClient
  • Create tests/integration/adapters/claude-cli.test.ts

Complexity

5/10

Acceptance Criteria

  • GitHub adapter executes gh run view successfully
  • GitHub adapter parses streaming JSON output
  • Claude adapter executes claude CLI commands
  • Integration tests run against real CLIs

Dependencies

Plan File

plans/workflow-4-adapters.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions