conformtools 0.6.13 → 0.6.14
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/{bridge-PWYOJ7E7.js → bridge-46P34WCD.js} +1 -1
- package/dist/{chunk-LKQTE6T5.js → chunk-5PTQAFU5.js} +3 -3
- package/dist/{chunk-H4BU5WA6.js → chunk-764P7TUD.js} +1 -1
- package/dist/{chunk-BYMCZJBQ.js → chunk-BO462NEL.js} +1 -1
- package/dist/{chunk-LZRCXSUJ.js → chunk-CQSNVQQE.js} +1 -1
- package/dist/{chunk-LRGA6QJQ.js → chunk-DP4KJ3KL.js} +5 -5
- package/dist/{chunk-ERUN634Q.js → chunk-EKTETRKB.js} +1 -1
- package/dist/{chunk-4VFDGL4E.js → chunk-FXK53VEO.js} +1 -1
- package/dist/chunk-MJBJI6DV.js +3 -0
- package/dist/{chunk-7W5AFZYX.js → chunk-MOSLNNO5.js} +1 -1
- package/dist/{chunk-I2Y2P5NH.js → chunk-O372NT7V.js} +2 -2
- package/dist/{chunk-Y455Y6V4.js → chunk-P3EOFAZR.js} +1 -1
- package/dist/{chunk-G3HBKJ5L.js → chunk-YKKB27VF.js} +1 -1
- package/dist/{chunk-B54TEGMG.js → chunk-YYR3FM6A.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{framing-P5RGN5V3.js → framing-4HAHAG4I.js} +1 -1
- package/dist/{h264-JI62TU4W.js → h264-MAUQSLPY.js} +1 -1
- package/dist/{h264-mxf-J2QPZO4U.js → h264-mxf-2SZ66MPB.js} +1 -1
- package/dist/{host-relink-76CFY32O.js → host-relink-664IB3BC.js} +1 -1
- package/dist/{hosts-TBHEPV6A.js → hosts-BGWD7BKM.js} +1 -1
- package/dist/http.js +2 -2
- package/dist/{inspect-U656APGR.js → inspect-ZM7IW23B.js} +1 -1
- package/dist/{isobmff-UISATYUR.js → isobmff-6ZPEXUF4.js} +1 -1
- package/dist/{mc-video-LSTKUKNL.js → mc-video-KMWTRVES.js} +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{media-XBNKYKB7.js → media-MSMXMA6E.js} +1 -1
- package/dist/{mxf-ZL57VJ3C.js → mxf-GOWHEH4A.js} +1 -1
- package/dist/{ops-ZQEQXW2N.js → ops-FI2NBTYK.js} +1 -1
- package/dist/{r3d-R4TLYJVE.js → r3d-LO5Z6DEX.js} +1 -1
- package/dist/{still-4UR35GZH.js → still-6FU7ALUV.js} +1 -1
- package/dist/{timeline-JONFBIA3.js → timeline-WVETLJZN.js} +1 -1
- package/package.json +5 -5
- package/dist/chunk-JV7TZDKJ.js +0 -3
|
@@ -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 s}from"./chunk-XI6XF7FQ.js";var l="0.6.
|
|
3
|
+
import{b as s}from"./chunk-XI6XF7FQ.js";var l="0.6.14";function a(t,i){let n=t.split("-")[0].split(".").map(Number),o=i.split("-")[0].split(".").map(Number);for(let e=0;e<Math.max(n.length,o.length);e++){let r=(n[e]||0)-(o[e]||0);if(r)return r>0}return!1}var u=null;function p(){return s("CONFORM_UPDATE_CHECK")==="off"?Promise.resolve(null):u??=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 f(){let t=await p();return`conformtools ${l}`+(t&&a(t,l)?` \u2014 update available: ${t} \u2192 ${c}`:"")}export{l as a,a as b,p as c,c as d,f as e};
|
|
@@ -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{Wc as d}from"./chunk-
|
|
3
|
+
import{Wc as d}from"./chunk-5PTQAFU5.js";import{A as p,D as m,aa as f,m as c,x as u,z as l}from"./chunk-XI6XF7FQ.js";import o from"node:process";import{readFileSync as g,rmSync as h}from"node:fs";import{createConnection as w}from"node:net";var x=new Set(["tool_run","app","tool"]),s=()=>f(c(),"engine.json");async function I(e,r){await p(c()),await l(s(),JSON.stringify({port:e,token:r||void 0,pid:o.pid})),await m(s(),384);for(let t of["SIGINT","SIGTERM"])o.on(t,()=>o.exit(0));o.on("exit",()=>{try{JSON.parse(g(s(),"utf8")).pid===o.pid&&h(s())}catch{}})}function S(e,r=1500){return new Promise(t=>{let n=w({host:"127.0.0.1",port:e}),i=y=>{clearTimeout(a),n.destroy(),t(y)},a=setTimeout(()=>i(!1),r);n.once("connect",()=>i(!0)).once("error",()=>i(!1))})}async function O(e,r){if(!x.has(e))return null;let t;try{t=JSON.parse(await u(s()))}catch{return null}if(t.pid===o.pid||!await S(t.port))return null;let n;try{n=await fetch(`http://127.0.0.1:${t.port}/verbs/${e}`,{method:"POST",body:JSON.stringify(r),headers:{"content-type":"application/json","x-conform-client":d()??"mcp",...t.token?{authorization:`Bearer ${t.token}`}:{}}})}catch{return null}if(n.status===401||n.status===404)return null;let{text:i,...a}=await n.json();return{content:[{type:"text",text:i??""}],structuredContent:a,isError:!n.ok}}export{I as a,O as b};
|
|
@@ -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-6ZPEXUF4.js").then(e=>e.isobmffFormat),crm:()=>import("./isobmff-6ZPEXUF4.js").then(e=>e.isobmffFormat),braw:()=>import("./isobmff-6ZPEXUF4.js").then(e=>e.isobmffFormat),wav:()=>import("./wav-HSCUCY4U.js").then(e=>e.wavFormat),mxf:()=>import("./mxf-GOWHEH4A.js").then(e=>e.mxfFormat),r3d:()=>import("./r3d-LO5Z6DEX.js").then(e=>e.r3dFormat),still:()=>import("./still-6FU7ALUV.js").then(e=>e.stillFormat),avc1:()=>import("./h264-MAUQSLPY.js").then(e=>e.h264Format),avc3:()=>import("./h264-MAUQSLPY.js").then(e=>e.h264Format),h264:()=>import("./h264-MAUQSLPY.js").then(e=>e.h264Format),hvc1:()=>import("./h264-MAUQSLPY.js").then(e=>e.h264Format),hev1:()=>import("./h264-MAUQSLPY.js").then(e=>e.h264Format),hevc:()=>import("./h264-MAUQSLPY.js").then(e=>e.h264Format),h264_mxf:()=>import("./h264-mxf-2SZ66MPB.js").then(e=>e.h264MxfFormat),mcvideo:()=>import("./mc-video-KMWTRVES.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};
|