@lalalic/markcut 3.2.60 → 3.2.62
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 +48 -5
- package/bin/markcut +15 -0
- package/docs/developer-reference.md +41 -1
- package/package.json +8 -2
- package/recipes/markcut/map-cinematic-follow.json +17 -0
- package/recipes/markcut/map-location-reveal.json +17 -0
- package/recipes/markcut/map-route-journey.json +18 -0
- package/recipes/markcut/map-streetview-explore.json +17 -0
- package/skills/markcut/SKILL.md +8 -3
- package/skills/markcut/docs/markdown-descriptive.md +68 -1
- package/skills/markcut/docs/recipes.md +45 -0
- package/skills/markcut/references/mobile-event-preview-cli.md +9 -5
- package/src/descriptive/compiler.ts +38 -2
- package/src/descriptive/markdown.ts +30 -0
- package/src/descriptive/model3d.test.ts +38 -0
- package/src/editor-decision/cli.mjs +21 -0
- package/src/editor-decision/editor-decision.schema.json +41 -0
- package/src/editor-decision/index.mjs +115 -0
- package/src/editor-decision/index.test.mjs +63 -0
- package/src/mcp/bridge.mjs +92 -12
- package/src/mcp/compile-worker.mjs +2 -2
- package/src/mcp/design-cli.mjs +126 -0
- package/src/mcp/mobile-review-cli.mjs +40 -33
- package/src/mcp/preview-mobile.css +21 -8
- package/src/mcp/preview.mjs +97 -57
- package/src/mcp/remote-assets.mjs +85 -7
- package/src/mcp/remotion-app.bundle.js +5013 -1117
- package/src/mcp/remotion-app.tsx +132 -10
- package/src/mcp/server.mjs +4 -2
- package/src/player/browser.tsx +1 -3
- package/src/player/bundle/player.js +73054 -17357
- package/src/player/components/HeaderBar.tsx +3 -1
- package/src/player/components/VariantBar.tsx +20 -21
- package/src/player/pipeline.mjs +133 -77
- package/src/player/server.mjs +43 -23
- package/src/recipes/catalog.mjs +115 -0
- package/src/recipes/cli.mjs +87 -0
- package/src/render/cli.mjs +40 -1
- package/src/schema/index.ts +21 -0
- package/src/types/Folder.tsx +2 -0
- package/src/types/Model3D.tsx +91 -0
- package/src/vision/cli.mjs +63 -50
- package/tests/mcp-design-mode.test.ts +100 -0
- package/tests/mcp-editor-decisions-mobile.test.ts +35 -0
- package/tests/mcp-preview-bridge.test.ts +44 -3
- package/tests/mcp-preview-proxy-version.test.mjs +80 -0
- package/tests/mcp-preview.test.ts +43 -8
- package/tests/mcp-remote-assets.test.ts +17 -0
- package/tests/mcp-static-preview.test.ts +1 -1
- package/tests/mcp-video-selector.test.ts +55 -0
- package/tests/mobile-preview-cli.test.ts +10 -15
- package/tests/recipes-catalog.test.ts +141 -0
- package/tests/vision-generic-vtt-hooks.test.ts +7 -7
- package/tests/vision-normalized-metadata.test.ts +23 -0
package/src/player/pipeline.mjs
CHANGED
|
@@ -304,6 +304,25 @@ function compileLeaf(node2, ctx, parentKind) {
|
|
|
304
304
|
};
|
|
305
305
|
return { stream, duration: end ?? 0 };
|
|
306
306
|
}
|
|
307
|
+
case "model3d": {
|
|
308
|
+
const stream = {
|
|
309
|
+
...base,
|
|
310
|
+
type: "model3d",
|
|
311
|
+
src: node2.src,
|
|
312
|
+
motion: node2.motion ?? "none",
|
|
313
|
+
turns: node2.turns ?? 1,
|
|
314
|
+
rotation: node2.rotation ?? [0, 0, 0],
|
|
315
|
+
position: node2.position ?? [0, 0, 0],
|
|
316
|
+
scale: node2.scale ?? 1,
|
|
317
|
+
autoFit: node2.autoFit ?? true,
|
|
318
|
+
camera: node2.camera ? {
|
|
319
|
+
position: node2.camera.position ?? [0, 0, 4.5],
|
|
320
|
+
fov: node2.camera.fov ?? 40
|
|
321
|
+
} : void 0,
|
|
322
|
+
background: node2.background
|
|
323
|
+
};
|
|
324
|
+
return { stream, duration: end ?? 0 };
|
|
325
|
+
}
|
|
307
326
|
case "component": {
|
|
308
327
|
const KNOWN_COMPONENT_KEYS = /* @__PURE__ */ new Set([
|
|
309
328
|
"type",
|
|
@@ -880,6 +899,7 @@ var init_compiler = __esm({
|
|
|
880
899
|
rhythm: 4,
|
|
881
900
|
include: 3,
|
|
882
901
|
map: 4,
|
|
902
|
+
model3d: 4,
|
|
883
903
|
effect: 2
|
|
884
904
|
};
|
|
885
905
|
VALID_TRANSITIONS = /* @__PURE__ */ new Set(["fade", "slide", "wipe", "flip", "clockWipe"]);
|
|
@@ -887,14 +907,15 @@ var init_compiler = __esm({
|
|
|
887
907
|
audio: "script",
|
|
888
908
|
component: "jsx",
|
|
889
909
|
image: "src",
|
|
910
|
+
model3d: "src",
|
|
890
911
|
video: "src"
|
|
891
912
|
};
|
|
892
913
|
}
|
|
893
914
|
});
|
|
894
915
|
|
|
895
|
-
//
|
|
916
|
+
// node_modules/extend/index.js
|
|
896
917
|
var require_extend = __commonJS({
|
|
897
|
-
"
|
|
918
|
+
"node_modules/extend/index.js"(exports, module) {
|
|
898
919
|
"use strict";
|
|
899
920
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
900
921
|
var toStr = Object.prototype.toString;
|
|
@@ -983,9 +1004,9 @@ var require_extend = __commonJS({
|
|
|
983
1004
|
}
|
|
984
1005
|
});
|
|
985
1006
|
|
|
986
|
-
//
|
|
1007
|
+
// node_modules/format/format.js
|
|
987
1008
|
var require_format = __commonJS({
|
|
988
|
-
"
|
|
1009
|
+
"node_modules/format/format.js"(exports, module) {
|
|
989
1010
|
(function() {
|
|
990
1011
|
var namespace;
|
|
991
1012
|
if (typeof module !== "undefined") {
|
|
@@ -1376,21 +1397,21 @@ function generateTTV(prompt, outputPath, cli, ttiCmd, seed) {
|
|
|
1376
1397
|
init_utils();
|
|
1377
1398
|
init_compiler();
|
|
1378
1399
|
|
|
1379
|
-
//
|
|
1400
|
+
// node_modules/bail/index.js
|
|
1380
1401
|
function bail(error) {
|
|
1381
1402
|
if (error) {
|
|
1382
1403
|
throw error;
|
|
1383
1404
|
}
|
|
1384
1405
|
}
|
|
1385
1406
|
|
|
1386
|
-
//
|
|
1407
|
+
// node_modules/unified/lib/index.js
|
|
1387
1408
|
var import_extend = __toESM(require_extend(), 1);
|
|
1388
1409
|
|
|
1389
|
-
//
|
|
1410
|
+
// node_modules/devlop/lib/default.js
|
|
1390
1411
|
function ok() {
|
|
1391
1412
|
}
|
|
1392
1413
|
|
|
1393
|
-
//
|
|
1414
|
+
// node_modules/is-plain-obj/index.js
|
|
1394
1415
|
function isPlainObject(value2) {
|
|
1395
1416
|
if (typeof value2 !== "object" || value2 === null) {
|
|
1396
1417
|
return false;
|
|
@@ -1399,7 +1420,7 @@ function isPlainObject(value2) {
|
|
|
1399
1420
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value2) && !(Symbol.iterator in value2);
|
|
1400
1421
|
}
|
|
1401
1422
|
|
|
1402
|
-
//
|
|
1423
|
+
// node_modules/trough/lib/index.js
|
|
1403
1424
|
function trough() {
|
|
1404
1425
|
const fns = [];
|
|
1405
1426
|
const pipeline = { run, use };
|
|
@@ -1483,7 +1504,7 @@ function wrap(middleware, callback) {
|
|
|
1483
1504
|
}
|
|
1484
1505
|
}
|
|
1485
1506
|
|
|
1486
|
-
//
|
|
1507
|
+
// node_modules/unist-util-stringify-position/lib/index.js
|
|
1487
1508
|
function stringifyPosition(value2) {
|
|
1488
1509
|
if (!value2 || typeof value2 !== "object") {
|
|
1489
1510
|
return "";
|
|
@@ -1509,7 +1530,7 @@ function index(value2) {
|
|
|
1509
1530
|
return value2 && typeof value2 === "number" ? value2 : 1;
|
|
1510
1531
|
}
|
|
1511
1532
|
|
|
1512
|
-
//
|
|
1533
|
+
// node_modules/vfile-message/lib/index.js
|
|
1513
1534
|
var VFileMessage = class extends Error {
|
|
1514
1535
|
/**
|
|
1515
1536
|
* Create a message for `reason`.
|
|
@@ -1645,16 +1666,16 @@ VFileMessage.prototype.place = void 0;
|
|
|
1645
1666
|
VFileMessage.prototype.ruleId = void 0;
|
|
1646
1667
|
VFileMessage.prototype.source = void 0;
|
|
1647
1668
|
|
|
1648
|
-
//
|
|
1669
|
+
// node_modules/vfile/lib/minpath.js
|
|
1649
1670
|
import { default as default2 } from "node:path";
|
|
1650
1671
|
|
|
1651
|
-
//
|
|
1672
|
+
// node_modules/vfile/lib/minproc.js
|
|
1652
1673
|
import { default as default3 } from "node:process";
|
|
1653
1674
|
|
|
1654
|
-
//
|
|
1675
|
+
// node_modules/vfile/lib/minurl.js
|
|
1655
1676
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
1656
1677
|
|
|
1657
|
-
//
|
|
1678
|
+
// node_modules/vfile/lib/minurl.shared.js
|
|
1658
1679
|
function isUrl(fileUrlOrPath) {
|
|
1659
1680
|
return Boolean(
|
|
1660
1681
|
fileUrlOrPath !== null && typeof fileUrlOrPath === "object" && "href" in fileUrlOrPath && fileUrlOrPath.href && "protocol" in fileUrlOrPath && fileUrlOrPath.protocol && // @ts-expect-error: indexing is fine.
|
|
@@ -1662,7 +1683,7 @@ function isUrl(fileUrlOrPath) {
|
|
|
1662
1683
|
);
|
|
1663
1684
|
}
|
|
1664
1685
|
|
|
1665
|
-
//
|
|
1686
|
+
// node_modules/vfile/lib/index.js
|
|
1666
1687
|
var order = (
|
|
1667
1688
|
/** @type {const} */
|
|
1668
1689
|
[
|
|
@@ -2118,7 +2139,7 @@ function isUint8Array(value2) {
|
|
|
2118
2139
|
);
|
|
2119
2140
|
}
|
|
2120
2141
|
|
|
2121
|
-
//
|
|
2142
|
+
// node_modules/unified/lib/callable-instance.js
|
|
2122
2143
|
var CallableInstance = (
|
|
2123
2144
|
/**
|
|
2124
2145
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
@@ -2147,7 +2168,7 @@ var CallableInstance = (
|
|
|
2147
2168
|
})
|
|
2148
2169
|
);
|
|
2149
2170
|
|
|
2150
|
-
//
|
|
2171
|
+
// node_modules/unified/lib/index.js
|
|
2151
2172
|
var own = {}.hasOwnProperty;
|
|
2152
2173
|
var Processor = class _Processor extends CallableInstance {
|
|
2153
2174
|
/**
|
|
@@ -2783,7 +2804,7 @@ function isUint8Array2(value2) {
|
|
|
2783
2804
|
);
|
|
2784
2805
|
}
|
|
2785
2806
|
|
|
2786
|
-
//
|
|
2807
|
+
// node_modules/mdast-util-to-string/lib/index.js
|
|
2787
2808
|
var emptyOptions = {};
|
|
2788
2809
|
function toString(value2, options) {
|
|
2789
2810
|
const settings = options || emptyOptions;
|
|
@@ -2820,7 +2841,7 @@ function node(value2) {
|
|
|
2820
2841
|
return Boolean(value2 && typeof value2 === "object");
|
|
2821
2842
|
}
|
|
2822
2843
|
|
|
2823
|
-
//
|
|
2844
|
+
// node_modules/character-entities/index.js
|
|
2824
2845
|
var characterEntities = {
|
|
2825
2846
|
AElig: "\xC6",
|
|
2826
2847
|
AMP: "&",
|
|
@@ -4949,13 +4970,13 @@ var characterEntities = {
|
|
|
4949
4970
|
zwnj: "\u200C"
|
|
4950
4971
|
};
|
|
4951
4972
|
|
|
4952
|
-
//
|
|
4973
|
+
// node_modules/decode-named-character-reference/index.js
|
|
4953
4974
|
var own2 = {}.hasOwnProperty;
|
|
4954
4975
|
function decodeNamedCharacterReference(value2) {
|
|
4955
4976
|
return own2.call(characterEntities, value2) ? characterEntities[value2] : false;
|
|
4956
4977
|
}
|
|
4957
4978
|
|
|
4958
|
-
//
|
|
4979
|
+
// node_modules/micromark-util-chunked/index.js
|
|
4959
4980
|
function splice(list2, start, remove, items) {
|
|
4960
4981
|
const end = list2.length;
|
|
4961
4982
|
let chunkStart = 0;
|
|
@@ -4989,7 +5010,7 @@ function push(list2, items) {
|
|
|
4989
5010
|
return items;
|
|
4990
5011
|
}
|
|
4991
5012
|
|
|
4992
|
-
//
|
|
5013
|
+
// node_modules/micromark-util-combine-extensions/index.js
|
|
4993
5014
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
4994
5015
|
function combineExtensions(extensions) {
|
|
4995
5016
|
const all2 = {};
|
|
@@ -5029,7 +5050,7 @@ function constructs(existing, list2) {
|
|
|
5029
5050
|
splice(existing, 0, 0, before);
|
|
5030
5051
|
}
|
|
5031
5052
|
|
|
5032
|
-
//
|
|
5053
|
+
// node_modules/micromark-util-decode-numeric-character-reference/index.js
|
|
5033
5054
|
function decodeNumericCharacterReference(value2, base) {
|
|
5034
5055
|
const code = Number.parseInt(value2, base);
|
|
5035
5056
|
if (
|
|
@@ -5047,12 +5068,12 @@ function decodeNumericCharacterReference(value2, base) {
|
|
|
5047
5068
|
return String.fromCodePoint(code);
|
|
5048
5069
|
}
|
|
5049
5070
|
|
|
5050
|
-
//
|
|
5071
|
+
// node_modules/micromark-util-normalize-identifier/index.js
|
|
5051
5072
|
function normalizeIdentifier(value2) {
|
|
5052
5073
|
return value2.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
5053
5074
|
}
|
|
5054
5075
|
|
|
5055
|
-
//
|
|
5076
|
+
// node_modules/micromark-util-character/index.js
|
|
5056
5077
|
var asciiAlpha = regexCheck(/[A-Za-z]/);
|
|
5057
5078
|
var asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
|
|
5058
5079
|
var asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -5084,7 +5105,7 @@ function regexCheck(regex) {
|
|
|
5084
5105
|
}
|
|
5085
5106
|
}
|
|
5086
5107
|
|
|
5087
|
-
//
|
|
5108
|
+
// node_modules/micromark-factory-space/index.js
|
|
5088
5109
|
function factorySpace(effects, ok2, type, max) {
|
|
5089
5110
|
const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
|
|
5090
5111
|
let size = 0;
|
|
@@ -5106,7 +5127,7 @@ function factorySpace(effects, ok2, type, max) {
|
|
|
5106
5127
|
}
|
|
5107
5128
|
}
|
|
5108
5129
|
|
|
5109
|
-
//
|
|
5130
|
+
// node_modules/micromark/lib/initialize/content.js
|
|
5110
5131
|
var content = {
|
|
5111
5132
|
tokenize: initializeContent
|
|
5112
5133
|
};
|
|
@@ -5156,7 +5177,7 @@ function initializeContent(effects) {
|
|
|
5156
5177
|
}
|
|
5157
5178
|
}
|
|
5158
5179
|
|
|
5159
|
-
//
|
|
5180
|
+
// node_modules/micromark/lib/initialize/document.js
|
|
5160
5181
|
var document = {
|
|
5161
5182
|
tokenize: initializeDocument
|
|
5162
5183
|
};
|
|
@@ -5338,7 +5359,7 @@ function tokenizeContainer(effects, ok2, nok) {
|
|
|
5338
5359
|
return factorySpace(effects, effects.attempt(this.parser.constructs.document, ok2, nok), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
5339
5360
|
}
|
|
5340
5361
|
|
|
5341
|
-
//
|
|
5362
|
+
// node_modules/micromark-util-classify-character/index.js
|
|
5342
5363
|
function classifyCharacter(code) {
|
|
5343
5364
|
if (code === null || markdownLineEndingOrSpace(code) || unicodeWhitespace(code)) {
|
|
5344
5365
|
return 1;
|
|
@@ -5348,7 +5369,7 @@ function classifyCharacter(code) {
|
|
|
5348
5369
|
}
|
|
5349
5370
|
}
|
|
5350
5371
|
|
|
5351
|
-
//
|
|
5372
|
+
// node_modules/micromark-util-resolve-all/index.js
|
|
5352
5373
|
function resolveAll(constructs2, events, context) {
|
|
5353
5374
|
const called = [];
|
|
5354
5375
|
let index2 = -1;
|
|
@@ -5362,7 +5383,7 @@ function resolveAll(constructs2, events, context) {
|
|
|
5362
5383
|
return events;
|
|
5363
5384
|
}
|
|
5364
5385
|
|
|
5365
|
-
//
|
|
5386
|
+
// node_modules/micromark-core-commonmark/lib/attention.js
|
|
5366
5387
|
var attention = {
|
|
5367
5388
|
name: "attention",
|
|
5368
5389
|
resolveAll: resolveAllAttention,
|
|
@@ -5493,7 +5514,7 @@ function movePoint(point3, offset) {
|
|
|
5493
5514
|
point3._bufferIndex += offset;
|
|
5494
5515
|
}
|
|
5495
5516
|
|
|
5496
|
-
//
|
|
5517
|
+
// node_modules/micromark-core-commonmark/lib/autolink.js
|
|
5497
5518
|
var autolink = {
|
|
5498
5519
|
name: "autolink",
|
|
5499
5520
|
tokenize: tokenizeAutolink
|
|
@@ -5594,7 +5615,7 @@ function tokenizeAutolink(effects, ok2, nok) {
|
|
|
5594
5615
|
}
|
|
5595
5616
|
}
|
|
5596
5617
|
|
|
5597
|
-
//
|
|
5618
|
+
// node_modules/micromark-core-commonmark/lib/blank-line.js
|
|
5598
5619
|
var blankLine = {
|
|
5599
5620
|
partial: true,
|
|
5600
5621
|
tokenize: tokenizeBlankLine
|
|
@@ -5609,7 +5630,7 @@ function tokenizeBlankLine(effects, ok2, nok) {
|
|
|
5609
5630
|
}
|
|
5610
5631
|
}
|
|
5611
5632
|
|
|
5612
|
-
//
|
|
5633
|
+
// node_modules/micromark-core-commonmark/lib/block-quote.js
|
|
5613
5634
|
var blockQuote = {
|
|
5614
5635
|
continuation: {
|
|
5615
5636
|
tokenize: tokenizeBlockQuoteContinuation
|
|
@@ -5667,7 +5688,7 @@ function exit(effects) {
|
|
|
5667
5688
|
effects.exit("blockQuote");
|
|
5668
5689
|
}
|
|
5669
5690
|
|
|
5670
|
-
//
|
|
5691
|
+
// node_modules/micromark-core-commonmark/lib/character-escape.js
|
|
5671
5692
|
var characterEscape = {
|
|
5672
5693
|
name: "characterEscape",
|
|
5673
5694
|
tokenize: tokenizeCharacterEscape
|
|
@@ -5693,7 +5714,7 @@ function tokenizeCharacterEscape(effects, ok2, nok) {
|
|
|
5693
5714
|
}
|
|
5694
5715
|
}
|
|
5695
5716
|
|
|
5696
|
-
//
|
|
5717
|
+
// node_modules/micromark-core-commonmark/lib/character-reference.js
|
|
5697
5718
|
var characterReference = {
|
|
5698
5719
|
name: "characterReference",
|
|
5699
5720
|
tokenize: tokenizeCharacterReference
|
|
@@ -5758,7 +5779,7 @@ function tokenizeCharacterReference(effects, ok2, nok) {
|
|
|
5758
5779
|
}
|
|
5759
5780
|
}
|
|
5760
5781
|
|
|
5761
|
-
//
|
|
5782
|
+
// node_modules/micromark-core-commonmark/lib/code-fenced.js
|
|
5762
5783
|
var nonLazyContinuation = {
|
|
5763
5784
|
partial: true,
|
|
5764
5785
|
tokenize: tokenizeNonLazyContinuation
|
|
@@ -5941,7 +5962,7 @@ function tokenizeNonLazyContinuation(effects, ok2, nok) {
|
|
|
5941
5962
|
}
|
|
5942
5963
|
}
|
|
5943
5964
|
|
|
5944
|
-
//
|
|
5965
|
+
// node_modules/micromark-core-commonmark/lib/code-indented.js
|
|
5945
5966
|
var codeIndented = {
|
|
5946
5967
|
name: "codeIndented",
|
|
5947
5968
|
tokenize: tokenizeCodeIndented
|
|
@@ -6005,7 +6026,7 @@ function tokenizeFurtherStart(effects, ok2, nok) {
|
|
|
6005
6026
|
}
|
|
6006
6027
|
}
|
|
6007
6028
|
|
|
6008
|
-
//
|
|
6029
|
+
// node_modules/micromark-core-commonmark/lib/code-text.js
|
|
6009
6030
|
var codeText = {
|
|
6010
6031
|
name: "codeText",
|
|
6011
6032
|
previous,
|
|
@@ -6120,7 +6141,7 @@ function tokenizeCodeText(effects, ok2, nok) {
|
|
|
6120
6141
|
}
|
|
6121
6142
|
}
|
|
6122
6143
|
|
|
6123
|
-
//
|
|
6144
|
+
// node_modules/micromark-util-subtokenize/lib/splice-buffer.js
|
|
6124
6145
|
var SpliceBuffer = class {
|
|
6125
6146
|
/**
|
|
6126
6147
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
@@ -6313,7 +6334,7 @@ function chunkedPush(list2, right) {
|
|
|
6313
6334
|
}
|
|
6314
6335
|
}
|
|
6315
6336
|
|
|
6316
|
-
//
|
|
6337
|
+
// node_modules/micromark-util-subtokenize/index.js
|
|
6317
6338
|
function subtokenize(eventsArray) {
|
|
6318
6339
|
const jumps = {};
|
|
6319
6340
|
let index2 = -1;
|
|
@@ -6466,7 +6487,7 @@ function subcontent(events, eventIndex) {
|
|
|
6466
6487
|
return gaps;
|
|
6467
6488
|
}
|
|
6468
6489
|
|
|
6469
|
-
//
|
|
6490
|
+
// node_modules/micromark-core-commonmark/lib/content.js
|
|
6470
6491
|
var content2 = {
|
|
6471
6492
|
resolve: resolveContent,
|
|
6472
6493
|
tokenize: tokenizeContent
|
|
@@ -6537,7 +6558,7 @@ function tokenizeContinuation(effects, ok2, nok) {
|
|
|
6537
6558
|
}
|
|
6538
6559
|
}
|
|
6539
6560
|
|
|
6540
|
-
//
|
|
6561
|
+
// node_modules/micromark-factory-destination/index.js
|
|
6541
6562
|
function factoryDestination(effects, ok2, nok, type, literalType, literalMarkerType, rawType, stringType, max) {
|
|
6542
6563
|
const limit = max || Number.POSITIVE_INFINITY;
|
|
6543
6564
|
let balance = 0;
|
|
@@ -6629,7 +6650,7 @@ function factoryDestination(effects, ok2, nok, type, literalType, literalMarkerT
|
|
|
6629
6650
|
}
|
|
6630
6651
|
}
|
|
6631
6652
|
|
|
6632
|
-
//
|
|
6653
|
+
// node_modules/micromark-factory-label/index.js
|
|
6633
6654
|
function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
|
|
6634
6655
|
const self = this;
|
|
6635
6656
|
let size = 0;
|
|
@@ -6690,7 +6711,7 @@ function factoryLabel(effects, ok2, nok, type, markerType, stringType) {
|
|
|
6690
6711
|
}
|
|
6691
6712
|
}
|
|
6692
6713
|
|
|
6693
|
-
//
|
|
6714
|
+
// node_modules/micromark-factory-title/index.js
|
|
6694
6715
|
function factoryTitle(effects, ok2, nok, type, markerType, stringType) {
|
|
6695
6716
|
let marker;
|
|
6696
6717
|
return start;
|
|
@@ -6752,7 +6773,7 @@ function factoryTitle(effects, ok2, nok, type, markerType, stringType) {
|
|
|
6752
6773
|
}
|
|
6753
6774
|
}
|
|
6754
6775
|
|
|
6755
|
-
//
|
|
6776
|
+
// node_modules/micromark-factory-whitespace/index.js
|
|
6756
6777
|
function factoryWhitespace(effects, ok2) {
|
|
6757
6778
|
let seen;
|
|
6758
6779
|
return start;
|
|
@@ -6771,7 +6792,7 @@ function factoryWhitespace(effects, ok2) {
|
|
|
6771
6792
|
}
|
|
6772
6793
|
}
|
|
6773
6794
|
|
|
6774
|
-
//
|
|
6795
|
+
// node_modules/micromark-core-commonmark/lib/definition.js
|
|
6775
6796
|
var definition = {
|
|
6776
6797
|
name: "definition",
|
|
6777
6798
|
tokenize: tokenizeDefinition
|
|
@@ -6857,7 +6878,7 @@ function tokenizeTitleBefore(effects, ok2, nok) {
|
|
|
6857
6878
|
}
|
|
6858
6879
|
}
|
|
6859
6880
|
|
|
6860
|
-
//
|
|
6881
|
+
// node_modules/micromark-core-commonmark/lib/hard-break-escape.js
|
|
6861
6882
|
var hardBreakEscape = {
|
|
6862
6883
|
name: "hardBreakEscape",
|
|
6863
6884
|
tokenize: tokenizeHardBreakEscape
|
|
@@ -6878,7 +6899,7 @@ function tokenizeHardBreakEscape(effects, ok2, nok) {
|
|
|
6878
6899
|
}
|
|
6879
6900
|
}
|
|
6880
6901
|
|
|
6881
|
-
//
|
|
6902
|
+
// node_modules/micromark-core-commonmark/lib/heading-atx.js
|
|
6882
6903
|
var headingAtx = {
|
|
6883
6904
|
name: "headingAtx",
|
|
6884
6905
|
resolve: resolveHeadingAtx,
|
|
@@ -6969,7 +6990,7 @@ function tokenizeHeadingAtx(effects, ok2, nok) {
|
|
|
6969
6990
|
}
|
|
6970
6991
|
}
|
|
6971
6992
|
|
|
6972
|
-
//
|
|
6993
|
+
// node_modules/micromark-util-html-tag-name/index.js
|
|
6973
6994
|
var htmlBlockNames = [
|
|
6974
6995
|
"address",
|
|
6975
6996
|
"article",
|
|
@@ -7036,7 +7057,7 @@ var htmlBlockNames = [
|
|
|
7036
7057
|
];
|
|
7037
7058
|
var htmlRawNames = ["pre", "script", "style", "textarea"];
|
|
7038
7059
|
|
|
7039
|
-
//
|
|
7060
|
+
// node_modules/micromark-core-commonmark/lib/html-flow.js
|
|
7040
7061
|
var htmlFlow = {
|
|
7041
7062
|
concrete: true,
|
|
7042
7063
|
name: "htmlFlow",
|
|
@@ -7415,7 +7436,7 @@ function tokenizeBlankLineBefore(effects, ok2, nok) {
|
|
|
7415
7436
|
}
|
|
7416
7437
|
}
|
|
7417
7438
|
|
|
7418
|
-
//
|
|
7439
|
+
// node_modules/micromark-core-commonmark/lib/html-text.js
|
|
7419
7440
|
var htmlText = {
|
|
7420
7441
|
name: "htmlText",
|
|
7421
7442
|
tokenize: tokenizeHtmlText
|
|
@@ -7721,7 +7742,7 @@ function tokenizeHtmlText(effects, ok2, nok) {
|
|
|
7721
7742
|
}
|
|
7722
7743
|
}
|
|
7723
7744
|
|
|
7724
|
-
//
|
|
7745
|
+
// node_modules/micromark-core-commonmark/lib/label-end.js
|
|
7725
7746
|
var labelEnd = {
|
|
7726
7747
|
name: "labelEnd",
|
|
7727
7748
|
resolveAll: resolveAllLabelEnd,
|
|
@@ -7947,7 +7968,7 @@ function tokenizeReferenceCollapsed(effects, ok2, nok) {
|
|
|
7947
7968
|
}
|
|
7948
7969
|
}
|
|
7949
7970
|
|
|
7950
|
-
//
|
|
7971
|
+
// node_modules/micromark-core-commonmark/lib/label-start-image.js
|
|
7951
7972
|
var labelStartImage = {
|
|
7952
7973
|
name: "labelStartImage",
|
|
7953
7974
|
resolveAll: labelEnd.resolveAll,
|
|
@@ -7978,7 +7999,7 @@ function tokenizeLabelStartImage(effects, ok2, nok) {
|
|
|
7978
7999
|
}
|
|
7979
8000
|
}
|
|
7980
8001
|
|
|
7981
|
-
//
|
|
8002
|
+
// node_modules/micromark-core-commonmark/lib/label-start-link.js
|
|
7982
8003
|
var labelStartLink = {
|
|
7983
8004
|
name: "labelStartLink",
|
|
7984
8005
|
resolveAll: labelEnd.resolveAll,
|
|
@@ -8000,7 +8021,7 @@ function tokenizeLabelStartLink(effects, ok2, nok) {
|
|
|
8000
8021
|
}
|
|
8001
8022
|
}
|
|
8002
8023
|
|
|
8003
|
-
//
|
|
8024
|
+
// node_modules/micromark-core-commonmark/lib/line-ending.js
|
|
8004
8025
|
var lineEnding = {
|
|
8005
8026
|
name: "lineEnding",
|
|
8006
8027
|
tokenize: tokenizeLineEnding
|
|
@@ -8015,7 +8036,7 @@ function tokenizeLineEnding(effects, ok2) {
|
|
|
8015
8036
|
}
|
|
8016
8037
|
}
|
|
8017
8038
|
|
|
8018
|
-
//
|
|
8039
|
+
// node_modules/micromark-core-commonmark/lib/thematic-break.js
|
|
8019
8040
|
var thematicBreak = {
|
|
8020
8041
|
name: "thematicBreak",
|
|
8021
8042
|
tokenize: tokenizeThematicBreak
|
|
@@ -8054,7 +8075,7 @@ function tokenizeThematicBreak(effects, ok2, nok) {
|
|
|
8054
8075
|
}
|
|
8055
8076
|
}
|
|
8056
8077
|
|
|
8057
|
-
//
|
|
8078
|
+
// node_modules/micromark-core-commonmark/lib/list.js
|
|
8058
8079
|
var list = {
|
|
8059
8080
|
continuation: {
|
|
8060
8081
|
tokenize: tokenizeListContinuation
|
|
@@ -8184,7 +8205,7 @@ function tokenizeListItemPrefixWhitespace(effects, ok2, nok) {
|
|
|
8184
8205
|
}
|
|
8185
8206
|
}
|
|
8186
8207
|
|
|
8187
|
-
//
|
|
8208
|
+
// node_modules/micromark-core-commonmark/lib/setext-underline.js
|
|
8188
8209
|
var setextUnderline = {
|
|
8189
8210
|
name: "setextUnderline",
|
|
8190
8211
|
resolveTo: resolveToSetextUnderline,
|
|
@@ -8276,7 +8297,7 @@ function tokenizeSetextUnderline(effects, ok2, nok) {
|
|
|
8276
8297
|
}
|
|
8277
8298
|
}
|
|
8278
8299
|
|
|
8279
|
-
//
|
|
8300
|
+
// node_modules/micromark/lib/initialize/flow.js
|
|
8280
8301
|
var flow = {
|
|
8281
8302
|
tokenize: initializeFlow
|
|
8282
8303
|
};
|
|
@@ -8314,7 +8335,7 @@ function initializeFlow(effects) {
|
|
|
8314
8335
|
}
|
|
8315
8336
|
}
|
|
8316
8337
|
|
|
8317
|
-
//
|
|
8338
|
+
// node_modules/micromark/lib/initialize/text.js
|
|
8318
8339
|
var resolver = {
|
|
8319
8340
|
resolveAll: createResolver()
|
|
8320
8341
|
};
|
|
@@ -8453,7 +8474,7 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
8453
8474
|
return events;
|
|
8454
8475
|
}
|
|
8455
8476
|
|
|
8456
|
-
//
|
|
8477
|
+
// node_modules/micromark/lib/constructs.js
|
|
8457
8478
|
var constructs_exports = {};
|
|
8458
8479
|
__export(constructs_exports, {
|
|
8459
8480
|
attentionMarkers: () => attentionMarkers,
|
|
@@ -8528,7 +8549,7 @@ var disable = {
|
|
|
8528
8549
|
null: []
|
|
8529
8550
|
};
|
|
8530
8551
|
|
|
8531
|
-
//
|
|
8552
|
+
// node_modules/micromark/lib/create-tokenizer.js
|
|
8532
8553
|
function createTokenizer(parser, initialize, from) {
|
|
8533
8554
|
let point3 = {
|
|
8534
8555
|
_bufferIndex: -1,
|
|
@@ -8851,7 +8872,7 @@ function serializeChunks(chunks, expandTabs) {
|
|
|
8851
8872
|
return result.join("");
|
|
8852
8873
|
}
|
|
8853
8874
|
|
|
8854
|
-
//
|
|
8875
|
+
// node_modules/micromark/lib/parse.js
|
|
8855
8876
|
function parse(options) {
|
|
8856
8877
|
const settings = options || {};
|
|
8857
8878
|
const constructs2 = (
|
|
@@ -8877,14 +8898,14 @@ function parse(options) {
|
|
|
8877
8898
|
}
|
|
8878
8899
|
}
|
|
8879
8900
|
|
|
8880
|
-
//
|
|
8901
|
+
// node_modules/micromark/lib/postprocess.js
|
|
8881
8902
|
function postprocess(events) {
|
|
8882
8903
|
while (!subtokenize(events)) {
|
|
8883
8904
|
}
|
|
8884
8905
|
return events;
|
|
8885
8906
|
}
|
|
8886
8907
|
|
|
8887
|
-
//
|
|
8908
|
+
// node_modules/micromark/lib/preprocess.js
|
|
8888
8909
|
var search = /[\0\t\n\r]/g;
|
|
8889
8910
|
function preprocess() {
|
|
8890
8911
|
let column = 1;
|
|
@@ -8963,7 +8984,7 @@ function preprocess() {
|
|
|
8963
8984
|
}
|
|
8964
8985
|
}
|
|
8965
8986
|
|
|
8966
|
-
//
|
|
8987
|
+
// node_modules/micromark-util-decode-string/index.js
|
|
8967
8988
|
var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
8968
8989
|
function decodeString(value2) {
|
|
8969
8990
|
return value2.replace(characterEscapeOrReference, decode);
|
|
@@ -8981,7 +9002,7 @@ function decode($0, $1, $2) {
|
|
|
8981
9002
|
return decodeNamedCharacterReference($2) || $0;
|
|
8982
9003
|
}
|
|
8983
9004
|
|
|
8984
|
-
//
|
|
9005
|
+
// node_modules/mdast-util-from-markdown/lib/index.js
|
|
8985
9006
|
var own3 = {}.hasOwnProperty;
|
|
8986
9007
|
function fromMarkdown(value2, encoding, options) {
|
|
8987
9008
|
if (encoding && typeof encoding === "object") {
|
|
@@ -9690,7 +9711,7 @@ function defaultOnError(left, right) {
|
|
|
9690
9711
|
}
|
|
9691
9712
|
}
|
|
9692
9713
|
|
|
9693
|
-
//
|
|
9714
|
+
// node_modules/remark-parse/lib/index.js
|
|
9694
9715
|
function remarkParse(options) {
|
|
9695
9716
|
const self = this;
|
|
9696
9717
|
self.parser = parser;
|
|
@@ -9707,7 +9728,7 @@ function remarkParse(options) {
|
|
|
9707
9728
|
}
|
|
9708
9729
|
}
|
|
9709
9730
|
|
|
9710
|
-
//
|
|
9731
|
+
// node_modules/fault/index.js
|
|
9711
9732
|
var import_format = __toESM(require_format(), 1);
|
|
9712
9733
|
var fault = Object.assign(create(Error), {
|
|
9713
9734
|
eval: create(EvalError),
|
|
@@ -9726,7 +9747,7 @@ function create(Constructor) {
|
|
|
9726
9747
|
}
|
|
9727
9748
|
}
|
|
9728
9749
|
|
|
9729
|
-
//
|
|
9750
|
+
// node_modules/micromark-extension-frontmatter/lib/to-matters.js
|
|
9730
9751
|
var own4 = {}.hasOwnProperty;
|
|
9731
9752
|
var markers = {
|
|
9732
9753
|
yaml: "-",
|
|
@@ -9763,7 +9784,7 @@ function matter(option) {
|
|
|
9763
9784
|
return result;
|
|
9764
9785
|
}
|
|
9765
9786
|
|
|
9766
|
-
//
|
|
9787
|
+
// node_modules/micromark-extension-frontmatter/lib/syntax.js
|
|
9767
9788
|
function frontmatter(options) {
|
|
9768
9789
|
const matters = toMatters(options);
|
|
9769
9790
|
const flow3 = {};
|
|
@@ -9949,7 +9970,7 @@ function pick(schema, prop) {
|
|
|
9949
9970
|
return typeof schema === "string" ? schema : schema[prop];
|
|
9950
9971
|
}
|
|
9951
9972
|
|
|
9952
|
-
//
|
|
9973
|
+
// node_modules/escape-string-regexp/index.js
|
|
9953
9974
|
function escapeStringRegexp(string3) {
|
|
9954
9975
|
if (typeof string3 !== "string") {
|
|
9955
9976
|
throw new TypeError("Expected a string");
|
|
@@ -9957,7 +9978,7 @@ function escapeStringRegexp(string3) {
|
|
|
9957
9978
|
return string3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
9958
9979
|
}
|
|
9959
9980
|
|
|
9960
|
-
//
|
|
9981
|
+
// node_modules/mdast-util-frontmatter/lib/index.js
|
|
9961
9982
|
function frontmatterFromMarkdown(options) {
|
|
9962
9983
|
const matters = toMatters(options);
|
|
9963
9984
|
const enter = {};
|
|
@@ -10024,7 +10045,7 @@ function pick2(schema, prop) {
|
|
|
10024
10045
|
return typeof schema === "string" ? schema : schema[prop];
|
|
10025
10046
|
}
|
|
10026
10047
|
|
|
10027
|
-
//
|
|
10048
|
+
// node_modules/remark-frontmatter/lib/index.js
|
|
10028
10049
|
var emptyOptions2 = "yaml";
|
|
10029
10050
|
function remarkFrontmatter(options) {
|
|
10030
10051
|
const self = (
|
|
@@ -10360,6 +10381,7 @@ function parseKeyValueTokens(tokens, ctx) {
|
|
|
10360
10381
|
// src/descriptive/markdown.ts
|
|
10361
10382
|
var TYPE_TOKENS = {
|
|
10362
10383
|
image: "image",
|
|
10384
|
+
model3d: "model3d",
|
|
10363
10385
|
video: "video",
|
|
10364
10386
|
audio: "audio",
|
|
10365
10387
|
component: "component",
|
|
@@ -10456,7 +10478,14 @@ function preserveVariantAttrs(node2, attrs) {
|
|
|
10456
10478
|
"componentName",
|
|
10457
10479
|
"props",
|
|
10458
10480
|
"speaker",
|
|
10459
|
-
"isNarration"
|
|
10481
|
+
"isNarration",
|
|
10482
|
+
"motion",
|
|
10483
|
+
"turns",
|
|
10484
|
+
"rotation",
|
|
10485
|
+
"position",
|
|
10486
|
+
"scale",
|
|
10487
|
+
"autoFit",
|
|
10488
|
+
"background"
|
|
10460
10489
|
]);
|
|
10461
10490
|
for (const [k, v] of Object.entries(attrs)) {
|
|
10462
10491
|
if (!STANDARD.has(k)) {
|
|
@@ -10520,6 +10549,33 @@ function parseNodeLine(content3, lineNum) {
|
|
|
10520
10549
|
preserveVariantAttrs(node2, attrs);
|
|
10521
10550
|
return node2;
|
|
10522
10551
|
}
|
|
10552
|
+
case "model3d": {
|
|
10553
|
+
const src = firstPositional ?? attrs.src;
|
|
10554
|
+
if (!src) throw new DslError("model3d requires src (.glb or .gltf)", ctx);
|
|
10555
|
+
const node2 = {
|
|
10556
|
+
type: "model3d",
|
|
10557
|
+
id: attrs.id,
|
|
10558
|
+
src,
|
|
10559
|
+
duration: attrs.duration,
|
|
10560
|
+
start: attrs.start,
|
|
10561
|
+
motion: attrs.motion,
|
|
10562
|
+
turns: attrs.turns,
|
|
10563
|
+
rotation: attrs.rotation,
|
|
10564
|
+
position: attrs.position,
|
|
10565
|
+
scale: attrs.scale,
|
|
10566
|
+
autoFit: attrs.autoFit,
|
|
10567
|
+
camera: attrs.camera,
|
|
10568
|
+
background: attrs.background,
|
|
10569
|
+
instruction: attrs.instruction,
|
|
10570
|
+
visible: attrs.visible,
|
|
10571
|
+
isBackground: attrs.isBackground,
|
|
10572
|
+
style: attrs.style,
|
|
10573
|
+
effects: attrs.effects,
|
|
10574
|
+
on: attrs.on
|
|
10575
|
+
};
|
|
10576
|
+
preserveVariantAttrs(node2, attrs);
|
|
10577
|
+
return node2;
|
|
10578
|
+
}
|
|
10523
10579
|
case "video": {
|
|
10524
10580
|
const src = firstPositional ?? attrs.src;
|
|
10525
10581
|
const prompt = attrs.prompt;
|