@@ -23,7 +23,7 @@ const BACKEND_DEFAULT = "http://127.0.0.1:5679";
2323const BACKEND_MAX_PORT = 5689 ;
2424const POLL_INTERVAL_MS = 1200 ;
2525const HEALTH_CHECK_MS = 8000 ;
26- const VERSION = "1.5.2 " ;
26+ const VERSION = "1.5.3 " ;
2727
2828async function detectBackend ( ) {
2929 // Try ports 5679-5689 like CEP panel does
@@ -541,7 +541,7 @@ async function runSilenceRemoval() {
541541
542542 await JobPoller . start (
543543 "/silence" ,
544- { file_path : clipPath , threshold_db : threshold , min_silence_duration : minSilence , padding_ms : padding , mode } ,
544+ { filepath : clipPath , threshold : threshold , min_duration : minSilence , padding_before : padding / 1000 , padding_after : padding / 1000 , mode } ,
545545 ( pct , msg ) => {
546546 UIController . setProgress ( pct ) ;
547547 UIController . setProcessingMsg ( msg || "Processing..." ) ;
@@ -595,8 +595,8 @@ async function runFillerDetection() {
595595 UIController . showProcessing ( "Detecting filler words..." ) ;
596596
597597 await JobPoller . start (
598- "/filler-words " ,
599- { file_path : clipPath , filler_words : words . split ( "," ) . map ( w => w . trim ( ) ) , padding_ms : padding } ,
598+ "/fillers " ,
599+ { filepath : clipPath , custom_words : words . split ( "," ) . map ( w => w . trim ( ) ) } ,
600600 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Transcribing..." ) ; } ,
601601 ( result ) => {
602602 UIController . hideProcessing ( ) ;
@@ -630,9 +630,9 @@ async function runTranscribe() {
630630 UIController . showProcessing ( "Transcribing — this may take a while..." ) ;
631631
632632 await JobPoller . start (
633- "/transcribe " ,
634- { file_path : clipPath , model, language : lang === "auto" ? null : lang ,
635- caption_style : style , diarize, word_level : wordLevel } ,
633+ "/captions " ,
634+ { filepath : clipPath , model, language : lang === "auto" ? null : lang ,
635+ format : style , diarize, word_timestamps : wordLevel } ,
636636 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Transcribing..." ) ; } ,
637637 ( result ) => {
638638 UIController . hideProcessing ( ) ;
@@ -671,8 +671,8 @@ async function runChapterGeneration() {
671671 UIController . showProcessing ( "Generating chapters with AI..." ) ;
672672
673673 await JobPoller . start (
674- "/chapters" ,
675- { file_path : clipPath , llm_provider : provider , llm_model : model } ,
674+ "/captions/ chapters" ,
675+ { filepath : clipPath , llm_provider : provider , llm_model : model } ,
676676 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Generating..." ) ; } ,
677677 ( result ) => {
678678 UIController . hideProcessing ( ) ;
@@ -711,8 +711,8 @@ async function runRepeatDetection() {
711711 UIController . showProcessing ( "Detecting repeated segments..." ) ;
712712
713713 await JobPoller . start (
714- "/repeat-detection " ,
715- { file_path : clipPath , similarity_threshold : threshold , keep_best : keepBest } ,
714+ "/captions/ repeat-detect " ,
715+ { filepath : clipPath , threshold, keep_best : keepBest } ,
716716 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Analysing..." ) ; } ,
717717 ( result ) => {
718718 UIController . hideProcessing ( ) ;
@@ -741,8 +741,8 @@ async function runDenoise() {
741741 UIController . showProcessing ( "Applying noise reduction..." ) ;
742742
743743 await JobPoller . start (
744- "/denoise" ,
745- { file_path : clipPath , method, strength } ,
744+ "/audio/ denoise" ,
745+ { filepath : clipPath , method, strength } ,
746746 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Processing..." ) ; } ,
747747 ( result ) => {
748748 UIController . hideProcessing ( ) ;
@@ -770,8 +770,8 @@ async function runNormalize() {
770770 UIController . showProcessing ( "Normalizing audio..." ) ;
771771
772772 await JobPoller . start (
773- "/normalize" ,
774- { file_path : clipPath , target_lufs : targetLufs , true_peak : truePeak ? - 1.0 : null } ,
773+ "/audio/ normalize" ,
774+ { filepath : clipPath , target_lufs : targetLufs , true_peak : truePeak ? - 1.0 : null } ,
775775 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Normalizing..." ) ; } ,
776776 ( result ) => {
777777 UIController . hideProcessing ( ) ;
@@ -800,8 +800,8 @@ async function runLoudnessMatch() {
800800 UIController . showProcessing ( "Matching loudness to reference..." ) ;
801801
802802 await JobPoller . start (
803- "/loudness-match" ,
804- { file_path : clipPath , reference_path : refPath } ,
803+ "/audio/ loudness-match" ,
804+ { files : [ clipPath , refPath ] , target_lufs : - 14.0 } ,
805805 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Matching..." ) ; } ,
806806 ( result ) => {
807807 UIController . hideProcessing ( ) ;
@@ -828,8 +828,8 @@ async function runBeatMarkers() {
828828 UIController . showProcessing ( "Detecting beats..." ) ;
829829
830830 await JobPoller . start (
831- "/beat-detection " ,
832- { file_path : trackPath , sensitivity } ,
831+ "/audio/ beat-markers " ,
832+ { filepath : trackPath , subdivisions : Math . max ( 1 , Math . round ( sensitivity * 4 ) ) } ,
833833 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Analysing tempo..." ) ; } ,
834834 async ( result ) => {
835835 UIController . hideProcessing ( ) ;
@@ -866,8 +866,8 @@ async function runColorMatch() {
866866 UIController . showProcessing ( "Matching color grading..." ) ;
867867
868868 await JobPoller . start (
869- "/color-match" ,
870- { file_path : clipPath , reference_path : refPath , strength } ,
869+ "/video/ color-match" ,
870+ { source : clipPath , reference : refPath , strength } ,
871871 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Grading..." ) ; } ,
872872 ( result ) => {
873873 UIController . hideProcessing ( ) ;
@@ -895,8 +895,8 @@ async function runAutoZoom() {
895895 UIController . showProcessing ( "Applying auto zoom / reframe..." ) ;
896896
897897 await JobPoller . start (
898- "/auto-zoom" ,
899- { file_path : clipPath , aspect_ratio : aspect , max_zoom : maxZoom } ,
898+ "/video/ auto-zoom" ,
899+ { filepath : clipPath , zoom_amount : maxZoom , easing : "ease_in_out" } ,
900900 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Reframing..." ) ; } ,
901901 ( result ) => {
902902 UIController . hideProcessing ( ) ;
@@ -927,8 +927,8 @@ async function runMulticamCuts() {
927927 UIController . showProcessing ( "Generating multicam cuts..." ) ;
928928
929929 await JobPoller . start (
930- "/multicam-cuts" ,
931- { cam1_path : cam1Path , cam2_path : cam2Path , strategy } ,
930+ "/video/ multicam-cuts" ,
931+ { filepath : cam1Path , diarization_file : cam2Path , min_cut_duration : 1.0 } ,
932932 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Analysing cameras..." ) ; } ,
933933 async ( result ) => {
934934 UIController . hideProcessing ( ) ;
@@ -1023,7 +1023,7 @@ async function runBatchExport() {
10231023 UIController . showProcessing ( "Starting batch export from markers..." ) ;
10241024
10251025 await JobPoller . start (
1026- "/batch- export-markers" ,
1026+ "/timeline/ export-from -markers" ,
10271027 { preset, output_dir : outputDir } ,
10281028 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Exporting..." ) ; } ,
10291029 ( result ) => {
@@ -1050,7 +1050,7 @@ async function runBatchRename() {
10501050 UIController . showProcessing ( "Renaming project items..." ) ;
10511051
10521052 await JobPoller . start (
1053- "/batch-rename" ,
1053+ "/timeline/ batch-rename" ,
10541054 { pattern, scope } ,
10551055 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Renaming..." ) ; } ,
10561056 ( result ) => {
@@ -1076,7 +1076,7 @@ async function runSmartBins() {
10761076 UIController . showProcessing ( "Organising project bins..." ) ;
10771077
10781078 await JobPoller . start (
1079- "/smart-bins" ,
1079+ "/timeline/ smart-bins" ,
10801080 { strategy } ,
10811081 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Organising..." ) ; } ,
10821082 ( result ) => {
@@ -1104,7 +1104,7 @@ async function runSrtImport() {
11041104 UIController . showProcessing ( "Importing SRT to timeline..." ) ;
11051105
11061106 await JobPoller . start (
1107- "/import- srt" ,
1107+ "/timeline/ srt-to-captions " ,
11081108 { srt_path : srtPath , track_index : trackIndex } ,
11091109 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Importing..." ) ; } ,
11101110 ( result ) => {
@@ -1135,8 +1135,8 @@ async function runIndexLibrary() {
11351135 if ( statusLine ) statusLine . textContent = "Indexing..." ;
11361136
11371137 await JobPoller . start (
1138- "/index-library " ,
1139- { folder , index_transcripts : transcripts , index_frames : frames } ,
1138+ "/search/ index" ,
1139+ { files : [ folder ] , model : "base" } ,
11401140 ( pct , msg ) => {
11411141 UIController . setProgress ( pct ) ;
11421142 UIController . setProcessingMsg ( msg || "Scanning..." ) ;
@@ -1168,7 +1168,7 @@ async function runFootageSearch() {
11681168 UIController . setButtonLoading ( "runFootageSearchBtn" , true ) ;
11691169 UIController . setStatus ( "Searching footage..." ) ;
11701170
1171- const r = await BackendClient . post ( "/search- footage" , { query, limit } ) ;
1171+ const r = await BackendClient . post ( "/search/ footage" , { query, top_k : limit } ) ;
11721172
11731173 UIController . setButtonLoading ( "runFootageSearchBtn" , false ) ;
11741174
@@ -1213,7 +1213,7 @@ async function runNlpCommand() {
12131213 UIController . showProcessing ( "Parsing command with AI..." ) ;
12141214
12151215 await JobPoller . start (
1216- "/nlp- command" ,
1216+ "/nlp/ command" ,
12171217 { command, llm_provider : provider } ,
12181218 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Thinking..." ) ; } ,
12191219 ( result ) => {
@@ -1301,14 +1301,14 @@ async function runDeliverables(type) {
13011301 UIController . showProcessing ( `Generating ${ type . replace ( / _ / g, " " ) } ...` ) ;
13021302
13031303 await JobPoller . start (
1304- " /deliverables" ,
1305- { type , output_dir : outputDir || null } ,
1304+ ` /deliverables/ ${ type . replace ( / _ / g , "-" ) } ` ,
1305+ { sequence_data : { } , output_dir : outputDir || null } ,
13061306 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Generating..." ) ; } ,
13071307 ( result ) => {
13081308 UIController . hideProcessing ( ) ;
13091309 if ( btnId ) UIController . setButtonLoading ( btnId , false ) ;
13101310 UIController . showToast (
1311- `${ type . replace ( / _ / g, " " ) } saved: ${ result . output_path ?? result . path ?? "done" } ` ,
1311+ `${ type . replace ( / _ / g, " " ) } saved: ${ result . output ?? result . output_path ?? "done" } ` ,
13121312 "success"
13131313 ) ;
13141314 UIController . setStatus ( `${ type } generated.` ) ;
0 commit comments