demoman 0.7.1 → 0.7.3
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/README.md +7 -6
- package/THIRD_PARTY_NOTICES +161 -1
- package/dist/demoman.mjs +3582 -945
- package/dist/page/mux-entry.js +38 -7
- package/dist/page/render-entry.js +100 -19
- package/dist/recipe.md +100 -101
- package/dist/skills/record-demo/SKILL.md +5 -2
- package/dist/studio/assets/{confirm-dialog-Dd_hs1Bv.css → confirm-dialog-DSKBZQdV.css} +1 -1
- package/dist/studio/assets/confirm-dialog-DVfQ_GQr.js +72 -0
- package/dist/studio/assets/editor-lILLTndB.js +4 -0
- package/dist/studio/assets/library-CbMXa-ad.js +1 -0
- package/dist/studio/assets/{library-inline-2187206c.css → library-inline-216fd6fd.css} +54 -0
- package/dist/studio/assets/settings-CetO1oeR.js +1 -0
- package/dist/studio/assets/state-tew-ACWl.js +1 -0
- package/dist/studio/assets/view-v5HQTLVP.js +1 -0
- package/dist/studio/editor.html +5 -5
- package/dist/studio/icon/32.png +0 -0
- package/dist/studio/images/icon.svg +3 -6
- package/dist/studio/images/lockup_dark.svg +10 -13
- package/dist/studio/images/lockup_light.svg +10 -13
- package/dist/studio/images/logomark.svg +2 -8
- package/dist/studio/library.html +5 -5
- package/dist/studio/settings.html +4 -4
- package/dist/studio/studio-build.json +3 -3
- package/package.json +10 -1
- package/dist/studio/assets/confirm-dialog-DkCVzKzd.js +0 -72
- package/dist/studio/assets/controls-BoAnJbcP.js +0 -1
- package/dist/studio/assets/editor-APtBBZEt.js +0 -4
- package/dist/studio/assets/library-C8XIahb7.js +0 -1
- package/dist/studio/assets/settings-Cs1_sqqR.js +0 -1
- package/dist/studio/assets/state-COWbBf84.js +0 -1
- package/dist/studio/icon/128.png +0 -0
- package/dist/studio/icon/16.png +0 -0
- package/dist/studio/icon/48.png +0 -0
- package/dist/studio/icon/recording/128.png +0 -0
- package/dist/studio/icon/recording/16.png +0 -0
- package/dist/studio/icon/recording/32.png +0 -0
- package/dist/studio/icon/recording/48.png +0 -0
package/dist/page/mux-entry.js
CHANGED
|
@@ -15748,7 +15748,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15748
15748
|
});
|
|
15749
15749
|
|
|
15750
15750
|
// ../../packages/scene-schema/dist/document.js
|
|
15751
|
-
var CURRENT_SCHEMA_VERSION =
|
|
15751
|
+
var CURRENT_SCHEMA_VERSION = 13;
|
|
15752
15752
|
var Rect = external_exports.object({
|
|
15753
15753
|
x: external_exports.number(),
|
|
15754
15754
|
y: external_exports.number(),
|
|
@@ -15997,9 +15997,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15997
15997
|
rect: Rect,
|
|
15998
15998
|
note: external_exports.string().optional(),
|
|
15999
15999
|
/** Both or neither. Neither means the WHOLE take — the migration rule for
|
|
16000
|
-
* every mask written before ranges existed.
|
|
16001
|
-
|
|
16002
|
-
|
|
16000
|
+
* every mask written before ranges existed. In the frames' own time
|
|
16001
|
+
* since v13, as a removed piece is: a redaction follows the frames it
|
|
16002
|
+
* covers through every later cut, gap and hold (audit run 1). */
|
|
16003
|
+
start: SourcePointSchema.optional(),
|
|
16004
|
+
end: SourcePointSchema.optional()
|
|
16003
16005
|
});
|
|
16004
16006
|
var Hold = external_exports.object({
|
|
16005
16007
|
id: external_exports.string().min(1),
|
|
@@ -16194,8 +16196,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16194
16196
|
background: NEUTRAL_BACKGROUND,
|
|
16195
16197
|
logo: null,
|
|
16196
16198
|
/**
|
|
16197
|
-
* 8%:
|
|
16198
|
-
* and the smallest padding that draws the default logo at
|
|
16199
|
+
* 8%: the margin of a polished recording, near enough (8.4% measured on
|
|
16200
|
+
* 2026-10-05), and the smallest padding that draws the default logo at
|
|
16201
|
+
* full size.
|
|
16199
16202
|
* `placeLogo` keeps a mark 0.02 × short in from the edge and clear of the
|
|
16200
16203
|
* recording, so a logo of size `s` fits only when the padding is at least
|
|
16201
16204
|
* `s + 0.02`, and `LOGO_DEFAULTS.size` is 0.06.
|
|
@@ -16360,7 +16363,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16360
16363
|
});
|
|
16361
16364
|
}
|
|
16362
16365
|
}
|
|
16363
|
-
if (m.start !== void 0 && m.end !== void 0 && m.start.actionId === m.end.actionId && m.end.
|
|
16366
|
+
if (m.start !== void 0 && m.end !== void 0 && m.start.actionId === m.end.actionId && m.end.sourceOffsetMs <= m.start.sourceOffsetMs) {
|
|
16364
16367
|
ctx.addIssue({
|
|
16365
16368
|
code: "custom",
|
|
16366
16369
|
message: `mask "${m.id}" ends before it starts`,
|
|
@@ -26588,6 +26591,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26588
26591
|
var TILT_TAP_MS = 20;
|
|
26589
26592
|
var TILT_SETTLE_MS = TILT_VELOCITY_MS + (TILT_TAPS - 1) * TILT_TAP_MS;
|
|
26590
26593
|
|
|
26594
|
+
// ../../packages/compositor/dist/render/target.js
|
|
26595
|
+
var LANDSCAPE_1440P = {
|
|
26596
|
+
format: "mp4",
|
|
26597
|
+
width: 2560,
|
|
26598
|
+
height: 1440,
|
|
26599
|
+
fps: 60,
|
|
26600
|
+
bitrate: 18e6,
|
|
26601
|
+
cornerRadius: 24,
|
|
26602
|
+
fit: "contain"
|
|
26603
|
+
};
|
|
26604
|
+
var VERTICAL_1080 = {
|
|
26605
|
+
format: "mp4",
|
|
26606
|
+
width: 1080,
|
|
26607
|
+
height: 1920,
|
|
26608
|
+
fps: 60,
|
|
26609
|
+
bitrate: 12e6,
|
|
26610
|
+
cornerRadius: 24,
|
|
26611
|
+
fit: "cover"
|
|
26612
|
+
};
|
|
26613
|
+
var HIGH_LANDSCAPE = {
|
|
26614
|
+
...LANDSCAPE_1440P,
|
|
26615
|
+
bitrate: 8e6
|
|
26616
|
+
};
|
|
26617
|
+
var HIGH_VERTICAL = {
|
|
26618
|
+
...VERTICAL_1080,
|
|
26619
|
+
bitrate: HIGH_LANDSCAPE.bitrate
|
|
26620
|
+
};
|
|
26621
|
+
|
|
26591
26622
|
// dist/entry-globals.js
|
|
26592
26623
|
var MUX_ENTRY_GLOBAL = "__demomanMux";
|
|
26593
26624
|
|
|
@@ -15979,7 +15979,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15979
15979
|
});
|
|
15980
15980
|
|
|
15981
15981
|
// ../../packages/scene-schema/dist/document.js
|
|
15982
|
-
var CURRENT_SCHEMA_VERSION =
|
|
15982
|
+
var CURRENT_SCHEMA_VERSION = 13;
|
|
15983
15983
|
var Rect = external_exports.object({
|
|
15984
15984
|
x: external_exports.number(),
|
|
15985
15985
|
y: external_exports.number(),
|
|
@@ -16228,9 +16228,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16228
16228
|
rect: Rect,
|
|
16229
16229
|
note: external_exports.string().optional(),
|
|
16230
16230
|
/** Both or neither. Neither means the WHOLE take — the migration rule for
|
|
16231
|
-
* every mask written before ranges existed.
|
|
16232
|
-
|
|
16233
|
-
|
|
16231
|
+
* every mask written before ranges existed. In the frames' own time
|
|
16232
|
+
* since v13, as a removed piece is: a redaction follows the frames it
|
|
16233
|
+
* covers through every later cut, gap and hold (audit run 1). */
|
|
16234
|
+
start: SourcePointSchema.optional(),
|
|
16235
|
+
end: SourcePointSchema.optional()
|
|
16234
16236
|
});
|
|
16235
16237
|
var Hold = external_exports.object({
|
|
16236
16238
|
id: external_exports.string().min(1),
|
|
@@ -16425,8 +16427,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16425
16427
|
background: NEUTRAL_BACKGROUND,
|
|
16426
16428
|
logo: null,
|
|
16427
16429
|
/**
|
|
16428
|
-
* 8%:
|
|
16429
|
-
* and the smallest padding that draws the default logo at
|
|
16430
|
+
* 8%: the margin of a polished recording, near enough (8.4% measured on
|
|
16431
|
+
* 2026-10-05), and the smallest padding that draws the default logo at
|
|
16432
|
+
* full size.
|
|
16430
16433
|
* `placeLogo` keeps a mark 0.02 × short in from the edge and clear of the
|
|
16431
16434
|
* recording, so a logo of size `s` fits only when the padding is at least
|
|
16432
16435
|
* `s + 0.02`, and `LOGO_DEFAULTS.size` is 0.06.
|
|
@@ -16591,7 +16594,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16591
16594
|
});
|
|
16592
16595
|
}
|
|
16593
16596
|
}
|
|
16594
|
-
if (m.start !== void 0 && m.end !== void 0 && m.start.actionId === m.end.actionId && m.end.
|
|
16597
|
+
if (m.start !== void 0 && m.end !== void 0 && m.start.actionId === m.end.actionId && m.end.sourceOffsetMs <= m.start.sourceOffsetMs) {
|
|
16595
16598
|
ctx.addIssue({
|
|
16596
16599
|
code: "custom",
|
|
16597
16600
|
message: `mask "${m.id}" ends before it starts`,
|
|
@@ -17330,6 +17333,46 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17330
17333
|
return null;
|
|
17331
17334
|
return toOutputMs(timeline, sourceMs) + marker.offsetMs;
|
|
17332
17335
|
}
|
|
17336
|
+
function outputSpanOfSource(timeline, srcStartMs, srcEndMs) {
|
|
17337
|
+
let startMs = Number.POSITIVE_INFINITY;
|
|
17338
|
+
let endMs = Number.NEGATIVE_INFINITY;
|
|
17339
|
+
for (const s of timeline.segments) {
|
|
17340
|
+
const lo = Math.max(srcStartMs, s.srcStartMs);
|
|
17341
|
+
const hi = Math.min(srcEndMs, s.srcEndMs);
|
|
17342
|
+
if (lo > hi)
|
|
17343
|
+
continue;
|
|
17344
|
+
const span = s.srcEndMs - s.srcStartMs;
|
|
17345
|
+
const out = (src, still) => span === 0 ? still : s.outStartMs + (s.outEndMs - s.outStartMs) * (src - s.srcStartMs) / span;
|
|
17346
|
+
startMs = Math.min(startMs, out(lo, s.outStartMs));
|
|
17347
|
+
endMs = Math.max(endMs, out(hi, s.outEndMs));
|
|
17348
|
+
}
|
|
17349
|
+
return startMs <= endMs ? { startMs, endMs } : null;
|
|
17350
|
+
}
|
|
17351
|
+
function resolveMaskRange(args) {
|
|
17352
|
+
const { timeline } = args;
|
|
17353
|
+
const unplaced = [];
|
|
17354
|
+
const srcOf = (p, side, ifNone) => {
|
|
17355
|
+
const marker = args.markerSourceMs.get(p.actionId);
|
|
17356
|
+
if (marker === void 0) {
|
|
17357
|
+
unplaced.push(side);
|
|
17358
|
+
return ifNone;
|
|
17359
|
+
}
|
|
17360
|
+
return marker + p.sourceOffsetMs;
|
|
17361
|
+
};
|
|
17362
|
+
const srcStart = srcOf(args.start, "start", 0);
|
|
17363
|
+
const srcEnd = srcOf(args.end, "end", timeline.sourceDurationMs);
|
|
17364
|
+
const span = outputSpanOfSource(timeline, srcStart, srcEnd);
|
|
17365
|
+
if (span !== null && span.endMs > span.startMs) {
|
|
17366
|
+
return { range: span, unplaced, clamped: null };
|
|
17367
|
+
}
|
|
17368
|
+
const at = span?.startMs ?? clamp(toOutputMs(timeline, srcStart), 0, timeline.outputDurationMs);
|
|
17369
|
+
const note = srcEnd < srcStart ? `mask "${args.id}" ends ${Math.round(srcStart - srcEnd)}ms before it starts in the recording, so it covers nothing` : `mask "${args.id}" covers no frame of the video: every frame between its ends was removed`;
|
|
17370
|
+
return {
|
|
17371
|
+
range: { startMs: at, endMs: at },
|
|
17372
|
+
unplaced,
|
|
17373
|
+
clamped: { id: args.id, kind: "mask", note }
|
|
17374
|
+
};
|
|
17375
|
+
}
|
|
17333
17376
|
function resolveRange(args) {
|
|
17334
17377
|
const { timeline } = args;
|
|
17335
17378
|
const duration3 = timeline.outputDurationMs;
|
|
@@ -17925,15 +17968,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17925
17968
|
var COMPOSITOR_VERSION = "1.1.0";
|
|
17926
17969
|
|
|
17927
17970
|
// ../../packages/compositor/dist/plan/cosmetics.js
|
|
17928
|
-
function planCosmetics(scene
|
|
17929
|
-
return scene.edits.masks.
|
|
17930
|
-
|
|
17931
|
-
|
|
17932
|
-
|
|
17933
|
-
|
|
17934
|
-
}
|
|
17935
|
-
|
|
17936
|
-
});
|
|
17971
|
+
function planCosmetics(scene) {
|
|
17972
|
+
return scene.edits.masks.map((m) => ({
|
|
17973
|
+
id: m.id,
|
|
17974
|
+
kind: "mask",
|
|
17975
|
+
rect: m.rect,
|
|
17976
|
+
// Both or neither, by the schema's refinement. Neither is the whole take.
|
|
17977
|
+
range: m.start && m.end ? { start: m.start, end: m.end } : null
|
|
17978
|
+
}));
|
|
17937
17979
|
}
|
|
17938
17980
|
|
|
17939
17981
|
// ../../packages/compositor/dist/plan/plan.js
|
|
@@ -18006,7 +18048,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18006
18048
|
// the author never recorded.
|
|
18007
18049
|
cursorSegments: planCursorSegments(scene, rectOf),
|
|
18008
18050
|
cameraIntents: planCameraIntents(scene, cutSteps, attachedToCuts),
|
|
18009
|
-
cosmetics: planCosmetics(scene
|
|
18051
|
+
cosmetics: planCosmetics(scene),
|
|
18010
18052
|
holds: (scene.edits.holds ?? []).flatMap((hold) => {
|
|
18011
18053
|
if (cutSteps.has(hold.marker.actionId)) {
|
|
18012
18054
|
attachedToCuts.push({
|
|
@@ -19067,9 +19109,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19067
19109
|
let range = null;
|
|
19068
19110
|
let unplaced = [];
|
|
19069
19111
|
if (binding.range) {
|
|
19070
|
-
const resolved =
|
|
19112
|
+
const resolved = resolveMaskRange({
|
|
19071
19113
|
id: binding.id,
|
|
19072
|
-
kind: "mask",
|
|
19073
19114
|
start: binding.range.start,
|
|
19074
19115
|
end: binding.range.end,
|
|
19075
19116
|
timeline,
|
|
@@ -19117,6 +19158,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19117
19158
|
throw new Error("frame bundle has no keyframes; cannot resolve a frame");
|
|
19118
19159
|
return keyframe;
|
|
19119
19160
|
}
|
|
19161
|
+
function keyframesBetween(bundle, fromMs, toMs) {
|
|
19162
|
+
const first = keyframeAt(bundle, fromMs);
|
|
19163
|
+
return bundle.keyframes.filter((k) => k === first || k.sourceTimeMs > fromMs && k.sourceTimeMs <= toMs);
|
|
19164
|
+
}
|
|
19120
19165
|
|
|
19121
19166
|
// ../../packages/compositor/dist/ports/frame-source-images.js
|
|
19122
19167
|
function createImageFrameSource(bundle, load2) {
|
|
@@ -19140,6 +19185,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19140
19185
|
const image = await get(keyframe.ref);
|
|
19141
19186
|
return { ...image, sourceTimeMs: keyframe.sourceTimeMs };
|
|
19142
19187
|
},
|
|
19188
|
+
warm(fromSourceMs, toSourceMs2) {
|
|
19189
|
+
for (const keyframe of keyframesBetween(bundle, fromSourceMs, toSourceMs2)) {
|
|
19190
|
+
get(keyframe.ref).catch(() => void 0);
|
|
19191
|
+
}
|
|
19192
|
+
},
|
|
19143
19193
|
describe: () => ({
|
|
19144
19194
|
keyframes: bundle.keyframes,
|
|
19145
19195
|
motionSpans: bundle.motionSpans
|
|
@@ -46567,6 +46617,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
46567
46617
|
sourceTimeMs: keyframe.sourceTimeMs
|
|
46568
46618
|
};
|
|
46569
46619
|
},
|
|
46620
|
+
warm(fromSourceMs, toSourceMs2) {
|
|
46621
|
+
for (const keyframe of keyframesBetween(bundle, fromSourceMs, toSourceMs2)) {
|
|
46622
|
+
still(keyframe.ref).catch(() => void 0);
|
|
46623
|
+
}
|
|
46624
|
+
},
|
|
46570
46625
|
describe: () => ({
|
|
46571
46626
|
keyframes: bundle.keyframes,
|
|
46572
46627
|
motionSpans: bundle.motionSpans
|
|
@@ -47493,6 +47548,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
47493
47548
|
}
|
|
47494
47549
|
|
|
47495
47550
|
// ../../packages/compositor/dist/render/target.js
|
|
47551
|
+
var LANDSCAPE_1440P = {
|
|
47552
|
+
format: "mp4",
|
|
47553
|
+
width: 2560,
|
|
47554
|
+
height: 1440,
|
|
47555
|
+
fps: 60,
|
|
47556
|
+
bitrate: 18e6,
|
|
47557
|
+
cornerRadius: 24,
|
|
47558
|
+
fit: "contain"
|
|
47559
|
+
};
|
|
47560
|
+
var VERTICAL_1080 = {
|
|
47561
|
+
format: "mp4",
|
|
47562
|
+
width: 1080,
|
|
47563
|
+
height: 1920,
|
|
47564
|
+
fps: 60,
|
|
47565
|
+
bitrate: 12e6,
|
|
47566
|
+
cornerRadius: 24,
|
|
47567
|
+
fit: "cover"
|
|
47568
|
+
};
|
|
47569
|
+
var HIGH_LANDSCAPE = {
|
|
47570
|
+
...LANDSCAPE_1440P,
|
|
47571
|
+
bitrate: 8e6
|
|
47572
|
+
};
|
|
47573
|
+
var HIGH_VERTICAL = {
|
|
47574
|
+
...VERTICAL_1080,
|
|
47575
|
+
bitrate: HIGH_LANDSCAPE.bitrate
|
|
47576
|
+
};
|
|
47496
47577
|
var SHARE_QUALITY_FLOOR = 0.35;
|
|
47497
47578
|
function verticalCameraIntents(intents) {
|
|
47498
47579
|
return intents.map((intent) => {
|