reviewzy 0.1.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.
Files changed (46) hide show
  1. package/.env.example +30 -0
  2. package/LICENSE +661 -0
  3. package/README.md +170 -0
  4. package/bin/reviewzy +7 -0
  5. package/package.json +29 -0
  6. package/src/config.ts +76 -0
  7. package/src/daemon/app.ts +159 -0
  8. package/src/daemon/main.ts +103 -0
  9. package/src/daemon/origin.ts +60 -0
  10. package/src/dashboard/auth.ts +122 -0
  11. package/src/dashboard/mount.ts +373 -0
  12. package/src/dashboard/static/components.css +1116 -0
  13. package/src/dashboard/static/dashboard.css +182 -0
  14. package/src/dashboard/static/dashboard.js +169 -0
  15. package/src/dashboard/static/fonts/OFL-JetBrainsMono.txt +93 -0
  16. package/src/dashboard/static/fonts/OFL-Onest.txt +93 -0
  17. package/src/dashboard/static/fonts/jetbrainsmono-latin-ext.woff2 +0 -0
  18. package/src/dashboard/static/fonts/jetbrainsmono-latin.woff2 +0 -0
  19. package/src/dashboard/static/fonts/onest-cyrillic.woff2 +0 -0
  20. package/src/dashboard/static/fonts/onest-latin-ext.woff2 +0 -0
  21. package/src/dashboard/static/fonts/onest-latin.woff2 +0 -0
  22. package/src/dashboard/static/htmx.min.js +2 -0
  23. package/src/dashboard/static/tokens.css +213 -0
  24. package/src/dashboard/views.tsx +1388 -0
  25. package/src/db/human-save.ts +242 -0
  26. package/src/db/migrate.ts +71 -0
  27. package/src/db/migrations.ts +149 -0
  28. package/src/db/queries.ts +425 -0
  29. package/src/db/store.ts +83 -0
  30. package/src/db/style-guide.ts +236 -0
  31. package/src/db/sweep.ts +88 -0
  32. package/src/mcp/await-approved.ts +156 -0
  33. package/src/mcp/fetch-approved.ts +132 -0
  34. package/src/mcp/file-entries.ts +219 -0
  35. package/src/mcp/list-entries.ts +107 -0
  36. package/src/mcp/mark-applied.ts +103 -0
  37. package/src/mcp/route.ts +88 -0
  38. package/src/mcp/server.ts +59 -0
  39. package/src/mcp/style-guide-resource.ts +40 -0
  40. package/src/notify.ts +142 -0
  41. package/src/shim/daemon.ts +318 -0
  42. package/src/shim/lockfile.ts +153 -0
  43. package/src/shim/main.ts +172 -0
  44. package/src/shim/semver.ts +29 -0
  45. package/src/version.ts +4 -0
  46. package/tsconfig.json +26 -0
@@ -0,0 +1,182 @@
1
+ /* ============================================================
2
+ reviewzy — dashboard page styles
3
+ ============================================================ */
4
+
5
+ /* ---- Page shell (navbar shell per cloudy-ui) ---- */
6
+ .app-shell { min-height: 100vh; display: flex; flex-direction: column; }
7
+ .main { padding: var(--space-10) var(--space-12); max-width: 1400px; margin: 0 auto; width: 100%; }
8
+
9
+ /* ---- Page header: the eyebrow / title / lede triplet ---- */
10
+ .page-header { margin-bottom: var(--space-8); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
11
+ .page-eyebrow { color: var(--accent); margin-bottom: var(--space-2); }
12
+ .page-title { font: 550 var(--text-2xl)/1.15 var(--font-sans); color: var(--text); letter-spacing: -0.02em; margin-bottom: var(--space-3); }
13
+ .page-lede { font-size: var(--text-base); color: var(--text-dim); max-width: 540px; }
14
+
15
+ /* ---- Filter form ---- */
16
+ .filters { display: grid; grid-template-columns: minmax(0, 2fr) 200px 200px auto; gap: var(--space-3); align-items: end; margin-bottom: var(--space-8); }
17
+ @media (max-width: 768px) { .filters { grid-template-columns: 1fr; } }
18
+
19
+ /* ---- Entries region ---- */
20
+ /* The loading strip is hidden until htmx marks the request in flight (hx-indicator adds the
21
+ .htmx-request class); it sits beside the swap target, so a swap never removes it. */
22
+ #entries-loading { display: none; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-dim); padding: var(--space-2) 0; }
23
+ #entries-loading.htmx-request { display: flex; }
24
+ /* The spinner reuses the @keyframes spin components.css ships for .btn-loading. */
25
+ .spinner {
26
+ width: 12px; height: 12px;
27
+ border: 2px solid var(--line-strong);
28
+ border-top-color: var(--accent);
29
+ border-radius: 50%;
30
+ animation: spin 0.6s linear infinite;
31
+ flex-shrink: 0;
32
+ }
33
+
34
+ /* ---- Partial state ---- */
35
+ .partial-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
36
+ .partial-count { font-size: var(--text-sm); color: var(--text-dim); }
37
+
38
+ /* ---- Project groups ---- */
39
+ .project-group { margin-bottom: var(--space-10); }
40
+ .project-header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
41
+ .project-name { font: 500 var(--text-lg)/1.2 var(--font-mono); color: var(--text); letter-spacing: -0.01em; }
42
+ .batch { margin-bottom: var(--space-6); }
43
+ .batch-header { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-2); }
44
+ .batch-id { font: 400 var(--text-xs)/1 var(--font-mono); color: var(--text-faint); }
45
+
46
+ /* ---- Entry table cells ----
47
+ Paths, anchors, and constraint summaries are machine data, so they set the mono face;
48
+ long values ellipsize in place and keep the full value in the title attribute. */
49
+ .cell-file { max-width: 380px; }
50
+ .cell-anchor { max-width: 320px; }
51
+ .cell-text { max-width: 560px; }
52
+ .file-path, .anchor-text {
53
+ display: block;
54
+ font-family: var(--font-mono);
55
+ font-size: var(--text-xs);
56
+ line-height: 1.4;
57
+ color: var(--text-muted);
58
+ white-space: nowrap;
59
+ overflow: hidden;
60
+ text-overflow: ellipsis;
61
+ }
62
+ .entry-text {
63
+ display: -webkit-box;
64
+ -webkit-line-clamp: 2;
65
+ -webkit-box-orient: vertical;
66
+ overflow: hidden;
67
+ }
68
+ .cell-filedby { color: var(--text-dim); white-space: nowrap; }
69
+ .constraint-summary { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-dim); white-space: nowrap; }
70
+
71
+ /* ---- Row actions and batch approve ----
72
+ A control mid-request ignores further activations: htmx marks the requesting element with
73
+ .htmx-request while the request is in flight, and pointer-events drops the duplicate click a
74
+ double-click would otherwise fire. */
75
+ .htmx-request { pointer-events: none; }
76
+ .cell-select { width: 44px; }
77
+ .cell-select input[type="checkbox"] { accent-color: var(--accent); }
78
+ .cell-actions { white-space: nowrap; }
79
+ .cell-actions .btn + .btn { margin-left: var(--space-2); }
80
+ .batch-bar { display: flex; align-items: center; margin-bottom: var(--space-4); }
81
+ .notice-list { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
82
+
83
+ /* ---- Diff view: the anchored snippet vs the entry's text, mono on sunken, anchor line distinct ---- */
84
+ .diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-8); }
85
+ @media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr; } }
86
+ .diff-code {
87
+ font: 400 var(--text-sm)/1.6 var(--font-mono);
88
+ background: var(--bg-sunken);
89
+ border: 1px solid var(--line);
90
+ border-radius: var(--radius);
91
+ padding: var(--space-4);
92
+ white-space: pre-wrap;
93
+ word-break: break-word;
94
+ color: var(--text-muted);
95
+ margin: 0;
96
+ }
97
+ .diff-line { display: block; }
98
+ .diff-anchor {
99
+ background: var(--accent-soft);
100
+ border-left: 2px solid var(--accent);
101
+ color: var(--text);
102
+ padding-left: var(--space-2);
103
+ }
104
+
105
+ /* ---- Empty states ---- */
106
+ .empty-state { text-align: center; padding: var(--space-12) var(--space-6); }
107
+ .empty-icon { margin: 0 auto var(--space-4); width: 32px; height: 32px; color: var(--text-faint); display: flex; align-items: center; justify-content: center; }
108
+ .empty-state h3 { font: 500 var(--text-lg)/1.3 var(--font-sans); color: var(--text); margin-bottom: var(--space-2); }
109
+ .empty-state p { font-size: var(--text-sm); color: var(--text-dim); max-width: 420px; margin: 0 auto var(--space-4); }
110
+
111
+ /* ---- Error box (cloned from #error-box by dashboard.js) ---- */
112
+ .callout-content { min-width: 0; }
113
+ .callout-actions { margin-top: var(--space-2); }
114
+
115
+ /* ---- Entry editor ---- */
116
+ /* The one live region: present in the DOM, absent from layout, and never focusable. */
117
+ .visually-hidden {
118
+ position: absolute;
119
+ width: 1px;
120
+ height: 1px;
121
+ margin: -1px;
122
+ padding: 0;
123
+ overflow: hidden;
124
+ clip: rect(0 0 0 0);
125
+ white-space: nowrap;
126
+ border: 0;
127
+ }
128
+ .editor-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
129
+ .editor-main { min-width: 0; }
130
+ .editor-rail { display: flex; flex-direction: column; gap: var(--space-6); position: sticky; top: var(--space-8); }
131
+ @media (max-width: 900px) {
132
+ .editor-grid { grid-template-columns: 1fr; }
133
+ .editor-rail { position: static; }
134
+ }
135
+ #editor-region > .callout { margin-bottom: var(--space-4); }
136
+ #editor-region > .btn { margin-top: var(--space-4); }
137
+ .editor-actions { margin-top: var(--space-4); display: flex; align-items: center; gap: var(--space-2); }
138
+ /* The in-flight indicator for an approve or reject from the editor: htmx's own rules fade it in. */
139
+ .editor-actions .htmx-indicator { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-dim); }
140
+
141
+ /* Constraint panel: live count and placeholder checklist; the server owns the refusal. */
142
+ .constraint-row { display: flex; gap: var(--space-3); padding: 6px 0; }
143
+ .constraint-row + .constraint-row { border-top: 1px solid var(--line); }
144
+ .constraint-label { flex-shrink: 0; font: 450 11px/1.4 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); width: 96px; padding-top: 2px; }
145
+ .constraint-value { min-width: 0; color: var(--text-muted); font-size: var(--text-sm); }
146
+ .char-count { color: var(--text-muted); font-size: var(--text-sm); }
147
+ .char-count.over { color: var(--danger); }
148
+ .placeholder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
149
+ .placeholder-item { display: flex; align-items: center; gap: var(--space-2); }
150
+ .placeholder-state { font-size: var(--text-xs); color: var(--text-dim); min-width: 52px; }
151
+ .placeholder-state.is-present { color: var(--success); }
152
+ .placeholder-token { font: 400 var(--text-sm)/1 var(--font-mono); color: var(--text); background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 6px; }
153
+
154
+ /* Revision history: newest first; the text clamps like the list's entry text. */
155
+ .history-empty { font-size: var(--text-sm); color: var(--text-faint); padding: var(--space-2) 0; }
156
+ .revision-list { list-style: none; margin: 0; padding: 0; }
157
+ .revision { padding: var(--space-3) 0; }
158
+ .revision + .revision { border-top: 1px solid var(--line); }
159
+ .revision-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
160
+ .revision-time { font-size: var(--text-xs); color: var(--text-faint); }
161
+ .revision-head .btn { margin-left: auto; }
162
+ .revision-text {
163
+ display: -webkit-box;
164
+ -webkit-line-clamp: 2;
165
+ -webkit-box-orient: vertical;
166
+ overflow: hidden;
167
+ font-size: var(--text-sm);
168
+ color: var(--text-muted);
169
+ }
170
+
171
+ /* ---- Login page: the navbar shell, then one centered card ---- */
172
+ .login-main { display: flex; flex-direction: column; align-items: center; }
173
+ .login-main .page-header, .login-card { width: 100%; max-width: 400px; }
174
+ .login-card .card-content { display: flex; flex-direction: column; gap: var(--space-4); }
175
+ .login-actions { display: flex; justify-content: flex-end; }
176
+
177
+ /* ---- Style guide editor: the section selector, then the one card ---- */
178
+ .style-guide-projects { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
179
+ #style-guide-region > .callout { margin-bottom: var(--space-4); }
180
+ #style-guide-region > .btn { margin-top: var(--space-4); }
181
+ .style-guide-card .card-content { display: flex; flex-direction: column; gap: var(--space-5); }
182
+ .style-guide-card .editor-actions { margin-top: 0; }
@@ -0,0 +1,169 @@
1
+ // reviewzy dashboard behaviors. Load after htmx.min.js.
2
+ (() => {
3
+ "use strict";
4
+
5
+ // --- Navbar ink (cloudy-ui navbar component) ---
6
+ // Positions the sliding underline under the active link; re-positions on resize without animating.
7
+ const navbarNav = document.getElementById("navbar-nav");
8
+ const navbarInk = document.getElementById("navbar-ink");
9
+
10
+ function positionNavbarInk() {
11
+ if (!navbarNav || !navbarInk) return;
12
+ const active = navbarNav.querySelector(".navbar-link.active");
13
+ if (!active) {
14
+ navbarInk.style.opacity = "0";
15
+ return;
16
+ }
17
+ const navRect = navbarNav.getBoundingClientRect();
18
+ const linkRect = active.getBoundingClientRect();
19
+ navbarInk.style.left = `${linkRect.left - navRect.left}px`;
20
+ navbarInk.style.width = `${linkRect.width}px`;
21
+ navbarInk.style.opacity = "1";
22
+ }
23
+
24
+ window.addEventListener("resize", () => {
25
+ navbarInk.style.transition = "none";
26
+ positionNavbarInk();
27
+ requestAnimationFrame(() => {
28
+ navbarInk.style.transition = "";
29
+ });
30
+ });
31
+ requestAnimationFrame(positionNavbarInk);
32
+
33
+ // --- Filter errors ---
34
+ // A failed filter request (HTTP error or network error) replaces the list with the error box
35
+ // from the page's #error-box template; the retry button re-submits the filter form.
36
+ const form = document.getElementById("filters");
37
+ const list = document.getElementById("entries-list");
38
+ const errorTemplate = document.getElementById("error-box");
39
+
40
+ function showFilterError() {
41
+ if (!form || !list || !errorTemplate) return;
42
+ const box = errorTemplate.content.cloneNode(true);
43
+ const retry = box.querySelector("[data-retry]");
44
+ if (retry) {
45
+ retry.addEventListener("click", () => {
46
+ // htmx listens for submit directly on the form it processed, so a native requestSubmit
47
+ // reaches it; the reload fallback covers the case where htmx did not load.
48
+ if (typeof form.requestSubmit === "function") {
49
+ form.requestSubmit();
50
+ } else {
51
+ window.location.reload();
52
+ }
53
+ });
54
+ }
55
+ list.replaceChildren(box);
56
+ }
57
+
58
+ if (form) {
59
+ form.addEventListener("htmx:responseError", showFilterError);
60
+ form.addEventListener("htmx:sendError", showFilterError);
61
+ }
62
+
63
+ // --- Style guide save errors ---
64
+ // A failed save (HTTP error or network error) puts the error box from the page's
65
+ // #style-guide-error-box template above the form; the retry button re-submits the save form.
66
+ // Delegated on document: a successful swap replaces the form element, so listeners bound to it
67
+ // would die.
68
+ const styleGuideErrorTemplate = document.getElementById("style-guide-error-box");
69
+
70
+ function showStyleGuideError(event) {
71
+ if (!(event.target instanceof Element) || event.target.id !== "style-guide-form") return;
72
+ const region = document.getElementById("style-guide-region");
73
+ if (!region || !styleGuideErrorTemplate) return;
74
+ // The box goes above the form, never replacing it: the retry re-submits the very form the
75
+ // failed request came from, and a replacement would leave nothing to re-submit. A success or
76
+ // refusal swap replaces the whole region and takes the box with it; a repeated error drops
77
+ // the previous box first so the notices cannot stack.
78
+ region.querySelector("[data-style-guide-error]")?.remove();
79
+ const box = styleGuideErrorTemplate.content.cloneNode(true);
80
+ box.querySelector(".callout")?.setAttribute("data-style-guide-error", "");
81
+ const retry = box.querySelector("[data-retry]");
82
+ if (retry) {
83
+ retry.addEventListener("click", () => {
84
+ // htmx listens for submit directly on the form it processed, so a native requestSubmit
85
+ // reaches it; the reload fallback covers the case where htmx did not load.
86
+ const target = document.getElementById("style-guide-form");
87
+ if (target && typeof target.requestSubmit === "function") {
88
+ target.requestSubmit();
89
+ } else {
90
+ window.location.reload();
91
+ }
92
+ });
93
+ }
94
+ region.prepend(box);
95
+ }
96
+
97
+ document.addEventListener("htmx:responseError", showStyleGuideError);
98
+ document.addEventListener("htmx:sendError", showStyleGuideError);
99
+
100
+ // --- Editor live metrics ---
101
+ // The constraint panel lives outside the htmx swap region, so the char count and the placeholder
102
+ // checklist track the textarea as the user types. This is a convenience preview only: the server
103
+ // store layer owns the refusal, and the panel re-syncs on any swap.
104
+ function refreshEditorMetrics() {
105
+ const textarea = document.getElementById("editor-text");
106
+ if (!textarea) return;
107
+ const announcements = [];
108
+
109
+ const charCount = document.getElementById("char-count");
110
+ if (charCount) {
111
+ const max = Number(charCount.dataset.maxLen);
112
+ if (Number.isFinite(max)) {
113
+ const length = textarea.value.length;
114
+ const over = length > max;
115
+ const wasOver = charCount.classList.contains("over");
116
+ charCount.textContent = `${length} / ${max}`;
117
+ charCount.classList.toggle("over", over);
118
+ if (over !== wasOver) {
119
+ announcements.push(
120
+ over ? `Over the length limit of ${max} characters` : `Within the ${max} character limit`,
121
+ );
122
+ }
123
+ }
124
+ }
125
+
126
+ for (const item of document.querySelectorAll(".placeholder-item")) {
127
+ const placeholder = item.dataset.placeholder ?? "";
128
+ const present = textarea.value.includes(placeholder);
129
+ const state = item.querySelector(".placeholder-state");
130
+ if (state) {
131
+ const wasPresent = state.classList.contains("is-present");
132
+ state.textContent = present ? "Present" : "Missing";
133
+ state.classList.toggle("is-present", present);
134
+ if (present !== wasPresent) {
135
+ announcements.push(`Placeholder {${placeholder}} ${present ? "present" : "missing"}`);
136
+ }
137
+ }
138
+ }
139
+
140
+ // Announced flips only; the per-keystroke values themselves are never read aloud.
141
+ const live = document.getElementById("editor-live");
142
+ if (live && announcements.length > 0) {
143
+ live.textContent = `${announcements.join(". ")}.`;
144
+ }
145
+ }
146
+
147
+ document.addEventListener("input", (event) => {
148
+ if (event.target instanceof HTMLTextAreaElement && event.target.id === "editor-text") {
149
+ refreshEditorMetrics();
150
+ }
151
+ });
152
+
153
+ // A save swaps the editor region in; the textarea survives via hx-preserve, so one pass after
154
+ // the swap keeps the panel in sync with the value the server kept.
155
+ document.addEventListener("htmx:afterSwap", refreshEditorMetrics);
156
+
157
+ // "Use" on a revision loads its text into the editor and re-syncs the panel, ready to save.
158
+ document.addEventListener("click", (event) => {
159
+ const target = event.target instanceof Element ? event.target : null;
160
+ const useButton = target ? target.closest("[data-use-revision]") : null;
161
+ if (!useButton) return;
162
+ const textNode = useButton.closest(".revision")?.querySelector(".revision-text");
163
+ const textarea = document.getElementById("editor-text");
164
+ if (!textNode || !textarea) return;
165
+ textarea.value = textNode.textContent ?? "";
166
+ refreshEditorMetrics();
167
+ textarea.focus();
168
+ });
169
+ })();
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2021 The Onest Project Authors (https://github.com/googlefonts/onest)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.