conformtools 0.6.14 → 0.6.16

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 (81) hide show
  1. package/README.md +6 -1
  2. package/dist/account-W7Z2MYZU.js +3 -0
  3. package/dist/{agent-hook-setup-RTQT5JEN.js → agent-hook-setup-JCIZG3Q3.js} +1 -1
  4. package/dist/{analysis-engine-UWIK7AYB.js → analysis-engine-DCHJHZ7W.js} +1 -1
  5. package/dist/{bridge-46P34WCD.js → bridge-UPSJ7F3S.js} +1 -1
  6. package/dist/browser/timeline_core_bg.wasm +0 -0
  7. package/dist/{chunk-CQSNVQQE.js → chunk-4RA57LTJ.js} +1 -1
  8. package/dist/chunk-5W57ITT2.js +10 -0
  9. package/dist/chunk-DLF5AKXT.js +10 -0
  10. package/dist/chunk-FLLB6UZJ.js +7 -0
  11. package/dist/{chunk-FXK53VEO.js → chunk-HOACOBAY.js} +1 -1
  12. package/dist/{chunk-YKKB27VF.js → chunk-IDJIOKXA.js} +1 -1
  13. package/dist/{chunk-L3HRAIDR.js → chunk-JL454FFL.js} +1 -1
  14. package/dist/chunk-JM5LHKTU.js +510 -0
  15. package/dist/chunk-JV7TZDKJ.js +3 -0
  16. package/dist/chunk-MGMDNGNX.js +6 -0
  17. package/dist/chunk-OWWXUNJF.js +7 -0
  18. package/dist/{chunk-NZLL44HU.js → chunk-QH5DTYSE.js} +1 -1
  19. package/dist/{chunk-BO462NEL.js → chunk-QRZO5GOI.js} +1 -1
  20. package/dist/chunk-RJD44NQU.js +5 -0
  21. package/dist/{chunk-PHAMF4JF.js → chunk-ROGMKTND.js} +2 -2
  22. package/dist/{chunk-764P7TUD.js → chunk-RVZQ3Y6N.js} +1 -1
  23. package/dist/{chunk-6WLSIH2N.js → chunk-UAURERD3.js} +1 -1
  24. package/dist/{chunk-MOSLNNO5.js → chunk-UKXSKFL3.js} +1 -1
  25. package/dist/{chunk-EP4L2BWV.js → chunk-VETHR2O7.js} +1 -1
  26. package/dist/chunk-VWFEMXYZ.js +159 -0
  27. package/dist/chunk-X527E5VI.js +3 -0
  28. package/dist/{chunk-4BTTR6U3.js → chunk-XVZ7KJRI.js} +5 -5
  29. package/dist/{claude-setup-NGZ5NDYH.js → claude-setup-CM7G2YSG.js} +8 -8
  30. package/dist/cli.js +2 -2
  31. package/dist/demo-engine-CBFAAPPO.js +3 -0
  32. package/dist/engine-6YYXTF2Q.js +5 -0
  33. package/dist/framing-QYRCUEB5.js +3 -0
  34. package/dist/gfx-worker.js +1 -1
  35. package/dist/{h264-MAUQSLPY.js → h264-MAUVJTR4.js} +1 -1
  36. package/dist/{h264-mxf-2SZ66MPB.js → h264-mxf-2O4SAUTA.js} +1 -1
  37. package/dist/hook.js +1 -1
  38. package/dist/{host-relink-664IB3BC.js → host-relink-NVLUO73P.js} +1 -1
  39. package/dist/hosted-2XACQY7J.js +3 -0
  40. package/dist/hosts-GEXAZFB3.js +3 -0
  41. package/dist/http.js +3 -3
  42. package/dist/{inspect-ZM7IW23B.js → inspect-YIFLNOJW.js} +2 -2
  43. package/dist/isobmff-MTMGQKLK.js +3 -0
  44. package/dist/{mc-video-KMWTRVES.js → mc-video-HRZC7HGH.js} +1 -1
  45. package/dist/mcp.js +1 -1
  46. package/dist/{media-MSMXMA6E.js → media-WC4ZVKIL.js} +1 -1
  47. package/dist/{mxf-GOWHEH4A.js → mxf-J5QHA3VY.js} +1 -1
  48. package/dist/{ops-FI2NBTYK.js → ops-XIUVNJE2.js} +1 -1
  49. package/dist/probe-GIAKRPFV.js +3 -0
  50. package/dist/{r3d-LO5Z6DEX.js → r3d-2PCOFR2Z.js} +1 -1
  51. package/dist/resolve-bridge.py +116 -146
  52. package/dist/{sequence-patch-C2QRIT5V.js → sequence-patch-DFGEAJGB.js} +1 -1
  53. package/dist/{still-6FU7ALUV.js → still-4UR35GZH.js} +1 -1
  54. package/dist/{store-JNWELX35.js → store-MWNX47IK.js} +1 -1
  55. package/dist/timeline-Z3KD2CJX.js +3 -0
  56. package/dist/wasm/udf_bg.wasm +0 -0
  57. package/package.json +5 -5
  58. package/dist/account-F54SG45Q.js +0 -3
  59. package/dist/chunk-5PTQAFU5.js +0 -158
  60. package/dist/chunk-BTS3DFPD.js +0 -7
  61. package/dist/chunk-DP4KJ3KL.js +0 -514
  62. package/dist/chunk-EKTETRKB.js +0 -6
  63. package/dist/chunk-J43UCJ6G.js +0 -4
  64. package/dist/chunk-MJBJI6DV.js +0 -3
  65. package/dist/chunk-O372NT7V.js +0 -7
  66. package/dist/chunk-OD445COC.js +0 -7
  67. package/dist/chunk-P3EOFAZR.js +0 -10
  68. package/dist/chunk-XI6XF7FQ.js +0 -3
  69. package/dist/chunk-YYR3FM6A.js +0 -5
  70. package/dist/engine-6ACEWA4S.js +0 -5
  71. package/dist/framing-4HAHAG4I.js +0 -3
  72. package/dist/hosted-L26AGRIY.js +0 -3
  73. package/dist/hosts-BGWD7BKM.js +0 -3
  74. package/dist/isobmff-6ZPEXUF4.js +0 -3
  75. package/dist/nuke/panel/python/Startup/conformtools_nuke_startup.py +0 -44
  76. package/dist/nuke/panel/python/conformtools_nuke/__init__.py +0 -10
  77. package/dist/nuke/panel/python/conformtools_nuke/panel.py +0 -217
  78. package/dist/nuke/panel/python/conformtools_nuke/verbs.py +0 -837
  79. package/dist/probe-ZDX6XNRF.js +0 -3
  80. package/dist/resolve-presets/conform.tools.xml +0 -127
  81. package/dist/timeline-WVETLJZN.js +0 -3
@@ -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{readFile as S,writeFile as H,appendFile as q,stat as W,readdir as G,mkdir as _,open as U,copyFile as Y,mkdtemp as K,rm as P,chmod as X,rename as B,cp as Q,statfs as V,realpath as Z}from"node:fs/promises";import{execFile as ee,spawn as j}from"node:child_process";import{createHash as te}from"node:crypto";import{createReadStream as re,chmodSync as ne,cpSync as oe,existsSync as E,statSync as M}from"node:fs";import{homedir as se,hostname as ie,tmpdir as ae,platform as ce,release as le,arch as ue,totalmem as de,availableParallelism as me}from"node:os";import{fileURLToPath as F}from"node:url";import fe from"node:http";import pe from"node:http2";import f from"node:process";import{Buffer as $}from"node:buffer";import{basename as ge,dirname as ye,join as b,resolve as C,sep as v}from"node:path";import{createRequire as we}from"node:module";import{basename as St,dirname as Ut,extname as Ft,join as Dt,relative as Ot,resolve as Tt}from"node:path";{let e=globalThis.fetch,t=typeof globalThis.Deno<"u";e&&!t&&(globalThis.fetch=(async(n,o)=>{let r=typeof n=="string"?n:n instanceof URL?n.href:n.url;if(r.startsWith("file:")){let s=await S(F(r)),i=r.endsWith(".wasm")?"application/wasm":"application/octet-stream";return new Response(s,{status:200,headers:{"content-type":i}})}return e(n,o)}))}var h=e=>f.env[e],Ce=()=>Number(h("CONFORM_MEMORY_GB")??0)*2**30||de(),Ie=()=>me(),Ne=()=>f.argv.slice(2),He=e=>f.exit(e),be=()=>f.platform,We=()=>ie(),_e=()=>h("CONFORM_PYTHON")??(be()==="win32"?"python":"python3"),Be=()=>f.arch,z=()=>`${f.platform}-${f.arch}`;function je(e){try{return b(ye(we(import.meta.url).resolve(`${he(z())}/package.json`)),e)}catch{return null}}var he=e=>`conformtools-${e==="win32-x64"?"windows-x64":e}`,ze=e=>`${e} is not in this package for ${z()} (conform.tools builds it for darwin-arm64, darwin-x64, linux-x64 and win32-x64)`;function Le(){let e=f.versions.deno;return{platform:`${ce()} ${le()} ${ue()}`,runtime:e?`deno ${e}`:`node ${f.version}`}}var xe=()=>h("CONFORM_MCP_HOME")??b(A(),".conform-mcp"),A=()=>h("HOME")??se();function Je(e){let t=e.trim();if(t.length>=2&&(t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"))&&(t=t.slice(1,-1)),/^file:\/\//i.test(t))try{t=F(t)}catch{}return t==="~"?t=A():(t.startsWith("~/")||t.startsWith("~\\"))&&(t=b(A(),t.slice(2))),t&&C(t)+(/[\\/]$/.test(t)&&!/[\\/]$/.test(C(t))?v:"")}async function qe(e,t){let n=await import("node:sqlite").catch(()=>null);if(n?.DatabaseSync){let r=new n.DatabaseSync(e,{readOnly:!0});try{let s=r.prepare(t);return s.setReadBigInts(!0),s.all().map(i=>Object.fromEntries(Object.entries(i).map(([c,l])=>[c,typeof l=="bigint"?Number(l):l])))}finally{r.close()}}let o=await D("sqlite3",["-readonly","-json",e,t]);if(!o.success)throw new Error(`sqlite3 ${ge(e)}: ${o.stderr.trim()||o.stdout.trim()}`);return o.stdout.trim()?JSON.parse(o.stdout):[]}var Ge=(e,t)=>e?`${e.replace(/[\\/]+$/,"")}${e.includes("\\")&&!e.includes("/")?"\\":"/"}${t}`:t;function Ye(e){let t=F(e),n=t.indexOf(`${v}deno-compile-`);if(n<0||!E(t))return t;let o=t.slice(n+1).split(v).slice(1).join(v),r=b(xe(),"bin",o);try{let s=M(t),i=E(r)?M(r):null;return(!i||s.isFile()&&(i.size!==s.size||i.mtimeMs<s.mtimeMs))&&(oe(t,r,{recursive:!0,force:!0}),s.isFile()&&ne(r,493)),r}catch{return t}}var I=null;var x=e=>I?.owns(e)?I:null;async function N(e){let t=await W(e);return{isFile:t.isFile(),isDirectory:t.isDirectory(),size:t.size,mtimeMs:t.mtimeMs}}function R(e){return x(e)?.stat(e,()=>N(e))??N(e)}async function Ke(e){try{return await R(e),!0}catch{return!1}}async function Xe(e){try{return(await R(e)).isFile}catch{return!1}}async function Qe(e){try{return(await R(e)).isDirectory}catch{return!1}}async function Ve(e){x(e)?.guard(e,"read whole file");let t=await S(e);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Ze=e=>S(e,"utf8"),et=(e,t)=>H(e,t),tt=(e,t,n)=>n?.append?q(e,t):H(e,t);async function rt(e){await _(e,{recursive:!0})}async function nt(e,t={}){let n=Date.now()+(t.timeoutMs??5e3),o=t.staleMs??15e3;for(;;)try{await _(e);break}catch(r){if(r.code!=="EEXIST")throw r;try{if(Date.now()-(await R(e)).mtimeMs>o){await P(e,{recursive:!0,force:!0});continue}}catch{}if(Date.now()>n)break;await new Promise(s=>setTimeout(s,25))}return()=>P(e,{recursive:!0,force:!0}).catch(()=>{})}var ot=e=>P(e,{force:!0}),st=(e,t)=>X(e,t).catch(()=>{}),it=(e,t)=>Y(e,t),at=(e,t)=>B(e,t),ct=e=>P(e,{recursive:!0,force:!0}),lt=(e,t)=>Q(e,t,{recursive:!0,verbatimSymlinks:!0});async function ut(e){try{let t=await V(e);return Number(t.bavail)*Number(t.bsize)}catch{return null}}async function dt(e){try{return await Z(e)}catch{return null}}var mt=(e="conform-")=>K(b(ae(),e));async function*ft(e){let t=async()=>(await G(e,{withFileTypes:!0})).map(n=>({name:n.name,isFile:n.isFile(),isDirectory:n.isDirectory()}));yield*await(x(e)?.readDir(e,t)??t())}async function pt(e){x(e)?.guard(e,"read bytes");let t=await U(e,"r"),n=(await t.stat()).size;return{path:e,size:n,async readAt(o,r){let s=new Uint8Array(r),i=0;for(;i<r;){let{bytesRead:c}=await t.read(s,i,r-i,o+i);if(!c)break;i+=c}return i===r?s:s.subarray(0,i)},close:()=>t.close()}}async function gt(e){let t=await U(e,"w");return{async writeAt(n,o){let r=0;for(;r<o.length;){let{bytesWritten:s}=await t.write(o,r,o.length-r,n+r);r+=s}},truncate:n=>t.truncate(n),close:()=>t.close()}}var L=(e,t)=>{for(let n of t)x(n)?.guard(n,`${e.split(/[\\/]/).pop()} ${t[0]}`)};function D(e,t,n={}){return L(e,t),new Promise(o=>{ee(e,t,{maxBuffer:1<<30,env:n.env?{...f.env,...n.env}:void 0,timeout:n.timeoutMs},(r,s,i)=>{let c=r?.code??0;o({success:!r,code:c,stdout:String(s),stderr:String(i)})})})}var ve="[Console]::OutputEncoding=[Text.Encoding]::UTF8;$t=@{};Get-Process|?{$_.MainWindowTitle}|%{$t[$_.Id]=$_.MainWindowTitle};ConvertTo-Json -Compress -InputObject @(Get-CimInstance Win32_Process|%{[pscustomobject]@{pid=[int]$_.ProcessId;exe=$_.ExecutablePath;cmd=$_.CommandLine;title=$t[[int]$_.ProcessId]}})";async function yt(){let e=await D("powershell.exe",["-NoProfile","-NonInteractive","-Command",ve],{timeoutMs:3e4});return Pe(e.stdout)}function Pe(e){let t;try{t=JSON.parse(e.replace(/^/,"").trim()||"[]")}catch{return[]}return(Array.isArray(t)?t:[t]).flatMap(n=>{let o=n??{},r=Number(o.pid);return!Number.isInteger(r)||r<=0?[]:[{pid:r,args:String(o.cmd||o.exe||""),title:typeof o.title=="string"?o.title:""}]})}function wt(e,t,n,o={}){return L(e,t),new Promise((r,s)=>{let i=j(e,t,{env:o.env?{...f.env,...o.env}:void 0,stdio:["ignore","pipe","pipe"]}),c="";i.stdout.on("data",l=>n(l)),i.stderr.on("data",l=>{c+=new TextDecoder().decode(l)}),i.on("error",s),i.on("close",l=>r({code:l,stderr:c})),o.signal?.addEventListener("abort",()=>i.kill(),{once:!0})})}function bt(e,t,n,o,r={}){let s=j(e,t,{stdio:["pipe","pipe","pipe"],env:r.env?{...f.env,...r.env}:void 0});s.stdin.on("error",()=>{}),s.stdout.on("data",a=>n(a)),s.stderr.on("data",a=>o?.(new TextDecoder().decode(a)));let i=new Promise(a=>{s.on("close",u=>a(u)),s.on("error",()=>a(null))}),c=[s,s.stdout,s.stderr,s.stdin],l=a=>{for(let u of c)(a?u.ref:u.unref)?.call(u)};return l(!1),{write:a=>new Promise((u,p)=>{s.stdin.write(a,m=>m?p(m):u())}),hold:l,close:()=>{try{s.stdin.end(),s.kill()}catch{}},exited:i}}async function ht(e){if(h("CONFORM_NO_BROWSER"))return!1;let[t,n]=f.platform==="darwin"?["open",[e]]:f.platform==="win32"?["cmd",["/c","start","",e.replace(/&/g,"^&")]]:["xdg-open",[e]];return(await D(t,n)).success}function xt(e,t){let n=fe.createServer(async(o,r)=>{try{let s=[];if(o.method!=="GET"&&o.method!=="HEAD")for await(let p of o)s.push(p);let i=s.length>0,c=new Headers;for(let[p,m]of Object.entries(o.headers))m!=null&&c.set(p,Array.isArray(m)?m.join(", "):m);let l=`http://${o.headers.host??`${e.hostname}:${e.port}`}${o.url??"/"}`,a=new AbortController;r.on("close",()=>{r.writableEnded||a.abort()});let u=await t(new Request(l,{method:o.method,headers:c,body:i?$.concat(s):void 0,signal:a.signal}));if(r.statusCode=u.status,u.headers.forEach((p,m)=>r.setHeader(m,p)),u.body&&u.headers.get("content-type")?.startsWith("text/event-stream")){r.flushHeaders();let p=u.body.getReader();for(a.signal.addEventListener("abort",()=>void p.cancel(),{once:!0});;){let{value:m,done:g}=await p.read();if(g)break;r.write(m)}r.end();return}r.end($.from(await u.arrayBuffer()))}catch(s){r.statusCode=500,r.end(JSON.stringify({ok:!1,code:"internal",message:s instanceof Error?s.message:String(s)}))}});return n.listen(e.port,e.hostname,()=>{let o=n.address();e.onListen?.(typeof o=="object"&&o?o.port:e.port)}),{close:()=>n.close()}}var y=class extends Error{constructor(n,o,r){super(o);this.code=n;this.grpcStatus=r}};function vt(e,t,n,o,r){return new Promise((s,i)=>{let c=pe.connect(`http://${e}:${t}`),l=!1,a=(d,J)=>{l||(l=!0,clearTimeout(p),c.destroy(),d?i(d):s(J))},u=!1;c.on("connect",()=>{u=!0});let p=setTimeout(()=>a(u?new y("deadline",`no answer from ${e}:${t} in ${r} ms`):new y("unavailable",`${e}:${t}: no connection in ${r} ms`)),r);c.on("error",d=>a(new y("unavailable",`${e}:${t}: ${d.message}`)));let m=$.alloc(5+o.length);m.writeUInt32BE(o.length,1),m.set(o,5);let g=c.request({":method":"POST",":path":n,"content-type":"application/grpc",te:"trailers"}),O=[],w,k="",T=d=>{d["grpc-status"]!=null&&(w=String(d["grpc-status"]),k=decodeURIComponent(String(d["grpc-message"]??"")))};g.on("response",T),g.on("trailers",T),g.on("data",d=>O.push(d)),g.on("error",d=>a(new y("unavailable",`${e}:${t}: ${d.message}`))),g.on("end",()=>{if(w!=="0")return a(new y("grpc",`grpc-status ${w??"missing"}${k?`: ${k}`:""}`,w==null?void 0:Number(w)));let d=$.concat(O);if(d.length<5||d[0]!==0)return a(new y("grpc","reply is not one uncompressed gRPC message"));a(null,new Uint8Array(d.subarray(5,5+d.readUInt32BE(1))))}),g.end(m)})}async function Pt(e){let t=te("sha256");for await(let n of re(e))t.update(n);return t.digest("hex")}async function $t(e,t,n){let o=`${t}.part`;for(let r=0;;r++){let s=0;try{s=(await W(o)).size}catch{}try{let i=await fetch(e,{headers:s?{Range:`bytes=${s}-`}:{}});if(i.status===416)break;if(!i.ok||!i.body)throw new Error(`${e} answered ${i.status}`);s&&i.status!==206&&(s=0);let c=s+Number(i.headers.get("content-length")??0),l=await U(o,s?"a":"w");try{let a=s;for await(let u of i.body)await l.write(u),a+=u.length,n?.(a,c)}finally{await l.close()}break}catch(i){if(r>=4)throw i;await new Promise(c=>setTimeout(c,2e3*(r+1)))}}await B(o,t)}function Rt(e){let t="";for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}export{F as a,h as b,Ce as c,Ie as d,Ne as e,He as f,be as g,We as h,_e as i,Be as j,je as k,ze as l,Le as m,xe as n,A as o,Je as p,qe as q,Ge as r,Ye as s,R as t,Ke as u,Xe as v,Qe as w,Ve as x,Ze as y,et as z,tt as A,rt as B,nt as C,ot as D,st as E,it as F,at as G,ct as H,lt as I,ut as J,dt as K,mt as L,ft as M,pt as N,gt as O,D as P,yt as Q,wt as R,bt as S,ht as T,xt as U,y as V,vt as W,Pt as X,$t as Y,Rt as Z,St as _,Ut as $,Ft as aa,Dt as ba,Ot as ca,Tt as da};