proschi 0.8.0 → 0.10.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.
@@ -396,7 +396,7 @@
396
396
  },
397
397
  "section-keyword": {
398
398
  "name": "keyword.other.proschi",
399
- "match": "\\b(?:traffic|requirements|capacity|entity|decision|test|mix|durable|volatile|survive|because|rejected|calls|before|after|never|every|waits|for|starts|at|or|responds|writes|reads|responding|handles|failure|path|replicas|any|strong|eventual|store|in|scenario|latency|availability|cost|shards|consistency|bandwidth|egress|timeout|no|from|to|has|of|node|key|index|unique|optional|p50|p90|p95|p99|p999)\\b"
399
+ "match": "\\b(?:traffic|requirements|capacity|entity|decision|test|mix|durable|volatile|survive|because|rejected|calls|before|after|never|every|waits|for|starts|at|or|responds|writes|reads|responding|handles|failure|path|replicas|any|strong|eventual|store|in|scenario|latency|availability|cost|shards|size|consistency|bandwidth|egress|timeout|no|from|to|has|of|node|key|index|unique|optional|p50|p90|p95|p99|p999)\\b"
400
400
  },
401
401
  "quantity": {
402
402
  "comment": "A number with an optional fraction, magnitude and unit, attached or one space away: 120, 2.5, 50ms, 100k rps, 99.9%, 4xx, 500 MB/s, 0.05 usd/GB.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proschi",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Command-line checker and language server for Proschi architecture diagrams",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -51,6 +51,7 @@
51
51
  "esbuild": "^0.28.2",
52
52
  "fast-xml-parser": "^5.11.2",
53
53
  "lucide-react": "^0.454.0",
54
+ "lz-string": "^1.5.0",
54
55
  "react": "^19.3.0",
55
56
  "react-dom": "^19.3.0",
56
57
  "react-icons": "5.5.0",
@@ -20,6 +20,13 @@
20
20
  "$ref": "#/$defs/import"
21
21
  },
22
22
  "description": "Every `import` statement read, in any file; left out when there are none."
23
+ },
24
+ "blocks": {
25
+ "type": "array",
26
+ "items": {
27
+ "$ref": "#/$defs/block"
28
+ },
29
+ "description": "Where each top-level section block of the root document starts and ends, so tools can add lines to it; left out when there are none."
23
30
  }
24
31
  },
25
32
  "required": [
@@ -28,6 +35,37 @@
28
35
  ],
29
36
  "additionalProperties": false,
30
37
  "$defs": {
38
+ "block": {
39
+ "type": "object",
40
+ "properties": {
41
+ "kind": {
42
+ "enum": [
43
+ "traffic",
44
+ "requirements",
45
+ "capacity",
46
+ "entity",
47
+ "decision",
48
+ "test"
49
+ ]
50
+ },
51
+ "start": {
52
+ "type": "integer",
53
+ "minimum": 1,
54
+ "description": "1-based line of the block's opening line."
55
+ },
56
+ "end": {
57
+ "type": "integer",
58
+ "minimum": 1,
59
+ "description": "1-based line of its closing `}`."
60
+ }
61
+ },
62
+ "required": [
63
+ "kind",
64
+ "start",
65
+ "end"
66
+ ],
67
+ "additionalProperties": false
68
+ },
31
69
  "loc": {
32
70
  "type": "object",
33
71
  "description": "1-based source position.",
@@ -1064,6 +1102,14 @@
1064
1102
  "minimum": 1,
1065
1103
  "description": "Write capacity of single-primary stores scales with shards."
1066
1104
  },
1105
+ "size": {
1106
+ "enum": [
1107
+ "S",
1108
+ "M",
1109
+ "L"
1110
+ ],
1111
+ "description": "Instance size: scales the tech's default capacity (×1, ×2, ×4) and cost (×1, ×1.8, ×3.5)."
1112
+ },
1067
1113
  "consistency": {
1068
1114
  "enum": [
1069
1115
  "strong",