feat(web): complete the Clip subsystem and pass the headed acceptance suite
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

- Reader: real blend block bases win over synthesized interior array
  addresses, fixing post-detect track truncation (19 exported vs 60 in Main).
- Track color reads DNA float[3] with an alpha pad; bpy writes 3 components
  because RNA PROP_COLOR_GAMMA has no alpha.
- Clamp track weight and weight_stab to the RNA 0..1 factor range.
- Read the scene frame range from scenes[0].renderSettings.
- Mask status phases poll with a stall-tolerant loop instead of expect.poll,
  which fails the whole run when one DOM query stalls during engine persist.
- Continuation and module coverage record the 24/24 PASS receipt
  (tests/golden/CLIP-HEADED-20261204-052513); acceptance stays NOT_CLAIMED.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-12-04 05:35:52 +08:00
parent 8bc0808d76
commit 012e857edf
66 changed files with 11106 additions and 82 deletions

View File

@@ -1591,9 +1591,14 @@ export function parseEditorWorkflow(value: unknown): EditorWorkflowIR {
if (!record(item)) throw new EditorWorkflowValidationError('EDITOR_LAYOUT_INVALID', 'Invalid Properties data option');
return { id: item.id === '' ? '' : text(item.id, 'Properties data option'), label: text(item.label, 'Properties data option label') };
});
if (new Set(items.map(item => item.id)).size !== items.length ||
(items.length > 0 && (typeof field.value !== 'string' || !items.some(item => item.id === field.value)))) {
throw new EditorWorkflowValidationError('EDITOR_LAYOUT_INVALID', 'Inconsistent Properties data field');
if (new Set(items.map(item => item.id)).size !== items.length) {
throw new EditorWorkflowValidationError('EDITOR_LAYOUT_INVALID', 'Duplicate Properties data option');
}
/* Real files can leave a Properties selector pointing at a data-block
* that the item list does not contain; coerce it to a valid item
* instead of refusing to open the file. */
if (items.length > 0 && !(typeof field.value === 'string' && items.some(item => item.id === field.value))) {
field = { ...field, value: items[0].id };
}
const minimum = field.minimum;
const maximum = field.maximum;

View File

@@ -30,11 +30,46 @@ export interface TrackingMarkerIR {
selected: boolean;
}
export type MovieClipSourceStatus = "AVAILABLE" | "MISSING" | "UNREADABLE";
export interface TrackingTrackSettingsIR {
/** TrackingMotionModel: 0 translation .. 5 homography. */
motionModel: number;
/** Bitmask: 1 brute force, 4 normalization, 8 mask. */
algorithm: number;
minimumCorrelation: number;
framesLimit: number;
/** 0 = keyframe match, 1 = previous frame match. */
patternMatch: number;
margin: number;
weight: number;
weightStab: number;
/** TRACK_CUSTOMCOLOR: draw the track with its own color instead of the default. */
useCustomColor?: boolean;
/** RGBA 0..1, drawn when useCustomColor is set. */
color?: [number, number, number, number];
/** TRACK_DISABLE_RED/GREEN/BLUE inverted: channels used for tracking. */
useRedChannel?: boolean;
useGreenChannel?: boolean;
useBlueChannel?: boolean;
/** TRACK_PREVIEW_GRAYSCALE / TRACK_PREVIEW_ALPHA preview toggles. */
useGrayscalePreview?: boolean;
useAlphaPreview?: boolean;
}
export interface TrackingTrackIR {
id: string;
name: string;
object?: string;
selected: boolean;
locked: boolean;
/** TRACK_HIDDEN: hidden from the tracking view. */
hidden?: boolean;
/** TRACK_USE_2D_STAB: the track drives 2D stabilization translation. */
useStab?: boolean;
/** TRACK_USE_2D_STAB_ROT: the track drives rotation stabilization. */
useStabRot?: boolean;
settings?: TrackingTrackSettingsIR;
markers: TrackingMarkerIR[];
}
@@ -44,6 +79,8 @@ export interface PlaneTrackIR {
id: string;
name: string;
selected: boolean;
/** PLANE_TRACK_HIDDEN: the plane overlay is hidden in the editor. */
hidden?: boolean;
pointTrackIds: string[];
keyframes: PlaneTrackKeyframeIR[];
}
@@ -56,24 +93,103 @@ export interface CameraSolveIR {
focalLength?: number;
principalPoint?: Vec2;
solvedFrames?: number[];
/** Clip-local solve keyframes (MovieTrackingObject.keyframe1/2). */
keyframeA?: number;
keyframeB?: number;
/** MovieTrackingObject.scale used by the set/apply scale tools. */
scale?: number;
}
/** MovieTrackingStabilization: 2D stabilization settings. */
export interface ClipStabilizationIR {
/** TRACKING_2D_STABILIZATION: stabilization display is enabled. */
enabled: boolean;
/** TRACKING_AUTOSCALE. */
autoscale: boolean;
/** TRACKING_STABILIZE_ROTATION. */
useRotation: boolean;
/** TRACKING_STABILIZE_SCALE. */
useScale: boolean;
/** TRACKING_SHOW_STAB_TRACKS. */
showStabTracks?: boolean;
/** Clip-local anchor frame. */
anchorFrame: number;
targetPos: Vec2;
targetRot: number;
/** Zoom factor known to be present on the footage. */
scale: number;
locinf: number;
scaleinf: number;
rotinf: number;
/** 0 = nearest, 1 = bilinear, 2 = bicubic. */
filter: number;
maxscale: number;
totalTracks?: number;
totalRotationTracks?: number;
}
export interface MovieClipIR {
id: string;
name: string;
sourcePath: string;
sourceSha256: string;
/** Name of the active tracking object (MovieTracking.objectnr). */
activeObject?: string;
/** Project-relative media path. Required for AVAILABLE clips. */
sourcePath?: string;
sourceStatus: MovieClipSourceStatus;
/** Content digest of the resolved source file. Required for AVAILABLE clips. */
sourceSha256?: string;
/** Decoded frame size; 0 means the source could not be decoded. */
width: number;
height: number;
frameStart: number;
frameEnd: number;
fpsNumerator: number;
fpsDenominator: number;
fpsNumerator?: number;
fpsDenominator?: number;
tracks: TrackingTrackIR[];
planeTracks: PlaneTrackIR[];
cameraSolve?: CameraSolveIR;
/** Desktop proxy settings stored in the MovieClip DNA. */
proxy?: MovieClipProxyIR;
/** MovieTrackingSettings defaults and the tracking camera intrinsics. */
settings?: MovieClipTrackingSettingsIR;
/** MovieTrackingStabilization 2D stabilization settings. */
stabilization?: ClipStabilizationIR;
}
export interface MovieClipTrackingSettingsIR {
defaultMotionModel: number;
defaultAlgorithm: number;
defaultMinimumCorrelation: number;
defaultPatternSize: number;
defaultSearchSize: number;
defaultFramesLimit: number;
defaultMargin: number;
defaultPatternMatch: number;
defaultWeight: number;
/** TRACKING_MOTION_TRIPOD: tripod solve. */
motionFlag: number;
/** TrackingRefineCameraFlag bitmask. */
refine: number;
focal?: number;
sensorWidth?: number;
pixelAspect?: number;
/** TrackingCameraUnits: 0 px, 1 in, 2 cm. */
units?: number;
/** TrackingDistortionModel. */
distortionModel?: number;
principal?: Vec2;
}
export interface MovieClipProxyIR {
/** MCLIP_USE_PROXY: the editor decodes from proxies when they exist. */
enabled: boolean;
/** Bitmask of proxy sizes: 1 = 25%, 2 = 50%, 4 = 75%, 8 = 100%. */
buildSizes: number;
quality: number;
}
const CLIP_SOURCE_STATUSES = new Set<MovieClipSourceStatus>(["AVAILABLE", "MISSING", "UNREADABLE"]);
export interface MaskPointIR {
id: string;
co: Vec2;
@@ -175,6 +291,11 @@ function finite(value: unknown, name: string, minimum: number, maximum: number):
return value;
}
function boolean(value: unknown, name: string): boolean {
if (typeof value !== "boolean") throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name} is invalid`);
return value;
}
function digest(value: unknown, name: string): string {
if (typeof value !== "string" || !SHA256.test(value)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name} must be a lowercase SHA-256 digest`);
return value;
@@ -221,11 +342,15 @@ function maskPoint(value: unknown, name: string): MaskPointIR {
};
}
function cameraSolve(value: unknown, sourceSha256: string, name: string): CameraSolveIR | undefined {
function cameraSolve(value: unknown, sourceSha256: string | undefined, name: string): CameraSolveIR | undefined {
if (value === undefined) return undefined;
if (!record(value) || !["NONE", "SOLVED", "FAILED"].includes(value.status as string)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name} is invalid`);
const solve: CameraSolveIR = { status: value.status as CameraSolveIR["status"] };
if (value.keyframeA !== undefined) solve.keyframeA = integer(value.keyframeA, `${name}.keyframeA`, -TRACKING_MASK_BUDGET.maxFrame, TRACKING_MASK_BUDGET.maxFrame);
if (value.keyframeB !== undefined) solve.keyframeB = integer(value.keyframeB, `${name}.keyframeB`, -TRACKING_MASK_BUDGET.maxFrame, TRACKING_MASK_BUDGET.maxFrame);
if (value.scale !== undefined) solve.scale = finite(value.scale, `${name}.scale`, 1e-6, 1_000_000);
if (solve.status === "SOLVED") {
if (sourceSha256 === undefined) throw new TrackingMaskValidationError("TRACKING_SOURCE_HASH_MISMATCH", `${name} is solved but the clip source is unresolved`);
solve.sourceSha256 = digest(value.sourceSha256, `${name}.sourceSha256`);
if (solve.sourceSha256 !== sourceSha256) throw new TrackingMaskValidationError("TRACKING_SOURCE_HASH_MISMATCH", `${name} source hash is stale`);
solve.settingsHash = digest(value.settingsHash, `${name}.settingsHash`);
@@ -258,7 +383,37 @@ export function parseTrackingMaskProject(value: unknown): TrackingMaskProjectIR
if (!record(trackValue) || !Array.isArray(trackValue.markers)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${trackName} is invalid`);
const trackId = text(trackValue.id, `${trackName}.id`); if (trackIds.has(trackId)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `Duplicate track ${trackId}`); trackIds.add(trackId);
markerCount += trackValue.markers.length; if (markerCount > TRACKING_MASK_BUDGET.maxMarkers) throw new TrackingMaskValidationError("TRACKING_BUDGET_EXCEEDED", "Tracking markers exceed the budget");
return { id: trackId, name: text(trackValue.name, `${trackName}.name`), selected: trackValue.selected === true, locked: trackValue.locked === true, markers: sortedFrames(trackValue.markers.map((item, markerIndex) => marker(item, `${trackName}.markers[${markerIndex}]`)), `${trackName}.markers`) };
if (trackValue.hidden !== undefined && typeof trackValue.hidden !== "boolean") throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${trackName}.hidden is invalid`);
if (trackValue.useStab !== undefined && typeof trackValue.useStab !== "boolean") throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${trackName}.useStab is invalid`);
if (trackValue.useStabRot !== undefined && typeof trackValue.useStabRot !== "boolean") throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${trackName}.useStabRot is invalid`);
const track: TrackingTrackIR = { id: trackId, name: text(trackValue.name, `${trackName}.name`), selected: trackValue.selected === true, locked: trackValue.locked === true, markers: sortedFrames(trackValue.markers.map((item, markerIndex) => marker(item, `${trackName}.markers[${markerIndex}]`)), `${trackName}.markers`) };
if (trackValue.object !== undefined) track.object = text(trackValue.object, `${trackName}.object`, 128);
if (trackValue.hidden !== undefined) track.hidden = trackValue.hidden;
if (trackValue.useStab !== undefined) track.useStab = trackValue.useStab;
if (trackValue.useStabRot !== undefined) track.useStabRot = trackValue.useStabRot;
if (trackValue.settings !== undefined) {
if (!record(trackValue.settings)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${trackName}.settings is invalid`);
const settings = trackValue.settings;
track.settings = {
motionModel: integer(settings.motionModel, `${trackName}.settings.motionModel`, 0, 5),
algorithm: integer(settings.algorithm, `${trackName}.settings.algorithm`, 0, 15),
minimumCorrelation: finite(settings.minimumCorrelation, `${trackName}.settings.minimumCorrelation`, 0, 1),
framesLimit: integer(settings.framesLimit, `${trackName}.settings.framesLimit`, 0, 10000),
patternMatch: integer(settings.patternMatch, `${trackName}.settings.patternMatch`, 0, 1),
margin: integer(settings.margin, `${trackName}.settings.margin`, 0, 10000),
weight: finite(settings.weight, `${trackName}.settings.weight`, 0, 1000),
weightStab: finite(settings.weightStab, `${trackName}.settings.weightStab`, 0, 1000),
};
for (const key of ["useCustomColor", "useRedChannel", "useGreenChannel", "useBlueChannel", "useGrayscalePreview", "useAlphaPreview"] as const) {
const value = settings[key];
if (value !== undefined) track.settings[key] = boolean(value, `${trackName}.settings.${key}`);
}
if (settings.color !== undefined) {
if (!Array.isArray(settings.color) || settings.color.length !== 4) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${trackName}.settings.color is invalid`);
track.settings.color = settings.color.map((item, index) => finite(item, `${trackName}.settings.color[${index}]`, 0, 1)) as [number, number, number, number];
}
}
return track;
});
const planeIds = new Set<string>();
const planeTracks = clipValue.planeTracks.map((planeValue, planeIndex): PlaneTrackIR => {
@@ -271,11 +426,76 @@ export function parseTrackingMaskProject(value: unknown): TrackingMaskProjectIR
if (!record(item) || !Array.isArray(item.corners) || item.corners.length !== 4) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${planeName}.keyframes[${keyIndex}] is invalid`);
return { frame: integer(item.frame, `${planeName}.keyframes[${keyIndex}].frame`, -TRACKING_MASK_BUDGET.maxFrame, TRACKING_MASK_BUDGET.maxFrame), corners: item.corners.map((corner, cornerIndex) => vec2(corner, `${planeName}.keyframes[${keyIndex}].corners[${cornerIndex}]`, -4, 4)) as Quad2 };
}), `${planeName}.keyframes`);
return { id: planeId, name: text(planeValue.name, `${planeName}.name`), selected: planeValue.selected === true, pointTrackIds, keyframes };
return { id: planeId, name: text(planeValue.name, `${planeName}.name`), selected: planeValue.selected === true, hidden: planeValue.hidden === true, pointTrackIds, keyframes };
});
let sourcePath: string; try { sourcePath = normalizeProjectAssetPath(text(clipValue.sourcePath, `${name}.sourcePath`, 2048)); } catch { throw new TrackingMaskValidationError("TRACKING_RESOURCE_OUTSIDE_PROJECT", `${name}.sourcePath is outside the project`); }
const sourceSha256 = digest(clipValue.sourceSha256, `${name}.sourceSha256`);
return { id, name: text(clipValue.name, `${name}.name`), sourcePath, sourceSha256, width: integer(clipValue.width, `${name}.width`, 1, 32768), height: integer(clipValue.height, `${name}.height`, 1, 32768), frameStart, frameEnd, fpsNumerator: integer(clipValue.fpsNumerator, `${name}.fpsNumerator`, 1, 1_000_000), fpsDenominator: integer(clipValue.fpsDenominator, `${name}.fpsDenominator`, 1, 1_000_000), tracks, planeTracks, cameraSolve: cameraSolve(clipValue.cameraSolve, sourceSha256, `${name}.cameraSolve`) };
const sourceStatus = clipValue.sourceStatus as MovieClipSourceStatus;
if (!CLIP_SOURCE_STATUSES.has(sourceStatus)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name}.sourceStatus is invalid`);
let sourcePath: string | undefined;
if (clipValue.sourcePath !== undefined || sourceStatus === "AVAILABLE") {
try { sourcePath = normalizeProjectAssetPath(text(clipValue.sourcePath, `${name}.sourcePath`, 2048)); } catch { throw new TrackingMaskValidationError("TRACKING_RESOURCE_OUTSIDE_PROJECT", `${name}.sourcePath is outside the project`); }
}
let sourceSha256: string | undefined;
if (sourceStatus === "AVAILABLE") sourceSha256 = digest(clipValue.sourceSha256, `${name}.sourceSha256`);
const hasFps = clipValue.fpsNumerator !== undefined || clipValue.fpsDenominator !== undefined;
if (hasFps && (clipValue.fpsNumerator === undefined || clipValue.fpsDenominator === undefined)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name} fps numerator and denominator must be paired`);
const clip: MovieClipIR = { id, name: text(clipValue.name, `${name}.name`), sourceStatus, width: integer(clipValue.width, `${name}.width`, 0, 32768), height: integer(clipValue.height, `${name}.height`, 0, 32768), frameStart, frameEnd, tracks, planeTracks };
if (clipValue.activeObject !== undefined) clip.activeObject = text(clipValue.activeObject, `${name}.activeObject`, 128);
if (sourcePath !== undefined) clip.sourcePath = sourcePath;
if (sourceSha256 !== undefined) clip.sourceSha256 = sourceSha256;
if (hasFps) { clip.fpsNumerator = integer(clipValue.fpsNumerator, `${name}.fpsNumerator`, 1, 1_000_000); clip.fpsDenominator = integer(clipValue.fpsDenominator, `${name}.fpsDenominator`, 1, 1_000_000); }
const solve = cameraSolve(clipValue.cameraSolve, sourceSha256, `${name}.cameraSolve`);
if (solve !== undefined) clip.cameraSolve = solve;
if (clipValue.proxy !== undefined) {
if (!record(clipValue.proxy)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name}.proxy is invalid`);
if (typeof clipValue.proxy.enabled !== "boolean") throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name}.proxy.enabled is invalid`);
clip.proxy = { enabled: clipValue.proxy.enabled, buildSizes: integer(clipValue.proxy.buildSizes, `${name}.proxy.buildSizes`, 0, 255), quality: integer(clipValue.proxy.quality, `${name}.proxy.quality`, 0, 100) };
}
if (clipValue.settings !== undefined) {
if (!record(clipValue.settings)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name}.settings is invalid`);
const settings = clipValue.settings;
clip.settings = {
defaultMotionModel: integer(settings.defaultMotionModel, `${name}.settings.defaultMotionModel`, 0, 5),
defaultAlgorithm: integer(settings.defaultAlgorithm, `${name}.settings.defaultAlgorithm`, 0, 15),
defaultMinimumCorrelation: finite(settings.defaultMinimumCorrelation, `${name}.settings.defaultMinimumCorrelation`, 0, 1),
defaultPatternSize: integer(settings.defaultPatternSize, `${name}.settings.defaultPatternSize`, 0, 10000),
defaultSearchSize: integer(settings.defaultSearchSize, `${name}.settings.defaultSearchSize`, 0, 10000),
defaultFramesLimit: integer(settings.defaultFramesLimit, `${name}.settings.defaultFramesLimit`, 0, 10000),
defaultMargin: integer(settings.defaultMargin, `${name}.settings.defaultMargin`, 0, 10000),
defaultPatternMatch: integer(settings.defaultPatternMatch, `${name}.settings.defaultPatternMatch`, 0, 1),
defaultWeight: finite(settings.defaultWeight, `${name}.settings.defaultWeight`, 0, 1000),
motionFlag: integer(settings.motionFlag, `${name}.settings.motionFlag`, 0, 1),
refine: integer(settings.refine, `${name}.settings.refine`, 0, 15),
};
if (settings.focal !== undefined) clip.settings.focal = finite(settings.focal, `${name}.settings.focal`, 0, 10_000_000);
if (settings.sensorWidth !== undefined) clip.settings.sensorWidth = finite(settings.sensorWidth, `${name}.settings.sensorWidth`, 0, 100_000);
if (settings.pixelAspect !== undefined) clip.settings.pixelAspect = finite(settings.pixelAspect, `${name}.settings.pixelAspect`, 0.0001, 1000);
if (settings.units !== undefined) clip.settings.units = integer(settings.units, `${name}.settings.units`, 0, 2);
if (settings.distortionModel !== undefined) clip.settings.distortionModel = integer(settings.distortionModel, `${name}.settings.distortionModel`, 0, 5);
if (settings.principal !== undefined) clip.settings.principal = vec2(settings.principal, `${name}.settings.principal`, -2, 2);
}
if (clipValue.stabilization !== undefined) {
if (!record(clipValue.stabilization)) throw new TrackingMaskValidationError("TRACKING_SCHEMA_INVALID", `${name}.stabilization is invalid`);
const stab = clipValue.stabilization;
clip.stabilization = {
enabled: stab.enabled === true,
autoscale: stab.autoscale === true,
useRotation: stab.useRotation === true,
useScale: stab.useScale === true,
anchorFrame: integer(stab.anchorFrame, `${name}.stabilization.anchorFrame`, -TRACKING_MASK_BUDGET.maxFrame, TRACKING_MASK_BUDGET.maxFrame),
targetPos: vec2(stab.targetPos, `${name}.stabilization.targetPos`, -1, 1),
targetRot: finite(stab.targetRot, `${name}.stabilization.targetRot`, -1e6, 1e6),
scale: finite(stab.scale, `${name}.stabilization.scale`, 0.0001, 1000),
locinf: finite(stab.locinf, `${name}.stabilization.locinf`, 0, 1),
scaleinf: finite(stab.scaleinf, `${name}.stabilization.scaleinf`, 0, 1),
rotinf: finite(stab.rotinf, `${name}.stabilization.rotinf`, 0, 1),
filter: integer(stab.filter, `${name}.stabilization.filter`, 0, 2),
maxscale: finite(stab.maxscale, `${name}.stabilization.maxscale`, 0, 100),
};
if (stab.showStabTracks !== undefined) clip.stabilization.showStabTracks = stab.showStabTracks === true;
if (stab.totalTracks !== undefined) clip.stabilization.totalTracks = integer(stab.totalTracks, `${name}.stabilization.totalTracks`, 0, TRACKING_MASK_BUDGET.maxTracks);
if (stab.totalRotationTracks !== undefined) clip.stabilization.totalRotationTracks = integer(stab.totalRotationTracks, `${name}.stabilization.totalRotationTracks`, 0, TRACKING_MASK_BUDGET.maxTracks);
}
return clip;
});
const maskIds = new Set<string>();
const masks = value.masks.map((maskValue, maskIndex): MaskIR => {
@@ -341,9 +561,9 @@ export function applyTrackingMaskEdit(value: unknown, edit: TrackingMaskEditIR):
}
export function gateTrackingOperation(operation: "MARKER_EDIT" | "MASK_EDIT" | "BROWSER_TRACKING" | "CAMERA_SOLVE", browserProbe: "VERIFIED" | "UNAVAILABLE" | "UNVERIFIED" = "UNVERIFIED"): CapabilityGateResult {
if (operation === "MARKER_EDIT" || operation === "MASK_EDIT") return readyGate("N-022", operation);
if (operation === "MARKER_EDIT" || operation === "MASK_EDIT" || operation === "CAMERA_SOLVE") return readyGate("N-022", operation);
if (operation === "BROWSER_TRACKING" && browserProbe === "VERIFIED") return readyGate("N-022", operation);
return blockedGate("N-022", operation, [capabilityIssue("TRACKING_SOLVE_UNAVAILABLE", operation === "CAMERA_SOLVE" ? "Camera solve requires a verified server Blender implementation" : "Browser tracking requires an explicit feature probe")]);
return blockedGate("N-022", operation, [capabilityIssue("TRACKING_SOLVE_UNAVAILABLE", "Browser tracking requires an explicit feature probe")]);
}
function bezierPoint(a: Vec2, b: Vec2, c: Vec2, d: Vec2, t: number): Vec2 {

View File

@@ -30,7 +30,8 @@ export type EditorType =
| "Spreadsheet"
| "Text Editor"
| "Python Console"
| "Info";
| "Info"
| "Clip";
export type BlenderMode = "Object" | "Edit" | "Pose" | "Sculpt" | "Texture Paint" | "Vertex Paint" | "Weight Paint";
export interface RegionIR {

View File

@@ -376,13 +376,24 @@ export type WebEngineJsonCommand =
| "readRNACollection"
| "importScene"
| "exportScene"
| "compositorEvaluate";
| "compositorEvaluate"
| "clipFrame"
| "clipGraphSamples"
| "createPlaneTrack"
| "rebuildClipProxies"
| "trackMarkers"
| "solveCamera"
| "clipTrackingEdit"
| "detectFeatures"
| "clipSolveEdit"
| "planeTrackEdit"
| "clipManage";
export type WebEngineRequest =
| { requestId: string; command: { type: "init" } }
| { requestId: string; command: { type: "loadWasmModule"; id: string } }
| { requestId: string; command: { type: "crashForTest" } }
| { requestId: string; command: { type: "openBlend"; buffer: ArrayBuffer; replacements?: Array<{ sourcePath: string; idCode: number; missingName: string; replacementName: string; replacementSourcePath?: string }>; libraries?: Array<{ path: string; buffer: ArrayBuffer }> }; }
| { requestId: string; command: { type: "openBlend"; buffer: ArrayBuffer; replacements?: Array<{ sourcePath: string; idCode: number; missingName: string; replacementName: string; replacementSourcePath?: string }>; libraries?: Array<{ path: string; buffer: ArrayBuffer }>; resources?: Array<{ path: string; buffer: ArrayBuffer }> }; }
| { requestId: string; command: { type: "applyServerBlendResult"; buffer: ArrayBuffer; baseRevision: number }; }
| { requestId: string; command: { type: "cancelOpen"; targetRequestId: string } }
| { requestId: string; command: { type: "openResourceStatus" } }