conformtools 0.6.17 → 0.6.18
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-O3J732QJ.js +3 -0
- package/dist/{bridge-DRC6BQFR.js → bridge-25FGN67G.js} +1 -1
- package/dist/{chunk-MTAXVOHK.js → chunk-2DEUYEQD.js} +1 -1
- package/dist/{chunk-STGGRRYM.js → chunk-2GRXBIJB.js} +1 -1
- package/dist/{chunk-S2WAFMRV.js → chunk-2V5PY4P5.js} +1 -1
- package/dist/{chunk-CRMGV32N.js → chunk-34JO3JNC.js} +1 -1
- package/dist/{chunk-GRJLKGBG.js → chunk-3DYCTUSQ.js} +1 -1
- package/dist/{chunk-RITYQNOO.js → chunk-567IWIX6.js} +1 -1
- package/dist/{chunk-JT3HI632.js → chunk-6B3IELRW.js} +1 -1
- package/dist/{chunk-WKNX742H.js → chunk-AAJRTGEP.js} +2 -2
- package/dist/{chunk-M5CEBOLK.js → chunk-ANQZKVDD.js} +1 -1
- package/dist/{chunk-73RFYAVG.js → chunk-ATEWMIY5.js} +1 -1
- package/dist/{chunk-R2WEXCVQ.js → chunk-AYUKWSCR.js} +1 -1
- package/dist/{chunk-2VH2Z6RD.js → chunk-DIW5X4GI.js} +1 -1
- package/dist/{chunk-MVQ5RGZB.js → chunk-EWW5KWAO.js} +1 -1
- package/dist/{chunk-LVGGCRDW.js → chunk-IDEKLW7C.js} +1 -1
- package/dist/{chunk-QNF4NMIW.js → chunk-L2RTMZCN.js} +1 -1
- package/dist/chunk-LP2MR4ZH.js +516 -0
- package/dist/{chunk-UBWUED67.js → chunk-LUKA7UUJ.js} +1 -1
- package/dist/{chunk-2SDAOYP5.js → chunk-MHBNMYZP.js} +1 -1
- package/dist/{chunk-IG2X534U.js → chunk-ND2YUUUH.js} +1 -1
- package/dist/{chunk-TWHNQFKI.js → chunk-PIM3PV5N.js} +1 -1
- package/dist/{chunk-VCBLWNQR.js → chunk-QBQJDV2F.js} +62 -61
- package/dist/{chunk-P4PCSGEH.js → chunk-RXRBRR3E.js} +1 -1
- package/dist/{chunk-YGAAGTLE.js → chunk-TD3ZHREE.js} +1 -1
- package/dist/chunk-UIX3TT72.js +7 -0
- package/dist/cli.js +1 -1
- package/dist/{cr3-wasm-VUEEZYKQ.js → cr3-wasm-DIWL7CPH.js} +1 -1
- package/dist/{demo-engine-5TCNOTTH.js → demo-engine-JAQPM4EV.js} +1 -1
- package/dist/{dng-wasm-5RQBGYAK.js → dng-wasm-PE463PG2.js} +1 -1
- package/dist/{dpx-wasm-OQVTNGOB.js → dpx-wasm-DKE3LJ6Z.js} +1 -1
- package/dist/{engine-4X6TDWWA.js → engine-ZGBF3SQN.js} +2 -2
- package/dist/{exr-wasm-72YZFOME.js → exr-wasm-HAFH3YA5.js} +1 -1
- package/dist/framing-PGFJZIBU.js +3 -0
- package/dist/gfx-worker.js +1 -1
- package/dist/{h264-QCYEI6RF.js → h264-YX5KP63E.js} +1 -1
- package/dist/{h264-mxf-2BYKXDGT.js → h264-mxf-VAHIJCA7.js} +1 -1
- package/dist/hook.js +2 -2
- package/dist/{host-relink-37DCSN47.js → host-relink-M2VWUZW5.js} +1 -1
- package/dist/{hosted-M2OZSONX.js → hosted-4CNQYNX5.js} +1 -1
- package/dist/hosts-R4BHIZJS.js +3 -0
- package/dist/http.js +2 -2
- package/dist/{inspect-R4RWCK3X.js → inspect-7XEE32P5.js} +18 -18
- package/dist/{isobmff-RH4JKUUB.js → isobmff-RHP3N5K2.js} +1 -1
- package/dist/{mc-video-MMKWEKFZ.js → mc-video-CHBOYPI5.js} +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{media-6MB7EKA7.js → media-4VUWQJLQ.js} +1 -1
- package/dist/{media_core_bg-FDL7GJZP.js → media_core_bg-ZMRCKALR.js} +1 -1
- package/dist/{mxf-7HFFEBNW.js → mxf-R2ONKSYU.js} +1 -1
- package/dist/{ops-EM345H7F.js → ops-MKDFWWPG.js} +1 -1
- package/dist/{r3d-DDOTSYZH.js → r3d-EKISZSKU.js} +1 -1
- package/dist/{r3d-G34YLXXA.js → r3d-F4OWLQE2.js} +1 -1
- package/dist/{still-AGBF3OOY.js → still-IDLCMQRD.js} +1 -1
- package/dist/{still-wasm-6YLI6NQQ.js → still-wasm-54HEDTRX.js} +1 -1
- package/dist/{store-LWUDJD76.js → store-A5AKWOSX.js} +1 -1
- package/dist/{tiff-wasm-6APT7FYP.js → tiff-wasm-O7XUGXIO.js} +1 -1
- package/dist/timeline-ZHDJXDZJ.js +3 -0
- package/dist/{wav-CV43ZAJI.js → wav-OLA3QYFJ.js} +1 -1
- package/package.json +5 -5
- package/dist/account-VXAKXGY6.js +0 -3
- package/dist/chunk-CZ6OZKR6.js +0 -516
- package/dist/chunk-JTRM2JCE.js +0 -7
- package/dist/framing-HGW5RCUA.js +0 -3
- package/dist/hosts-IAJTORJD.js +0 -3
- package/dist/timeline-EZ6WUHCB.js +0 -3
- /package/dist/{arriraw-GZ63YMLZ.js → arriraw-PS6V532Y.js} +0 -0
- /package/dist/{chunk-D6YDLKSA.js → chunk-LMRPCWHV.js} +0 -0
- /package/dist/{media_core_bg-XRBVKQZH.js → media_core_bg-57CDWER6.js} +0 -0
- /package/dist/{prores-RIG37OIH.js → prores-CFX64NME.js} +0 -0
- /package/dist/{timeline_core_bg-JW42YM3G.js → timeline_core_bg-5COJCLPG.js} +0 -0
- /package/dist/{udf_bg-B37GKRIH.js → udf_bg-HOHEKAVF.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{Ha as n,Z as s,r as o}from"./chunk-
|
|
3
|
+
import{Ha as n,Z as s,r as o}from"./chunk-L2RTMZCN.js";async function p(t){await n();let e=s(t);return e==="null"?null:JSON.parse(e)}async function d(t){await n();let e;try{e=o(t)}catch{return null}if(e.length<8)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),a=r.getUint32(0,!0),i=r.getUint32(4,!0),u=a*i*4;return e.length<8+u?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+u))}}export{p as a,d as b};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{a as L}from"./chunk-
|
|
3
|
+
import{a as L}from"./chunk-PIM3PV5N.js";import{A as O,B as R,D as W,E as I,ba as P,n as _,s as H,y as N}from"./chunk-GTPTZRO6.js";import X from"node:http";import{connect as Y}from"node:net";import{createHash as M,randomBytes as U}from"node:crypto";import{Buffer as d}from"node:buffer";var j="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";function A(a,e,c=!1){let n=e.length,r=c?128:0,s=n<126?d.from([128|a,r|n]):n<65536?d.from([128|a,r|126,n>>8,n&255]):(()=>{let o=d.alloc(10);return o[0]=128|a,o[1]=r|127,o.writeBigUInt64BE(BigInt(n),2),o})();if(!c)return d.concat([s,d.from(e)]);let t=U(4),i=d.from(e);for(let o=0;o<i.length;o++)i[o]^=t[o&3];return d.concat([s,t,i])}function D(a,e,c,n=!1){let r=d.alloc(0),s=[],t=0,i=!1,o=[],p=[],u=()=>{i||(i=!0,p.forEach(l=>l()))},f=(l=1e3,m="")=>{if(i)return;let h=d.from(m),g=d.alloc(2+h.length);g.writeUInt16BE(l,0),h.copy(g,2);try{a.write(A(8,g,n))}catch{}a.end(),u()};return a.on("data",l=>{for(r=d.concat([r,l]);r.length>=2;){let m=(r[0]&128)!==0,h=r[0]&15,g=(r[1]&128)!==0,v=r[1]&127,w=2;if(v===126){if(r.length<4)return;v=r.readUInt16BE(2),w=4}else if(v===127){if(r.length<10)return;let b=r.readBigUInt64BE(2);if(b>BigInt(c))return f(1009,"too big");v=Number(b),w=10}if(g===n)return f(1002,n?"server frames must not be masked":"client frames must be masked");if(v>c||t+v>c)return f(1009,"message too big");let E=g?4:0;if(r.length<w+E+v)return;let S=d.from(r.subarray(w+E,w+E+v));if(g){let b=r.subarray(w,w+4);for(let x=0;x<S.length;x++)S[x]^=b[x&3]}if(r=r.subarray(w+E+v),h===8)return f(1e3);if(h===9){a.write(A(10,S,n));continue}if(h!==10){if(h===1||h===0){if(s.push(S),t+=S.length,m){let b=d.concat(s).toString("utf8");s=[],t=0,o.forEach(x=>x(b))}continue}return f(1003,"text frames only")}}}),a.on("close",u),a.on("error",u),{origin:e,send:l=>{i||a.write(A(1,d.from(l,"utf8"),n))},close:f,onMessage:l=>{o.push(l)},onClose:l=>{p.push(l)}}}function J(a,e){let c=new Set,n=X.createServer((r,s)=>{let t=n.address();a.onHttp?.(r,s,typeof t=="object"&&t?t.port:a.port)||(s.writeHead(426,{"content-type":"text/plain"}),s.end("websocket only"))});return n.on("upgrade",(r,s)=>{let t=r.headers["sec-websocket-key"];if(r.url?.split("?")[0]!==a.path||typeof t!="string"||String(r.headers.upgrade).toLowerCase()!=="websocket"){s.end(`HTTP/1.1 400 Bad Request\r
|
|
4
4
|
\r
|
|
5
5
|
`);return}let i=M("sha1").update(t+j).digest("base64");s.write(`HTTP/1.1 101 Switching Protocols\r
|
|
6
6
|
Upgrade: websocket\r
|
|
@@ -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
|
-
var s={scrub:{output:"rgba8",detail:"coarse"},thumbnail:{output:"rgba8",detail:"coarse"},park:{output:"rgba8",detail:"exact"},render:{output:"rgba8",detail:"exact"},transcode:{output:"rgb16",detail:"exact"}};function p(e){let t=new DataView(e.buffer,e.byteOffset,8),r=t.getUint32(0,!0),n=t.getUint32(4,!0),o=e.slice(8);return{width:r,height:n,rgb16:new Uint16Array(o.buffer,o.byteOffset,r*n*3)}}var a=class extends Error{constructor(r,n){super(`COVERAGE_MISS: frame ${r} not in linked media (${n} frames)`);this.index=r;this.frameCount=n;this.name="CoverageMissError"}},m=/(?:[A-Z0-9]+_)?COVERAGE_MISS\s+(\{[\s\S]*\})/;function d(e){let r=(e instanceof Error?e.message:String(e??"")).match(m);if(!r)return null;try{return JSON.parse(r[1])}catch{return{reason:"coverage_miss"}}}var i=class extends Error{constructor(r){super(`DELIVERY_COVERAGE_MISS: ${r.reason}`+(r.cut_in!=null?` cut [${r.cut_in}..${r.cut_out}] file_frames ${r.file_frames}`:""));this.detail=r;this.name="DeliveryCoverageMissError"}};function l(e){return e instanceof i?e.detail:d(e)}var u={mov:()=>import("./isobmff-
|
|
3
|
+
var s={scrub:{output:"rgba8",detail:"coarse"},thumbnail:{output:"rgba8",detail:"coarse"},park:{output:"rgba8",detail:"exact"},render:{output:"rgba8",detail:"exact"},transcode:{output:"rgb16",detail:"exact"}};function p(e){let t=new DataView(e.buffer,e.byteOffset,8),r=t.getUint32(0,!0),n=t.getUint32(4,!0),o=e.slice(8);return{width:r,height:n,rgb16:new Uint16Array(o.buffer,o.byteOffset,r*n*3)}}var a=class extends Error{constructor(r,n){super(`COVERAGE_MISS: frame ${r} not in linked media (${n} frames)`);this.index=r;this.frameCount=n;this.name="CoverageMissError"}},m=/(?:[A-Z0-9]+_)?COVERAGE_MISS\s+(\{[\s\S]*\})/;function d(e){let r=(e instanceof Error?e.message:String(e??"")).match(m);if(!r)return null;try{return JSON.parse(r[1])}catch{return{reason:"coverage_miss"}}}var i=class extends Error{constructor(r){super(`DELIVERY_COVERAGE_MISS: ${r.reason}`+(r.cut_in!=null?` cut [${r.cut_in}..${r.cut_out}] file_frames ${r.file_frames}`:""));this.detail=r;this.name="DeliveryCoverageMissError"}};function l(e){return e instanceof i?e.detail:d(e)}var u={mov:()=>import("./isobmff-RHP3N5K2.js").then(e=>e.isobmffFormat),crm:()=>import("./isobmff-RHP3N5K2.js").then(e=>e.isobmffFormat),braw:()=>import("./isobmff-RHP3N5K2.js").then(e=>e.isobmffFormat),wav:()=>import("./wav-OLA3QYFJ.js").then(e=>e.wavFormat),mxf:()=>import("./mxf-R2ONKSYU.js").then(e=>e.mxfFormat),r3d:()=>import("./r3d-F4OWLQE2.js").then(e=>e.r3dFormat),still:()=>import("./still-IDLCMQRD.js").then(e=>e.stillFormat),avc1:()=>import("./h264-YX5KP63E.js").then(e=>e.h264Format),avc3:()=>import("./h264-YX5KP63E.js").then(e=>e.h264Format),h264:()=>import("./h264-YX5KP63E.js").then(e=>e.h264Format),hvc1:()=>import("./h264-YX5KP63E.js").then(e=>e.h264Format),hev1:()=>import("./h264-YX5KP63E.js").then(e=>e.h264Format),hevc:()=>import("./h264-YX5KP63E.js").then(e=>e.h264Format),h264_mxf:()=>import("./h264-mxf-VAHIJCA7.js").then(e=>e.h264MxfFormat),mcvideo:()=>import("./mc-video-CHBOYPI5.js").then(e=>e.mcVideoFormat)};async function c(e){let t=u[e];return t?await t():null}async function f(e){let t=await c(e.format);if(!t)throw new Error(`extract: no handler for format '${e.format}'`);return t.extract(e)}async function b(e,t){let r=await c(e.format);if(!r){if(t.verb==="inspect")return null;throw new Error(`mediaOp: no handler for format '${e.format}' (verb ${t.verb})`)}switch(t.verb){case"inspect":{let n=await r.inspect(e);return n&&(n.source_facts_origin="probed"),n}case"sparsify":return r.sparsify(e,t.selection);case"trim":return r.trim(e,t.selection);case"decode":{let{output:n,detail:o}=s[t.intent];if(n==="rgb16"){if(!r.decode16)throw new Error(`mediaOp: format '${e.format}' has no 16-bit decoder (intent '${t.intent}')`);return r.decode16(e,t.index)}if(!r.decode)throw new Error(`mediaOp: format '${e.format}' has no decoder (no viewer)`);return r.decode(e,t.index,{detail:o})}}}export{s as a,p as b,a as c,d,i as e,l as f,c as g,f as h,b as i};
|
|
@@ -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{b as o}from"./chunk-GTPTZRO6.js";var i="0.6.
|
|
3
|
+
import{b as o}from"./chunk-GTPTZRO6.js";var i="0.6.18";function a(t,n){let r=t.split("-")[0].split(".").map(Number),s=n.split("-")[0].split(".").map(Number);for(let e=0;e<Math.max(r.length,s.length);e++){let l=(r[e]||0)-(s[e]||0);if(l)return l>0}return!1}var p=null;function u(){return o("CONFORM_UPDATE_CHECK")==="off"?Promise.resolve(null):p??=fetch("https://registry.npmjs.org/conformtools/latest",{signal:AbortSignal.timeout(2e3)}).then(t=>t.ok?t.json():null).then(t=>typeof t?.version=="string"?t.version:null).catch(()=>null)}var c="run npx -y conformtools@latest setup claude (or setup codex) once: it registers the server so every new session runs the newest version (npx --prefer-online), then restart the MCP client; if an old global install is shadowing it: npm rm -g conformtools";async function m(){let t=o("CONFORM_APP_VERSION");if(t)return`conform.tools app ${t}`;let n=await u();return`conformtools ${i}`+(n&&a(n,i)?` \u2014 update available: ${n} \u2192 ${c}`:"")}export{i as a,a as b,u as c,c as d,m as e};
|