Commit graph

3 commits

Author SHA1 Message Date
83ad1feaba refactor: move backend into the clipwright package
All checks were successful
CI / backend-tests (pull_request) Successful in 30s
CI / frontend-build (pull_request) Successful in 29s
Restructure the 37 root-level Python modules into a proper package:
  clipwright/{core,api,pipeline,layouts,media,integrations,tools}

- Rewrite every local import (module-level and deferred) to absolute
  clipwright.<group>.<mod> form; no legacy root shims or re-exports.
- Add clipwright/core/paths.py and route fonts/assets/cookies through it.
- Entry points: uvicorn clipwright.api.app:app; jobs run as
  python -m clipwright.pipeline.main; probe as -m ...quality_probe.
- child_env() appends REPO_ROOT to PYTHONPATH so the -m workers work.
- transcribe_backends: sys.modules key now clipwright.media.scene_detection.
- Tooling: root pyproject.toml (pytest pythonpath=[.], ruff), shared
  requirements-test.txt, CI installs it, Docker PYTHONPATH=/app.
- Tests: all imports/fakes/source-scans repointed; new tests/test_package_layout.py
  enforces no root modules, docstring-only __init__, and no legacy imports.
- Docs/comments updated for the new layout.

Backend: 744 passed, 19 skipped. Frontend lint+build green.
2026-10-04 20:40:38 +01:00
edcfeaf9d5 refactor: remove cloud/ billing mode and flatten to self-hosted-only
- Delete the entire cloud/ package (Stripe billing, auth/OAuth, metering, API keys,
  account erasure, lifecycle/digest emails, R2 archive, autopilot, MCP OAuth,
  proxy ledger, managed keys) and all BILLING_ENABLED branches in app.py
- Keep self-host behavior via no-op shims; /api/config now returns
  {youtubeUrlEnabled, jobRetentionSeconds, localLlm}
- Remove cloud tests (31 files), alembic/, log_view.py, requirements-billing.txt,
  docker-compose.cloud.yml; update CLI to Postiz + /api/config; clean docs/skills
- Flatten dashboard: remove auth/billing/pricing/history chrome, inert config-only AuthContext
- Fix residual test drift; lint + build + compile all green
2026-10-04 17:02:55 +01:00
juancarlos.cavero
0d9e04f333 fix(reframe): harden PR #70's manual reframing after review
- Meter the re-render: /api/clip/reframe now reserves/commits/releases
  minutes exactly like a source-path /rerender — it is the same GPU work,
  and it was free and uncapped.
- Re-apply captions by default (reapply_captions param to opt out): every
  default clip ships with burned captions, and the reframe silently
  returned caption-less files.
- Read metadata.json INSIDE the per-job lock (same _reframe_locked shape
  as /rerender): the read-outside/write-inside window let a concurrent
  rerender's recipe get clobbered by a stale write.
- Interplay with whole-clip framing: recipe.framing keeps forcing its
  layout on the scenes the user did not hand-position (apply_crop_overrides
  runs after force_strategy, so per-scene wins where named), and the
  recipe is preserved through the reframe instead of being rebuilt bare.
- /rerender clears stale crop_overrides: scene indices only mean anything
  against the cut they were made for, and the trim render does not apply
  them — leaving them made /scenes reopen showing overrides that would
  land on the wrong shots.
- /scenes: entitlement-gated (it cuts, scene-detects and encodes on every
  open), serialized per job (stable output names tore under concurrent
  opens), 400 on horizontal jobs, real aspect for square jobs, temp_
  prefix on preview/thumbnails (kept out of the self-host S3 backup),
  faststart + timeout on the preview encode.
- Tests for all of it plus the apply_crop_overrides math the PR described
  but did not include (12 new, suite at 502).
2026-08-19 12:09:02 +02:00