schematex 0.8.1 → 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.
- package/dist/ai/ai-sdk.cjs +8 -8
- package/dist/ai/ai-sdk.d.cts +2 -2
- package/dist/ai/ai-sdk.d.ts +2 -2
- package/dist/ai/ai-sdk.js +3 -3
- package/dist/ai/index.cjs +14 -14
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +3 -3
- package/dist/browser.cjs +9 -9
- package/dist/browser.js +3 -3
- package/dist/{chunk-Q3SJB7H3.cjs → chunk-FQ4JUNTE.cjs} +170 -17
- package/dist/chunk-FQ4JUNTE.cjs.map +1 -0
- package/dist/{chunk-WNGOG4CI.js → chunk-GDZNTILD.js} +5 -3
- package/dist/chunk-GDZNTILD.js.map +1 -0
- package/dist/{chunk-KUITLG4N.cjs → chunk-LENRV7ZJ.cjs} +5 -3
- package/dist/chunk-LENRV7ZJ.cjs.map +1 -0
- package/dist/{chunk-J6AIKEVV.js → chunk-LM5X7ZNR.js} +3 -3
- package/dist/{chunk-J6AIKEVV.js.map → chunk-LM5X7ZNR.js.map} +1 -1
- package/dist/{chunk-YWYWVKRB.js → chunk-S7GR77NY.js} +168 -15
- package/dist/chunk-S7GR77NY.js.map +1 -0
- package/dist/{chunk-HBQFUZBD.cjs → chunk-UGB42BGK.cjs} +4 -4
- package/dist/{chunk-HBQFUZBD.cjs.map → chunk-UGB42BGK.cjs.map} +1 -1
- package/dist/diagrams/entity/index.cjs +5 -5
- package/dist/diagrams/entity/index.js +1 -1
- package/dist/index.cjs +34 -34
- package/dist/index.js +3 -3
- package/dist/react.cjs +3 -3
- package/dist/react.js +2 -2
- package/dist/{tools-CVgUmiGP.d.cts → tools-CjW8usJE.d.cts} +17 -0
- package/dist/{tools-CbBjmZVr.d.ts → tools-bqQ92FwC.d.ts} +17 -0
- package/package.json +1 -1
- package/dist/chunk-KUITLG4N.cjs.map +0 -1
- package/dist/chunk-Q3SJB7H3.cjs.map +0 -1
- package/dist/chunk-WNGOG4CI.js.map +0 -1
- package/dist/chunk-YWYWVKRB.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseResult, renderResult } from './chunk-
|
|
1
|
+
import { parseResult, renderResult } from './chunk-LM5X7ZNR.js';
|
|
2
2
|
|
|
3
3
|
// src/ai/registry.ts
|
|
4
4
|
var DIAGRAM_REGISTRY = [
|
|
@@ -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 = {
|
|
@@ -3771,8 +3913,17 @@ var PROFILES = {
|
|
|
3771
3913
|
type: "entity",
|
|
3772
3914
|
header: 'entity-structure "Title"',
|
|
3773
3915
|
mode: "legal entities + ownership edges",
|
|
3774
|
-
forms: [
|
|
3775
|
-
|
|
3916
|
+
forms: [
|
|
3917
|
+
'entity holdco "HoldCo" corp@US',
|
|
3918
|
+
'entity opco "OpCo" llc@DE',
|
|
3919
|
+
"holdco -> opco : 100%",
|
|
3920
|
+
'cluster "Group Name" [members: [holdco, opco]]'
|
|
3921
|
+
],
|
|
3922
|
+
prefer: [
|
|
3923
|
+
"Use `entity` declarations before ownership edges.",
|
|
3924
|
+
"Keep legal form and jurisdiction explicit when known.",
|
|
3925
|
+
'Group entities with `cluster "Name" [members: [id1, id2]]` \u2014 the members value MUST be a bracketed list.'
|
|
3926
|
+
],
|
|
3776
3927
|
avoid: ["Avoid database schema terminology; use `erd` for tables and FKs."],
|
|
3777
3928
|
repair: ["Unknown ownership endpoints need entity declarations."]
|
|
3778
3929
|
},
|
|
@@ -4451,7 +4602,9 @@ function listDiagrams() {
|
|
|
4451
4602
|
tagline: d.tagline,
|
|
4452
4603
|
useWhen: d.useWhen,
|
|
4453
4604
|
cluster: d.cluster,
|
|
4454
|
-
standard: d.standard
|
|
4605
|
+
standard: d.standard,
|
|
4606
|
+
...d.aliases ? { aliases: d.aliases } : {},
|
|
4607
|
+
...d.keywords ? { keywords: d.keywords } : {}
|
|
4455
4608
|
}));
|
|
4456
4609
|
}
|
|
4457
4610
|
function getSyntax(type, opts = {}) {
|
|
@@ -4554,5 +4707,5 @@ function repairHint(type) {
|
|
|
4554
4707
|
}
|
|
4555
4708
|
|
|
4556
4709
|
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl };
|
|
4557
|
-
//# sourceMappingURL=chunk-
|
|
4558
|
-
//# sourceMappingURL=chunk-
|
|
4710
|
+
//# sourceMappingURL=chunk-S7GR77NY.js.map
|
|
4711
|
+
//# sourceMappingURL=chunk-S7GR77NY.js.map
|