@markdy/core 0.7.27 → 0.7.28
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/index.d.ts +5 -1
- package/dist/index.js +349 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -212,4 +212,8 @@ type ActorPack = {
|
|
|
212
212
|
};
|
|
213
213
|
declare function registerActorPack(pack: ActorPack): void;
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
declare const TECHNICAL_NODE_TYPES: readonly ["service", "api", "microservice", "backend", "server", "worker", "job", "scheduler", "cron", "batch", "function", "lambda", "edge", "controller", "handler", "repository", "module", "package", "library", "sdk", "cli", "runtime", "process", "client", "user", "browser", "web", "mobile", "desktop", "frontend", "app", "page", "view", "component", "store", "db", "database", "sql", "nosql", "table", "index", "warehouse", "lake", "object_store", "bucket", "blob", "volume", "disk", "search", "cache", "queue", "topic", "stream", "event", "event_bus", "bus", "broker", "pubsub", "kafka", "producer", "consumer", "dead_letter", "dlq", "webhook", "cloud", "region", "vpc", "subnet", "network", "internet", "dns", "cdn", "proxy", "gateway", "api_gateway", "load_balancer", "reverse_proxy", "router", "switch", "nat", "firewall", "waf", "vpn", "bastion", "container", "cluster", "pod", "node", "deployment", "replicaset", "statefulset", "daemonset", "namespace", "ingress", "service_mesh", "sidecar", "image", "registry", "docker", "compose", "helm", "chart", "configmap", "pvc", "auth", "identity", "oauth", "oidc", "jwt", "session", "policy", "role", "permission", "vault", "secret", "key", "certificate", "repo", "branch", "commit", "pipeline", "workflow", "runner", "build", "test", "artifact", "deploy", "release", "environment", "preview", "monitor", "metrics", "logs", "trace", "alert", "dashboard", "probe", "slo", "start", "end", "state", "decision", "condition", "step", "loop", "sequence", "participant", "replica", "shard", "leader", "follower", "quorum", "consensus", "lock", "class", "interface", "method", "object", "enum", "type"];
|
|
216
|
+
declare const VISUAL_PRIMITIVE_TYPES: readonly ["panel", "surface", "terminal", "metric", "stat", "grid", "matrix", "lane", "track", "marker", "dot", "token_strip", "chips", "glyph_card", "glyph"];
|
|
217
|
+
declare const TECHNICAL_NODE_KINDS: Record<(typeof TECHNICAL_NODE_TYPES)[number], string>;
|
|
218
|
+
|
|
219
|
+
export { type ActorDef, type ActorPack, type ActorType, type AssetDef, BUILTIN_ACTOR_TYPES, type BuiltinActorType, CAMERA_ACTION_NAMES, type Chapter, FIGURE_ONLY_ACTION_NAMES, type ImportDecl, PRESETS, PRESET_NAMES, ParseError, type ParseOptions, type ParseWarning, type PresetFn, type SceneAST, type SceneMeta, type SequenceDef, TECHNICAL_NODE_KINDS, TECHNICAL_NODE_TYPES, type TemplateDef, type TimelineEvent, UNIVERSAL_ACTION_NAMES, VISUAL_PRIMITIVE_TYPES, parse, registerActorPack };
|
package/dist/index.js
CHANGED
|
@@ -299,6 +299,349 @@ function isKnownAction(actorType, action) {
|
|
|
299
299
|
return actorActions.get(actorType)?.has(action) ?? false;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
+
// src/system-vocabulary.ts
|
|
303
|
+
var TECHNICAL_NODE_TYPES = [
|
|
304
|
+
"service",
|
|
305
|
+
"api",
|
|
306
|
+
"microservice",
|
|
307
|
+
"backend",
|
|
308
|
+
"server",
|
|
309
|
+
"worker",
|
|
310
|
+
"job",
|
|
311
|
+
"scheduler",
|
|
312
|
+
"cron",
|
|
313
|
+
"batch",
|
|
314
|
+
"function",
|
|
315
|
+
"lambda",
|
|
316
|
+
"edge",
|
|
317
|
+
"controller",
|
|
318
|
+
"handler",
|
|
319
|
+
"repository",
|
|
320
|
+
"module",
|
|
321
|
+
"package",
|
|
322
|
+
"library",
|
|
323
|
+
"sdk",
|
|
324
|
+
"cli",
|
|
325
|
+
"runtime",
|
|
326
|
+
"process",
|
|
327
|
+
"client",
|
|
328
|
+
"user",
|
|
329
|
+
"browser",
|
|
330
|
+
"web",
|
|
331
|
+
"mobile",
|
|
332
|
+
"desktop",
|
|
333
|
+
"frontend",
|
|
334
|
+
"app",
|
|
335
|
+
"page",
|
|
336
|
+
"view",
|
|
337
|
+
"component",
|
|
338
|
+
"store",
|
|
339
|
+
"db",
|
|
340
|
+
"database",
|
|
341
|
+
"sql",
|
|
342
|
+
"nosql",
|
|
343
|
+
"table",
|
|
344
|
+
"index",
|
|
345
|
+
"warehouse",
|
|
346
|
+
"lake",
|
|
347
|
+
"object_store",
|
|
348
|
+
"bucket",
|
|
349
|
+
"blob",
|
|
350
|
+
"volume",
|
|
351
|
+
"disk",
|
|
352
|
+
"search",
|
|
353
|
+
"cache",
|
|
354
|
+
"queue",
|
|
355
|
+
"topic",
|
|
356
|
+
"stream",
|
|
357
|
+
"event",
|
|
358
|
+
"event_bus",
|
|
359
|
+
"bus",
|
|
360
|
+
"broker",
|
|
361
|
+
"pubsub",
|
|
362
|
+
"kafka",
|
|
363
|
+
"producer",
|
|
364
|
+
"consumer",
|
|
365
|
+
"dead_letter",
|
|
366
|
+
"dlq",
|
|
367
|
+
"webhook",
|
|
368
|
+
"cloud",
|
|
369
|
+
"region",
|
|
370
|
+
"vpc",
|
|
371
|
+
"subnet",
|
|
372
|
+
"network",
|
|
373
|
+
"internet",
|
|
374
|
+
"dns",
|
|
375
|
+
"cdn",
|
|
376
|
+
"proxy",
|
|
377
|
+
"gateway",
|
|
378
|
+
"api_gateway",
|
|
379
|
+
"load_balancer",
|
|
380
|
+
"reverse_proxy",
|
|
381
|
+
"router",
|
|
382
|
+
"switch",
|
|
383
|
+
"nat",
|
|
384
|
+
"firewall",
|
|
385
|
+
"waf",
|
|
386
|
+
"vpn",
|
|
387
|
+
"bastion",
|
|
388
|
+
"container",
|
|
389
|
+
"cluster",
|
|
390
|
+
"pod",
|
|
391
|
+
"node",
|
|
392
|
+
"deployment",
|
|
393
|
+
"replicaset",
|
|
394
|
+
"statefulset",
|
|
395
|
+
"daemonset",
|
|
396
|
+
"namespace",
|
|
397
|
+
"ingress",
|
|
398
|
+
"service_mesh",
|
|
399
|
+
"sidecar",
|
|
400
|
+
"image",
|
|
401
|
+
"registry",
|
|
402
|
+
"docker",
|
|
403
|
+
"compose",
|
|
404
|
+
"helm",
|
|
405
|
+
"chart",
|
|
406
|
+
"configmap",
|
|
407
|
+
"pvc",
|
|
408
|
+
"auth",
|
|
409
|
+
"identity",
|
|
410
|
+
"oauth",
|
|
411
|
+
"oidc",
|
|
412
|
+
"jwt",
|
|
413
|
+
"session",
|
|
414
|
+
"policy",
|
|
415
|
+
"role",
|
|
416
|
+
"permission",
|
|
417
|
+
"vault",
|
|
418
|
+
"secret",
|
|
419
|
+
"key",
|
|
420
|
+
"certificate",
|
|
421
|
+
"repo",
|
|
422
|
+
"branch",
|
|
423
|
+
"commit",
|
|
424
|
+
"pipeline",
|
|
425
|
+
"workflow",
|
|
426
|
+
"runner",
|
|
427
|
+
"build",
|
|
428
|
+
"test",
|
|
429
|
+
"artifact",
|
|
430
|
+
"deploy",
|
|
431
|
+
"release",
|
|
432
|
+
"environment",
|
|
433
|
+
"preview",
|
|
434
|
+
"monitor",
|
|
435
|
+
"metrics",
|
|
436
|
+
"logs",
|
|
437
|
+
"trace",
|
|
438
|
+
"alert",
|
|
439
|
+
"dashboard",
|
|
440
|
+
"probe",
|
|
441
|
+
"slo",
|
|
442
|
+
"start",
|
|
443
|
+
"end",
|
|
444
|
+
"state",
|
|
445
|
+
"decision",
|
|
446
|
+
"condition",
|
|
447
|
+
"step",
|
|
448
|
+
"loop",
|
|
449
|
+
"sequence",
|
|
450
|
+
"participant",
|
|
451
|
+
"replica",
|
|
452
|
+
"shard",
|
|
453
|
+
"leader",
|
|
454
|
+
"follower",
|
|
455
|
+
"quorum",
|
|
456
|
+
"consensus",
|
|
457
|
+
"lock",
|
|
458
|
+
"class",
|
|
459
|
+
"interface",
|
|
460
|
+
"method",
|
|
461
|
+
"object",
|
|
462
|
+
"enum",
|
|
463
|
+
"type"
|
|
464
|
+
];
|
|
465
|
+
var VISUAL_PRIMITIVE_TYPES = [
|
|
466
|
+
"panel",
|
|
467
|
+
"surface",
|
|
468
|
+
"terminal",
|
|
469
|
+
"metric",
|
|
470
|
+
"stat",
|
|
471
|
+
"grid",
|
|
472
|
+
"matrix",
|
|
473
|
+
"lane",
|
|
474
|
+
"track",
|
|
475
|
+
"marker",
|
|
476
|
+
"dot",
|
|
477
|
+
"token_strip",
|
|
478
|
+
"chips",
|
|
479
|
+
"glyph_card",
|
|
480
|
+
"glyph"
|
|
481
|
+
];
|
|
482
|
+
var TECHNICAL_NODE_KINDS = {
|
|
483
|
+
service: "compute",
|
|
484
|
+
api: "compute",
|
|
485
|
+
microservice: "compute",
|
|
486
|
+
backend: "compute",
|
|
487
|
+
server: "compute",
|
|
488
|
+
worker: "compute",
|
|
489
|
+
job: "compute",
|
|
490
|
+
scheduler: "compute",
|
|
491
|
+
cron: "compute",
|
|
492
|
+
batch: "compute",
|
|
493
|
+
function: "compute",
|
|
494
|
+
lambda: "compute",
|
|
495
|
+
edge: "compute",
|
|
496
|
+
controller: "compute",
|
|
497
|
+
handler: "compute",
|
|
498
|
+
repository: "compute",
|
|
499
|
+
runtime: "compute",
|
|
500
|
+
process: "compute",
|
|
501
|
+
module: "code",
|
|
502
|
+
package: "code",
|
|
503
|
+
library: "code",
|
|
504
|
+
sdk: "code",
|
|
505
|
+
cli: "code",
|
|
506
|
+
class: "code",
|
|
507
|
+
interface: "code",
|
|
508
|
+
method: "code",
|
|
509
|
+
object: "code",
|
|
510
|
+
enum: "code",
|
|
511
|
+
type: "code",
|
|
512
|
+
client: "client",
|
|
513
|
+
user: "client",
|
|
514
|
+
browser: "client",
|
|
515
|
+
web: "client",
|
|
516
|
+
mobile: "client",
|
|
517
|
+
desktop: "client",
|
|
518
|
+
frontend: "client",
|
|
519
|
+
app: "client",
|
|
520
|
+
page: "client",
|
|
521
|
+
view: "client",
|
|
522
|
+
component: "client",
|
|
523
|
+
store: "client",
|
|
524
|
+
db: "data",
|
|
525
|
+
database: "data",
|
|
526
|
+
sql: "data",
|
|
527
|
+
nosql: "data",
|
|
528
|
+
table: "data",
|
|
529
|
+
index: "data",
|
|
530
|
+
warehouse: "data",
|
|
531
|
+
lake: "data",
|
|
532
|
+
object_store: "data",
|
|
533
|
+
bucket: "data",
|
|
534
|
+
blob: "data",
|
|
535
|
+
volume: "data",
|
|
536
|
+
disk: "data",
|
|
537
|
+
search: "data",
|
|
538
|
+
cache: "data",
|
|
539
|
+
queue: "messaging",
|
|
540
|
+
topic: "messaging",
|
|
541
|
+
stream: "messaging",
|
|
542
|
+
event: "messaging",
|
|
543
|
+
event_bus: "messaging",
|
|
544
|
+
bus: "messaging",
|
|
545
|
+
broker: "messaging",
|
|
546
|
+
pubsub: "messaging",
|
|
547
|
+
kafka: "messaging",
|
|
548
|
+
producer: "messaging",
|
|
549
|
+
consumer: "messaging",
|
|
550
|
+
dead_letter: "messaging",
|
|
551
|
+
dlq: "messaging",
|
|
552
|
+
webhook: "messaging",
|
|
553
|
+
cloud: "network",
|
|
554
|
+
region: "network",
|
|
555
|
+
vpc: "network",
|
|
556
|
+
subnet: "network",
|
|
557
|
+
network: "network",
|
|
558
|
+
internet: "network",
|
|
559
|
+
dns: "network",
|
|
560
|
+
cdn: "network",
|
|
561
|
+
proxy: "network",
|
|
562
|
+
gateway: "network",
|
|
563
|
+
api_gateway: "network",
|
|
564
|
+
load_balancer: "network",
|
|
565
|
+
reverse_proxy: "network",
|
|
566
|
+
router: "network",
|
|
567
|
+
switch: "network",
|
|
568
|
+
nat: "network",
|
|
569
|
+
firewall: "network",
|
|
570
|
+
waf: "network",
|
|
571
|
+
vpn: "network",
|
|
572
|
+
bastion: "network",
|
|
573
|
+
container: "platform",
|
|
574
|
+
cluster: "platform",
|
|
575
|
+
pod: "platform",
|
|
576
|
+
node: "platform",
|
|
577
|
+
deployment: "platform",
|
|
578
|
+
replicaset: "platform",
|
|
579
|
+
statefulset: "platform",
|
|
580
|
+
daemonset: "platform",
|
|
581
|
+
namespace: "platform",
|
|
582
|
+
ingress: "platform",
|
|
583
|
+
service_mesh: "platform",
|
|
584
|
+
sidecar: "platform",
|
|
585
|
+
image: "platform",
|
|
586
|
+
registry: "platform",
|
|
587
|
+
docker: "platform",
|
|
588
|
+
compose: "platform",
|
|
589
|
+
helm: "platform",
|
|
590
|
+
chart: "platform",
|
|
591
|
+
configmap: "platform",
|
|
592
|
+
pvc: "platform",
|
|
593
|
+
auth: "security",
|
|
594
|
+
identity: "security",
|
|
595
|
+
oauth: "security",
|
|
596
|
+
oidc: "security",
|
|
597
|
+
jwt: "security",
|
|
598
|
+
session: "security",
|
|
599
|
+
policy: "security",
|
|
600
|
+
role: "security",
|
|
601
|
+
permission: "security",
|
|
602
|
+
vault: "security",
|
|
603
|
+
secret: "security",
|
|
604
|
+
key: "security",
|
|
605
|
+
certificate: "security",
|
|
606
|
+
repo: "delivery",
|
|
607
|
+
branch: "delivery",
|
|
608
|
+
commit: "delivery",
|
|
609
|
+
pipeline: "delivery",
|
|
610
|
+
workflow: "delivery",
|
|
611
|
+
runner: "delivery",
|
|
612
|
+
build: "delivery",
|
|
613
|
+
test: "delivery",
|
|
614
|
+
artifact: "delivery",
|
|
615
|
+
deploy: "delivery",
|
|
616
|
+
release: "delivery",
|
|
617
|
+
environment: "delivery",
|
|
618
|
+
preview: "delivery",
|
|
619
|
+
monitor: "observability",
|
|
620
|
+
metrics: "observability",
|
|
621
|
+
logs: "observability",
|
|
622
|
+
trace: "observability",
|
|
623
|
+
alert: "observability",
|
|
624
|
+
dashboard: "observability",
|
|
625
|
+
probe: "observability",
|
|
626
|
+
slo: "observability",
|
|
627
|
+
start: "flow",
|
|
628
|
+
end: "flow",
|
|
629
|
+
state: "flow",
|
|
630
|
+
decision: "flow",
|
|
631
|
+
condition: "flow",
|
|
632
|
+
step: "flow",
|
|
633
|
+
loop: "flow",
|
|
634
|
+
sequence: "flow",
|
|
635
|
+
participant: "flow",
|
|
636
|
+
replica: "distributed",
|
|
637
|
+
shard: "distributed",
|
|
638
|
+
leader: "distributed",
|
|
639
|
+
follower: "distributed",
|
|
640
|
+
quorum: "distributed",
|
|
641
|
+
consensus: "distributed",
|
|
642
|
+
lock: "distributed"
|
|
643
|
+
};
|
|
644
|
+
|
|
302
645
|
// src/parser.ts
|
|
303
646
|
var ParseError = class extends Error {
|
|
304
647
|
constructor(message, line) {
|
|
@@ -526,7 +869,9 @@ var SEQ_EVENT_RE = /^@\+([\d.]+):\s+\$\.(!?\w+)\((.*)\)$/;
|
|
|
526
869
|
var CHAPTER_HEADER_RE = /^scene\s+"([^"]+)"\s*\{$/;
|
|
527
870
|
var IMPORT_RE = /^import\s+"([^"]+)"\s+as\s+(\w+)\s*$/;
|
|
528
871
|
var PRESET_RE = /^preset\s+(\w+)(?:\s*\((.*)\))?\s*$/;
|
|
529
|
-
var ARCHITECTURE_NODE_RE =
|
|
872
|
+
var ARCHITECTURE_NODE_RE = new RegExp(
|
|
873
|
+
`^(${TECHNICAL_NODE_TYPES.join("|")})\\s+(\\w+)(?:\\s+("[^"]+"|'[^']+'))?(?:\\s+at\\s+\\(\\s*(-?[\\d.]+)\\s*,\\s*(-?[\\d.]+)\\s*\\))?(.*)$`
|
|
874
|
+
);
|
|
530
875
|
var ARCHITECTURE_ALIAS_TO_TYPE = {
|
|
531
876
|
api: "service",
|
|
532
877
|
database: "database",
|
|
@@ -1286,7 +1631,10 @@ export {
|
|
|
1286
1631
|
PRESETS,
|
|
1287
1632
|
PRESET_NAMES,
|
|
1288
1633
|
ParseError,
|
|
1634
|
+
TECHNICAL_NODE_KINDS,
|
|
1635
|
+
TECHNICAL_NODE_TYPES,
|
|
1289
1636
|
UNIVERSAL_ACTION_NAMES,
|
|
1637
|
+
VISUAL_PRIMITIVE_TYPES,
|
|
1290
1638
|
parse,
|
|
1291
1639
|
registerActorPack
|
|
1292
1640
|
};
|