Repository navigation
Small Cuts Lite — iOS record → Modal upload (phone + glasses) - #53
Merged
Merged
Conversation
New SmallCutsLite app/target whose only job is: record ≤60s from the phone camera or paired Meta Ray-Ban glasses, then POST the finished clip to Modal /v1/cuts — identical to the Gradio upload feature, 100% capture-agnostic. The narrated result is produced server-side and surfaces in the Gradio library via the existing relay + promote flow. - ModalUploadClient: submit→poll /v1/cuts (TDD, unit-tested) - PhoneCameraRecorder: AVFoundation → MP4, 60s cap - GlassesClipRecorder: DAT frames → MP4 via AVAssetWriter (TDD, unit-tested) - Reuses (shares read-only) the DAT session pipeline from the SmallCuts target - Action!/Cut! UI + Phone↔Glasses lever; optional Sign in with Apple → uploader handle; embedded Modal token via gitignored Secrets.swift - RUNBOOK for install + send Coordination guardrails: CaptureCoordinator.swift / ContentView.swift and the /v1/cuts contract are untouched; shared DAT files referenced, not edited. 4/4 iOS unit tests pass; device-arch build succeeds (iPhone 17 / iOS 26.5). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Cut-monogram "S" with a gold cinematic cut stroke on ink (chosen from the candidate set) so the Lite app is unmistakable next to the gold-pill Small Cuts icon on the home screen. Single-size 1024 asset catalog + ASSETCATALOG_COMPILER_APPICON_NAME on the SmallCutsLite target. actool compiles the icon (generates the device sizes from the 1024 source); 4/4 unit tests still green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Small Cuts Lite is a minimal iOS companion app with one mission: record up to 60 s from the phone camera or paired Meta Ray-Ban glasses, then send the finished clip to the Modal
/v1/cutsendpoint exactly like the Gradio upload feature. The narrated result is produced server-side and surfaces in the Gradio library via the existing relay + promote flow — 100% capture-agnostic.Separate app/target (
SmallCutsLite,com.macayaven.smallcutslite) from the real-timeSmallCutsapp — installing one doesn't affect the other.Components
Upload/ModalUploadClient.swift+ModalScene.swift/v1/cuts(TDD)Capture/PhoneCameraRecorder.swift+CameraPreview.swiftCapture/GlassesClipRecorder.swiftFrameSource/GlassesFrameSource/GlassesSessionController/WearablesConfiguratorAuth/IdentityStore.swiftConfig/LiteConfig.swift+ gitignoredSecrets.swiftUI/LiteCaptureView.swiftUsage
See
ios/SmallCuts/SmallCutsLite/RUNBOOK.md: paste the Modal token intoSecrets.swift, runxcodegen, open theSmallCutsLitescheme on a device, Action! → Cut!.Test coverage
ModalUploadClient(submit→poll, missing-scene throws) +GlassesClipRecorder(encodes a playable MP4, no-frames throws).** TEST SUCCEEDED **on iPhone 17 / iOS 26.5; arm64 device build succeeds.Coordination (team-mobile #37)
Contracts-only coupling — a pure consumer of the deployed
/v1/cuts, no server/contract changes. Guardrails honored:CaptureCoordinator.swift/ContentView.swiftand/v1/cutsuntouched; DAT pipeline files shared (referenced) not edited. Rebased on latestmain(post #52, viewer-only — no overlap). Refs #51.Not in this PR (intentional)
contract-changeto sequence after this lands.ios-user); enabling it on device is a one-click capability add in Xcode — deliberately kept out of the project so the first install can't be blocked by provisioning.🤖 Generated with Claude Code