conformtools 0.6.27 → 0.6.28
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-42OMO43V.js → bridge-I6VDW7YC.js} +1 -1
- package/dist/{chunk-JZCADV5C.js → chunk-7CASAJU4.js} +1 -1
- package/dist/{chunk-M6SVZJAX.js → chunk-7GEOQ4N6.js} +5 -5
- package/dist/{chunk-2X2SFPWD.js → chunk-CSH2RRI6.js} +1 -1
- package/dist/{chunk-6BL5HE4S.js → chunk-CV7OBWOX.js} +1 -1
- package/dist/{chunk-XLRQNFJU.js → chunk-QY4QDBIN.js} +3 -3
- package/dist/chunk-TIZC6IEH.js +10 -0
- package/dist/{chunk-2DMNGWC2.js → chunk-UE76WJ3Y.js} +1 -1
- package/dist/{chunk-T4B4Y5WQ.js → chunk-WG75XXKG.js} +2 -2
- package/dist/{chunk-YMRK5D3X.js → chunk-X76IIWBH.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{framing-PHFTZ4GL.js → framing-QC7Z2GRK.js} +1 -1
- package/dist/{host-relink-FHOEDE76.js → host-relink-B3M3B3VF.js} +1 -1
- package/dist/{hosts-DXH4SQPZ.js → hosts-LVKUUVG7.js} +1 -1
- package/dist/http.js +2 -2
- package/dist/mcp.js +1 -1
- package/dist/{media-OXHZ3PGZ.js → media-NCUTSVJ4.js} +1 -1
- package/dist/{timeline-AK6DUMWB.js → timeline-33MJ3HOK.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-E4KQR4M3.js +0 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{Bb as L,Cb as A,Db as E,Eb as P,Fb as T,Gb as M,Hb as N,Ib as D,Jb as z,Kb as B,Lb as I,ob as S}from"./chunk-
|
|
3
|
+
import{Bb as L,Cb as A,Db as E,Eb as P,Fb as T,Gb as M,Hb as N,Ib as D,Jb as z,Kb as B,Lb as I,ob as S}from"./chunk-QY4QDBIN.js";import{a as b}from"./chunk-E75BCWXY.js";import{aa as p,u as R}from"./chunk-ZPIY5DOU.js";async function W(r,t){let c=t.media_root?[t.media_root]:await z();if(!c.length)throw new b("invalid_args","no media_root given and no remembered locations \u2014 pass the folder to link from");for(let e of c)try{if(!(await R(e)).isDirectory)throw 0}catch{throw new b("invalid_args",`media_root is not a folder on this machine: ${e}`)}let i=A(r,{ref_ids:t.ref_ids,lane:t.lane,reset:t.reset});if(!i.length)return{session:r,changed:!1,note:"",text:"nothing in scope: every reference in scope is already linked (use reset=true to re-point) or the ids/lane matched nothing"};if(t.reset)for(let e of i)e.binding_state="unbound",delete e.coverage_reason;let m=[],k=!1,u=[];for(let e of c)if(t.gather==="path")for(let n of i){let l=n.local_path??n.target_url??"",o=l?await P(e,l):null;o?m.push(o):u.push(`${n.id} ${p(l)}: not at its recorded path under ${e}`)}else{let n=await E(e,i,t.cap,{byName:t.criteria?.file_name!==!1,exts:t.criteria?.extensions});m.push(...n.paths),k||=n.capped}let{refs:$,failed:_}=await T([...new Set(m)]);t.remember&&t.media_root&&await B(t.media_root);let y=new Set(i.map(e=>e.id)),f=S(r,$,y);if(f.splits.length){r=f.session;let e=new Set([...y,...f.splits.flatMap(n=>n.into)]);i=(r.media_references??[]).filter(n=>e.has(n.id));for(let n of f.splits){let l=o=>p(i.find(G=>G.id===o)?.target_url??o);u.push(`split ${n.ref_id} across ${n.into.length} section file(s): ${n.into.map(l).join(", ")}`)}}let d=L(t.criteria),a=M(r,i,$,d,t.tolerances),O=t.criteria?.picture?await N(r,a):[],s=e=>a.rows.filter(n=>n.status===e).length,U=c.map(e=>e.split(/[\\/]/).filter(Boolean).pop()??e).join(", "),v=[`${t.dry_run?"would link":"found"} ${s("matched")} of ${i.length} clip${i.length===1?"":"s"} in ${U}${s("ambiguous")?`, ${s("ambiguous")} with more than one match`:""}${i.length-s("matched")-s("ambiguous")?`, ${i.length-s("matched")-s("ambiguous")} not found there`:""}${t.dry_run?" (dry run: nothing changed)":""}`,`scope: ${i.length} reference(s)${t.lane!=="both"?` (${t.lane} lane)`:""}${t.ref_ids?` (zone of ${t.ref_ids.length})`:""}; gather=${t.gather} under ${c.join(", ")}: ${$.length} candidate clip(s)${k?` (CAPPED at ${t.cap} \u2014 narrow the folder)`:""}`,`criteria: ${[...Object.entries(d).filter(([,e])=>e===!0).map(([e])=>e),...t.criteria?.picture?["picture"]:[]].join(", ")}${d.fileName?` (${d.fileNameMode})`:""}${d.fileExtensions?`; ext ${d.fileExtensions}`:""}; timecode containment + fps always on`,..._.length?[`could not probe ${_.length}: ${_.slice(0,5).join("; ")}`]:[],...u.slice(0,20),...O.slice(0,40)];if(t.dry_run)return{session:r,changed:!1,note:"",text:[...v,I(r,a,{compare:t.compare}),"(dry run \u2014 nothing changed; pass accept=[{ref_id,candidate_id}] to commit chosen rows, or run again without dry_run to apply every matched row)"].join(`
|
|
4
4
|
`)};let h,g=[];if(t.accept?.length){h=[];for(let e of t.accept){let n=a.rows.find(o=>o.ref_id===e.ref_id);n&&(n.candidate?.id===e.candidate_id||n.alternatives.some(o=>o.id===e.candidate_id))?h.push(e):g.push(`${e.ref_id} \u2192 ${e.candidate_id}: not a proposed match or alternative for that reference`)}}else h=a.rows.filter(e=>e.status==="matched"&&e.candidate).map(e=>({ref_id:e.ref_id,candidate_id:e.candidate.id}));let w=D(r,a,h),x=w.session.media_references??[],j=x.filter(e=>i.some(n=>n.id===e.id)&&e.binding_state==="linked").length,q=w.applied,C=x.filter(e=>i.some(n=>n.id===e.id)&&e.binding_state!=="linked").map(e=>` - ${e.id} ${p(e.target_url??"")}: ${e.coverage_reason??(a.rows.find(n=>n.ref_id===e.id)?.status==="ambiguous"?"ambiguous \u2014 pick one with accept":"no file matched")}`),F=[...v,`Linked ${j} of ${i.length}${g.length?`; ${g.length} pick(s) vetoed`:""}`,...q.map(e=>`- ${e.ref_id}: ${p(e.before.path??"?")} \u2192 ${e.after.path}${e.warning?` \u26A0 ${e.warning}`:""}`),...g.map(e=>` \u2717 ${e}`),...C.length?["unresolved:",...C]:[]].join(`
|
|
5
5
|
`);return{session:w.session,changed:!0,note:`relink ${t.gather} ${c[0]} (${j}/${i.length})`,text:F}}export{W as a};
|
|
@@ -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-ZPIY5DOU.js";var r="0.6.
|
|
3
|
+
import{b as o}from"./chunk-ZPIY5DOU.js";var r="0.6.28";function a(t,n){let s=t.split("-")[0].split(".").map(Number),l=n.split("-")[0].split(".").map(Number);for(let e=0;e<Math.max(s.length,l.length);e++){let i=(s[e]||0)-(l[e]||0);if(i)return i>0}return!1}var m=()=>o("CONFORM_APP_VERSION")||r,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 g(){let t=o("CONFORM_APP_VERSION");if(t)return`conform.tools app ${t}`;let n=await u();return`conformtools ${r}`+(n&&a(n,r)?` \u2014 update available: ${n} \u2192 ${c}`:"")}export{r as a,a as b,m as c,u as d,c as e,g as f};
|