conformtools 0.6.11 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/{account-IUWNSDG5.js → account-F54SG45Q.js} +1 -1
- package/dist/agent-hook-setup-RTQT5JEN.js +3 -0
- package/dist/{analysis-engine-M7W32RRC.js → analysis-engine-UWIK7AYB.js} +1 -1
- package/dist/{bridge-SV7PCLQY.js → bridge-PWYOJ7E7.js} +1 -1
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/{chunk-2WBGXD27.js → chunk-4BTTR6U3.js} +2 -2
- package/dist/{chunk-NSQP6CTA.js → chunk-4VFDGL4E.js} +1 -1
- package/dist/{chunk-THVX57I3.js → chunk-6WLSIH2N.js} +1 -1
- package/dist/{chunk-DGXZB7MO.js → chunk-7W5AFZYX.js} +1 -1
- package/dist/chunk-B54TEGMG.js +5 -0
- package/dist/chunk-BTS3DFPD.js +7 -0
- package/dist/chunk-BYMCZJBQ.js +3 -0
- package/dist/{chunk-64X5DLH5.js → chunk-EP4L2BWV.js} +1 -1
- package/dist/chunk-ERUN634Q.js +6 -0
- package/dist/{chunk-6HZP2OJA.js → chunk-G3HBKJ5L.js} +1 -1
- package/dist/{chunk-IK6RKNS5.js → chunk-H4BU5WA6.js} +1 -1
- package/dist/{chunk-XIAG7ACN.js → chunk-I2Y2P5NH.js} +2 -2
- package/dist/{chunk-2CY2OOOJ.js → chunk-J43UCJ6G.js} +1 -1
- package/dist/chunk-L3HRAIDR.js +8 -0
- package/dist/chunk-LKQTE6T5.js +158 -0
- package/dist/chunk-LRGA6QJQ.js +514 -0
- package/dist/{chunk-JXTRQ3UG.js → chunk-LZRCXSUJ.js} +1 -1
- package/dist/chunk-NZLL44HU.js +3 -0
- package/dist/chunk-OD445COC.js +7 -0
- package/dist/chunk-XI6XF7FQ.js +3 -0
- package/dist/{chunk-6VP6G7CY.js → chunk-Y455Y6V4.js} +4 -4
- package/dist/{claude-setup-REU4AOKX.js → claude-setup-NGZ5NDYH.js} +1 -1
- package/dist/cli.js +9 -9
- package/dist/engine-6ACEWA4S.js +5 -0
- package/dist/framing-P5RGN5V3.js +3 -0
- package/dist/gfx-worker.js +1 -1
- package/dist/{h264-B2TLLEMI.js → h264-JI62TU4W.js} +1 -1
- package/dist/{h264-mxf-3GED5PBT.js → h264-mxf-J2QPZO4U.js} +1 -1
- package/dist/hook.js +3 -0
- package/dist/host-relink-76CFY32O.js +10 -0
- package/dist/hosted-L26AGRIY.js +3 -0
- package/dist/hosts-TBHEPV6A.js +3 -0
- package/dist/http.js +3 -3
- package/dist/{inspect-RJFJQSHZ.js → inspect-U656APGR.js} +2 -2
- package/dist/{isobmff-C5A2EFKH.js → isobmff-UISATYUR.js} +1 -1
- package/dist/{mc-video-ARKIHPA7.js → mc-video-LSTKUKNL.js} +1 -1
- package/dist/mcp.js +8 -7
- package/dist/{media-22VAJIVT.js → media-XBNKYKB7.js} +1 -1
- package/dist/mxf-ZL57VJ3C.js +3 -0
- package/dist/{ops-BCTGDBXT.js → ops-ZQEQXW2N.js} +1 -1
- package/dist/probe-ZDX6XNRF.js +3 -0
- package/dist/{r3d-FX7V4BIE.js → r3d-R4TLYJVE.js} +1 -1
- package/dist/resolve-bridge.py +31 -2
- package/dist/{sequence-patch-CN4VC5W3.js → sequence-patch-C2QRIT5V.js} +1 -1
- package/dist/store-JNWELX35.js +3 -0
- package/dist/timeline-JONFBIA3.js +3 -0
- package/package.json +5 -5
- package/dist/chunk-2QT5MMBP.js +0 -499
- package/dist/chunk-5YWO2LBG.js +0 -3
- package/dist/chunk-6NLB5TZ2.js +0 -7
- package/dist/chunk-G3SZDPDS.js +0 -3
- package/dist/chunk-RKIRHMON.js +0 -5
- package/dist/chunk-ROPKSAFP.js +0 -6
- package/dist/chunk-S6KP52OG.js +0 -8
- package/dist/chunk-VE423Z2L.js +0 -132
- package/dist/chunk-XF3YMBI7.js +0 -3
- package/dist/engine-274GQLUB.js +0 -5
- package/dist/framing-ZTMYZR2S.js +0 -3
- package/dist/host-relink-FHNXXMHW.js +0 -10
- package/dist/hosted-BWAYLJXR.js +0 -3
- package/dist/hosts-Y6HGDRLM.js +0 -3
- package/dist/mxf-CQSI6H5T.js +0 -3
- package/dist/probe-72QZKMCC.js +0 -3
- package/dist/store-H676BOKI.js +0 -3
- package/dist/timeline-5TGA5HBY.js +0 -3
- /package/dist/{still-WUCFH2WX.js → still-4UR35GZH.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i,o as j,p as k,q as l,r as m,s as n,t as o,u as p,v as q}from"./chunk-
|
|
3
|
+
import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i,o as j,p as k,q as l,r as m,s as n,t as o,u as p,v as q}from"./chunk-Y455Y6V4.js";import"./chunk-PFZVET7S.js";import"./chunk-6V4OEOOX.js";import"./chunk-RGMTLNMF.js";import"./chunk-XDI6CPPV.js";import"./chunk-7W5AFZYX.js";import"./chunk-LZRCXSUJ.js";import"./chunk-NU3X7P4N.js";import"./chunk-DPA26AOI.js";import"./chunk-PHAMF4JF.js";import"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";export{a as MEDIA_EXTS,g as bwfAt,q as coverage,e as decodeFrameRgb16,d as decodeFrameRgba,o as factsLine,h as factsText,n as findMedia,p as findText,i as islandsFor,m as nameMatch,l as normName,c as openSource,f as probeMedia,b as siblingParts,k as trimMedia,j as trimSource};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{a as $}from"./chunk-AACY2V3L.js";import{b as J}from"./chunk-7W5AFZYX.js";import{b as j}from"./chunk-LZRCXSUJ.js";import{Ha as N,Ia as l,M,R as P,b as B,ca as D,da as T,e as I,ea as C,fa as E,g as S,ga as L,ia as O,ra as V,ua as W,w as k,wa as G}from"./chunk-DPA26AOI.js";import"./chunk-PSANHDZM.js";var z=new Uint8Array([6,14,43,52,2,5,1,1,13,1,2,1,1,17,1,0]);function se(t){e:for(let r=t.length-z.length;r>=0;r--){for(let e=0;e<z.length;e++)if(t[r+e]!==z[e])continue e;return r}return-1}function Z(t,r){if(r>=t.byteLength)return[null,0];let e=t.getUint8(r);if(e<128)return[e,1];let n=e&127;if(n===0||n>8||r+1+n>t.byteLength)return[null,1];let a=0;for(let i=0;i<n;i++)a=a*256+t.getUint8(r+1+i);return[a,1+n]}function b(t,r){let e=t.getUint32(r,!1),n=t.getUint32(r+4,!1);return e*4294967296+n}async function H(t){let r=t.fileSize,e=[];if(r<1024)return e;let a=Math.max(0,r-65536),i=r-a,o=await t.read(a,i);e.push({offset:a,length:i});let s=se(o);if(s<0)return e;let c=new DataView(o.buffer,o.byteOffset,o.byteLength),[f,te]=Z(c,s+16);if(f===null||f<16||f>65536)return e;let F=s+16+te;if(F+f>o.length)return e;let A=[],ne=new DataView(o.buffer,o.byteOffset+F,f),g=Math.floor((f-4)/12);if(g<1||g>4096)return e;for(let u=0;u<g;u++){let d=b(ne,u*12+4);d>=0&&d<r&&A.push(d)}for(let u of A){let d=Math.min(256,r-u),p=await t.read(u,d);if(p.length<80)continue;let y=new DataView(p.buffer,p.byteOffset,p.byteLength),[R,v]=Z(y,16);if(R===null)continue;let m=16+v,_,x;if(p.length<m+64){let oe=Math.min(m+64,r-u),h=await t.read(u,oe);if(h.length<m+64)continue;let U=new DataView(h.buffer,h.byteOffset,h.byteLength);_=b(U,m+32),x=b(U,m+40)}else _=b(y,m+32),x=b(y,m+40);let ae=u+16+v+R+_+x,ie=Math.min(ae+65536,r)-u;e.push({offset:u,length:ie})}return e}function q(t,r){let e=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let a=n.source_range.start.value,i=n.source_range.duration.value,o=Math.max(0,Math.floor(a)-r),s=Math.floor(a+i-1)+r;s>=o&&e.push({first_frame:o,last_frame:s})}return e}function ce(t,r){let e=[...t].sort((i,o)=>i.offset-o.offset),n=[],a=0;for(let i of e)i.offset>a&&n.push({offset:a,length:i.offset-a}),a=Math.max(a,i.offset+i.length);return a<r&&n.push({offset:a,length:r-a}),n}async function K(t,r,e){let n=q(r,0);if(n.length===0)throw new Error("planMxfTrimsFromItems: no usable trim ranges in items");await l();let a=(o,s)=>t.read(o,s),i=await J(n,e,(o,s)=>V(a,t.fileSize,o,s));return i.map((o,s)=>{let c=JSON.parse(o);return i.length>1&&(c.output_clip_number=s+1,c.output_clip_count=i.length,c.output_part_number=1),c})}async function Q(t,r,e){await l();let n=q(r,e),i=await W((s,c)=>t.read(s,c),t.fileSize,JSON.stringify(n));if(i!=="null")return JSON.parse(i);console.warn(`[mxf] no parseable index \u2014 shipping the WHOLE file (${t.fileSize} bytes). The cut's ${n.length} range(s) cannot be addressed; nothing is trimmed.`);let o=(await H(t)).map(s=>({offset:s.offset,length:s.length}));return{fileSize:t.fileSize,structuralRanges:o,essenceRanges:ce(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function X(t){await l();let e=await G((n,a)=>t.read(n,a),t.fileSize);return JSON.parse(e)}function w(t){return(r,e)=>t.read(r,e)}var Me={async inspect(t){let r=t.parts[0],e=await X(r);if(!e)return null;let n=e.timecode??null,a=n&&n.fps_denominator>0?n.fps_numerator/n.fps_denominator:null,i=e.width??null,o=e.height??null,s=e.inner_codec==="mpeg2"||e.inner_codec==="dv"?e.inner_codec:null;return{id:r.filename,kind:"external",target_url:r.filename,available_range:a&&e.frame_count?{start:{value:0,rate:a},duration:{value:e.frame_count,rate:a}}:null,reel_name:null,source_timecode:n?.display??null,source_fps:a,source_resolution_w:i,source_resolution_h:o,container:"mxf",codec:s,size_bytes:r.fileSize,streams:[...i||o||a?[{kind:"video",codec:s,width:i??void 0,height:o??void 0,rate:a??void 0,codec_specific:null}]:[],...e.audio?[{kind:"audio",codec:e.audio.codec_fourcc,channels:e.audio.channels??void 0,rate:e.audio.sample_rate??void 0,bit_depth:e.audio.bit_depth??void 0,codec_specific:{fourcc:e.audio.codec_fourcc}}]:[]],decode_provenance:e.decode_provenance??null,vendor_metadata:{frame_count:e.frame_count,...n?{drop_frame:n.drop_frame}:{},...e.inner_codec?{inner_codec:e.inner_codec}:{},...e.truncated?{truncated:!0}:{}},binding_state:"unbound",raw_extraction:{mxf_probe:e},metadata:{}}},async extract(t){await l();let r=t.parts[0],e=JSON.parse(await O(w(r),r.fileSize));return e.length===0?null:{v:1,container:"mxf",codec:"mxf",frame_count:$(e),granularity:"frame",segments:e}},async sparsify(t,r){let e=t.parts[0],n=await Q(e,r.items,r.handles);return[{filename:e.filename,fileSize:n.fileSize,structuralRanges:n.structuralRanges,essenceRanges:n.essenceRanges,trimInputs:n.trimInputs,wholeFileFallback:n.wholeFileFallback}]},async trim(t,r){let e=t.parts[0];return K(e,r.items,r.handles)},async decode(t,r,e){await l();let n=t.parts[0],a=w(n),i=await re(t),o=e.detail==="coarse",s;if(i==="arriraw")s=await S(a,n.fileSize,r,o?"preview:4":"full");else if(i==="arriraw-alev3")s=await I(a,n.fileSize,r,o?"preview:4":"full");else if(i==="dnxhr")s=await M(a,n.fileSize,r,o?"preview":"full");else if(i==="xocn")s=await P(a,n.fileSize,r,o?"preview":"full");else if(i==="prores")s=await k(a,n.fileSize,r,o?"preview":"full");else throw new Error(`mxf decode: no decoder for inner codec '${i}'`);let c=new DataView(s.buffer,s.byteOffset,8);return{width:c.getUint32(0,!0),height:c.getUint32(4,!0),rgba:s.slice(8)}},async decode16(t,r){await l();let e=t.parts[0],n=w(e),a=await re(t),i;try{if(a==="arriraw"){let o=await ue(t,r);if(o)return o;i=await S(n,e.fileSize,r,"rgb16")}else if(a==="dnxhr")i=await M(n,e.fileSize,r,"rgb16");else if(a==="xocn")i=await P(n,e.fileSize,r,"rgb16");else throw new Error(`mxf decode16: no decoder for inner codec '${a}'`)}catch(o){throw fe(o,a)}return j(i)}};function fe(t,r){let e=typeof t=="string"?t:t instanceof Error?t.message:"";return/has no 16-bit decoder|no rgb16 tier/.test(e)?new Error(`mxf ${r}: has no 16-bit decoder \u2014 ${e}`):t}var Y=new WeakMap;async function ue(t,r){if(!N)return null;try{let e=await import("./arriraw-YIJ3BYNN.js");if(!await e.arrirawGpuAvailable())return null;let{parseArrirawGpuPayload:n,arrirawFrameToRgb16:a}=await import("./clip-state-B6JOX3JE.js"),i=t.parts[0],o=Y.get(t)??null,s=await B(w(i),i.fileSize,r,o?.key),c=n(s,o);if(!c)return null;Y.set(t,{key:c.key,state:c.state});let f=await e.decodeArrirawFrameGpu(c.essence,c.state);return f?{width:f.width,height:f.height,rgb16:a(f)}:null}catch{return null}}var ee=new WeakMap;async function re(t){let r=ee.get(t);if(r)return r;await l();let e=t.parts[0],n=w(e),a="mxf";return await T(n,e.fileSize)?a="arriraw":await D(n,e.fileSize)?a="arriraw-alev3":await E(n,e.fileSize)?a="dnxhr":await L(n,e.fileSize)?a="xocn":await C(n,e.fileSize)&&(a="prores"),ee.set(t,a),a}export{Me as mxfFormat};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-
|
|
3
|
+
import{a,b,c,d,e,f,g,h,i}from"./chunk-LZRCXSUJ.js";import"./chunk-PSANHDZM.js";export{c as CoverageMissError,e as DeliveryCoverageMissError,a as INTENTS,f as asDeliveryCoverageMiss,h as extract,i as mediaOp,d as parseDeliveryCoverageMiss,g as resolveFormat,b as unpackFrame16};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{d as h}from"./chunk-J43UCJ6G.js";import{G as d,aa as o,b as p,g as n,i as a,n as u,t as s}from"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";import{dirname as m}from"node:path";import{fileURLToPath as P}from"node:url";import w from"node:process";var r="ColorMatchProbe.ofx.bundle",x="http://127.0.0.1:9876",i="/Library/OFX/Plugins";async function b(){let e=w.execPath;for(let t of[p("CONFORM_RESOLVE_PROBE"),o(m(e),"..","Resources","resolve-probe",r),o(m(P(import.meta.url)),"..","..","..","resolve_hook","build",r)])if(t&&await s(o(t,"Contents","MacOS","ColorMatchProbe.ofx")))return t;return null}async function E(){let e=n()==="darwin"&&a()==="arm64",t=await s(o(i,r)),l=await fetch(x+"/",{signal:AbortSignal.timeout(500)}).then(f=>f.ok).catch(()=>!1),c=!!await b();return{installed:t,loaded:l,shipped:c,supported:e,next:e?l?"running: the Color page selection and the selected node are read live":t?"installed; restart Resolve to load it":c?"host_setup host=resolve action=install_probe (asks for an administrator), then restart Resolve":"not in this build":"the probe runs on Apple silicon Macs only"}}async function S(){if(n()!=="darwin"||a()!=="arm64")throw new Error("the probe runs on Apple silicon Macs only");let e=await b();if(!e)throw new Error("this build does not carry the probe (resolve_hook/build.sh makes it)");return await h("darwin",e,i,r),await d(o(u(),"Library","Application Support","Blackmagic Design","DaVinci Resolve","OFXPluginCacheV2.xml")).catch(()=>{}),{path:o(i,r),restart_required:!0}}export{r as PROBE_BUNDLE,x as PROBE_URL,S as installProbe,E as probeStatus};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{c as l}from"./chunk-
|
|
3
|
+
import{c as l}from"./chunk-LZRCXSUJ.js";import{Aa as v,Ba as F,H as _,Ha as O,I as S,Ia as f,J as P,ja as b,ka as R,xa as w}from"./chunk-DPA26AOI.js";import"./chunk-PSANHDZM.js";var g=class{constructor(e=[]){this.ranges=[];for(let[r,n]of e)this.add(r,n)}add(e,r){if(r<=e)return;let n=[],[s,o]=[e,r];for(let[i,a]of this.ranges)a<s||i>o?n.push([i,a]):(s=Math.min(s,i),o=Math.max(o,a));n.push([s,o]),n.sort((i,a)=>i[0]-a[0]),this.ranges=n}has(e,r){return r<=e?!0:this.ranges.some(([n,s])=>n<=e&&s>=r)}missing(e,r){if(r<=e)return[];let n=[],s=e;for(let[o,i]of this.ranges)if(!(i<=s)&&(o>=r||(o>s&&n.push([s,Math.min(o,r)]),s=Math.max(s,i),s>=r)))break;return s<r&&n.push([s,r]),n}count(){return this.ranges.reduce((e,[r,n])=>e+(n-r),0)}toJSON(){return this.ranges.map(([e,r])=>[e,r])}};function U(t,e){let r=new g;for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let s=n.source_range.start.value,o=n.source_range.duration.value,i=Math.max(0,Math.max(0,Math.floor(s))-e),a=Math.floor(s+o)+e;a>i&&r.add(i,a)}return r.toJSON()}function J(t,e,r){let n=U(e,r),s=a=>n.some(([c,u])=>a>=c&&a<u),o=new Map,i=a=>{let c=o.get(a);return c||(c={part:a,structuralRanges:[],essenceRanges:[]},o.set(a,c)),c};for(let a of t.segments){let c=a.part??0;a.kind==="structural"?i(c).structuralRanges.push({offset:a.offset,length:a.length}):(a.kind==="frame"||a.kind==="gop")&&a.frame_in!=null&&s(a.frame_in)&&i(c).essenceRanges.push({offset:a.offset,length:a.length})}return[...o.values()].sort((a,c)=>a.part-c.part)}async function A(t,e){if(!O)return null;try{let n=await(await import("./r3d-I6EYEYX7.js")).decodeR3dRgbaGpu(t,e);return n?{width:n.width,height:n.height,rgba:n.rgba}:null}catch{return null}}function p(t){return(e,r,n)=>t.parts[e].read(r,n)}function d(t){return JSON.stringify(t.parts.map(e=>({name:e.filename,size:e.fileSize})))}function L(t,e){let r=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let s=n.source_range.start.value,o=n.source_range.duration.value;r.push({frame_in:Math.max(0,Math.floor(s)),frame_out:Math.floor(s+o),handles:e})}return JSON.stringify(r)}var k=16,h=new WeakMap,D=new WeakMap;function x(t){let e=D.get(t);return e||(e=t.parts[0].read(0,Math.min(16*1024,t.parts[0].fileSize)),D.set(t,e)),e}async function N(t){let e=h.get(t);return e||(await f(),e=JSON.parse(await b(p(t),d(t))),h.set(t,e)),e}async function G(t){await f();let e=await b(p(t),d(t));return h.set(t,JSON.parse(e)),e}function B(t,e){h.set(t,JSON.parse(e))}async function C(t,e){let r=JSON.parse(await R(p(t),d(t)));return{v:1,container:"r3d",codec:"redcode",frame_count:e.frame_count,granularity:"frame",...t.parts.length>1?{part_names:t.parts.map(n=>n.filename.split(/[/\\]/).pop()??n.filename)}:{},segments:r}}var V={async inspect(t){await f();let e=await w(p(t),d(t)),r=JSON.parse(e);if(!r||r.frame_count===0)return null;let n=t.parts[0],s=r.timecode??null,o=s&&s.fps_denominator>0?s.fps_numerator/s.fps_denominator:null,i=r.width??null,a=r.height??null;return{id:n.filename,kind:"external",target_url:n.filename,available_range:o&&r.frame_count?{start:{value:0,rate:o},duration:{value:r.frame_count,rate:o}}:null,reel_name:r.reel??null,source_timecode:s?.display??null,source_fps:o,source_resolution_w:i,source_resolution_h:a,container:"r3d",codec:"redcode",size_bytes:r.file_size,streams:[{kind:"video",codec:"redcode",width:i??void 0,height:a??void 0,rate:o??void 0,bit_depth:k,codec_specific:{fourcc:r.codec_fourcc??"REDCODE"}}],decode_provenance:r.decode_provenance??null,vendor_metadata:{frame_count:r.frame_count,...s?{drop_frame:s.drop_frame}:{}},binding_state:"unbound",raw_extraction:{r3d_probe:r},metadata:{}}},async extract(t){await f();let e=JSON.parse(await w(p(t),d(t)));return!e||e.frame_count===0?null:C(t,e)},async sparsify(t,e){await f();let r=JSON.parse(await R(p(t),d(t))),n={v:1,container:"r3d",codec:"redcode",frame_count:r.filter(o=>o.kind==="frame").length,granularity:"frame",segments:r},s=new Map;for(let o of r)o.kind==="frame"&&s.set(o.part??0,(s.get(o.part??0)??0)+1);return J(n,e.items,e.handles).map(o=>({filename:t.parts[o.part].filename,fileSize:t.parts[o.part].fileSize,structuralRanges:o.structuralRanges,essenceRanges:o.essenceRanges,frameCount:s.get(o.part)??0,keptFrames:o.essenceRanges.length}))},async trim(t,e){await f();let r=t.parts.some(a=>a.dataRanges!==void 0),n=r?JSON.stringify(t.parts.map(a=>a.dataRanges??[])):"[]",s=r?"[]":L(e.items,e.handles),o=await F(p(t),d(t),s,n);return JSON.parse(o).parts.map(a=>a.trim_plan)},async decode(t,e,r){await f();let n=await N(t);if(e<0||e>=n.length)throw new l(e,n.length);let s=n[e],o=s.part??0,i=t.parts[o];if(!i)throw new l(e,n.length);let a=await i.read(s.essenceOffset,s.essenceLength),c=2,u=await x(t),m;if(r.detail==="coarse")m=_(a,u,0);else if(v(a))m=_(a,u,c);else{let y=await A(a,u);if(y)return y;m=P(a,u)}let M=new DataView(m.buffer,m.byteOffset,8);return{width:M.getUint32(0,!0),height:M.getUint32(4,!0),rgba:m.slice(8)}},async decode16(t,e){await f();let r=await N(t);if(e<0||e>=r.length)throw new l(e,r.length);let n=r[e],s=t.parts[n.part??0];if(!s)throw new l(e,r.length);let o=await s.read(n.essenceOffset,n.essenceLength),i=S(o),a=new DataView(i.buffer,i.byteOffset,8),c=a.getUint32(0,!0),u=a.getUint32(4,!0),m=i.slice(8);return{width:c,height:u,rgb16:new Uint16Array(m.buffer,m.byteOffset,c*u*3)}}};export{G as listR3dFramesJson,V as r3dFormat,B as seedR3dFramesJson};
|
package/dist/resolve-bridge.py
CHANGED
|
@@ -544,13 +544,28 @@ def a_open(resolve, args):
|
|
|
544
544
|
# in the pool it takes that one. So the named files go in first, and the result is checked.
|
|
545
545
|
before = pool_ids(mp.GetRootFolder()) if named else set()
|
|
546
546
|
on_disk = [m for m in named if os.path.isfile(m)]
|
|
547
|
+
missing = [m for m in named if m not in on_disk]
|
|
547
548
|
if on_disk:
|
|
548
549
|
mp.ImportMedia(on_disk)
|
|
549
550
|
tl = mp.ImportTimelineFromFile(path, opts)
|
|
551
|
+
retried_linking = False
|
|
552
|
+
if not tl and not link and missing:
|
|
553
|
+
# the media the file names is not on this machine (offline, another SAN): Resolve refuses the import when told
|
|
554
|
+
# to import source clips it cannot find. Linking to the pool by name imports the timeline with those clips
|
|
555
|
+
# offline, which is what the artist wants to see (a tester's FCP7 XML with 319 offline clips, 2026-11-02).
|
|
556
|
+
tl = mp.ImportTimelineFromFile(path, {"timelineName": name, "importSourceClips": False})
|
|
557
|
+
retried_linking = bool(tl)
|
|
550
558
|
if not tl:
|
|
551
559
|
restored = restore()
|
|
552
|
-
|
|
553
|
-
|
|
560
|
+
if missing:
|
|
561
|
+
why = "%d of %d media files it names are not on this machine (e.g. %s); linking to clips already in the pool by name was refused too" % (len(missing), len(named), os.path.basename(missing[0]))
|
|
562
|
+
elif link:
|
|
563
|
+
why = "linking to clips already in the pool by name (link_existing)"
|
|
564
|
+
else:
|
|
565
|
+
why = "the media it names is on this machine" if named else "it names no media"
|
|
566
|
+
fail("import_failed", "Resolve refused to import %s: %s. Check that the file opens in Resolve by hand (File > Import > Timeline)" % (os.path.basename(path), why), restored=restored, missing=len(missing))
|
|
567
|
+
# linked by name on the retry: items link to pool clips of the same name by design, not a mislink
|
|
568
|
+
wrong = [] if retried_linking else mislinked(tl, named, before)
|
|
554
569
|
if wrong:
|
|
555
570
|
mp.DeleteTimelines([tl])
|
|
556
571
|
restored = restore()
|
|
@@ -573,6 +588,8 @@ def a_open(resolve, args):
|
|
|
573
588
|
fail("import_mislinked", "the copy did not link every clip to the original's pool clip (%d off: %s); deleted, nothing changed" % (
|
|
574
589
|
len(off), ", ".join(off[:10])), restored=restored)
|
|
575
590
|
notes = []
|
|
591
|
+
if retried_linking:
|
|
592
|
+
notes.append("%d of %d media files the timeline names are not on this machine; imported linking to clips already in the pool by name, the rest offline (relink them with host_relink / timeline_relink once the media is here)" % (len(missing), len(named)))
|
|
576
593
|
if tl.GetName() != name: # Resolve may name it after the file
|
|
577
594
|
tl.SetName(name)
|
|
578
595
|
settings = None
|
|
@@ -1558,6 +1575,18 @@ def _op(p, t, op, find):
|
|
|
1558
1575
|
n, f = int(round(fps)), int(tl.GetStartFrame()) + int(op.get("frame", 0))
|
|
1559
1576
|
tc = "%02d:%02d:%02d:%02d" % (f // (3600 * n), f // (60 * n) % 60, f // n % 60, f % n)
|
|
1560
1577
|
return {"ok": bool(tl.SetCurrentTimecode(tc)), "timeline": tl.GetName(), "tc": tc, "undo": []}
|
|
1578
|
+
if kind == "pool_folder":
|
|
1579
|
+
# a media pool folder path (A/B/C), each missing level made; an empty folder is harmless, so nothing to undo
|
|
1580
|
+
# (a tester's suggestion, 2026-11-02: build the job's folder tree before importing into it)
|
|
1581
|
+
mp = p.GetMediaPool()
|
|
1582
|
+
cur = mp.GetCurrentFolder() # Resolve makes a new bin current: the artist's place is put back
|
|
1583
|
+
try:
|
|
1584
|
+
folder, missing = pool_folder(mp, op.get("folder", ""), create=True)
|
|
1585
|
+
finally:
|
|
1586
|
+
mp.SetCurrentFolder(cur)
|
|
1587
|
+
if folder is None:
|
|
1588
|
+
return {"ok": False, "undo": [], "detail": "could not make the folder %s" % missing}
|
|
1589
|
+
return {"ok": True, "undo": [], "folder": op.get("folder", "")}
|
|
1561
1590
|
if kind == "pool_import":
|
|
1562
1591
|
# files into a pool folder (made if missing); undo takes back exactly the clips this added
|
|
1563
1592
|
mp = p.GetMediaPool()
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{a,b,c,d,e,f,g,h}from"./chunk-
|
|
3
|
+
import{a,b,c,d,e,f,g,h}from"./chunk-NZLL44HU.js";import"./chunk-PHAMF4JF.js";import"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";export{b as APPLIED,a as BACKUP_SUFFIX,e as applyPatch,c as patchFolders,g as patchName,d as planPatch,h as readRecord,f as undoPatch};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{A as a,B as b,C as c,D as d,E as e,F as f,G as g}from"./chunk-L3HRAIDR.js";import"./chunk-OD445COC.js";import"./chunk-EP4L2BWV.js";import"./chunk-PHAMF4JF.js";import"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";export{a as createSession,g as getExtra,c as getSession,b as lastSessionId,e as listSessions,f as saveExtra,d as updateSession};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{$b as h,Ub as a,Vb as b,Wb as c,Xb as d,Yb as e,Zb as f,_b as g,ac as i,bc as j,cc as k,dc as l,ec as m,fc as n,gc as o,hc as p,ic as q,jc as r,kc as s}from"./chunk-LKQTE6T5.js";import"./chunk-IN6XVTUS.js";import"./chunk-Y455Y6V4.js";import"./chunk-PFZVET7S.js";import"./chunk-6V4OEOOX.js";import"./chunk-H4BU5WA6.js";import"./chunk-ISKNIQVO.js";import"./chunk-JKOB3U54.js";import"./chunk-EEDLRRKU.js";import"./chunk-WJ5EWXP2.js";import"./chunk-YUO3UWPH.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JV7TZDKJ.js";import"./chunk-RGMTLNMF.js";import"./chunk-XDI6CPPV.js";import"./chunk-7W5AFZYX.js";import"./chunk-LZRCXSUJ.js";import"./chunk-BTS3DFPD.js";import"./chunk-6WLSIH2N.js";import"./chunk-LVGGCRDW.js";import"./chunk-C2ESM27Z.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-DPA26AOI.js";import"./chunk-L3HRAIDR.js";import"./chunk-OD445COC.js";import"./chunk-EP4L2BWV.js";import"./chunk-PHAMF4JF.js";import"./chunk-XI6XF7FQ.js";import"./chunk-PSANHDZM.js";export{i as OPERATION_KINDS,a as READ_FORMATS,j as applyOperation,l as applyOperationWithSources,r as consolidate,g as countFlags,b as detectFormat,s as judge,q as linkText,e as listClips,h as listFlags,f as listMedia,c as readTimeline,m as resolveTarget,p as routesText,d as summarize,k as trackIndex,o as writeDestination,n as writeTimeline};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conformtools",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
4
4
|
"description": "conform.tools on your machine: timeline exchange, relink, media trim, delivery and auto conform, as MCP tools for Claude and other AI apps, a CLI and a local HTTP API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"conformtools-darwin-arm64": "0.6.
|
|
48
|
-
"conformtools-darwin-x64": "0.6.
|
|
49
|
-
"conformtools-linux-x64": "0.6.
|
|
50
|
-
"conformtools-windows-x64": "0.6.
|
|
47
|
+
"conformtools-darwin-arm64": "0.6.13",
|
|
48
|
+
"conformtools-darwin-x64": "0.6.13",
|
|
49
|
+
"conformtools-linux-x64": "0.6.13",
|
|
50
|
+
"conformtools-windows-x64": "0.6.13"
|
|
51
51
|
}
|
|
52
52
|
}
|