@ziamana/bruine 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 (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +315 -0
  3. package/THIRD_PARTY_NOTICES.md +24 -0
  4. package/cordis.patch.yml +166 -0
  5. package/dist/bin.js +5358 -0
  6. package/dist/compat.js +40 -0
  7. package/dist/plugins/approval.js +147 -0
  8. package/dist/plugins/headless.js +236 -0
  9. package/dist/plugins/herdr.js +470 -0
  10. package/dist/plugins/mcp.js +275 -0
  11. package/dist/plugins/modes.js +850 -0
  12. package/dist/plugins/render.js +3723 -0
  13. package/dist/plugins/repl.js +9589 -0
  14. package/dist/plugins/silence.js +234 -0
  15. package/dist/plugins/startup.js +42 -0
  16. package/dist/plugins/web-search.js +138 -0
  17. package/package.json +93 -0
  18. package/skills/code-review/SKILL.md +30 -0
  19. package/skills/git-workflow/SKILL.md +31 -0
  20. package/skills/impeccable/LICENSE +191 -0
  21. package/skills/impeccable/NOTICE.md +11 -0
  22. package/skills/impeccable/SKILL.md +87 -0
  23. package/skills/impeccable/reference/adapt.md +318 -0
  24. package/skills/impeccable/reference/adapt.native.md +58 -0
  25. package/skills/impeccable/reference/android.md +46 -0
  26. package/skills/impeccable/reference/animate.md +89 -0
  27. package/skills/impeccable/reference/audit.md +137 -0
  28. package/skills/impeccable/reference/audit.native.md +139 -0
  29. package/skills/impeccable/reference/bolder.md +33 -0
  30. package/skills/impeccable/reference/clarify.md +94 -0
  31. package/skills/impeccable/reference/colorize.md +86 -0
  32. package/skills/impeccable/reference/component-review.md +63 -0
  33. package/skills/impeccable/reference/craft-floor.md +44 -0
  34. package/skills/impeccable/reference/craft.md +5 -0
  35. package/skills/impeccable/reference/critique.md +806 -0
  36. package/skills/impeccable/reference/degraded/asset-producer.md +42 -0
  37. package/skills/impeccable/reference/degraded/documenter.md +24 -0
  38. package/skills/impeccable/reference/degraded/finish-reviewer.md +38 -0
  39. package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -0
  40. package/skills/impeccable/reference/delight.md +70 -0
  41. package/skills/impeccable/reference/distill.md +111 -0
  42. package/skills/impeccable/reference/doctor.md +54 -0
  43. package/skills/impeccable/reference/document.md +416 -0
  44. package/skills/impeccable/reference/extract.md +69 -0
  45. package/skills/impeccable/reference/generate.md +101 -0
  46. package/skills/impeccable/reference/harden.md +345 -0
  47. package/skills/impeccable/reference/hooks.md +113 -0
  48. package/skills/impeccable/reference/init.md +131 -0
  49. package/skills/impeccable/reference/ios.md +51 -0
  50. package/skills/impeccable/reference/layout.md +84 -0
  51. package/skills/impeccable/reference/live-setup.md +104 -0
  52. package/skills/impeccable/reference/live.md +325 -0
  53. package/skills/impeccable/reference/mode-operate.md +21 -0
  54. package/skills/impeccable/reference/mode-persuade.md +19 -0
  55. package/skills/impeccable/reference/mode-read.md +21 -0
  56. package/skills/impeccable/reference/new-work.md +154 -0
  57. package/skills/impeccable/reference/onboard.md +234 -0
  58. package/skills/impeccable/reference/operate.md +61 -0
  59. package/skills/impeccable/reference/optimize.md +258 -0
  60. package/skills/impeccable/reference/overdrive.md +127 -0
  61. package/skills/impeccable/reference/polish.md +105 -0
  62. package/skills/impeccable/reference/quieter.md +99 -0
  63. package/skills/impeccable/reference/region-map.md +26 -0
  64. package/skills/impeccable/reference/routing.md +24 -0
  65. package/skills/impeccable/reference/shape.md +59 -0
  66. package/skills/impeccable/reference/typeset.md +80 -0
  67. package/skills/impeccable/reference/visualize.md +46 -0
  68. package/skills/impeccable/scripts/VERSION +1 -0
  69. package/skills/impeccable/scripts/command-metadata.json +98 -0
  70. package/skills/impeccable/scripts/data/font-index-failures.json +121 -0
  71. package/skills/impeccable/scripts/data/font-index.json +1 -0
  72. package/skills/impeccable/scripts/impeccable +206 -0
  73. package/skills/impeccable/scripts/impeccable.cmd +214 -0
  74. package/skills/impeccable/scripts/live-browser-dom.js +167 -0
  75. package/skills/impeccable/scripts/live-browser-ignores.js +242 -0
  76. package/skills/impeccable/scripts/live-browser-session.js +148 -0
  77. package/skills/impeccable/scripts/live-browser.js +13510 -0
  78. package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
  79. package/skills/make-interfaces-feel-better/LICENSE +21 -0
  80. package/skills/make-interfaces-feel-better/SKILL.md +187 -0
  81. package/skills/make-interfaces-feel-better/agents/openai.yaml +3 -0
  82. package/skills/make-interfaces-feel-better/animations.md +403 -0
  83. package/skills/make-interfaces-feel-better/icons.md +63 -0
  84. package/skills/make-interfaces-feel-better/performance.md +88 -0
  85. package/skills/make-interfaces-feel-better/surfaces.md +256 -0
  86. package/skills/make-interfaces-feel-better/typography.md +157 -0
  87. package/skills/playwright-cli/LICENSE +201 -0
  88. package/skills/playwright-cli/SKILL.md +489 -0
  89. package/skills/playwright-cli/references/element-attributes.md +23 -0
  90. package/skills/playwright-cli/references/playwright-tests.md +39 -0
  91. package/skills/playwright-cli/references/pr-attachments.md +60 -0
  92. package/skills/playwright-cli/references/request-mocking.md +87 -0
  93. package/skills/playwright-cli/references/running-code.md +245 -0
  94. package/skills/playwright-cli/references/session-management.md +227 -0
  95. package/skills/playwright-cli/references/storage-state.md +275 -0
  96. package/skills/playwright-cli/references/test-generation.md +433 -0
  97. package/skills/playwright-cli/references/tracing.md +139 -0
  98. package/skills/playwright-cli/references/video-recording.md +216 -0
  99. package/skills/remotion/SKILL.md +42 -0
  100. package/skills/systematic-debugging/SKILL.md +26 -0
  101. package/skills/thermo-nuclear-code-quality-review/LICENSE +21 -0
  102. package/skills/thermo-nuclear-code-quality-review/SKILL.md +192 -0
  103. package/skills/write-tests/SKILL.md +35 -0
  104. package/skills/youtube-transcript/LICENSE +21 -0
  105. package/skills/youtube-transcript/SKILL.md +41 -0
  106. package/skills/youtube-transcript/package.json +8 -0
  107. package/skills/youtube-transcript/transcript.js +44 -0
@@ -0,0 +1,256 @@
1
+ # Surfaces
2
+
3
+ Border radius, optical alignment, shadows, and image outlines.
4
+
5
+ ## Concentric Border Radius
6
+
7
+ When nesting rounded elements, the outer radius must equal the inner radius plus the padding between them:
8
+
9
+ ```
10
+ outerRadius = innerRadius + padding
11
+ ```
12
+
13
+ This rule is most useful when nested surfaces are close together. If padding is larger than `24px`, treat the layers as separate surfaces and choose each radius independently instead of forcing strict concentric math.
14
+
15
+ ### Example
16
+
17
+ ```css
18
+ /* Good — concentric radii */
19
+ .card {
20
+ border-radius: 20px; /* 12 + 8 */
21
+ padding: 8px;
22
+ }
23
+ .card-inner {
24
+ border-radius: 12px;
25
+ }
26
+
27
+ /* Bad — same radius on both */
28
+ .card {
29
+ border-radius: 12px;
30
+ padding: 8px;
31
+ }
32
+ .card-inner {
33
+ border-radius: 12px;
34
+ }
35
+ ```
36
+
37
+ ### Tailwind Example
38
+
39
+ ```tsx
40
+ // Good — outer radius accounts for padding
41
+ <div className="rounded-2xl p-2"> {/* 16px radius, 8px padding */}
42
+ <div className="rounded-lg"> {/* 8px radius = 16 - 8 ✓ */}
43
+ ...
44
+ </div>
45
+ </div>
46
+
47
+ // Bad — same radius on both
48
+ <div className="rounded-xl p-2">
49
+ <div className="rounded-xl"> {/* same radius, looks off */}
50
+ ...
51
+ </div>
52
+ </div>
53
+ ```
54
+
55
+ Mismatched border radii on nested elements is one of the most common things that makes interfaces feel off. Always calculate concentrically.
56
+
57
+ ## Optical Alignment
58
+
59
+ When geometric centering looks off, align optically instead.
60
+
61
+ ### Buttons with Text + Icon
62
+
63
+ Use slightly less padding on the icon side to make the button feel balanced. A reliable rule of thumb is:
64
+ `icon-side padding = text-side padding - 2px`.
65
+
66
+ ```css
67
+ /* Good — less padding on icon side */
68
+ .button-with-icon {
69
+ padding-left: 16px;
70
+ padding-right: 14px; /* icon side = text side - 2px */
71
+ }
72
+
73
+ /* Bad — equal padding looks like icon is pushed too far right */
74
+ .button-with-icon {
75
+ padding: 0 16px;
76
+ }
77
+ ```
78
+
79
+ ```tsx
80
+ // Tailwind
81
+ <button className="pl-4 pr-3.5 flex items-center gap-2">
82
+ <span>Continue</span>
83
+ <ArrowRightIcon />
84
+ </button>
85
+ ```
86
+
87
+ ### Play Button Triangles
88
+
89
+ Play icons are triangular and their geometric center is not their visual center. Shift slightly right:
90
+
91
+ ```css
92
+ /* Good — optically centered */
93
+ .play-button svg {
94
+ margin-left: 2px; /* shift right to account for triangle shape */
95
+ }
96
+
97
+ /* Bad — geometrically centered but looks off */
98
+ .play-button svg {
99
+ /* no adjustment */
100
+ }
101
+ ```
102
+
103
+ ### Asymmetric Icons (Stars, Arrows, Carets)
104
+
105
+ Some icons have uneven visual weight. The best fix is adjusting the SVG directly so no extra margin/padding is needed in the component code.
106
+
107
+ ```tsx
108
+ // Best — fix in the SVG itself
109
+ // Adjust the viewBox or path to visually center the icon
110
+
111
+ // Fallback — adjust with margin
112
+ <span className="ml-px">
113
+ <StarIcon />
114
+ </span>
115
+ ```
116
+
117
+ ## Shadows Instead of Borders
118
+
119
+ For **buttons, cards, and containers** that use a border for depth or elevation, prefer replacing it with a subtle `box-shadow`. Shadows adapt to any background since they use transparency; solid borders don't. This also helps when using images or multiple colors as backgrounds — solid border colors don't work well on backgrounds other than the ones they were designed for.
120
+
121
+ **Do not apply this to dividers** (`border-b`, `border-t`, side borders) or any border whose purpose is layout separation rather than element depth. Those should stay as borders.
122
+
123
+ ### Shadow as Border (Light Mode)
124
+
125
+ The shadow is comprised of three layers. The first acts as a 1px border ring, the second adds subtle lift, and the third provides ambient depth:
126
+
127
+ ```css
128
+ :root {
129
+ --shadow-border:
130
+ 0px 0px 0px 1px oklch(0 0 0 / 0.06),
131
+ 0px 1px 2px -1px oklch(0 0 0 / 0.06),
132
+ 0px 2px 4px 0px oklch(0 0 0 / 0.04);
133
+ --shadow-border-hover:
134
+ 0px 0px 0px 1px oklch(0 0 0 / 0.08),
135
+ 0px 1px 2px -1px oklch(0 0 0 / 0.08),
136
+ 0px 2px 4px 0px oklch(0 0 0 / 0.06);
137
+ }
138
+ ```
139
+
140
+ ### Shadow as Border (Dark Mode)
141
+
142
+ In dark mode, simplify to a single white ring — layered depth shadows aren't visible on dark backgrounds:
143
+
144
+ ```css
145
+ /* Dark mode — adapt to whatever setup the project uses
146
+ (prefers-color-scheme, class, data attribute, etc.) */
147
+ --shadow-border: 0 0 0 1px oklch(1 0 0 / 0.08);
148
+ --shadow-border-hover: 0 0 0 1px oklch(1 0 0 / 0.13);
149
+ ```
150
+
151
+ ### Usage with Hover Transition
152
+
153
+ Apply the variable and add `transition-[box-shadow]` for a smooth hover:
154
+
155
+ ```css
156
+ .card {
157
+ box-shadow: var(--shadow-border);
158
+ transition-property: box-shadow;
159
+ transition-duration: 150ms;
160
+ transition-timing-function: ease-out;
161
+ }
162
+
163
+ .card:hover {
164
+ box-shadow: var(--shadow-border-hover);
165
+ }
166
+ ```
167
+
168
+ ### When to Use Shadows vs. Borders
169
+
170
+ | Use shadows | Use borders |
171
+ | --- | --- |
172
+ | Cards, containers with depth | Dividers between list items |
173
+ | Buttons with bordered styles | Table cell boundaries |
174
+ | Elevated elements (dropdowns, modals) | Form input outlines (for accessibility) |
175
+ | Elements on varied backgrounds | Hairline separators in dense UI |
176
+ | Hover/focus states for lift effect | |
177
+
178
+ ## Image Outlines
179
+
180
+ Add a subtle `1px` outline with low opacity to images. This creates consistent depth, especially in design systems where other elements use borders or shadows.
181
+
182
+ ### Color rules (non-negotiable)
183
+
184
+ - **Light mode**: pure black, `oklch(0 0 0 / 0.1)`.
185
+ - **Dark mode**: pure white, `oklch(1 0 0 / 0.1)`.
186
+ - Never use a near-black or near-white from the project palette (e.g. slate-900, zinc-900, `#0a0a0a`, `#111827`, `#f5f5f7`). Tinted outlines pick up the surrounding surface color and read as dirt on the image edge.
187
+ - Never match the outline to the project's accent or ink color. The outline is a neutral separator, not a themed element.
188
+
189
+ ### Light Mode
190
+
191
+ ```css
192
+ img {
193
+ outline: 1px solid oklch(0 0 0 / 0.1);
194
+ outline-offset: -1px; /* inset so it doesn't add to layout */
195
+ }
196
+ ```
197
+
198
+ ### Dark Mode
199
+
200
+ ```css
201
+ img {
202
+ outline: 1px solid oklch(1 0 0 / 0.1);
203
+ outline-offset: -1px;
204
+ }
205
+ ```
206
+
207
+ ### Tailwind with Dark Mode
208
+
209
+ ```tsx
210
+ <img
211
+ className="outline outline-1 -outline-offset-1 outline-black/10 dark:outline-white/10"
212
+ src={src}
213
+ alt={alt}
214
+ />
215
+ ```
216
+
217
+ Use `outline-black/10` and `outline-white/10` specifically — not `outline-slate-*`, `outline-zinc-*`, `outline-neutral-*`, or any tinted scale.
218
+
219
+ **Why outline instead of border?** `outline` doesn't affect layout (no added width/height), and `outline-offset: -1px` keeps it inset so images stay their intended size.
220
+
221
+ ## Minimum Hit Area
222
+
223
+ Interactive elements should prefer a 44×44px hit area for touch or mobile contexts. In dense desktop interfaces, use at least 40×40px. If the visible element is smaller (e.g., a 20×20 checkbox), extend the hit area with a pseudo-element.
224
+
225
+ ### CSS Example
226
+
227
+ ```css
228
+ /* Small checkbox with expanded 44px hit area */
229
+ .checkbox {
230
+ position: relative;
231
+ width: 20px;
232
+ height: 20px;
233
+ }
234
+
235
+ .checkbox::after {
236
+ content: "";
237
+ position: absolute;
238
+ top: 50%;
239
+ left: 50%;
240
+ transform: translate(-50%, -50%);
241
+ width: 44px;
242
+ height: 44px;
243
+ }
244
+ ```
245
+
246
+ ### Tailwind Example
247
+
248
+ ```tsx
249
+ <button className="relative size-5 after:absolute after:top-1/2 after:left-1/2 after:size-11 after:-translate-1/2">
250
+ <CheckIcon />
251
+ </button>
252
+ ```
253
+
254
+ ### Collision Rule
255
+
256
+ If the extended hit area overlaps another interactive element, shrink the pseudo-element — but make it as large as possible without colliding. Two interactive elements should never have overlapping hit areas.
@@ -0,0 +1,157 @@
1
+ # Typography
2
+
3
+ Typography rendering details that make interfaces feel better.
4
+
5
+ ## Text Wrapping
6
+
7
+ ### text-wrap: balance
8
+
9
+ Distributes text evenly across lines, preventing orphaned words on headings and short text blocks. **Only works on blocks of 6 lines or fewer** (Chromium) or 10 lines or fewer (Firefox) — the balancing algorithm is computationally expensive, so browsers limit it to short text.
10
+
11
+ ```css
12
+ /* Good — even line lengths on short text */
13
+ h1, h2, h3 {
14
+ text-wrap: balance;
15
+ }
16
+ ```
17
+
18
+ ```css
19
+ /* Bad — default wrapping leaves orphans */
20
+ h1 {
21
+ /* no text-wrap rule → "Read our
22
+ blog" instead of balanced lines */
23
+ }
24
+ ```
25
+
26
+ ```css
27
+ /* Bad — balance on long paragraphs (silently ignored, wastes intent) */
28
+ .article-body p {
29
+ text-wrap: balance;
30
+ }
31
+ ```
32
+
33
+ **Tailwind:** `text-balance`
34
+
35
+ ### text-wrap: pretty
36
+
37
+ Prevents orphaned words (a single word dangling on the last line) by adjusting line breaks throughout the paragraph. Unlike `balance`, it doesn't try to equalize line lengths — it just ensures the last line isn't embarrassingly short. Works on text of any length with no line-count limit.
38
+
39
+ This should be your **default for short-to-medium text** — paragraphs, descriptions, captions, list items, card text. For very long text (10+ lines), skip both `pretty` and `balance` — the browser's default wrapping is fine and you avoid unnecessary layout cost.
40
+
41
+ ```css
42
+ /* Good — descriptions, captions, short paragraphs */
43
+ p, li, figcaption, blockquote {
44
+ text-wrap: pretty;
45
+ }
46
+ ```
47
+
48
+ ```tsx
49
+ // Tailwind
50
+ <p className="text-pretty">
51
+ A short paragraph that won't leave an orphan on the last line.
52
+ </p>
53
+ ```
54
+
55
+ **Tailwind:** `text-pretty`
56
+
57
+ ### When to Use Which
58
+
59
+ | Scenario | Use |
60
+ | --- | --- |
61
+ | Headings, titles where even distribution matters | `text-wrap: balance` |
62
+ | Short-to-medium text — paragraphs, descriptions, captions, UI text | `text-wrap: pretty` |
63
+ | Long text (10+ lines), code blocks, pre-formatted text | Neither — leave default |
64
+
65
+ ## Font Smoothing (macOS)
66
+
67
+ On macOS, text renders heavier than intended by default. Apply antialiased smoothing to the root layout so all text renders crisper and thinner.
68
+
69
+ ```css
70
+ /* CSS */
71
+ html {
72
+ -webkit-font-smoothing: antialiased;
73
+ -moz-osx-font-smoothing: grayscale;
74
+ }
75
+ ```
76
+
77
+ ```tsx
78
+ // Tailwind — apply to root layout
79
+ <html className="antialiased">
80
+ ```
81
+
82
+ ### Good vs. Bad
83
+
84
+ ```css
85
+ /* Good — applied once at the root */
86
+ html {
87
+ -webkit-font-smoothing: antialiased;
88
+ }
89
+
90
+ /* Bad — applied per-element, inconsistent */
91
+ .heading {
92
+ -webkit-font-smoothing: antialiased;
93
+ }
94
+ .body {
95
+ /* no smoothing → heavier than heading */
96
+ }
97
+ ```
98
+
99
+ **Note:** This only affects macOS rendering. Other platforms ignore these properties, so it's safe to apply universally.
100
+
101
+ ## Font Family Scope
102
+
103
+ This skill does not require a specific font family. Do not introduce a paid or proprietary typeface just to satisfy the polish checklist.
104
+
105
+ Use the product's existing type system unless the task explicitly asks for a type change. If the design calls for a system-native macOS feel, use the system font stack. If the design calls for a commercial face such as Helvetica Now, treat it as an optional brand decision and keep a practical fallback stack.
106
+
107
+ ```css
108
+ /* System-native macOS/iOS feel */
109
+ html {
110
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
111
+ }
112
+ ```
113
+
114
+ ```css
115
+ /* Commercial brand face with safe fallbacks */
116
+ html {
117
+ font-family: "Helvetica Now", "Helvetica Neue", Arial, sans-serif;
118
+ }
119
+ ```
120
+
121
+ **Rule:** font smoothing, text wrapping, and tabular numbers are rendering details. They do not override the project's chosen font family.
122
+
123
+ ## Tabular Numbers
124
+
125
+ When numbers update dynamically (counters, prices, timers, table columns), use tabular-nums to make all digits equal width. This prevents layout shift as values change.
126
+
127
+ ```css
128
+ /* CSS */
129
+ .counter {
130
+ font-variant-numeric: tabular-nums;
131
+ }
132
+ ```
133
+
134
+ ```tsx
135
+ // Tailwind
136
+ <span className="tabular-nums">{count}</span>
137
+ ```
138
+
139
+ ### When to Use
140
+
141
+ | Use tabular-nums | Don't use tabular-nums |
142
+ | --- | --- |
143
+ | Counters and timers | Static display numbers |
144
+ | Prices that update | Decorative large numbers |
145
+ | Table columns with numbers | Phone numbers, zip codes |
146
+ | Animated number transitions | Version numbers (v2.1.0) |
147
+ | Scoreboards, dashboards | |
148
+
149
+ ### Caveat
150
+
151
+ Some fonts (like Inter) change the visual appearance of numerals with this property — specifically, the digit `1` becomes wider and centered. This is expected behavior and usually desirable for alignment, but verify it looks right in your specific font.
152
+
153
+ ```css
154
+ /* With Inter font:
155
+ Default: 1234 → proportional, "1" is narrow
156
+ Tabular: 1234 → all digits equal width, "1" centered */
157
+ ```
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright (c) Microsoft Corporation.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.