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
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{A as w,E as y,a as h,aa as c,m as x,n as k,t as u,x as C,z as A}from"./chunk-XI6XF7FQ.js";var O=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"]),I=["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"],N=["aaf","avb","edl","drt","otio","fcpxml","fcpxmld","prproj","ptx","ale","xml","csv"],U=new Set(["xml","csv","png","jpg","jpeg","tif","tiff"]),L=new Set([...I,...N,...U]);var m="conformtools-hook",d=o=>o&&typeof o=="object"&&!Array.isArray(o)?o:{},g=o=>!!o&&typeof o=="object"&&typeof o.command=="string"&&o.command.includes(m);function $(o,e,t={}){let n=d(o.hooks),r=Array.isArray(n.PostToolUse)?[...n.PostToolUse]:[],s={type:"command",command:e,timeout:10,...t.async?{async:!0}:{}};for(let i=0;i<r.length;i++){let a=d(r[i]),l=Array.isArray(a.hooks)?a.hooks:[],f=l.findIndex(g);if(f<0)continue;if(JSON.stringify(l[f])===JSON.stringify(s)&&a.matcher==="Bash")return{settings:o,result:"kept"};let b=[...l];return b[f]=s,r[i]={...a,matcher:"Bash",hooks:b},{settings:{...o,hooks:{...n,PostToolUse:r}},result:"updated"}}return{settings:{...o,hooks:{...n,PostToolUse:[...r,{matcher:"Bash",hooks:[s]}]}},result:"installed"}}function S(o){let e=d(o.hooks);if(!Array.isArray(e.PostToolUse))return{settings:o,removed:!1};let t=!1,n=e.PostToolUse.map(i=>{let a=d(i);if(!Array.isArray(a.hooks))return i;let l=a.hooks.filter(f=>!g(f));return l.length!==a.hooks.length&&(t=!0),l.length?{...a,hooks:l}:null}).filter(i=>i!==null);if(!t)return{settings:o,removed:!1};let r={...e};n.length?r.PostToolUse=n:delete r.PostToolUse;let s={...o};return Object.keys(r).length?s.hooks=r:delete s.hooks,{settings:s,removed:!0}}function T(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(g);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 P(o){let e=d(o.hooks);if(!Array.isArray(e.afterShellExecution))return{settings:o,removed:!1};let t=e.afterShellExecution.filter(s=>!g(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 E(){return`\\b(${[...O].map(e=>e.replace(/[.+-]/g,"\\$&")).join("|")})\\b|\\.(${[...L].join("|")})\\b`}function F(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 J=["claude","codex","cursor"],p=()=>({claude:c(k(),".claude","settings.json"),codex:c(k(),".codex","hooks.json"),cursor:c(k(),".cursor","hooks.json")});async function M(){let o=new URL(import.meta.url),e=h(new URL("./hook.js",o));if(await u(e)){await w(x());let n=c(x(),`${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 C(o);try{return e.trim()?JSON.parse(e):{}}catch{return"invalid"}}async function j(o,e){let t;return await u(o)?(t=`${o}.conformtools-backup`,await y(o,t)):await w(c(o,"..")),await A(o,JSON.stringify(e,null,2)+`
4
- `),t}async function B(o,e={}){let t=e.file??p()[o];try{let n=e.command??await M();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"?T(r,n,E()):$(r,n,{async:o==="codex"});if(s.result==="kept")return{client:o,file:t,result:"kept"};let i=await j(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 z(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"?P(n):S(n);if(!r.removed)return{client:o,file:t,removed:!1};let s=await j(t,r.settings);return{client:o,file:t,removed:!0,backup:s}}async function R(){let o=p(),e=[];for(let t of J)await u(c(o[t],".."))&&e.push(t);return e}var Z=async()=>Promise.all((await R()).map(o=>B(o))),G=async()=>Promise.all((await R()).map(o=>z(o)));async function D(o,e=p()[o]){let t=await v(e);return t!=="invalid"&&JSON.stringify(t).includes(m)}var H={claude:"Claude Code",codex:"Codex",cursor:"Cursor"},_="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)";function q(o){return o.length?o.map(e=>{let t=H[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 ${_}. 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 Q(o){let e=o.filter(t=>t.removed);return e.length?e.map(t=>`${H[t.client]}: agent hook removed from ${t.file}`).join(`
6
- `):"Agent hook: not installed anywhere on this machine."}async function V(){let o=await R();return o.length?[...await Promise.all(o.map(async t=>`${H[t]}: agent hook ${await D(t)?"on":"off"} (${p()[t]})`)),`It records ${_}. conformtools hooks on|off.`].join(`
7
- `):"Agent hook: no Claude Code, Codex or Cursor folder on this machine."}export{F as a,J as b,p as c,M as d,B as e,z as f,R as g,Z as h,G as i,D as j,_ as k,q as l,Q as m,V as n};