schematex 0.8.2 → 0.8.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.
@@ -347,7 +347,18 @@ var DIAGRAM_REGISTRY = [
347
347
  useWhen: "Use to propagate the consequences of an initiating event through a chain of barriers/safety functions and quantify each outcome's frequency \u2014 the inductive complement to a fault tree and the right wing of a bowtie. Header `eventtree`/`eta`; declare the initiating event with a frequency, the ordered functions with success/failure branch probabilities, and outcome rows with `s`/`f`/`*` patterns. The engine computes path frequency = f_initiating \xD7 \u03A0 branch-probabilities and flags the dominant sequence.",
348
348
  cluster: "risk-reliability",
349
349
  standard: "IEC 62502:2010 \xB7 NUREG/CR-2300 (PRA) \xB7 ISO 31010 Annex B; see 39-EVENT-TREE-STANDARD.md",
350
- syntaxKey: "eventtree"
350
+ syntaxKey: "eventtree",
351
+ aliases: ["Event Tree Analysis", "ETA diagram", "event tree", "\u4E8B\u4EF6\u6811\u5206\u6790"],
352
+ keywords: [
353
+ "probabilistic risk assessment",
354
+ "PRA",
355
+ "safety function",
356
+ "accident sequence",
357
+ "barrier analysis",
358
+ "consequence analysis",
359
+ "nuclear safety",
360
+ "IEC 62502"
361
+ ]
351
362
  },
352
363
  {
353
364
  type: "fmea",
@@ -356,7 +367,25 @@ var DIAGRAM_REGISTRY = [
356
367
  useWhen: "Use to score and prioritise how each component/process step can fail \u2014 severity, occurrence, detection \u2014 and decide what to fix first. Header `fmea`; declare item/function \u2192 failure mode \u2192 effect (with `sev`) \u2192 cause (with `occ`) \u2192 controls (with `det`). The engine computes RPN = S\xD7O\xD7D and the AIAG-VDA Action Priority (High/Medium/Low), sorts the sheet, and colour-fills the RPN/AP cells by risk. Schematex's first table-shaped diagram.",
357
368
  cluster: "risk-reliability",
358
369
  standard: "AIAG-VDA FMEA Handbook (2019) \xB7 IEC 60812:2018 \xB7 SAE J1739 \xB7 MIL-STD-1629A; see 40-FMEA-STANDARD.md",
359
- syntaxKey: "fmea"
370
+ syntaxKey: "fmea",
371
+ aliases: [
372
+ "FMEA",
373
+ "Failure Mode and Effects Analysis",
374
+ "FMECA",
375
+ "failure mode analysis",
376
+ "\u6545\u969C\u6A21\u5F0F\u4E0E\u5F71\u54CD\u5206\u6790"
377
+ ],
378
+ keywords: [
379
+ "RPN",
380
+ "risk priority number",
381
+ "Action Priority",
382
+ "AIAG-VDA",
383
+ "DFMEA",
384
+ "PFMEA",
385
+ "severity occurrence detection",
386
+ "reliability engineering",
387
+ "IEC 60812"
388
+ ]
360
389
  },
361
390
  // ── Systems thinking / stochastic ────────────────────────────
362
391
  {
@@ -366,7 +395,23 @@ var DIAGRAM_REGISTRY = [
366
395
  useWhen: 'Use for systems thinking / system dynamics: variables connected by `+`/`\u2212` causal links, where the engine detects feedback loops and labels each R (even number of negative links) or B (odd). Header `causalloop`/`cld`; write `A -> B : +` links and optional `loop R1 "name"` annotations and `delay` marks. Distinct from `sociogram` (social ties, no polarity) and `flowchart` (process steps).',
367
396
  cluster: "causality-analysis",
368
397
  standard: "Sterman, Business Dynamics (2000) \xB7 Meadows, Thinking in Systems; see 41-CAUSAL-LOOP-STANDARD.md",
369
- syntaxKey: "causalloop"
398
+ syntaxKey: "causalloop",
399
+ aliases: [
400
+ "Causal Loop Diagram",
401
+ "CLD",
402
+ "feedback loop diagram",
403
+ "systems thinking diagram",
404
+ "\u56E0\u679C\u56DE\u8DEF\u56FE"
405
+ ],
406
+ keywords: [
407
+ "system dynamics",
408
+ "reinforcing loop",
409
+ "balancing loop",
410
+ "feedback loop",
411
+ "stock and flow",
412
+ "Sterman",
413
+ "Meadows"
414
+ ]
370
415
  },
371
416
  {
372
417
  type: "markov",
@@ -375,7 +420,22 @@ var DIAGRAM_REGISTRY = [
375
420
  useWhen: "Use to model a probabilistic state process (reliability/availability, queueing, regime models) where you want the long-run distribution or absorption answer, not just the picture. Header `markov`/`markovchain`; write `S1 -> S2 : 0.3` transitions (each state's out-edges sum to 1). The engine computes the stationary distribution, classifies states, and for absorbing chains the fundamental matrix. Sibling of `state` and `petri`.",
376
421
  cluster: "behavior-modeling",
377
422
  standard: "Norris, Markov Chains (1997) \xB7 Kemeny & Snell, Finite Markov Chains; see 42-MARKOV-CHAIN-STANDARD.md",
378
- syntaxKey: "markov"
423
+ syntaxKey: "markov",
424
+ aliases: [
425
+ "Markov chain",
426
+ "Markov chain diagram",
427
+ "stochastic state transition diagram",
428
+ "\u9A6C\u5C14\u53EF\u592B\u94FE"
429
+ ],
430
+ keywords: [
431
+ "stationary distribution",
432
+ "stochastic process",
433
+ "transition matrix",
434
+ "transition probability",
435
+ "absorbing state",
436
+ "steady state",
437
+ "discrete-time"
438
+ ]
379
439
  },
380
440
  // ── Software / process engineering ───────────────────────────
381
441
  {
@@ -385,7 +445,23 @@ var DIAGRAM_REGISTRY = [
385
445
  useWhen: 'Use to visualise a git branching/merging history. Header `gitGraph`; ordered `commit`, `branch <name>`, `checkout <name>`, `merge <name>`, `cherry-pick id: "\u2026"`, with `commit id:/tag:/type: HIGHLIGHT|REVERSE`. Mermaid `gitGraph` syntax parity so LLM output is drop-in compatible. Commits sit on per-branch lanes ordered chronologically; merges join lanes.',
386
446
  cluster: "software-uml",
387
447
  standard: "Mermaid gitGraph syntax \xB7 git DAG model; see 43-GIT-GRAPH-STANDARD.md",
388
- syntaxKey: "gitgraph"
448
+ syntaxKey: "gitgraph",
449
+ aliases: [
450
+ "Git commit graph",
451
+ "git graph",
452
+ "git branch diagram",
453
+ "branching diagram",
454
+ "Git \u63D0\u4EA4\u56FE"
455
+ ],
456
+ keywords: [
457
+ "branching strategy",
458
+ "git history",
459
+ "merge",
460
+ "cherry-pick",
461
+ "GitFlow",
462
+ "Mermaid gitGraph",
463
+ "commit history"
464
+ ]
389
465
  },
390
466
  {
391
467
  type: "epc",
@@ -394,7 +470,22 @@ var DIAGRAM_REGISTRY = [
394
470
  useWhen: "Use for ARIS-style business process modelling (SAP / enterprise BPM). Header `epc`; declare `event`, `function`, connectors `and`/`or`/`xor`, and the control flow between them. The engine validates strict event\u2194function alternation and connector legality (an event cannot be the source of an OR/XOR split). Distinct from `bpmn` and `flowchart` \u2014 a separate published standard with stricter rules.",
395
471
  cluster: "corporate-legal",
396
472
  standard: "ARIS / Keller, N\xFCttgens & Scheer (1992); see 44-EPC-STANDARD.md",
397
- syntaxKey: "epc"
473
+ syntaxKey: "epc",
474
+ aliases: [
475
+ "Event-driven Process Chain",
476
+ "EPC diagram",
477
+ "ARIS EPC",
478
+ "\u4E8B\u4EF6\u9A71\u52A8\u8FC7\u7A0B\u94FE"
479
+ ],
480
+ keywords: [
481
+ "ARIS",
482
+ "business process modeling",
483
+ "SAP",
484
+ "BPM",
485
+ "process chain",
486
+ "enterprise architecture",
487
+ "Scheer"
488
+ ]
398
489
  },
399
490
  {
400
491
  type: "idef0",
@@ -403,7 +494,23 @@ var DIAGRAM_REGISTRY = [
403
494
  useWhen: "Use to model what a system/process does and its inputs/controls/outputs/mechanisms \u2014 systems engineering, defence/government process docs, enterprise architecture. Header `idef0`; declare `function` boxes and ICOM arrows (`input`/`control`/`output`/`mechanism`) plus box\u2192box flows that name the target ICOM side. The engine enforces ICOM placement and assigns node numbers, in a diagonal box staircase.",
404
495
  cluster: "project-management",
405
496
  standard: "FIPS PUB 183 (1993) \xB7 SADT (Ross); see 45-IDEF0-STANDARD.md",
406
- syntaxKey: "idef0"
497
+ syntaxKey: "idef0",
498
+ aliases: [
499
+ "IDEF0",
500
+ "IDEF0 function model",
501
+ "SADT diagram",
502
+ "function model",
503
+ "ICOM diagram"
504
+ ],
505
+ keywords: [
506
+ "functional modeling",
507
+ "FIPS 183",
508
+ "systems engineering",
509
+ "activity model",
510
+ "ICOM",
511
+ "process model",
512
+ "enterprise architecture"
513
+ ]
407
514
  },
408
515
  {
409
516
  type: "threatmodel",
@@ -412,7 +519,25 @@ var DIAGRAM_REGISTRY = [
412
519
  useWhen: "Use for security threat modelling (Microsoft SDL / OWASP Threat Dragon workflow): DFD shapes (external entity, process, data store), labelled data flows, and `boundary` trust zones. Header `threatmodel`/`stride`. The engine maps each element type to its STRIDE categories (external = S,R; process = all six; store = T,I,D + conditional R for logs; flow = T,I,D) and accents flows crossing a trust boundary. Includes the DFD base notation (no separate `dfd` engine).",
413
520
  cluster: "network-infrastructure",
414
521
  standard: "Shostack, Threat Modeling (2014) STRIDE-per-element \xB7 Microsoft SDL \xB7 base DFD DeMarco/Yourdon; see 46-THREAT-MODEL-STRIDE-STANDARD.md + 31-DFD-STANDARD.md",
415
- syntaxKey: "threatmodel"
522
+ syntaxKey: "threatmodel",
523
+ aliases: [
524
+ "Threat model",
525
+ "STRIDE diagram",
526
+ "DFD threat model",
527
+ "data flow diagram",
528
+ "DFD",
529
+ "\u5A01\u80C1\u5EFA\u6A21"
530
+ ],
531
+ keywords: [
532
+ "STRIDE",
533
+ "security threat modeling",
534
+ "Microsoft SDL",
535
+ "OWASP Threat Dragon",
536
+ "trust boundary",
537
+ "attack surface",
538
+ "application security",
539
+ "Shostack"
540
+ ]
416
541
  },
417
542
  {
418
543
  type: "welding",
@@ -421,7 +546,24 @@ var DIAGRAM_REGISTRY = [
421
546
  useWhen: 'Use to annotate a welded joint on an engineering drawing: a horizontal reference line, a leader arrow to the joint, and a weld-symbol glyph above (other side) / below (arrow side) with size, length-pitch, groove angle, root opening, contour + finish. Header `welding [standard: aws|iso-a|iso-b]`; one `joint "label" { arrow: \u2026 other: \u2026 around field tail: \u2026 }` block per joint. Full glyph catalog (fillet, all groove types, plug/slot, spot/seam, back/backing, surfacing, edge) + weld-all-around, field flag, and tail process note. Validates illegal type/side/dimension combinations.',
422
547
  cluster: "electrical-industrial",
423
548
  standard: "AWS A2.4:2020 \xB7 ISO 2553:2019; see 47-WELDING-SYMBOL-STANDARD.md",
424
- syntaxKey: "welding"
549
+ syntaxKey: "welding",
550
+ aliases: [
551
+ "Welding symbols",
552
+ "weld symbol",
553
+ "welding callout",
554
+ "weld joint symbol",
555
+ "\u710A\u63A5\u7B26\u53F7"
556
+ ],
557
+ keywords: [
558
+ "AWS A2.4",
559
+ "ISO 2553",
560
+ "fillet weld",
561
+ "groove weld",
562
+ "weld notation",
563
+ "engineering drawing",
564
+ "fabrication",
565
+ "weld dimensions"
566
+ ]
425
567
  }
426
568
  ];
427
569
  var DIAGRAM_SINCE = {
@@ -4460,7 +4602,9 @@ function listDiagrams() {
4460
4602
  tagline: d.tagline,
4461
4603
  useWhen: d.useWhen,
4462
4604
  cluster: d.cluster,
4463
- standard: d.standard
4605
+ standard: d.standard,
4606
+ ...d.aliases ? { aliases: d.aliases } : {},
4607
+ ...d.keywords ? { keywords: d.keywords } : {}
4464
4608
  }));
4465
4609
  }
4466
4610
  function getSyntax(type, opts = {}) {
@@ -4563,5 +4707,5 @@ function repairHint(type) {
4563
4707
  }
4564
4708
 
4565
4709
  export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl };
4566
- //# sourceMappingURL=chunk-FLDHD4RM.js.map
4567
- //# sourceMappingURL=chunk-FLDHD4RM.js.map
4710
+ //# sourceMappingURL=chunk-S7GR77NY.js.map
4711
+ //# sourceMappingURL=chunk-S7GR77NY.js.map