Skip to content

Clean up scaffolding: remove FINDINGS, shims, legacy task installer - #3

Merged
Turetsky merged 1 commit into
mainfrom
claude/repo-cleanup
May 26, 2026
Merged

Clean up scaffolding: remove FINDINGS, shims, legacy task installer#3
Turetsky merged 1 commit into
mainfrom
claude/repo-cleanup

Conversation

@Turetsky

Copy link
Copy Markdown
Owner

Summary

Removes scaffolding cruft and consolidates around the single entry point.

Deleted files

  • FINDINGS.md — pre-build research notes referencing repos / services not part of mailpress (gv-worker, PrintNode, CloudConvert)
  • install-task.ps1 — the wizard installs the Scheduled Task itself via lib/task.mjs
  • index.mjs — back-compat shim; cli.mjs is the single entry point
  • consent.mjs — back-compat shim; mailpress --consent does the same

Code adjustments to support removal

  • lib/task.mjs: source-mode Scheduled Task target switched from node index.mjs to node cli.mjs
  • cli.mjs: detects non-TTY (Scheduled Task) and exits cleanly with code 2 + a helpful message instead of trying to launch the interactive wizard. Verified: mailpress < /dev/null → exit 2 with "there is no terminal to run the wizard in".

Layout after cleanup (5 top-level files + 4 dirs):

cli.mjs
lib/*.mjs (10 files)
print-files.ps1
config.example.json
package.json
README.md
.gitignore
assets/{icon.svg,icon.ico,icon-preview-256.png}
scripts/build.mjs
.github/workflows/release.yml

Test plan

  • node cli.mjs --help boots
  • mailpress --doctor from a clean dir reports correct status
  • mailpress < /dev/null (non-TTY) exits 2 with helpful message instead of hanging on prompt
  • node scripts/build.mjs produces a working binary; dist listing no longer includes install-task.ps1
  • CI build on Windows passes (will run on this PR)

https://claude.ai/code/session_01CfsRS2PZ4t8RUnhPdVEWHF


Generated by Claude Code

…tall-task.ps1

Files removed:
- FINDINGS.md — pre-build research notes referencing unrelated repos
  (gv-worker, PrintNode, CloudConvert) that aren't part of mailpress
- install-task.ps1 — the wizard installs the Scheduled Task itself now
  via lib/task.mjs
- index.mjs — back-compat shim. cli.mjs is the single entry point.
- consent.mjs — back-compat shim. `mailpress --consent` replaces it.

Source-mode Scheduled Task target switched from `node index.mjs` to
`node cli.mjs`. cli.mjs now detects non-TTY (Scheduled Task) and exits
with a helpful message + exit code 2 instead of trying to launch the
interactive wizard, so a misconfigured task won't hang on stdin.

Build + workflow artifact lists updated. README's "Install" + "from
source" + "Architecture" sections reflect the new layout. Stale
comments in print-files.ps1 and lib/poll.mjs updated.

Top-level layout after cleanup:
  cli.mjs                # entry point
  lib/*.mjs              # all code
  print-files.ps1        # print helper (ships with the exe)
  config.example.json    # template
  assets/                # icon source + .ico
  scripts/build.mjs      # SEA build
  .github/workflows/     # CI

https://claude.ai/code/session_01CfsRS2PZ4t8RUnhPdVEWHF
@Turetsky
Turetsky merged commit cc25875 into main May 26, 2026
1 check passed
Turetsky added a commit that referenced this pull request May 26, 2026
Files removed:
- FINDINGS.md — pre-build research notes referencing unrelated repos
  (gv-worker, PrintNode, CloudConvert) that aren't part of mailpress
- install-task.ps1 — the wizard installs the Scheduled Task itself now
  via lib/task.mjs
- index.mjs — back-compat shim. cli.mjs is the single entry point.
- consent.mjs — back-compat shim. `mailpress --consent` replaces it.

Source-mode Scheduled Task target switched from `node index.mjs` to
`node cli.mjs`. cli.mjs now detects non-TTY (Scheduled Task) and exits
with a helpful message + exit code 2 instead of trying to launch the
interactive wizard, so a misconfigured task won't hang on stdin.

Build + workflow artifact lists updated. README's "Install" + "from
source" + "Architecture" sections reflect the new layout. Stale
comments in print-files.ps1 and lib/poll.mjs updated.

Top-level layout after cleanup:
  cli.mjs                # entry point
  lib/*.mjs              # all code
  print-files.ps1        # print helper (ships with the exe)
  config.example.json    # template
  assets/                # icon source + .ico
  scripts/build.mjs      # SEA build
  .github/workflows/     # CI

https://claude.ai/code/session_01CfsRS2PZ4t8RUnhPdVEWHF

Co-authored-by: Claude <noreply@anthropic.com>
@Turetsky
Turetsky deleted the claude/repo-cleanup branch May 26, 2026 18:43
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.

2 participants