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
|
@@ -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-LAXAYC7P.js").then(e=>e.isobmffFormat),crm:()=>import("./isobmff-LAXAYC7P.js").then(e=>e.isobmffFormat),braw:()=>import("./isobmff-LAXAYC7P.js").then(e=>e.isobmffFormat),wav:()=>import("./wav-GTQMRIR3.js").then(e=>e.wavFormat),mxf:()=>import("./mxf-2TQO552L.js").then(e=>e.mxfFormat),r3d:()=>import("./r3d-EPSGIBPT.js").then(e=>e.r3dFormat),still:()=>import("./still-LQOFV74F.js").then(e=>e.stillFormat),avc1:()=>import("./h264-QGSP23K2.js").then(e=>e.h264Format),avc3:()=>import("./h264-QGSP23K2.js").then(e=>e.h264Format),h264:()=>import("./h264-QGSP23K2.js").then(e=>e.h264Format),hvc1:()=>import("./h264-QGSP23K2.js").then(e=>e.h264Format),hev1:()=>import("./h264-QGSP23K2.js").then(e=>e.h264Format),hevc:()=>import("./h264-QGSP23K2.js").then(e=>e.h264Format),h264_mxf:()=>import("./h264-mxf-I4YANT5F.js").then(e=>e.h264MxfFormat),mcvideo:()=>import("./mc-video-KQ7TP4DG.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{d as _}from"./chunk-
|
|
3
|
+
import{d as _}from"./chunk-FHCRWOI7.js";function l(f){let m=[...f].sort((s,t)=>s.first_frame-t.first_frame),e=[];for(let s of m){let t=e[e.length-1];t&&s.first_frame<=t.last_frame+1?t.last_frame=Math.max(t.last_frame,s.last_frame):e.push({...s})}return e}async function g(f,m,e){let s=l(f),t=l(f.map(r=>({first_frame:Math.max(0,r.first_frame-m),last_frame:r.last_frame+m}))),n=[];for(let r of t)try{n.push(await e(r.first_frame,r.last_frame+1))}catch(o){let i=_(o)?.file_frames,u=s.filter(a=>a.last_frame>=r.first_frame&&a.first_frame<=r.last_frame);if(i==null||r.last_frame+1<=i||u.some(a=>a.first_frame<0||a.last_frame+1>i))throw o;n.push(await e(r.first_frame,i))}return n}export{l as a,g as b};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
+
import{C,D as x,H as y,a as h,ea as c,o as w,p as g,v as u,z as S}from"./chunk-QQBDHVUU.js";var I=new Set(["ffmpeg","ffprobe","ffplay","sox","soxi","mediainfo","exiftool","mkvmerge","mkvextract","mp4box","bmxtranswrap","raw2rgb","redline","art-cmd","oiiotool","iconvert","idiff","asdcp-wrap","asdcp-unwrap","asdcp-info","opendcp","dcp_inspect","handbrakecli","gst-launch-1.0","mencoder","mplayer","sips","afconvert","avconvert","qtfaststart","mediaconch","bwfmetaedit","x264","x265","aomenc","svtav1encapp","otiotool","otioconvert","otioview","cineform","ale2csv"]),N=["mov","mp4","m4v","mxf","mkv","avi","webm","mts","m2ts","mpg","mpeg","r3d","braw","ari","arx","crm","dng","dpx","exr","wav","aif","aiff","bwf","flac","mp3","aac","m4a","caf"],J=["aaf","avb","edl","drt","otio","fcpxml","fcpxmld","prproj","ptx","ale","xml","csv"],L=new Set(["xml","csv","png","jpg","jpeg","tif","tiff"]),M=new Set([...N,...J,...L]);var m="conformtools-hook",d=o=>o&&typeof o=="object"&&!Array.isArray(o)?o:{},k=o=>!!o&&typeof o=="object"&&typeof o.command=="string"&&o.command.includes(m),A=[["PostToolUse","Bash"],["UserPromptSubmit",null],["Stop",null]];function U(o,e,t,n){let r=Array.isArray(o[e])?[...o[e]]:[],s=(i,a)=>({...i,...t?{matcher:t}:{},hooks:a});for(let i=0;i<r.length;i++){let a=d(r[i]),l=Array.isArray(a.hooks)?a.hooks:[],f=l.findIndex(k);if(f<0)continue;if(JSON.stringify(l[f])===JSON.stringify(n)&&(!t||a.matcher===t))return"kept";let H=[...l];return H[f]=n,r[i]=s(a,H),o[e]=r,"updated"}return o[e]=[...r,s({},[n])],"installed"}function $(o,e,t={}){let n={...d(o.hooks)},r=A.map(([s,i])=>U(n,s,i,{type:"command",command:e,timeout:10,...t.async&&i?{async:!0}:{}}));return r.every(s=>s==="kept")?{settings:o,result:"kept"}:{settings:{...o,hooks:n},result:r.every(s=>s==="installed")?"installed":"updated"}}function _(o){let e={...d(o.hooks)},t=!1;for(let[r]of A){if(!Array.isArray(e[r]))continue;let s=e[r].map(i=>{let a=d(i);if(!Array.isArray(a.hooks))return i;let l=a.hooks.filter(f=>!k(f));return l.length!==a.hooks.length&&(t=!0),l.length?{...a,hooks:l}:null}).filter(i=>i!==null);s.length?e[r]=s:delete e[r]}if(!t)return{settings:o,removed:!1};let n={...o};return Object.keys(e).length?n.hooks=e:delete n.hooks,{settings:n,removed:!0}}var X=30*6e4;function E(o,e,t){let n=d(o.hooks),r=Array.isArray(n.afterShellExecution)?[...n.afterShellExecution]:[],s={command:e,timeout:10,matcher:t},i=r.findIndex(k);return i>=0&&JSON.stringify(r[i])===JSON.stringify(s)?{settings:o,result:"kept"}:(i>=0?r[i]=s:r.push(s),{settings:{version:1,...o,hooks:{...n,afterShellExecution:r}},result:i>=0?"updated":"installed"})}function O(o){let e=d(o.hooks);if(!Array.isArray(e.afterShellExecution))return{settings:o,removed:!1};let t=e.afterShellExecution.filter(s=>!k(s));if(t.length===e.afterShellExecution.length)return{settings:o,removed:!1};let n={...e};t.length?n.afterShellExecution=t:delete n.afterShellExecution;let r={...o};return Object.keys(n).length?r.hooks=n:delete r.hooks,{settings:r,removed:!0}}function j(){return`\\b(${[...I].map(e=>e.replace(/[.+-]/g,"\\$&")).join("|")})\\b|\\.(${[...M].join("|")})\\b`}function q(o){let e=(o??"").toLowerCase();return e?e.includes("claude-code")||e.includes("claude code")?"claude":e.includes("codex")?"codex":e.includes("cursor")?"cursor":null:null}var D=["claude","codex","cursor"],p=()=>({claude:c(g(),".claude","settings.json"),codex:c(g(),".codex","hooks.json"),cursor:c(g(),".cursor","hooks.json")});async function F(){let o=new URL(import.meta.url),e=h(new URL("./hook.js",o));if(await u(e)){await x(w());let n=c(w(),`${m}.js`);return await y(e,n),`node "${n}"`}let t=h(new URL("../adapters/hook.ts",o));return await u(t)?`deno run --allow-read --allow-write --allow-env --no-check --unstable-sloppy-imports "${t}" ${m}`:null}async function v(o){if(!await u(o))return{};let e=await S(o);try{return e.trim()?JSON.parse(e):{}}catch{return"invalid"}}async function P(o,e){let t;return await u(o)?(t=`${o}.conformtools-backup`,await y(o,t)):await x(c(o,"..")),await C(o,JSON.stringify(e,null,2)+`
|
|
4
|
+
`),t}async function z(o,e={}){let t=e.file??p()[o];try{let n=e.command??await F();if(!n)return{client:o,file:t,result:"skipped",detail:"no hook script beside this build"};let r=await v(t);if(r==="invalid")return{client:o,file:t,result:"failed",detail:`${t} is not valid JSON; nothing was changed`};let s=o==="cursor"?E(r,n,j()):$(r,n,{async:o==="codex"});if(s.result==="kept")return{client:o,file:t,result:"kept"};let i=await P(t,s.settings);return{client:o,file:t,result:s.result,backup:i}}catch(n){return{client:o,file:t,result:"failed",detail:n instanceof Error?n.message:String(n)}}}async function B(o,e={}){let t=e.file??p()[o],n=await v(t);if(n==="invalid")return{client:o,file:t,removed:!1};let r=o==="cursor"?O(n):_(n);if(!r.removed)return{client:o,file:t,removed:!1};let s=await P(t,r.settings);return{client:o,file:t,removed:!0,backup:s}}async function R(){let o=p(),e=[];for(let t of D)await u(c(o[t],".."))&&e.push(t);return e}var V=async()=>Promise.all((await R()).map(o=>z(o))),Q=async()=>Promise.all((await R()).map(o=>B(o)));async function K(o,e=p()[o]){let t=await v(e);return t!=="invalid"&&JSON.stringify(t).includes(m)}var b={claude:"Claude Code",codex:"Codex",cursor:"Cursor"},T="which other programs the agent ran on media or timeline files (program names and file extensions only; never a command, a path, a name, a prompt or an output), and on each message you send it reminds the agent to log your request with every name and path taken out (the hook itself sends nothing of the message)";function Y(o){return o.length?o.map(e=>{let t=b[e.client],n={installed:`${t}: agent hook installed in ${e.file}${e.backup?` (backup: ${e.backup})`:""}`,updated:`${t}: agent hook refreshed in ${e.file}`,kept:`${t}: agent hook already in ${e.file}`,skipped:`${t}: agent hook not installed (${e.detail})`,failed:`${t}: agent hook not installed: ${e.detail}`}[e.result];return e.client==="codex"&&(e.result==="installed"||e.result==="updated")?`${n}; Codex asks you to trust it once (/hooks)`:n}).concat(`It records ${T}. conformtools hooks off removes it; conformtools telemetry off removes it with the rest.`).join(`
|
|
5
|
+
`):"Agent hook: no Claude Code, Codex or Cursor folder on this machine; nothing to install."}function oo(o){let e=o.filter(t=>t.removed);return e.length?e.map(t=>`${b[t.client]}: agent hook removed from ${t.file}`).join(`
|
|
6
|
+
`):"Agent hook: not installed anywhere on this machine."}async function eo(){let o=await R();return o.length?[...await Promise.all(o.map(async t=>`${b[t]}: agent hook ${await K(t)?"on":"off"} (${p()[t]})`)),`It records ${T}. conformtools hooks on|off.`].join(`
|
|
7
|
+
`):"Agent hook: no Claude Code, Codex or Cursor folder on this machine."}export{q as a,D as b,p as c,F as d,z as e,B as f,R as g,V as h,Q as i,K as j,T as k,Y as l,oo as m,eo as n};
|