@lalalic/markcut 3.2.59 → 3.2.60

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lalalic/markcut",
3
- "version": "3.2.59",
3
+ "version": "3.2.60",
4
4
  "description": "Markdown-to-video engine. Describe scenes in markdown, get a rendered video.",
5
5
  "bin": {
6
6
  "markcut": "bin/markcut"
@@ -20,8 +20,8 @@
20
20
  flex: 0 0 auto;
21
21
  overflow: visible;
22
22
  }
23
- #scene-thumbnails { order: -1; min-width: 0; max-width: 100%; gap: 6px;
24
- padding: 4px 0 9px; margin: 0; scroll-snap-type: x proximity; }
23
+ #scene-thumbnails { order: 0; min-width: 0; max-width: 100%; gap: 6px;
24
+ padding: 9px 0 6px; margin: 0; scroll-snap-type: x proximity; }
25
25
  .scene-pill { flex-shrink: 0; max-width: 145px; box-sizing: border-box;
26
26
  overflow: hidden; text-overflow: ellipsis; scroll-snap-align: start;
27
27
  min-height: 36px; padding: 9px 10px; }
@@ -9,10 +9,11 @@ import { externalizePreviewMedia, publicOrigin, resolveMountedFile, resolvePrevi
9
9
  import {fingerprintInputs} from "./source-fingerprint.mjs";
10
10
 
11
11
  export const TOOL_NAME = "markcut.preview";
12
- export const RESOURCE_URI = "ui://markcut/video-preview-v47.html";
12
+ export const RESOURCE_URI = "ui://markcut/video-preview-v48.html";
13
13
  const PREVIEW_VERSION = RESOURCE_URI.match(/video-preview-(v\d+)/)?.[1] ?? "unknown";
14
14
  // Legacy entrypoints remain registered, but serve the current implementation.
15
15
  export const LEGACY_RESOURCE_URIS = [
16
+ "ui://markcut/video-preview-v47.html",
16
17
  "ui://markcut/video-preview-v46.html",
17
18
  "ui://markcut/video-preview-v45.html",
18
19
  "ui://markcut/video-preview-v44.html",
@@ -34,11 +34,11 @@ describe('Markcut Remotion MCP App',()=>{
34
34
  expect(html).not.toContain('127.0.0.1');
35
35
  expect(html).not.toContain('src="/player.js"');
36
36
  });
37
- it('fits the phone player by BOTH width and height, with scenes above canvas and actions in normal flow',()=>{
37
+ it('fits the phone player by BOTH width and height, with scenes below canvas and actions in normal flow',()=>{
38
38
  const html=buildPreviewHtml();
39
39
  expect(html).toContain('@media (max-width: 640px), (max-height: 520px)');
40
40
  expect(html).toContain('var(--markcut-player-ratio, 0.5625)');
41
- expect(html).toContain('#scene-thumbnails { order: -1;');
41
+ expect(html).toContain('#scene-thumbnails { order: 0;');
42
42
  expect(html).toContain("grid-template-areas: 'changes approve' 'status status'");
43
43
  expect(html).not.toMatch(/#remotion-canvas\s*\{[^}]*position\s*:\s*absolute/);
44
44
  const app=readFileSync(new URL('../src/mcp/remotion-app.tsx',import.meta.url),'utf8');
@@ -52,9 +52,9 @@ describe('Markcut Remotion MCP App',()=>{
52
52
  expect(audio).toContain('ctx.decodeAudioData(bytes)');
53
53
  expect(audio).toContain("p.addEventListener('play',play)");
54
54
  });
55
- it('publishes v47 while retaining v46 as a compatible alias',()=>{
56
- expect(RESOURCE_URI).toBe('ui://markcut/video-preview-v47.html');
57
- expect(LEGACY_RESOURCE_URIS).toContain('ui://markcut/video-preview-v46.html');
55
+ it('publishes v48 while retaining v47 as a compatible alias',()=>{
56
+ expect(RESOURCE_URI).toBe('ui://markcut/video-preview-v48.html');
57
+ expect(LEGACY_RESOURCE_URIS).toContain('ui://markcut/video-preview-v47.html');
58
58
  });
59
59
  it('registers latest resource at startup and aliases previous URIs',()=>{
60
60
  for(const uri of [RESOURCE_URI,...LEGACY_RESOURCE_URIS]){