ossclip 0.1.23 → 0.1.24
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/package.json +4 -4
- package/src/edit.ts +1 -1
- package/src/ui/animation.ts +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ossclip",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Local-first CLI video producer: cuts silence and fillers, word-timed captions, face-aware framing, and LLM-planned code-rendered graphics — transcription and rendering never leave your machine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"commander": "^12.1.0",
|
|
37
37
|
"tsx": "^4.19.0",
|
|
38
38
|
"zod": "^3.25.76",
|
|
39
|
-
"@ossclip/core": "0.1.
|
|
40
|
-
"@ossclip/
|
|
41
|
-
"@ossclip/
|
|
39
|
+
"@ossclip/core": "0.1.24",
|
|
40
|
+
"@ossclip/scenes": "0.1.24",
|
|
41
|
+
"@ossclip/renderer": "0.1.24"
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/AhsanAyaz/ossclip#readme",
|
|
44
44
|
"bugs": {
|
package/src/edit.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawn, type ChildProcess } from "node:child_process";
|
|
2
|
-
import { createReadStream, existsSync, statSync } from "node:fs";
|
|
2
|
+
import { createReadStream, existsSync, readFileSync, statSync } from "node:fs";
|
|
3
3
|
import { mkdir, readFile, readdir, rename, writeFile } from "node:fs/promises";
|
|
4
4
|
import { createServer, type IncomingMessage, type ServerResponse } from "node:http";
|
|
5
5
|
import { homedir } from "node:os";
|
package/src/ui/animation.ts
CHANGED
|
@@ -215,12 +215,11 @@ export class StageAnimator {
|
|
|
215
215
|
`${ansi.green}${eq}${ansi.reset} ${ansi.dim}(${elapsedSec}s)${ansi.reset}\n` +
|
|
216
216
|
` ${ansi.cyan}${dots}${ansi.reset} ${ansi.brightWhite}${clamp(this.subtitle)}${ansi.reset}`;
|
|
217
217
|
} else if (this.type === "audio") {
|
|
218
|
-
const synth = renderSynthWave(this.frameIndex,
|
|
218
|
+
const synth = renderSynthWave(this.frameIndex, 12);
|
|
219
219
|
visual =
|
|
220
220
|
`${ansi.bold}${ansi.brightYellow}🔊 ANALOG SYNTH AUDIO OSCILLOSCOPE${ansi.reset} ` +
|
|
221
221
|
`[${synth}] ${ansi.dim}(${elapsedSec}s)${ansi.reset}\n` +
|
|
222
|
-
` ${ansi.brightYellow}▸${ansi.reset} ${ansi.brightWhite}${clamp(this.subtitle)}${ansi.reset}
|
|
223
|
-
`${ansi.dim}48kHz 24-bit PCM │ EBU R128 (-14.0 LUFS)${ansi.reset}`;
|
|
222
|
+
` ${ansi.brightYellow}▸${ansi.reset} ${ansi.brightWhite}${clamp(this.subtitle)}${ansi.reset}`;
|
|
224
223
|
} else if (this.type === "master") {
|
|
225
224
|
const dots = SPINNERS.dots[this.frameIndex % SPINNERS.dots.length];
|
|
226
225
|
visual =
|
|
@@ -236,7 +235,12 @@ export class StageAnimator {
|
|
|
236
235
|
}
|
|
237
236
|
|
|
238
237
|
this.clearRenderedLines();
|
|
239
|
-
const
|
|
238
|
+
const rawLines = visual.split("\n");
|
|
239
|
+
const lines = rawLines.map((l) => {
|
|
240
|
+
const vis = stripAnsi(l);
|
|
241
|
+
if (vis.length <= maxVisualWidth) return l;
|
|
242
|
+
return l.slice(0, maxVisualWidth - 3) + "..." + ansi.reset;
|
|
243
|
+
});
|
|
240
244
|
for (const l of lines) {
|
|
241
245
|
process.stdout.write(`${l}\n`);
|
|
242
246
|
}
|