conformtools 0.5.1

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.
Files changed (60) hide show
  1. package/README.md +92 -0
  2. package/dist/arriraw-Y5VXHXNX.js +525 -0
  3. package/dist/browser/timeline_core_bg.wasm +0 -0
  4. package/dist/chunk-35U7WGES.js +3 -0
  5. package/dist/chunk-3XTUTEKJ.js +102 -0
  6. package/dist/chunk-7D7H6VFW.js +3 -0
  7. package/dist/chunk-AACY2V3L.js +3 -0
  8. package/dist/chunk-AHNDJFQR.js +3 -0
  9. package/dist/chunk-C2ESM27Z.js +3 -0
  10. package/dist/chunk-DKGGJM6Z.js +3 -0
  11. package/dist/chunk-DRHOPOC7.js +3 -0
  12. package/dist/chunk-HJXRLQOI.js +3 -0
  13. package/dist/chunk-IDDQR56R.js +7 -0
  14. package/dist/chunk-JEMLKBH2.js +3 -0
  15. package/dist/chunk-NYB4ISL3.js +3 -0
  16. package/dist/chunk-P7OVDUA5.js +3 -0
  17. package/dist/chunk-PSANHDZM.js +3 -0
  18. package/dist/chunk-QDWB7QU7.js +3 -0
  19. package/dist/chunk-RXHNBSER.js +3 -0
  20. package/dist/chunk-SP5RGDAM.js +3 -0
  21. package/dist/chunk-TK55FA56.js +3 -0
  22. package/dist/chunk-UCMNH6Q6.js +3 -0
  23. package/dist/chunk-UUMHVA7R.js +3 -0
  24. package/dist/chunk-WWGQFOB2.js +64 -0
  25. package/dist/chunk-YPRTUS5W.js +3 -0
  26. package/dist/cli.js +11 -0
  27. package/dist/clip-state-B6JOX3JE.js +3 -0
  28. package/dist/cr3-wasm-X6Q4YMUU.js +3 -0
  29. package/dist/dng-wasm-EAB24KDN.js +3 -0
  30. package/dist/dpx-wasm-OX2D24ZB.js +3 -0
  31. package/dist/esm-SFFBP7PS.js +3 -0
  32. package/dist/exr-wasm-Z6BBPJSN.js +3 -0
  33. package/dist/h264-JHQCJTWP.js +3 -0
  34. package/dist/h264-mxf-4M63NBQK.js +3 -0
  35. package/dist/http.js +4 -0
  36. package/dist/inspect-6OM4FTVW.js +46 -0
  37. package/dist/isobmff-XL33CVJR.js +3 -0
  38. package/dist/mcp.js +13 -0
  39. package/dist/media_core-VSTO6CS4.js +9 -0
  40. package/dist/media_core_bg-BKXQLNFA.js +3 -0
  41. package/dist/media_core_bg-XIM7Y4R3.js +3 -0
  42. package/dist/mxf-VIANACTI.js +3 -0
  43. package/dist/onnxruntime-web-stub-PKJ2NZBF.js +3 -0
  44. package/dist/ops-7HVBBXUQ.js +3 -0
  45. package/dist/prores-TQEZ3KFH.js +526 -0
  46. package/dist/r3d-2QCFX7UX.js +3 -0
  47. package/dist/r3d-AT6NNIY3.js +1025 -0
  48. package/dist/source-BDJAUQVR.js +3 -0
  49. package/dist/sscd-sweep-IXM4OD7O.js +3 -0
  50. package/dist/still-E4HLCCST.js +3 -0
  51. package/dist/tiff-wasm-XYTQNL2F.js +3 -0
  52. package/dist/timeline_core-VK2ZWPCO.js +3 -0
  53. package/dist/timeline_core_bg-QEOVAIWP.js +3 -0
  54. package/dist/udf_bg-UTQ6BVXX.js +3 -0
  55. package/dist/wasm/media_core_bg.wasm +0 -0
  56. package/dist/wasm/udf_bg.wasm +0 -0
  57. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  58. package/dist/wav-DXF73Y56.js +3 -0
  59. package/dist/zod-IPSV75LP.js +3 -0
  60. package/package.json +41 -0
@@ -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,b,c,d,e,f}from"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-PSANHDZM.js";export{c as formatForFile,b as partFromByteSource,a as partFromFile,d as sourceFromFile,e as sourceFromFiles,f as sourceFromParts};
@@ -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{k as a,l as b,m as c,n as d}from"./chunk-HJXRLQOI.js";import"./chunk-DRHOPOC7.js";import"./chunk-QDWB7QU7.js";import"./chunk-AHNDJFQR.js";import"./chunk-TK55FA56.js";import"./chunk-UUMHVA7R.js";import"./chunk-NYB4ISL3.js";import"./chunk-PSANHDZM.js";export{a as MAX_EMBED_STRIDE,b as desaturate,c as squareRgba,d as sweepClipEmbeddings};
@@ -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-RXHNBSER.js";import{a as M}from"./chunk-UCMNH6Q6.js";import"./chunk-PSANHDZM.js";function v(n){return{size:n.fileSize,read:(t,e)=>n.read(t,e)}}var U=class{constructor(t){this.r=t;this.buf=new Uint8Array(0);this.base=0}async at(t,e){if(t<0||e<=0)return new Uint8Array(0);let r=t-this.base;return r>=0&&r+e<=this.buf.length?this.buf.subarray(r,r+e):(this.buf=await this.r.read(t,Math.max(e,65536)),this.base=t,this.buf.subarray(0,Math.min(e,this.buf.length)))}},A=(n,t)=>n[t]<<8|n[t+1],w=(n,t)=>n[t]|n[t+1]<<8,W=(n,t)=>n[t]|n[t+1]<<8|n[t+2]<<16,d=(n,t)=>(n[t]<<24|n[t+1]<<16|n[t+2]<<8|n[t+3])>>>0,b=(n,t)=>(n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24)>>>0,P=(n,t)=>n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24,p=(n,t,e)=>String.fromCharCode(...n.subarray(t,t+e));function h(n,t){if(!Number.isFinite(n)||!Number.isFinite(t))return null;let e=Math.round(n),r=Math.round(t);return e<1||r<1||e>1e6||r>1e6?null:{width:e,height:r}}var k=n=>({width:n.height,height:n.width});async function C(n){let t=await n.at(0,24);return t.length<24||t[0]!==137||p(t,1,3)!=="PNG"||p(t,12,4)!=="IHDR"?null:h(d(t,16),d(t,20))}var D=new Set([192,193,194,195,197,198,199,201,202,203,205,206,207]);function I(n){if(n.length<8)return null;let t=n[0]===73&&n[1]===73,e=n[0]===77&&n[1]===77;if(!t&&!e)return null;let r=a=>t?w(n,a):A(n,a),i=a=>t?b(n,a):d(n,a);if(r(2)!==42)return null;let l=i(4);if(l+2>n.length)return null;let c=r(l);for(let a=0;a<c;a++){let u=l+2+a*12;if(u+12>n.length)break;if(r(u)===274)return r(u+8)}return null}async function F(n,t){let e=await n.at(0,2);if(e.length<2||e[0]!==255||e[1]!==216)return null;let r=1,i=null,l=2;for(;l+4<=t;){let c=await n.at(l,4);if(c.length<4)break;if(c[0]!==255){l++;continue}let a=c[1];if(a===255){l++;continue}if(a===1||a>=208&&a<=217){l+=2;continue}if(a===218)break;let u=A(c,2);if(u<2)break;if(D.has(a)){let o=await n.at(l+4,5);o.length>=5&&(i=h(A(o,3),A(o,1)));break}if(a===225){let o=await n.at(l+4,Math.min(u-2,65536));o.length>6&&p(o,0,4)==="Exif"&&(r=I(o.subarray(6))??1)}l+=2+u}return i?r>=5&&r<=8?k(i):i:null}async function j(n){let t=await n.at(0,10);return t.length<10||p(t,0,3)!=="GIF"?null:h(w(t,6),w(t,8))}async function L(n){let t=await n.at(0,26);return t.length<22||p(t,0,2)!=="BM"?null:b(t,14)===12?h(w(t,18),w(t,20)):t.length<26?null:h(P(t,18),Math.abs(P(t,22)))}async function H(n){let t=await n.at(0,30);if(t.length<16||p(t,0,4)!=="RIFF"||p(t,8,4)!=="WEBP")return null;let e=p(t,12,4);if(e==="VP8X")return t.length<30?null:h(W(t,24)+1,W(t,27)+1);if(e==="VP8 ")return t.length<30||t[23]!==157||t[24]!==1||t[25]!==42?null:h(w(t,26)&16383,w(t,28)&16383);if(e==="VP8L"){if(t.length<25||t[20]!==47)return null;let r=b(t,21);return h((r&16383)+1,(r>>>14&16383)+1)}return null}async function S(n,t){let e=[],r=0;async function i(a,u,o){let f=a;for(;f+8<=u&&o<8;){let g=await n.at(f,16);if(g.length<8)return;let s=d(g,0),m=p(g,4,4),y=8;if(s===1){if(g.length<16)return;s=d(g,8)*2**32+d(g,12),y=16}else s===0&&(s=u-f);if(s<y||f+s>u)return;if(m==="meta")await i(f+y+4,f+s,o+1);else if(m==="iprp"||m==="ipco")await i(f+y,f+s,o+1);else if(m==="ispe"){let x=await n.at(f+y+4,8);if(x.length===8){let R=h(d(x,0),d(x,4));R&&e.push(R)}}else if(m==="irot"){let x=await n.at(f+y,1);x.length===1&&(r=x[0]&3)}f+=s}}let l=await n.at(0,12);if(l.length<12||p(l,4,4)!=="ftyp"||(await i(0,t,0),e.length===0))return null;let c=e.reduce((a,u)=>a.width*a.height>=u.width*u.height?a:u);return r===1||r===3?k(c):c}async function G(n){let t=await n.at(0,22);return t.length<22||p(t,0,4)!=="8BPS"?null:h(d(t,18),d(t,14))}var N=new Set([0,1,2,3,9,10,11]);async function T(n){let t=await n.at(0,18);if(t.length<18||t[1]>1||!N.has(t[2]))return null;let e=t[16];return[8,15,16,24,32].includes(e)?h(w(t,12),w(t,14)):null}async function B(n){let t=await n.at(0,8);if(t.length<8)return null;let e=t[0]===73&&t[1]===73,r=t[0]===77&&t[1]===77;if(!e&&!r)return null;let i=(s,m)=>e?w(s,m):A(s,m),l=(s,m)=>e?b(s,m):d(s,m);if(i(t,2)!==42)return null;let c=l(t,4),a=await n.at(c,2);if(a.length<2)return null;let u=i(a,0);if(u<1||u>4096)return null;let o=await n.at(c+2,u*12),f=0,g=0;for(let s=0;s<u;s++){let m=s*12;if(m+12>o.length)break;let y=i(o,m),R=i(o,m+2)===3?i(o,m+8):l(o,m+8);y===256?f=R:y===257&&(g=R)}return h(f,g)}async function V(n,t){let e=await n.at(0,8);if(e.length<8||e[0]!==118||e[1]!==47||e[2]!==49||e[3]!==1)return null;let r=8,i=Math.min(t,1<<20);for(;r<i;){let l=await n.at(r,512);if(l.length===0)return null;let c=l.indexOf(0);if(c<=0)return null;let a=p(l,0,c),u=l.subarray(c+1).indexOf(0);if(u<0)return null;let o=c+1+u+1;if(o+4>l.length)return null;let f=b(l,o),g=r+o+4;if(a==="dataWindow"){if(f<16)return null;let s=await n.at(g,16);return s.length<16?null:h(P(s,8)-P(s,0)+1,P(s,12)-P(s,4)+1)}r=g+f}return null}async function X(n){let t=await n.at(0,4);if(t.length<4)return null;let e=p(t,0,4),r=e==="SDPX";if(!r&&e!=="XPDS")return null;let i=await n.at(772,8);return i.length<8?null:h(r?d(i,0):b(i,0),r?d(i,4):b(i,4))}var Y={png:C,jpg:F,jpeg:F,gif:j,bmp:L,webp:H,avif:S,heic:S,heif:S,psd:G,tga:T,tif:B,tiff:B,exr:V,dpx:X};async function z(n,t){let e=Y[(n??"").toLowerCase()];if(!e)return null;try{return await e(new U(t),t.size)}catch{return null}}var q=n=>{let t=n.split(/[/\\]/).pop()??"",e=t.lastIndexOf(".");return e>0?t.slice(e+1).toLowerCase():""};async function J(n,t){try{if(n==="dpx"){let e=await(await import("./dpx-wasm-OX2D24ZB.js")).inspectDpxWasm(t);return e?{width:e.width,height:e.height}:null}if(n==="exr"){let e=await(await import("./exr-wasm-Z6BBPJSN.js")).inspectExrWasm(t);return e?{width:e.width,height:e.height}:null}if(n==="dng"){let e=await(await import("./dng-wasm-EAB24KDN.js")).inspectDngWasm(t);return e?{width:e.width,height:e.height}:null}if(n==="cr3"){let e=await(await import("./cr3-wasm-X6Q4YMUU.js")).inspectCr3Wasm(t);return e?{width:e.width,height:e.height}:null}if(n==="tif"||n==="tiff"){let e=await(await import("./tiff-wasm-XYTQNL2F.js")).inspectTiffWasm(t);return e?{width:e.width,height:e.height}:null}}catch{}return null}async function K(n){if(typeof createImageBitmap!="function"||typeof Blob>"u")return null;try{let t=await createImageBitmap(new Blob([n])),e={width:t.width,height:t.height};return t.close?.(),e.width>0&&e.height>0?e:null}catch{return null}}async function O(n){let t=q(n.filename),e=await z(t,v(n));if(e)return e;let r=M(t);if(r===null||r==="none")return null;let i;try{i=await n.read(0,n.fileSize)}catch{return null}return r==="wasm-decoder"?await J(t,i):await K(i)}function E(n){let t=_(n);return t==="jpg"?"jpeg":t==="tif"?"tiff":t||"still"}var rt={async inspect(n){let t=n.parts[0],e=await O(t);return{id:t.filename,kind:"external",content_kind:"still",target_url:t.filename,available_range:null,reel_name:null,source_timecode:null,container:_(t.filename)||"still",codec:E(t.filename),size_bytes:t.fileSize,bitrate_bps:null,source_resolution_w:e?.width??null,source_resolution_h:e?.height??null,source_pixel_aspect:e?1:null,streams:[],vendor_metadata:{},binding_state:"unbound",raw_extraction:{},metadata:{}}},async extract(n){let t=n.parts.map((e,r)=>({kind:"frame",part:r,offset:0,length:e.fileSize,frame_in:r,frame_out:r}));return t.length===0?null:{v:1,container:_(n.parts[0].filename)||"still",codec:E(n.parts[0].filename),frame_count:t.length,granularity:"frame",segments:t,...n.parts.length>1?{part_names:n.parts.map(e=>e.filename)}:{}}},async sparsify(){throw new Error("stillFormat.sparsify: stills ship whole \u2014 no sparse plan exists")},async trim(){throw new Error("stillFormat.trim: stills ship whole \u2014 no trim plan exists")}};export{rt as stillFormat};
@@ -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 c,b as m}from"./chunk-DKGGJM6Z.js";import{F as f,S as s,sa as u,ua as n}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";async function y(r){await n();let e=s(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=f(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint32(0,!0),a=t.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function b(r,e=8){await n();let t=m(u,"decode_tiff_preview");if(!t)return d(r);try{return c(t(r,e))}catch{return null}}export{b as decodeTiffPreviewWasm,d as decodeTiffWasm,y as inspectTiffWasm};
@@ -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"./chunk-PSANHDZM.js";function O(e,r){let _,t;try{let c=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.capability_issues_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function S(e){let r=g(e,n.__wbindgen_malloc),_=f,t=n.deobfuscate_ptx(r,_);if(t[3])throw b(t[2]);var o=A(t[0],t[1]).slice();return n.__wbindgen_free(t[0],t[1]*1,1),o}function I(e){let r,_;try{let i=g(e,n.__wbindgen_malloc),c=f,s=n.extract_aaf_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function U(e,r){let _,t;try{let c=g(e,n.__wbindgen_malloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.extract_avb_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function D(e){let r,_;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=f,s=n.extract_drt_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function F(e){let r,_;try{let i=g(e,n.__wbindgen_malloc),c=f,s=n.extract_flame_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function B(e,r){let _,t;try{let c=g(e,n.__wbindgen_malloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.extract_prproj_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function L(e){let r,_;try{let i=g(e,n.__wbindgen_malloc),c=f,s=n.extract_ptx_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function k(e){let r,_;try{let i=g(e,n.__wbindgen_malloc),c=f,s=n.inspect_aaf_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function C(e){let r,_;try{let i=g(e,n.__wbindgen_malloc),c=f,s=n.inspect_avb_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function q(e){let r,_;try{let i=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),c=f,s=n.inspect_drt_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function z(e,r){let _,t;try{let c=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.inspect_fcpxml_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function P(e,r){let _,t;try{let c=g(e,n.__wbindgen_malloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.inspect_flame_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function N(e,r){let _,t;try{let c=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.inspect_otio_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function V(e){let r,_;try{let i=g(e,n.__wbindgen_malloc),c=f,s=n.inspect_prproj_json(i,c);var t=s[0],o=s[1];if(s[3])throw t=0,o=0,b(s[2]);return r=t,_=o,d(t,o)}finally{n.__wbindgen_free(r,_,1)}}function X(e,r){let _,t;try{let c=g(e,n.__wbindgen_malloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.inspect_ptx_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function Y(e,r){let _,t;try{let c=u(e,n.__wbindgen_malloc,n.__wbindgen_realloc),s=f,l=u(r,n.__wbindgen_malloc,n.__wbindgen_realloc),w=f,a=n.inspect_xmeml_json(c,s,l,w);var o=a[0],i=a[1];if(a[3])throw o=0,i=0,b(a[2]);return _=o,t=i,d(o,i)}finally{n.__wbindgen_free(_,t,1)}}function j(){return{__proto__:null,"./timeline_core_bg.js":{__proto__:null,__wbg_Error_fdd633d4bb5dd76a:function(r,_){return Error(d(r,_))},__wbindgen_cast_0000000000000001:function(r,_){return d(r,_)},__wbindgen_init_externref_table:function(){let r=n.__wbindgen_externrefs,_=r.grow(4);r.set(0,void 0),r.set(_+0,void 0),r.set(_+1,null),r.set(_+2,!0),r.set(_+3,!1)}}}}function A(e,r){return e=e>>>0,y().subarray(e/1,e/1+r)}function d(e,r){return T(e>>>0,r)}var p=null;function y(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(n.memory.buffer)),p}function g(e,r){let _=r(e.length*1,1)>>>0;return y().set(e,_/1),f=e.length,_}function u(e,r,_){if(_===void 0){let s=x.encode(e),l=r(s.length,1)>>>0;return y().subarray(l,l+s.length).set(s),f=s.length,l}let t=e.length,o=r(t,1)>>>0,i=y(),c=0;for(;c<t;c++){let s=e.charCodeAt(c);if(s>127)break;i[o+c]=s}if(c!==t){c!==0&&(e=e.slice(c)),o=_(o,t,t=c+e.length*3,1)>>>0;let s=y().subarray(o+c,o+t),l=x.encodeInto(e,s);c+=l.written,o=_(o,t,c,1)>>>0}return f=c,o}function b(e){let r=n.__wbindgen_externrefs.get(e);return n.__externref_table_dealloc(e),r}var m=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});m.decode();var W=2146435072,v=0;function T(e,r){return v+=r,v>=W&&(m=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),m.decode(),v=r),m.decode(y().subarray(e,e+r))}var x=new TextEncoder;"encodeInto"in x||(x.encodeInto=function(e,r){let _=x.encode(e);return r.set(_),{read:e.length,written:_.length}});var f=0,R,E,n;function h(e,r){return E=e,n=e.exports,R=r,p=null,n.__wbindgen_start(),n}async function M(e,r){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,r)}catch(o){if(e.ok&&_(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,r)}else{let t=await WebAssembly.instantiate(e,r);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}function _(t){switch(t){case"basic":case"cors":case"default":return!0}return!1}}function G(e){if(n!==void 0)return n;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let r=j();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));let _=new WebAssembly.Instance(e,r);return h(_,e)}async function H(e){if(n!==void 0)return n;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("timeline_core_bg.wasm",import.meta.url));let r=j();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:_,module:t}=await M(await e,r);return h(_,t)}export{O as capability_issues_json,H as default,S as deobfuscate_ptx,I as extract_aaf_json,U as extract_avb_json,D as extract_drt_json,F as extract_flame_json,B as extract_prproj_json,L as extract_ptx_json,G as initSync,k as inspect_aaf_json,C as inspect_avb_json,q as inspect_drt_json,z as inspect_fcpxml_json,P as inspect_flame_json,N as inspect_otio_json,V as inspect_prproj_json,X as inspect_ptx_json,Y as inspect_xmeml_json};
@@ -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"./chunk-PSANHDZM.js";var e=new URL("./browser/timeline_core_bg.wasm",import.meta.url).href;export{e as default};
@@ -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"./chunk-PSANHDZM.js";var e=new URL("./wasm/udf_bg.wasm",import.meta.url).href;export{e as default};
Binary file
Binary file
@@ -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 b}from"./chunk-AACY2V3L.js";import{T as _,ba as f,ha as d,ka as g,ua as u}from"./chunk-UUMHVA7R.js";import"./chunk-PSANHDZM.js";function p(s){return(r,t)=>s.read(r,t)}function S(s){let r=[];for(let t of s)t.kind!=="clip"||!t.source_range||r.push({start_frame:t.source_range.start.value,dur_frames:t.source_range.duration.value,fps:t.source_range.start.rate??1});return r}var w={async inspect(s){await u();let r=s.parts[0],t=await _(p(r),r.fileSize),e=JSON.parse(t);if(!e||!e.sample_rate)return null;let a=e.byte_rate>0?e.data_length/e.byte_rate:null,m=a?Math.round(a*e.sample_rate):0,n=[{kind:"audio",codec:"pcm",rate:e.sample_rate,channels:e.channels,bit_depth:e.bits_per_sample,codec_specific:{bits_per_sample:e.bits_per_sample}}];return{id:r.filename,kind:"external",content_kind:"audio",target_url:r.filename,available_range:a?{start:{value:0,rate:e.sample_rate},duration:{value:m,rate:e.sample_rate}}:null,reel_name:null,source_timecode:e.source_timecode??null,container:"wav",codec:"pcm",size_bytes:r.fileSize,bitrate_bps:e.byte_rate*8,streams:n,vendor_metadata:e.bext?{bext:e.bext}:{},binding_state:"unbound",raw_extraction:{wav_meta:e},metadata:{}}},async extract(s){await u();let r=s.parts[0],t=JSON.parse(await f(p(r),r.fileSize));return t.length===0?null:{v:1,container:"wav",codec:"pcm",frame_count:b(t),granularity:"second",segments:t}},async sparsify(s,r){await u();let t=s.parts[0],e=await g(p(t),t.fileSize,JSON.stringify(S(r.items)),r.handles),a=JSON.parse(e);return[{filename:t.filename,fileSize:a.fileSize,structuralRanges:a.structuralRanges,essenceRanges:a.essenceRanges,trimInputs:a.trimInputs}]},async trim(s,r){await u();let t=s.parts[0],e=[];for(let n of r.items){if(n.kind!=="clip"||!n.source_range)continue;let i=n.source_range.start.rate??1,o=Math.max(0,(n.source_range.start.value-r.handles)/i),c=(n.source_range.start.value+n.source_range.duration.value+r.handles)/i;c>o&&e.push([o,c])}if(e.length===0)throw new Error("wav trim: no usable trim ranges in items");e.sort((n,i)=>n[0]-i[0]);let a=[];for(let[n,i]of e){let o=a[a.length-1];o&&n<=o[1]?o[1]=Math.max(o[1],i):a.push([n,i])}let m=[];for(let[n,[i,o]]of a.entries()){let c=await d(p(t),t.fileSize,i,o,1),l=JSON.parse(c);a.length>1&&(l.output_clip_number=n+1,l.output_clip_count=a.length,l.output_part_number=1),m.push(l)}return m}};export{w as wavFormat};
@@ -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{$ as R,$a as Ra,$b as Rb,$c as Rc,A as q,Aa as qa,Ab as qb,Ac as qc,Ad as qd,B as r,Ba as ra,Bb as rb,Bc as rc,Bd as rd,C as s,Ca as sa,Cb as sb,Cc as sc,Cd as sd,D as t,Da as ta,Db as tb,Dc as tc,Dd as td,E as u,Ea as ua,Eb as ub,Ec as uc,Ed as ud,F as v,Fa as va,Fb as vb,Fc as vc,Fd as vd,G as w,Ga as wa,Gb as wb,Gc as wc,Gd as wd,H as x,Ha as xa,Hb as xb,Hc as xc,Hd as xd,I as y,Ia as ya,Ib as yb,Ic as yc,Id as yd,J as z,Ja as za,Jb as zb,Jc as zc,Jd as zd,K as A,Ka as Aa,Kb as Ab,Kc as Ac,Kd as Ad,L as B,La as Ba,Lb as Bb,Lc as Bc,Ld as Bd,M as C,Ma as Ca,Mb as Cb,Mc as Cc,Md as Cd,N as D,Na as Da,Nb as Db,Nc as Dc,Nd as Dd,O as E,Oa as Ea,Ob as Eb,Oc as Ec,Od as Ed,P as F,Pa as Fa,Pb as Fb,Pc as Fc,Pd as Fd,Q as G,Qa as Ga,Qb as Gb,Qc as Gc,Qd as Gd,R as H,Ra as Ha,Rb as Hb,Rc as Hc,Rd as Hd,S as I,Sa as Ia,Sb as Ib,Sc as Ic,Sd as Id,T as J,Ta as Ja,Tb as Jb,Tc as Jc,Td as Jd,U as K,Ua as Ka,Ub as Kb,Uc as Kc,Ud as Kd,V as L,Va as La,Vb as Lb,Vc as Lc,Vd as Ld,W as M,Wa as Ma,Wb as Mb,Wc as Mc,Wd as Md,X as N,Xa as Na,Xb as Nb,Xc as Nc,Xd as Nd,Y as O,Ya as Oa,Yb as Ob,Yc as Oc,Yd as Od,Z as P,Za as Pa,Zb as Pb,Zc as Pc,Zd as Pd,_ as Q,_a as Qa,_b as Qb,_c as Qc,a,aa as S,ab as Sa,ac as Sb,ad as Sc,b,ba as T,bb as Ta,bc as Tb,bd as Tc,ca as U,cb as Ua,cc as Ub,cd as Uc,da as V,db as Va,dc as Vb,dd as Vc,ea as W,eb as Wa,ec as Wb,ed as Wc,f as c,fa as X,fb as Xa,fc as Xb,fd as Xc,g as d,ga as Y,gb as Ya,gc as Yb,gd as Yc,ha as Z,hb as Za,hc as Zb,hd as Zc,i as e,ia as _,ib as _a,ic as _b,id as _c,j as f,ja as $,jb as $a,jc as $b,jd as $c,k as g,ka as aa,kb as ab,kc as ac,kd as ad,l as h,la as ba,lb as bb,lc as bc,ld as bd,m as i,ma as ca,mb as cb,mc as cc,md as cd,n as j,na as da,nb as db,nc as dc,nd as dd,oa as ea,ob as eb,oc as ec,od as ed,pa as fa,pb as fb,pc as fc,pd as fd,qa as ga,qb as gb,qc as gc,qd as gd,ra as ha,rb as hb,rc as hc,rd as hd,s as k,sa as ia,sb as ib,sc as ic,sd as id,t as l,ta as ja,tb as jb,tc as jc,td as jd,u as m,ua as ka,ub as kb,uc as kc,ud as kd,va as la,vb as lb,vc as lc,vd as ld,wa as ma,wb as mb,wc as mc,wd as md,x as n,xa as na,xb as nb,xc as nc,xd as nd,y as o,ya as oa,yb as ob,yc as oc,yd as od,z as p,za as pa,zb as pb,zc as pc,zd as pd}from"./chunk-WWGQFOB2.js";import"./chunk-PSANHDZM.js";export{e as $brand,r as $input,q as $output,u as INVALID,d as NEVER,z as TimePrecision,Wb as ZodAny,ec as ZodArray,jb as ZodBase64,lb as ZodBase64URL,Lb as ZodBigInt,Nb as ZodBigIntFormat,Jb as ZodBoolean,fb as ZodCIDRv4,hb as ZodCIDRv6,Ra as ZodCUID,Ta as ZodCUID2,$c as ZodCatch,fd as ZodCodec,v as ZodCompileAsyncError,w as ZodCompileUnsupportedError,pb as ZodCreditCard,td as ZodCustom,vb as ZodCustomStringFormat,cc as ZodDate,Tc as ZodDefault,pc as ZodDiscriminatedUnion,nb as ZodE164,Ba as ZodEmail,Na as ZodEmoji,Dc as ZodEnum,ea as ZodError,Oc as ZodExactOptional,Ic as ZodFile,Id as ZodFirstPartyTypeKind,rd as ZodFunction,Da as ZodGUID,rb as ZodIBAN,$a as ZodIPv4,db as ZodIPv6,ya as ZodISODate,xa as ZodISODateTime,Aa as ZodISODuration,za as ZodISOTime,Ad as ZodInstanceOf,rc as ZodIntersection,Fd as ZodIssueCode,tb as ZodJWT,Za as ZodKSUID,nd as ZodLazy,Gc as ZodLiteral,bb as ZodMAC,zc as ZodMap,bd as ZodNaN,Pa as ZodNanoID,_b as ZodNever,Xc as ZodNonOptional,Ub as ZodNull,Qc as ZodNullable,Bb as ZodNumber,Db as ZodNumberFormat,hc as ZodObject,Mc as ZodOptional,dd as ZodPipe,Vc as ZodPrefault,id as ZodPreprocess,pd as ZodPromise,jd as ZodReadonly,fa as ZodRealError,vc as ZodRecord,Bc as ZodSet,ua as ZodString,wa as ZodStringFormat,Zc as ZodSuccess,Qb as ZodSymbol,ld as ZodTemplateLiteral,Kc as ZodTransform,tc as ZodTuple,sa as ZodType,Va as ZodULID,Ka as ZodURL,Fa as ZodUUID,Sb as ZodUndefined,lc as ZodUnion,Yb as ZodUnknown,ac as ZodVoid,Xa as ZodXID,nc as ZodXor,ta as _ZodString,Uc as _default,sd as _function,Xb as any,fc as array,kb as base64,mb as base64url,Mb as bigint,Kb as boolean,ad as catch,ud as check,gb as cidrv4,ib as cidrv6,b as clone,gd as codec,Od as coerce,x as compile,f as config,da as core,qb as creditCard,Sa as cuid,Ua as cuid2,zb as currencyCode,vd as custom,dc as date,la as decode,na as decodeAsync,Ld as deepPartial,Pd as default,yd as describe,qc as discriminatedUnion,ob as e164,Ca as email,Oa as emoji,ka as encode,ma as encodeAsync,U as endsWith,Ec as enum,Pc as exactOptional,Jc as file,g as flattenError,Fb as float32,Gb as float64,h as formatError,Kd as fromJSONSchema,sd as function,n as getDiscriminatedOption,Hd as getErrorMap,t as globalRegistry,C as gt,D as gte,Ea as guid,Ab as hash,yb as hex,xb as hostname,Ma as httpUrl,sb as iban,S as includes,Md as input,Bd as instanceof,Eb as int,Hb as int32,Ob as int64,sc as intersection,hd as invertCodec,ab as ipv4,eb as ipv6,Jd as iso,Dd as json,ub as jwt,gc as keyof,_a as ksuid,od as lazy,O as length,Hc as literal,p as locales,kc as looseObject,yc as looseRecord,Q as lowercase,A as lt,B as lte,cb as mac,Ac as map,M as maxLength,J as maxSize,o as memoizer,zd as meta,X as mime,N as minLength,K as minSize,I as multipleOf,cd as nan,Qa as nanoid,Fc as nativeEnum,F as negative,$b as never,H as nonnegative,Yc as nonoptional,G as nonpositive,Z as normalize,Vb as null,Rc as nullable,Sc as nullish,Cb as number,ic as object,Nc as optional,Nd as output,Y as overwrite,ga as parse,ha as parseAsync,xc as partialRecord,ed as pipe,E as positive,Wc as prefault,Ed as preprocess,j as prettifyError,qd as promise,W as properties,V as property,kd as readonly,wc as record,wd as refine,P as regex,m as regexes,s as registry,pa as safeDecode,ra as safeDecodeAsync,oa as safeEncode,qa as safeEncodeAsync,ia as safeParse,ja as safeParseAsync,Cc as set,Gd as setErrorMap,L as size,ba as slugify,T as startsWith,jc as strictObject,va as string,wb as stringFormat,Cd as stringbool,_c as success,xd as superRefine,Rb as symbol,md as templateLiteral,ca as toJSONSchema,$ as toLowerCase,aa as toUpperCase,a as toZod,Lc as transform,i as treeifyError,_ as trim,uc as tuple,Ib as uint32,Pb as uint64,Wa as ulid,Tb as undefined,mc as union,Zb as unknown,R as uppercase,La as url,c as util,Ga as uuid,Ha as uuidv4,Ia as uuidv6,Ja as uuidv7,k as validate,l as validateAsync,bc as void,y as withParser,Ya as xid,oc as xor,Pd as z};
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "conformtools",
3
+ "version": "0.5.1",
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
+ "type": "module",
6
+ "license": "UNLICENSED",
7
+ "bin": {
8
+ "conformtools": "dist/cli.js"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "engines": {
14
+ "node": ">=20"
15
+ },
16
+ "scripts": {
17
+ "build": "node build/bundle.mjs"
18
+ },
19
+ "optionalDependencies": {
20
+ "onnxruntime-node": "^1.20"
21
+ },
22
+ "devDependencies": {
23
+ "@modelcontextprotocol/sdk": "1.31.0",
24
+ "esbuild": "^0.25",
25
+ "zod-to-json-schema": "3.25.2"
26
+ },
27
+ "homepage": "https://conform.tools",
28
+ "keywords": [
29
+ "conform",
30
+ "timeline",
31
+ "mcp",
32
+ "resolve",
33
+ "premiere",
34
+ "avid",
35
+ "aaf",
36
+ "post-production"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ }
41
+ }