demowright 2.0.8 → 2.1.0

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/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as defaultOptions } from "./setup-BwdzChHS.mjs";
1
+ import { n as defaultOptions } from "./setup-Ce4X1N16.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { execSync } from "node:child_process";
4
4
  import { mkdirSync, readdirSync } from "node:fs";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { r as AudioWriter, t as applyHud } from "./setup-BwdzChHS.mjs";
1
+ import { r as AudioWriter, t as applyHud } from "./setup-Ce4X1N16.mjs";
2
2
  import { i as getGlobalTtsProvider, s as init_hud_registry } from "./hud-registry-Wfd4b4Nu.mjs";
3
3
  import { buildFfmpegCommand, createVideoScript, t as init_video_script } from "./video-script.mjs";
4
4
  import { annotate, caption, clickEl, hudWait, moveTo, moveToEl, narrate, subtitle, typeKeys } from "./helpers.mjs";
@@ -622,7 +622,6 @@ function buildAndSaveAudioTrack(segments, outputPath, contextStartMs, browserAud
622
622
  for (const seg of segments) {
623
623
  const dOff = seg.wavBuf.indexOf("data") + 8;
624
624
  if (dOff < 8) continue;
625
- seg.wavBuf.readUInt32LE(24);
626
625
  const ch = seg.wavBuf.readUInt16LE(22);
627
626
  const pcmData = seg.wavBuf.subarray(dOff);
628
627
  const sampleCount = pcmData.length / 2;
package/dist/setup.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as defaultOptions, t as applyHud } from "./setup-BwdzChHS.mjs";
1
+ import { n as defaultOptions, t as applyHud } from "./setup-Ce4X1N16.mjs";
2
2
  export { applyHud, defaultOptions };
@@ -170,8 +170,6 @@ function generateSrt(timeline) {
170
170
  }
171
171
  function generateChapters(timeline) {
172
172
  return timeline.filter((e) => e.kind === "segment" || e.kind === "title" || e.kind === "outro").map((entry) => {
173
- (entry.startMs / 1e3).toFixed(3);
174
- ((entry.startMs + entry.durationMs) / 1e3).toFixed(3);
175
173
  return `[CHAPTER]\nTIMEBASE=1/1000\nSTART=${Math.round(entry.startMs)}\nEND=${Math.round(entry.startMs + entry.durationMs)}\ntitle=${entry.text.slice(0, 80)}`;
176
174
  }).join("\n\n");
177
175
  }
@@ -366,7 +364,7 @@ var init_video_script = __esmMin((() => {
366
364
  * for deferred track building at context close (setup.ts).
367
365
  */
368
366
  async run(page) {
369
- const { timeline, totalMs, audioSegments } = await this.executeSteps(page);
367
+ const { timeline, totalMs } = await this.executeSteps(page);
370
368
  return {
371
369
  timeline,
372
370
  totalMs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demowright",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "description": "Playwright video production plugin — cursor overlay, keystroke badges, TTS narration, and narration-driven video scripts for test recordings",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,13 +42,17 @@
42
42
  "build": "tsdown",
43
43
  "test": "bunx playwright test",
44
44
  "demo": "bunx playwright test tests/demo.spec.ts --headed",
45
- "prepublishOnly": "tsdown"
45
+ "prepublishOnly": "tsdown",
46
+ "lint": "oxlint src",
47
+ "typecheck": "tsgo --noEmit"
46
48
  },
47
49
  "devDependencies": {
48
50
  "@types/node": "^25.5.2",
49
51
  "@typescript/native-preview": "^7.0.0-dev.20260405.1",
52
+ "oxlint": "^1.59.0",
50
53
  "semantic-release": "^25.0.3",
51
- "tsdown": "^0.21.7"
54
+ "tsdown": "^0.21.7",
55
+ "typescript": "^6.0.2"
52
56
  },
53
57
  "peerDependencies": {
54
58
  "@playwright/test": ">=1.40.0"