Skip to content

refactor: P1 structural improvements — move interactors to core, consolidate selectors, rename client-shared#314

Merged
thymikee merged 3 commits intomainfrom
refactor/p1-structural-improvements
Mar 29, 2026
Merged

refactor: P1 structural improvements — move interactors to core, consolidate selectors, rename client-shared#314
thymikee merged 3 commits intomainfrom
refactor/p1-structural-improvements

Conversation

@thymikee
Copy link
Copy Markdown
Contributor

@thymikee thymikee commented Mar 28, 2026

Summary

Refines the P1 structural cleanup into smaller, more disposable modules with clearer ownership.

  • Split selector internals into focused parse, match, and resolve modules while keeping src/daemon/selectors.ts as a thin facade.
  • Split artifact handling back into cohesive responsibilities: download flow, archive handling, and upload receiving.
  • Removed repeated CLI output plumbing by introducing shared command rendering helpers under src/cli/commands/.
  • Kept iOS and macOS interaction behavior aligned while moving macOS screenshot surface routing behind the interactor interface instead of branching in core dispatch.
  • Preserved the existing CLI and daemon behavior while reducing file size, platform leakage, and duplicated orchestration code.

Benefits

  • Smaller modules are easier to review, move, or delete without dragging unrelated logic with them.
  • Core dispatch is more platform-agnostic; platform-specific screenshot behavior now lives with the platform interactor.
  • Selector and artifact code is easier to reason about because responsibilities are split by behavior, not just by file count.
  • CLI commands share one rendering path instead of repeating the same JSON vs human-output branching.

Validation

  • pnpm typecheck
  • pnpm exec vitest run src/core/__tests__/dispatch-screenshot.test.ts src/__tests__/cli-client-commands.test.ts
  • pnpm test:smoke
  • pnpm test:unit

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 28, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-314/

Built to branch gh-pages at 2026-03-28 18:26 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

thymikee and others added 2 commits March 28, 2026 19:19
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… consolidate artifacts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@thymikee thymikee force-pushed the refactor/p1-structural-improvements branch 2 times, most recently from 7ed3481 to 2b8f633 Compare March 28, 2026 18:26
@thymikee thymikee force-pushed the refactor/p1-structural-improvements branch from 2b8f633 to 321d29a Compare March 28, 2026 18:38
@thymikee thymikee merged commit 017ac81 into main Mar 29, 2026
12 of 13 checks passed
@thymikee thymikee deleted the refactor/p1-structural-improvements branch March 29, 2026 10:53
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