Skip to content

Commit 6accf8b

Browse files
committed
Merge commit 'cf1fb1942129b80c64d841c66eee2cee0d888fb6' as 'packages/lexicon'
2 parents 4a84f3e + cf1fb19 commit 6accf8b

File tree

22 files changed

+1302
-0
lines changed

22 files changed

+1302
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run checks
26+
run: npm run check

packages/lexicon/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.DS_Store

packages/lexicon/.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules/
2+
*.json
3+
!package.json
4+
!package-lock.json
5+
.git/
6+
.gitignore
7+
.DS_Store
8+
*.log
9+
results/
10+
bun.lockb
11+
lexicons/

packages/lexicon/ERD.png

43.7 KB
Loading

packages/lexicon/ERD.puml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
@startuml "HypercertERD"
2+
title "Hypercert ERD"
3+
4+
hide empty fields
5+
hide empty methods
6+
hide stereotypes
7+
8+
!define REVIEW_COLOR #FFFACD
9+
!define ARROW_COLOR #666666
10+
11+
<style>
12+
document {
13+
title {
14+
FontSize 24
15+
FontStyle bold
16+
}
17+
}
18+
classDiagram {
19+
arrow {
20+
LineColor ARROW_COLOR
21+
FontColor ARROW_COLOR
22+
FontSize 10
23+
}
24+
.largeBold {
25+
FontSize 20
26+
FontStyle bold
27+
}
28+
}
29+
</style>
30+
31+
entity contributors #FFD4A3
32+
dataclass "impact claim" as claim <<largeBold>> #B4E5D0
33+
dataclass evidence
34+
dataclass measurements
35+
dataclass evaluations
36+
dataclass contributions
37+
dataclass location
38+
dataclass rights
39+
dataclass "evidence review" as review_evidence #FFFACD
40+
dataclass "measurement review" as review_measurement #FFFACD
41+
dataclass "evaluation review" as review_evaluation #FFFACD
42+
dataclass "contribution review" as review_contribution #FFFACD
43+
protocol token <<largeBold>> #FFB6C1
44+
45+
evidence --> claim : supports
46+
measurements --> claim : quantifies
47+
measurements --> location : located by
48+
evidence --> location : located by
49+
evaluations --> evidence : evaluates
50+
evaluations --> measurements : evaluates
51+
rights --> claim : defines\nrights for
52+
claim <-- token : tokenizes
53+
contributors --> contributions : make
54+
contributors --> rights : have
55+
contributions --> claim : contributes to
56+
review_evidence --> evidence : evaluates
57+
review_measurement --> measurements : evaluates
58+
review_evaluation --> evaluations : evaluates
59+
review_contribution --> contributions : evaluates
60+
61+
@enduml
62+

packages/lexicon/ERD.svg

Lines changed: 1 addition & 0 deletions
Loading

packages/lexicon/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Hypercerts
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/lexicon/Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Makefile for generating PNG and SVG from PlantUML files
2+
3+
# Variables
4+
PUML_FILES = $(wildcard *.puml)
5+
PNG_FILES = $(PUML_FILES:.puml=.png)
6+
SVG_FILES = $(PUML_FILES:.puml=.svg)
7+
8+
# Default target
9+
.PHONY: all
10+
all: $(PNG_FILES) $(SVG_FILES)
11+
12+
# Rule to generate PNG from PUML
13+
%.png: %.puml Makefile
14+
@echo "Generating $@ from $<"
15+
plantuml -tpng -pipe < $< > $@
16+
17+
# Rule to generate SVG from PUML
18+
%.svg: %.puml Makefile
19+
@echo "Generating $@ from $<"
20+
plantuml -tsvg -pipe < $< > $@
21+
22+
.PHONY: clean
23+
clean:
24+
@echo "Cleaning generated PNG and SVG files..."
25+
@rm -f $(PNG_FILES) $(SVG_FILES)
26+
27+
.PHONY: help
28+
help:
29+
@echo "Available targets:"
30+
@echo " all - Generate all PNG and SVG files from PUML files"
31+
@echo " clean - Remove generated PNG and SVG files"
32+
@echo " help - Show this help message"
33+

0 commit comments

Comments
 (0)