Mechanical conversion of every relative import under v2/ to an absolute v2.* path (from .x / ..x / ...x -> from v2.<pkg>.x) so imports are unambiguous, grep-able, and stable when code is copied/moved between entrypoints (VideoGenerator, CLI, server). Surgical prefix-only rewrite: only the 'from <dots><module>' prefix changed — import names, parentheses, multi-line formatting, comments, and ordering are byte-for-byte preserved (no collapsing, no reorder, no unrelated reformatting). - 471 imports across 125 files; v2/tests/ was already absolute (untouched). - Validated: all 125 files compile, every 'from v2.* import' target resolves to a real module/package, zero relative imports remain (full sweep), CPU mini suite green (202 passed, 2 skipped).
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
"""Request plane — typed runtime objects crossing the product boundary (design_v3 §12)."""
|
|
from __future__ import annotations
|
|
|
|
from v2.request.artifacts import (
|
|
Artifact,
|
|
AudioArtifact,
|
|
LatentArtifact,
|
|
Output,
|
|
TensorArtifact,
|
|
TextArtifact,
|
|
VideoArtifact,
|
|
)
|
|
from v2.request.cancel import CancelKind, Cancelled, CancelScope
|
|
from v2.request.modalpart import (
|
|
ActionPart,
|
|
AudioPart,
|
|
ImagePart,
|
|
LatentPart,
|
|
Modality,
|
|
ModalPart,
|
|
TextPart,
|
|
VideoPart,
|
|
)
|
|
from v2.request.params import CaptureMode, DiffusionParams, OutputSpec, SamplingParams
|
|
from v2.request.requests import Request, Session, make_request, new_request_id
|
|
from v2.request.streams import OmniEvent, Stream, StreamChunk
|
|
from v2.request.tasks import TaskType
|
|
|
|
__all__ = [
|
|
"TaskType", "Modality", "ModalPart", "TextPart", "ImagePart", "VideoPart",
|
|
"AudioPart", "ActionPart", "LatentPart",
|
|
"SamplingParams", "DiffusionParams", "OutputSpec", "CaptureMode",
|
|
"Request", "Session", "make_request", "new_request_id",
|
|
"Artifact", "VideoArtifact", "AudioArtifact", "TextArtifact",
|
|
"TensorArtifact", "LatentArtifact", "Output",
|
|
"Stream", "OmniEvent", "StreamChunk",
|
|
"CancelScope", "CancelKind", "Cancelled",
|
|
]
|