proschi 0.11.0 → 0.13.0

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.
@@ -9,6 +9,9 @@
9
9
  {
10
10
  "include": "#comment"
11
11
  },
12
+ {
13
+ "include": "#system"
14
+ },
12
15
  {
13
16
  "include": "#section"
14
17
  },
@@ -515,6 +518,93 @@
515
518
  "include": "#identifier"
516
519
  }
517
520
  ]
521
+ },
522
+ "system": {
523
+ "comment": "`system id \"Name\" @Team { … }`: a team's design behind a contract. Inside it, `from \"path\"`, `expose id \"Name\" -> \"Use case\"` and `capacity { … }`.",
524
+ "name": "meta.block.system.proschi",
525
+ "begin": "^\\s*(system)\\s+([A-Za-z_][A-Za-z0-9_]*)(?=[^#]*\\{\\s*(?:#.*)?$)",
526
+ "end": "^\\s*(\\})",
527
+ "beginCaptures": {
528
+ "1": {
529
+ "name": "keyword.control.proschi"
530
+ },
531
+ "2": {
532
+ "name": "variable.other.node.proschi"
533
+ }
534
+ },
535
+ "endCaptures": {
536
+ "1": {
537
+ "name": "punctuation.section.block.end.proschi"
538
+ }
539
+ },
540
+ "patterns": [
541
+ {
542
+ "include": "#comment"
543
+ },
544
+ {
545
+ "include": "#section"
546
+ },
547
+ {
548
+ "match": "^\\s*(from)\\b(?:\\s+(\")([^\"]*)(\")?)?",
549
+ "captures": {
550
+ "1": {
551
+ "name": "keyword.control.import.proschi"
552
+ },
553
+ "2": {
554
+ "name": "punctuation.definition.string.begin.proschi"
555
+ },
556
+ "3": {
557
+ "name": "string.quoted.double.path.proschi"
558
+ },
559
+ "4": {
560
+ "name": "punctuation.definition.string.end.proschi"
561
+ }
562
+ }
563
+ },
564
+ {
565
+ "match": "^\\s*(expose)\\s+([A-Za-z_][A-Za-z0-9_]*)",
566
+ "captures": {
567
+ "1": {
568
+ "name": "keyword.control.proschi"
569
+ },
570
+ "2": {
571
+ "name": "variable.other.node.proschi"
572
+ }
573
+ }
574
+ },
575
+ {
576
+ "match": "^\\s*(capacity)(?=\\s*\\{)",
577
+ "captures": {
578
+ "1": {
579
+ "name": "keyword.control.proschi"
580
+ }
581
+ }
582
+ },
583
+ {
584
+ "include": "#section-keyword"
585
+ },
586
+ {
587
+ "include": "#quantity"
588
+ },
589
+ {
590
+ "include": "#string"
591
+ },
592
+ {
593
+ "include": "#team"
594
+ },
595
+ {
596
+ "include": "#style"
597
+ },
598
+ {
599
+ "include": "#position"
600
+ },
601
+ {
602
+ "include": "#arrow"
603
+ },
604
+ {
605
+ "include": "#brace"
606
+ }
607
+ ]
518
608
  }
519
609
  }
520
610
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proschi",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "description": "Command-line checker and language server for Proschi architecture diagrams",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,6 +38,7 @@
38
38
  "typecheck": "tsc --noEmit",
39
39
  "pretest": "node build.mjs",
40
40
  "test": "vitest run",
41
+ "docs:images": "node build.mjs && node scripts/docs-images.mjs",
41
42
  "package:vscode": "node build.mjs && cd vscode && vsce package --no-dependencies -o ../dist/proschi.vsix"
42
43
  },
43
44
  "devDependencies": {
@@ -50,13 +51,13 @@
50
51
  "elkjs": "^0.10.2",
51
52
  "esbuild": "^0.28.2",
52
53
  "fast-xml-parser": "^5.11.2",
53
- "lucide-react": "^0.454.0",
54
+ "lucide-react": "^1.61.0",
54
55
  "lz-string": "^1.5.0",
55
- "react": "^19.3.0",
56
- "react-dom": "^19.3.0",
57
- "react-icons": "5.5.0",
56
+ "react": "^19.3.1",
57
+ "react-dom": "^19.3.1",
58
+ "react-icons": "^5.7.0",
58
59
  "typescript": "~5.9.3",
59
- "vitest": "^3.2.7",
60
+ "vitest": "^5.0.5",
60
61
  "vscode-languageclient": "^10.1.2",
61
62
  "vscode-languageserver": "^10.1.2",
62
63
  "vscode-languageserver-textdocument": "^1.0.15",