conformtools 0.6.27 → 0.6.29
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/dist/{account-RSL4PTDB.js → account-F4ODJBD2.js} +1 -1
- package/dist/{agent-hook-setup-IACTYSVL.js → agent-hook-setup-KBCGZNEE.js} +1 -1
- package/dist/{analysis-engine-BBOSGAB2.js → analysis-engine-LGB4OXG7.js} +1 -1
- package/dist/{bridge-42OMO43V.js → bridge-GLW34YZF.js} +1 -1
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/{chunk-2DMNGWC2.js → chunk-7DH6DFYL.js} +1 -1
- package/dist/{chunk-XLRQNFJU.js → chunk-BZE7IP6U.js} +91 -91
- package/dist/{chunk-TGLH2JDW.js → chunk-FHCRWOI7.js} +1 -1
- package/dist/{chunk-NRURUPLU.js → chunk-GDPYFRSV.js} +1 -1
- package/dist/chunk-H3FD5KA2.js +7 -0
- package/dist/{chunk-BIX5ETBY.js → chunk-HHOFGYZ7.js} +1 -1
- package/dist/{chunk-YMRK5D3X.js → chunk-HZBGG7HI.js} +1 -1
- package/dist/{chunk-AR5BTVBM.js → chunk-KD7UGCLT.js} +1 -1
- package/dist/{chunk-2X2SFPWD.js → chunk-NTPDZOPF.js} +1 -1
- package/dist/chunk-QDL3XYOE.js +545 -0
- package/dist/chunk-QQBDHVUU.js +3 -0
- package/dist/chunk-RKJML7MH.js +10 -0
- package/dist/{chunk-T4B4Y5WQ.js → chunk-RVKNGIE3.js} +2 -2
- package/dist/{chunk-3KS3547B.js → chunk-SSFG7FNI.js} +1 -1
- package/dist/{chunk-UXEL636C.js → chunk-UXVABU6B.js} +1 -1
- package/dist/{chunk-6BL5HE4S.js → chunk-WJS6NM7T.js} +1 -1
- package/dist/{chunk-RL5XRG6O.js → chunk-WWE2FXAQ.js} +1 -1
- package/dist/{chunk-HNEKQMQG.js → chunk-YJREJ2MH.js} +1 -1
- package/dist/{chunk-JZCADV5C.js → chunk-ZE7BP4AE.js} +1 -1
- package/dist/{claude-setup-6RMV3QZM.js → claude-setup-FYWGYBTH.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/demo-engine-5HWLXPDJ.js +3 -0
- package/dist/{engine-I2NXY2OK.js → engine-LFB243Q6.js} +2 -2
- package/dist/{framing-PHFTZ4GL.js → framing-KHUFARKE.js} +1 -1
- package/dist/gfx-worker.js +1 -1
- package/dist/h264-QGSP23K2.js +3 -0
- package/dist/{h264-mxf-PKSTGNGH.js → h264-mxf-I4YANT5F.js} +1 -1
- package/dist/{host-relink-FHOEDE76.js → host-relink-L7I75SUH.js} +1 -1
- package/dist/{hosted-26GUD7IU.js → hosted-5Y5VX6X6.js} +1 -1
- package/dist/hosts-QMGBN2E6.js +3 -0
- package/dist/http.js +2 -2
- package/dist/{inspect-RT36GEVU.js → inspect-GP6B6UPD.js} +2 -2
- package/dist/{isobmff-65LRNCQH.js → isobmff-LAXAYC7P.js} +1 -1
- package/dist/{mc-video-2PCAX65A.js → mc-video-KQ7TP4DG.js} +1 -1
- package/dist/mcp.js +7 -7
- package/dist/{media-OXHZ3PGZ.js → media-SUPBJX64.js} +1 -1
- package/dist/{mxf-WFJNAX7D.js → mxf-2TQO552L.js} +1 -1
- package/dist/{ops-SH3IUU2Z.js → ops-CVKPID5Z.js} +1 -1
- package/dist/{probe-VB6JH6ZJ.js → probe-HUPB4H4G.js} +1 -1
- package/dist/{r3d-X2O5LUAB.js → r3d-EPSGIBPT.js} +1 -1
- package/dist/resolve-bridge.py +4 -1
- package/dist/{sequence-patch-OHYBBKKZ.js → sequence-patch-GXM3QSJC.js} +1 -1
- package/dist/{store-F2CTSR6E.js → store-K4W2LVRN.js} +1 -1
- package/dist/{timeline-AK6DUMWB.js → timeline-HTG23FEH.js} +1 -1
- package/package.json +5 -5
- package/dist/chunk-E4KQR4M3.js +0 -10
- package/dist/chunk-IDADYIY6.js +0 -7
- package/dist/chunk-M6SVZJAX.js +0 -537
- package/dist/chunk-ZPIY5DOU.js +0 -3
- package/dist/demo-engine-ITZ7VG6Q.js +0 -3
- package/dist/h264-TVMYQ7EB.js +0 -3
- package/dist/hosts-DXH4SQPZ.js +0 -3
package/dist/chunk-ZPIY5DOU.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{readFile as U,writeFile as _,appendFile as V,stat as B,readdir as X,mkdir as j,open as T,copyFile as Z,mkdtemp as Q,rm as P,chmod as ee,rename as z,cp as te,statfs as re,realpath as ne}from"node:fs/promises";import{execFile as oe,spawn as L}from"node:child_process";import{createHash as se}from"node:crypto";import{createReadStream as ie,chmodSync as S,cpSync as ae,existsSync as A,mkdirSync as C,readdirSync as ce,statSync as N}from"node:fs";import{homedir as le,hostname as ue,tmpdir as de,platform as me,release as fe,arch as pe,totalmem as ge,availableParallelism as ye}from"node:os";import{fileURLToPath as D}from"node:url";import we from"node:http";import be from"node:http2";import f from"node:process";import{setTimeout as he}from"node:timers";import{Buffer as $}from"node:buffer";import{basename as xe,dirname as J,join as w,resolve as I,sep as v}from"node:path";import{createRequire as ve}from"node:module";import{basename as Mt,dirname as Ct,extname as Nt,join as It,relative as Ht,resolve as Wt}from"node:path";{let e=globalThis.fetch,t=typeof globalThis.Deno<"u";e&&!t&&(globalThis.fetch=(async(r,o)=>{let n=typeof r=="string"?r:r instanceof URL?r.href:r.url;if(n.startsWith("file:")){let s=await U(D(n)),i=n.endsWith(".wasm")?"application/wasm":"application/octet-stream";return new Response(s,{status:200,headers:{"content-type":i}})}return e(r,o)}))}var b=e=>f.env[e];function _e(e,t){he(e,t).unref()}var Be=()=>Number(b("CONFORM_MEMORY_GB")??0)*2**30||ge(),je=()=>ye(),ze=()=>f.argv.slice(2),Le=e=>f.exit(e),Pe=()=>f.platform,Je=()=>ue(),qe=()=>b("CONFORM_PYTHON")??(Pe()==="win32"?"python":"python3"),Ge=()=>f.arch,q=()=>`${f.platform}-${f.arch}`;function Ye(e){try{return w(J(ve(import.meta.url).resolve(`${$e(q())}/package.json`)),e)}catch{return null}}var $e=e=>`conformtools-${e==="win32-x64"?"windows-x64":e}`,Ke=e=>`${e} is not in this package for ${q()} (conform.tools builds it for darwin-arm64, darwin-x64, linux-x64 and win32-x64)`;function Ve(){let e=f.versions.deno,t=b("CONFORM_APP_VERSION"),r=e?`deno ${e}`:`node ${f.version}`;return{platform:`${me()} ${fe()} ${pe()}`,runtime:t&&/^[0-9A-Za-z.-]{1,32}$/.test(t)?`${r} app ${t}`:r}}var Re=()=>b("CONFORM_MCP_HOME")??w(O(),".conform-mcp"),O=()=>b("HOME")??le();function Xe(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=D(t)}catch{}return t==="~"?t=O():(t.startsWith("~/")||t.startsWith("~\\"))&&(t=w(O(),t.slice(2))),t&&I(t)+(/[\\/]$/.test(t)&&!/[\\/]$/.test(I(t))?v:"")}async function Ze(e,t){let r=await import("node:sqlite").catch(()=>null);if(r?.DatabaseSync){let n=new r.DatabaseSync(e,{readOnly:!0});try{let s=n.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{n.close()}}let o=await F("sqlite3",["-readonly","-json",e,t]);if(!o.success)throw new Error(`sqlite3 ${xe(e)}: ${o.stderr.trim()||o.stdout.trim()}`);return o.stdout.trim()?JSON.parse(o.stdout):[]}var Qe=(e,t)=>e?`${e.replace(/[\\/]+$/,"")}${e.includes("\\")&&!e.includes("/")?"\\":"/"}${t}`:t;function et(e){let t=D(e),r=t.indexOf(`${v}deno-compile-`);if(r<0||!A(t))return t;let o=t.slice(r+1).split(v).slice(1).join(v),n=w(Re(),"bin",o);try{return G(t,n,!0),n}catch{return t}}function G(e,t,r=!1){let o=N(e);if(o.isDirectory()){A(t)||C(t,{recursive:!0}),S(t,493);for(let s of ce(e))G(w(e,s),w(t,s));return}let n=A(t)?N(t):null;(!n||n.size!==o.size||n.mtimeMs<o.mtimeMs)&&(n?S(t,420):C(J(t),{recursive:!0}),ae(e,t,{force:!0,preserveTimestamps:!0})),S(t,r||o.mode&73?493:420)}var H=null;var x=e=>H?.owns(e)?H:null;async function W(e){let t=await B(e);return{isFile:t.isFile(),isDirectory:t.isDirectory(),size:t.size,mtimeMs:t.mtimeMs}}function R(e){return x(e)?.stat(e,()=>W(e))??W(e)}async function tt(e){try{return await R(e),!0}catch{return!1}}async function rt(e){try{return(await R(e)).isFile}catch{return!1}}async function nt(e){try{return(await R(e)).isDirectory}catch{return!1}}async function ot(e){x(e)?.guard(e,"read whole file");let t=await U(e);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var st=e=>U(e,"utf8"),it=(e,t)=>_(e,t),at=(e,t,r)=>r?.append?V(e,t):_(e,t);async function ct(e){await j(e,{recursive:!0})}async function lt(e,t={}){let r=Date.now()+(t.timeoutMs??5e3),o=t.staleMs??15e3;for(;;)try{await j(e);break}catch(n){if(n.code!=="EEXIST")throw n;try{if(Date.now()-(await R(e)).mtimeMs>o){await P(e,{recursive:!0,force:!0});continue}}catch{}if(Date.now()>r)break;await new Promise(s=>setTimeout(s,25))}return()=>P(e,{recursive:!0,force:!0}).catch(()=>{})}var ut=e=>P(e,{force:!0}),dt=(e,t)=>ee(e,t).catch(()=>{}),mt=(e,t)=>Z(e,t),ft=(e,t)=>z(e,t),pt=e=>P(e,{recursive:!0,force:!0}),gt=(e,t)=>te(e,t,{recursive:!0,verbatimSymlinks:!0});async function yt(e){try{let t=await re(e);return Number(t.bavail)*Number(t.bsize)}catch{return null}}async function wt(e){try{return await ne(e)}catch{return null}}var bt=()=>f.ppid,ht=(e="conform-")=>Q(w(de(),e));async function*xt(e){let t=async()=>(await X(e,{withFileTypes:!0})).map(r=>({name:r.name,isFile:r.isFile(),isDirectory:r.isDirectory()}));yield*await(x(e)?.readDir(e,t)??t())}async function vt(e){x(e)?.guard(e,"read bytes");let t=await T(e,"r"),r=(await t.stat()).size;return{path:e,size:r,async readAt(o,n){let s=new Uint8Array(n),i=0;for(;i<n;){let{bytesRead:c}=await t.read(s,i,n-i,o+i);if(!c)break;i+=c}return i===n?s:s.subarray(0,i)},close:()=>t.close()}}async function Pt(e){let t=await T(e,"w");return{async writeAt(r,o){let n=0;for(;n<o.length;){let{bytesWritten:s}=await t.write(o,n,o.length-n,r+n);n+=s}},truncate:r=>t.truncate(r),close:()=>t.close()}}var Y=(e,t)=>{for(let r of t)x(r)?.guard(r,`${e.split(/[\\/]/).pop()} ${t[0]}`)};function F(e,t,r={}){return Y(e,t),new Promise(o=>{oe(e,t,{maxBuffer:1<<30,env:r.env?{...f.env,...r.env}:void 0,timeout:r.timeoutMs},(n,s,i)=>{let c=n?.code??0;o({success:!n,code:c,stdout:String(s),stderr:String(i)})})})}var ke="[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 $t(){let e=await F("powershell.exe",["-NoProfile","-NonInteractive","-Command",ke],{timeoutMs:3e4});return Se(e.stdout)}function Se(e){let t;try{t=JSON.parse(e.replace(/^/,"").trim()||"[]")}catch{return[]}return(Array.isArray(t)?t:[t]).flatMap(r=>{let o=r??{},n=Number(o.pid);return!Number.isInteger(n)||n<=0?[]:[{pid:n,args:String(o.cmd||o.exe||""),title:typeof o.title=="string"?o.title:""}]})}function Rt(e,t,r,o={}){return Y(e,t),new Promise((n,s)=>{let i=L(e,t,{env:o.env?{...f.env,...o.env}:void 0,stdio:["ignore","pipe","pipe"]}),c="";i.stdout.on("data",l=>r(l)),i.stderr.on("data",l=>{c+=new TextDecoder().decode(l)}),i.on("error",s),i.on("close",l=>n({code:l,stderr:c})),o.signal?.addEventListener("abort",()=>i.kill(),{once:!0})})}function kt(e,t,r,o,n={}){let s=L(e,t,{stdio:["pipe","pipe","pipe"],env:n.env?{...f.env,...n.env}:void 0});s.stdin.on("error",()=>{}),s.stdout.on("data",a=>r(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 St(e){if(b("CONFORM_NO_BROWSER"))return!1;let[t,r]=f.platform==="darwin"?["open",[e]]:f.platform==="win32"?["cmd",["/c","start","",e.replace(/&/g,"^&")]]:["xdg-open",[e]];return(await F(t,r)).success}function At(e,t){let r=we.createServer(async(o,n)=>{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;n.on("close",()=>{n.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(n.statusCode=u.status,u.headers.forEach((p,m)=>n.setHeader(m,p)),u.body&&u.headers.get("content-type")?.startsWith("text/event-stream")){n.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;n.write(m)}n.end();return}n.end($.from(await u.arrayBuffer()))}catch(s){n.statusCode=500,n.end(JSON.stringify({ok:!1,code:"internal",message:s instanceof Error?s.message:String(s)}))}});return r.listen(e.port,e.hostname,()=>{let o=r.address();e.onListen?.(typeof o=="object"&&o?o.port:e.port)}),{close:()=>r.close()}}var y=class extends Error{constructor(r,o,n){super(o);this.code=r;this.grpcStatus=n}};function Ot(e,t,r,o,n){return new Promise((s,i)=>{let c=be.connect(`http://${e}:${t}`),l=!1,a=(d,K)=>{l||(l=!0,clearTimeout(p),c.destroy(),d?i(d):s(K))},u=!1;c.on("connect",()=>{u=!0});let p=setTimeout(()=>a(u?new y("deadline",`no answer from ${e}:${t} in ${n} ms`):new y("unavailable",`${e}:${t}: no connection in ${n} ms`)),n);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":r,"content-type":"application/grpc",te:"trailers"}),E=[],h,k="",M=d=>{d["grpc-status"]!=null&&(h=String(d["grpc-status"]),k=decodeURIComponent(String(d["grpc-message"]??"")))};g.on("response",M),g.on("trailers",M),g.on("data",d=>E.push(d)),g.on("error",d=>a(new y("unavailable",`${e}:${t}: ${d.message}`))),g.on("end",()=>{if(h!=="0")return a(new y("grpc",`grpc-status ${h??"missing"}${k?`: ${k}`:""}`,h==null?void 0:Number(h)));let d=$.concat(E);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 Ut(e){let t=se("sha256");for await(let r of ie(e))t.update(r);return t.digest("hex")}async function Tt(e,t,r){let o=`${t}.part`;for(let n=0;;n++){let s=0;try{s=(await B(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 T(o,s?"a":"w");try{let a=s;for await(let u of i.body)await l.write(u),a+=u.length,r?.(a,c)}finally{await l.close()}break}catch(i){if(n>=4)throw i;await new Promise(c=>setTimeout(c,2e3*(n+1)))}}await z(o,t)}function Dt(e){let t="";for(let r=0;r<e.length;r+=32768)t+=String.fromCharCode(...e.subarray(r,r+32768));return btoa(t)}export{D as a,b,_e as c,Be as d,je as e,ze as f,Le as g,Pe as h,Je as i,qe as j,Ge as k,Ye as l,Ke as m,Ve as n,Re as o,O as p,Xe as q,Ze as r,Qe as s,et as t,R as u,tt as v,rt as w,nt as x,ot as y,st as z,it as A,at as B,ct as C,lt as D,ut as E,dt as F,mt as G,ft as H,pt as I,gt as J,yt as K,wt as L,bt as M,ht as N,xt as O,vt as P,Pt as Q,F as R,$t as S,Rt as T,kt as U,St as V,At as W,y as X,Ot as Y,Ut as Z,Tt as _,Dt as $,Mt as aa,Ct as ba,Nt as ca,It as da,Ht as ea,Wt as fa};
|