Skip to content

refactor(pipeline): collapse PipelineOutcome into PipelineReport + escalator (#20 sub-#2)#24

Merged
cosimochellini merged 1 commit into
mainfrom
refactor/pipeline-outcome-collapse
May 24, 2026
Merged

refactor(pipeline): collapse PipelineOutcome into PipelineReport + escalator (#20 sub-#2)#24
cosimochellini merged 1 commit into
mainfrom
refactor/pipeline-outcome-collapse

Conversation

@cosimochellini
Copy link
Copy Markdown
Owner

Summary

  • imagePipeline external surface narrows to PipelineReport ({ status, logId, reason?, message? }).
  • PipelineOutcome 4-kind union now internal.
  • New EscalatorPort with telegramEscalator (prod) + noopEscalator (test).
  • services/script.ts collapsed into start/routes/api/script.ts.
  • trigger/$id, submit, $id drop logPipelineOutcome — pipeline logs internally.

Refs #20 sub-#2. Sub-#1 (env consolidation) follows in a separate PR.

Test plan

  • pnpm lint clean
  • pnpm typecheck clean
  • pnpm build green
  • pnpm test green
  • Manual smoke: trigger an image regeneration and confirm telegram still fires on write-also-failed.

🤖 Generated with Claude Code

… + escalator (#20 sub-#2)

- imagePipeline external surface narrows to { status, logId, reason?, message? }.
- PipelineOutcome 4-kind union becomes implementation detail.
- New EscalatorPort with telegram (prod) + noop (test) adapters.
- services/script.ts collapses into start/routes/api/script.ts.
- Callers (trigger/$id, submit, $id) drop logPipelineOutcome.

Refs #20 sub-#2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
purranormal-activity d794bb2 Commit Preview URL

Branch Preview URL
May 24 2026, 02:26 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying purranormal-cativity with  Cloudflare Pages  Cloudflare Pages

Latest commit: d794bb2
Status:🚫  Build failed.

View logs

@cosimochellini cosimochellini marked this pull request as ready for review May 24, 2026 14:30
@cosimochellini cosimochellini merged commit 29235dd into main May 24, 2026
4 of 5 checks passed
@cosimochellini cosimochellini deleted the refactor/pipeline-outcome-collapse branch May 24, 2026 14:30
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