Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

15.4 KB
Raw Blame
const CONFIG={"mode": "w2-code-terminal", "demoTitle": "Cursor SDK", "palette": ["#f5f5f1", "#202122", "#9966cc", "#f1ba8a", "#9ab8ad"], "font": "无衬线界面文字与清晰大小层级", "stages": [{"start": 0.0, "label": "导入SDK"}, {"start": 2.0, "label": "创建代理"}, {"start": 4.0, "label": "事件处理"}, {"start": 6.0, "label": "代码与终端并列"}, {"start": 9.0, "label": "运行命令"}, {"start": 12.0, "label": "工具输出"}, {"start": 16.0, "label": "本地完成"}, {"start": 18.0, "label": "替换配置"}, {"start": 20.0, "label": "切换云仓库"}, {"start": 22.0, "label": "再次执行"}, {"start": 28.0, "label": "云端完成"}, {"start": 31.0, "label": "品牌"}], "objects": ["代码行", "行号", "语法颜色", "活动行", "终端", "输出日志", "完成标记"], "rules": ["代码从少到多写出后缩为左栏,右栏终端执行相同配置", "本地改云端只高亮相关配置行,复用其余代码以说明接口一致", "日志顺序为调用、变更、验证、完成"], "transfer": ["可迁移为SDK教学,保留最小示例→执行→只改配置→再次执行", "代码必须独立验证,原片文字不构成可运行代码承诺"], "unknown": ["OCR有字符误差;未执行源代码;示例用伪代码解释动画。", "HTML 为 authored 机制示例,不是完整原样复刻。"], "measureTexts": ["\"Explore this repo and make one improvement.\"", "1 import { Agent } from \"@cursor/sdk\"", "if (event.type === \"tool_call\") {"], "coverTime": 4.8, "labels": ["导入SDK", "创建代理", "事件处理", "代码与终端并列", "运行命令", "工具输出", "本地完成", "替换配置", "切换云仓库", "再次执行", "云端完成", "品牌"], "brand": "Cursor", "accent": "#9966cc", "sourceReview": {"status": "inferred", "basis": "reviewed prepared/overview.jpg and OCR index", "coverage": "最多24张代表帧;非逐帧语义检查"}, "translations": {"en": {"templateName": "SDK code and terminal", "summary": "A short code example executes locally, then changes configuration and runs remotely.", "styleDescription": "Off-white syntax-highlighted code beside a black terminal.", "reviewFocus": "Highlight only changed configuration while preserving shared code."}}, "creativeSummary": "代码从少到多写出后缩为左栏,右栏终端执行相同配置。本地改云端只高亮相关配置行,复用其余代码以说明接口一致。", "guideChapters": {"overview": "用代码和终端讲清SDK", "composition": "左侧配置与右侧日志", "motion": "写代码、运行与改配置", "rhythm": "先完成本地再切云端", "transfer": "换示例保留最小变更"}, "guidePlan": {"intro": "先写一个最小 SDK 例子,在旁边运行它,再只改配置切换执行环境。通过代码与终端的对应说明接口的一致性。", "sections": [{"title": "代码按依赖顺序出现", "text": ["从导入、创建代理、发送任务到事件处理逐段写出。当前代码段占据阅读中心,行号稳定,新增行向下扩展;不把整页代码从开头一次性缩得很小。", "米白代码区与黑色终端形成清楚分工。代码用等宽字体和有限的语法色,活动配置行使用浅色底或强调色,标题沿用简洁无衬线。"], "palette": true, "demo": "sequence"}, {"title": "运行时让终端承担进展", "text": ["代码完成后缩到左栏,终端在右栏出现,先输入执行命令,再输出读取、修改、检查和完成信息。日志可以加快,但关键完成行要留停顿。"], "clip": [6, 16]}, {"title": "切环境,只高亮改变的几行", "text": ["将本地路径改为云仓库或相应配置时,保留大部分代码不动。活动行短暂突出,然后重新执行并显示第二次结果。", "两次运行保持同一目标,差异集中在执行位置;不要为了表现云端而把代码、任务和成果同时全部换掉。"]}, {"title": "更换示例前先准备可读的最小代码", "text": ["选一项短任务,使配置与输出都能在屏幕里读完。将代码、终端命令和日志一起替换,保留最小配置、一次运行、小幅修改、再次运行的结构。"]}]}, "templateId": "V074", "name": "Cursor SDK — We’re introducing the Cursor SDK so you…", "duration": 35.033451, "initialTime": 4.8, "sourceCanvas": {"width": 1920, "height": 1080}, "actionRange": [2.0, 9.0]};
const DATA={"tracks": [{"id": "text-0.center", "target": "text-0", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[6.00002, 30.500103]], "samples": [[6.00002, [478.604643767442, 348.9999996007874]], [6.500022, [408.8372173604648, 442.4883718566944]], [16.000054, [408.83720117441885, 442.4883722055316]], [16.500055, [753.462326978527, 633.7883412946592]], [17.000057, [870.6976666744185, 691.9999996068059]], [19.000064, [870.6976641395349, 691.9999994905268]], [19.500066, [867.9069641860466, 833.2558139806598]], [20.000067, [867.9069641860466, 833.2558139806598]], [20.500069, [739.5348951069766, 757.6744182418604]], [21.000071, [410.23255172093036, 513.4883721488371]], [30.000101, [410.23255172093036, 513.4883721488371]], [30.500103, [404.651154767442, 513.4883720930233]]], "maxCompressionErrorVsObservations": 1.395355617503924, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.height", "target": "text-0", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[6.00002, 30.500103]], "samples": [[6.00002, 33.99999999999994], [6.500022, 31.023255348205566], [16.000054, 31.023255348205566], [16.500055, 50.99144172668457], [17.000057, 56.000000000000114], [19.000064, 56.0], [20.000067, 53.48837089538574], [20.500069, 47.441860198974496], [21.000071, 27.906976699829045], [30.500103, 27.906976699829045]], "maxCompressionErrorVsObservations": 1.255813296496342, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.text", "target": "text-0", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[6.00002, 30.500103]], "samples": [[6.00002, "\"Explore this repo and make one improvement.\""], [30.500103, "\"Explore this repo and make one improvement.\""]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-0.width", "target": "text-0", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[6.00002, 30.500103]], "samples": [[6.00002, 739.5348510742188], [6.500022, 644.651123046875], [11.500039, 644.651123046875], [12.00004, 647.4418334960938], [15.500052, 647.4418334960938], [16.000054, 650.2325439453125], [16.500055, 1110.8511962890625], [17.000057, 1250.2325439453125], [19.000064, 1250.2325439453125], [19.500066, 1255.8139648437498], [20.000067, 1255.8139648437498], [20.500069, 1138.6046142578125], [21.000071, 641.8604736328125], [30.500103, 641.8604736328125]], "maxCompressionErrorVsObservations": 2.2737367544323206e-13, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.center", "target": "text-1", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[0, 0], [2.000007, 3.500012], [6.500022, 16.000054], [21.000071, 30.500103]], "samples": [[0, [935.0006382621691, 539.1429617265701]], [2.000007, [934.8837275264267, 285.9999987577625]], [3.00001, [936.338261795537, 285.98607992628047]], [3.500012, [936.4185457362971, 278.5372520101163]], [6.500022, [297.2093086395348, 44.84883719314222]], [16.000054, [298.63556113408754, 46.37777417617441]], [21.000071, [297.2353636269688, 46.04626689947919]], [30.000101, [297.24034723337604, 46.39158722151713]], [30.500103, [291.6555325796778, 46.04623743053905]]], "maxCompressionErrorVsObservations": 1.9580163273910784, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.height", "target": "text-1", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[0, 0], [2.000007, 3.500012], [6.500022, 16.000054], [21.000071, 30.500103]], "samples": [[0, 92.53410339355474], [2.000007, 76.00000000000009], [2.500008, 92.43141174316398], [3.00001, 91.7490539550781], [3.500012, 96.11829376220712], [6.500022, 28.302326202392496], [7.000024, 33.65331840515137], [16.000054, 33.6804008483887], [21.000071, 34.1396179199219], [26.500089, 33.3050918579102], [27.000091, 36.49927139282224], [30.500103, 34.344018936157255]], "maxCompressionErrorVsObservations": 1.614380683105999, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.text", "target": "text-1", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[0, 0], [2.000007, 3.500012], [6.500022, 16.000054], [21.000071, 30.500103]], "samples": [[0, "1 import { Agent } from \"@cursor/sdk\""], [2.000007, "1 import { Agent } from \"@cursor/sdk\""], [3.500012, "1 import { Agent } from \"@cursor/sdk\""], [6.500022, "1 import { Agent } from \"@cursor/sdk\""], [16.000054, "1 import { Agent } from \"@cursor/sdk\""], [21.000071, "1 import { Agent } from \"@cursor/sdk\""], [30.500103, "1 import { Agent } from \"@cursor/sdk\""]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-1.width", "target": "text-1", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[0, 0], [2.000007, 3.500012], [6.500022, 16.000054], [21.000071, 30.500103]], "samples": [[0, 1452.5360107421875], [2.000007, 1451.1627197265623], [3.00001, 1455.1108398437502], [3.500012, 1460.8057861328125], [6.500022, 527.4418334960938], [15.500052, 527.9202880859375], [16.000054, 530.6554565429688], [21.000071, 527.9035034179688], [26.500089, 527.895751953125], [27.000091, 530.7662353515625], [30.500103, 527.9271240234375]], "maxCompressionErrorVsObservations": 1.2235986305580582, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.center", "target": "text-2", "property": "center", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[6.00002, 11.500039], [13.500045, 19.000064], [20.500069, 29.500099], [30.500103, 30.500103]], "samples": [[6.00002, [380.9302394302324, 513.4883718837209]], [6.500022, [326.5116309069766, 587.4999996961883]], [11.500039, [326.5116303069767, 587.4999996194442]], [13.500045, [326.5116303069767, 587.4999996194442]], [16.000054, [326.5116309069766, 587.4999996961883]], [16.500055, [615.3651440716839, 878.1398230113573]], [17.000057, [707.4418627953487, 975.5000006035218]], [19.000064, [707.4418610613106, 975.5000000441139]], [20.500069, [609.8353976607636, 1002.2074156305869]], [21.000071, [326.5116240000001, 658.8255814018128]], [29.500099, [325.11628299999995, 659.9999998372092]], [30.500103, [319.5348866686046, 659.9999998430233]]], "maxCompressionErrorVsObservations": 1.395348602853801, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.height", "target": "text-2", "property": "height", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[6.00002, 11.500039], [13.500045, 19.000064], [20.500069, 29.500099], [30.500103, 30.500103]], "samples": [[6.00002, 33.48837280273432], [6.500022, 31.0], [11.500039, 31.0], [13.500045, 31.0], [16.000054, 31.0], [16.500055, 70.88201141357422], [17.000057, 59.0], [17.500059, 61.44186019897461], [19.000064, 59.000000000000114], [20.500069, 68.59308624267578], [21.000071, 28.348836898803597], [22.000074, 33.488372802734375], [22.500076, 30.697673797607308], [24.000081, 33.488372802734375], [29.500099, 30.697673797607422], [30.500103, 30.697673797607422]], "maxCompressionErrorVsObservations": 1.8604653832647742, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.text", "target": "text-2", "property": "text", "unit": "text", "space": "canvas", "status": "measured", "source": "video", "method": "text", "interpolation": "step", "valid": [[6.00002, 11.500039], [13.500045, 19.000064], [20.500069, 29.500099], [30.500103, 30.500103]], "samples": [[6.00002, "if (event.type === \"tool_call\") {"], [11.500039, "if (event.type === \"tool_call\") {"], [13.500045, "if (event.type === \"tool_call\") {"], [19.000064, "if (event.type === \"tool_call\") {"], [20.500069, "if (event.type === \"tool_call\") {"], [29.500099, "if (event.type === \"tool_call\") {"], [30.500103, "if (event.type === \"tool_call\") {"]], "maxCompressionErrorVsObservations": 0, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}, {"id": "text-2.width", "target": "text-2", "property": "width", "unit": "px", "space": "canvas", "status": "fitted", "source": "video", "method": "text", "interpolation": "linear", "valid": [[6.00002, 11.500039], [13.500045, 19.000064], [20.500069, 29.500099], [30.500103, 30.500103]], "samples": [[6.00002, 549.7674560546875], [6.500022, 468.8371887207031], [11.500039, 468.8371887207032], [13.500045, 468.8371887207032], [16.000054, 468.8371887207031], [16.500055, 807.8460693359375], [17.000057, 912.55810546875], [17.500059, 915.3488159179688], [19.000064, 912.55810546875], [20.500069, 818.8205566406249], [21.000071, 468.8371887207031], [21.500072, 471.62789916992176], [29.500099, 471.6278991699219], [30.500103, 471.6278991699219]], "maxCompressionErrorVsObservations": 1.860473012656712, "outsideValid": "unknown; use declared state intervals only as inferred visibility", "interpretation": "OCR matched text and union geometry at observed timestamps; not a recovered layer or visibility curve."}]};