Skip to content

Move output to ~/ii/content-engine/ shared root#5

Open
admincoderii wants to merge 4 commits into
mainfrom
dev
Open

Move output to ~/ii/content-engine/ shared root#5
admincoderii wants to merge 4 commits into
mainfrom
dev

Conversation

@admincoderii
Copy link
Copy Markdown
Collaborator

Summary

  • All output now writes to ~/ii/content-engine/ instead of ./output/ inside the repo, enabling multiple repos to share the same content directory
  • II_ROOT env var allows override; defaults to ~/ii/content-engine/
  • Auth and cookies stay repo-local for security; only generated content (videos, carousels, scheduled items, tracking, debug) moves to the shared root
  • Docker volumes updated to mount the shared root into containers

Test plan

  • All 7 existing tests pass (node --test tests/autopost-regressions.test.js)
  • Path resolution verified: II_ROOT, OUTPUT_DIR, VIDEOS_DIR, SCHEDULED_VIDEOS_DIR all point to ~/ii/content-engine/
  • AUTH_DIR and ROOT_DIR remain repo-local
  • Existing manifests migrated (stripped output/ prefix from paths)
  • End-to-end: generate a video and verify it lands in ~/ii/content-engine/videos/
  • End-to-end: autopost run reads from ~/ii/content-engine/scheduled_videos/

🤖 Generated with Claude Code

admin and others added 4 commits March 30, 2026 22:18
Decouple output from the repo so multiple repos (content-engine,
social-media-poster, etc.) can read/write from the same location.

- II_ROOT defaults to ~/ii/content-engine/, configurable via env var
- Manifest paths now relative to II_ROOT instead of repo root
- Debug screenshots, tracking, logs all write to shared root
- Auth/cookies stay repo-local for security
- Docker mounts II_ROOT into container at /app/output
- Migrated existing schedule.json manifests to new path format

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Auth, cookies, prompts/templates, research, downloads all resolve
  from II_ROOT instead of the repo root
- Add COOKIES_DIR, RESEARCH_DIR, DOWNLOADS_DIR exports to paths.js
- Replace all hardcoded REPO_ROOT/cookies/ references with COOKIES_DIR
- Remove all /Users/admin hardcoded paths from runtime code
- Docker uses single II_ROOT volume mount (no separate state mounts)
- Outro path resolves from II_ROOT/assets/plug.mov

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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