jorgex-stack 1.0.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 (124) hide show
  1. package/LICENSE +21 -0
  2. package/PRD.md +297 -0
  3. package/README.md +58 -0
  4. package/dist/cli.js +2894 -0
  5. package/package.json +51 -0
  6. package/stack/agents/README.md +33 -0
  7. package/stack/agents/backend-analyst.md +61 -0
  8. package/stack/agents/code-reviewer.md +66 -0
  9. package/stack/agents/code-simplifier.md +81 -0
  10. package/stack/agents/comment-fixer.md +54 -0
  11. package/stack/agents/docs-maintainer.md +88 -0
  12. package/stack/agents/engram.md +124 -0
  13. package/stack/agents/frontend-analyst.md +51 -0
  14. package/stack/agents/implementer.md +55 -0
  15. package/stack/agents/orchestrator.md +192 -0
  16. package/stack/agents/security-auditor.md +66 -0
  17. package/stack/agents/silent-failure-hunter.md +167 -0
  18. package/stack/agents/test-analyzer.md +91 -0
  19. package/stack/agents/tester.md +71 -0
  20. package/stack/agents/translator.md +101 -0
  21. package/stack/agents/type-design-analyzer.md +128 -0
  22. package/stack/commands/xreview.md +80 -0
  23. package/stack/config/defaults.json +37 -0
  24. package/stack/hooks/hooks.json +18 -0
  25. package/stack/mcp/servers.json +19 -0
  26. package/stack/plugins/opencode/engram.ts +378 -0
  27. package/stack/plugins/opencode/hooks.ts +766 -0
  28. package/stack/plugins/opencode/package.json +10 -0
  29. package/stack/plugins/opencode/worktree.ts +405 -0
  30. package/stack/scripts/post-pr-review.cjs +156 -0
  31. package/stack/skills/agent-browser/SKILL.md +55 -0
  32. package/stack/skills/agent-delegation/SKILL.md +58 -0
  33. package/stack/skills/deploy-to-vercel/SKILL.md +296 -0
  34. package/stack/skills/deploy-to-vercel/resources/deploy-codex.sh +301 -0
  35. package/stack/skills/deploy-to-vercel/resources/deploy.sh +301 -0
  36. package/stack/skills/diagnose/SKILL.md +117 -0
  37. package/stack/skills/diagnose/scripts/hitl-loop.template.sh +41 -0
  38. package/stack/skills/find-skills/SKILL.md +133 -0
  39. package/stack/skills/graphify/.graphify_version +1 -0
  40. package/stack/skills/graphify/SKILL.md +1319 -0
  41. package/stack/skills/mcp-builder/LICENSE.txt +202 -0
  42. package/stack/skills/mcp-builder/SKILL.md +236 -0
  43. package/stack/skills/mcp-builder/reference/evaluation.md +602 -0
  44. package/stack/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
  45. package/stack/skills/mcp-builder/reference/node_mcp_server.md +970 -0
  46. package/stack/skills/mcp-builder/reference/python_mcp_server.md +719 -0
  47. package/stack/skills/mcp-builder/scripts/connections.py +151 -0
  48. package/stack/skills/mcp-builder/scripts/evaluation.py +373 -0
  49. package/stack/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
  50. package/stack/skills/mcp-builder/scripts/requirements.txt +2 -0
  51. package/stack/skills/obsidian-cli/SKILL.md +106 -0
  52. package/stack/skills/obsidian-markdown/SKILL.md +196 -0
  53. package/stack/skills/obsidian-markdown/references/CALLOUTS.md +58 -0
  54. package/stack/skills/obsidian-markdown/references/EMBEDS.md +63 -0
  55. package/stack/skills/obsidian-markdown/references/PROPERTIES.md +61 -0
  56. package/stack/skills/react-doctor/SKILL.md +19 -0
  57. package/stack/skills/skill-creator/LICENSE.txt +202 -0
  58. package/stack/skills/skill-creator/SKILL.md +485 -0
  59. package/stack/skills/skill-creator/agents/analyzer.md +274 -0
  60. package/stack/skills/skill-creator/agents/comparator.md +202 -0
  61. package/stack/skills/skill-creator/agents/grader.md +223 -0
  62. package/stack/skills/skill-creator/assets/eval_review.html +146 -0
  63. package/stack/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  64. package/stack/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  65. package/stack/skills/skill-creator/references/schemas.md +430 -0
  66. package/stack/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  67. package/stack/skills/skill-creator/scripts/generate_report.py +326 -0
  68. package/stack/skills/skill-creator/scripts/improve_description.py +248 -0
  69. package/stack/skills/skill-creator/scripts/package_skill.py +136 -0
  70. package/stack/skills/skill-creator/scripts/quick_validate.py +103 -0
  71. package/stack/skills/skill-creator/scripts/run_eval.py +310 -0
  72. package/stack/skills/skill-creator/scripts/run_loop.py +332 -0
  73. package/stack/skills/skill-creator/scripts/utils.py +47 -0
  74. package/stack/skills/supabase/SKILL.md +135 -0
  75. package/stack/skills/supabase/assets/feedback-issue-template.md +17 -0
  76. package/stack/skills/supabase/references/skill-feedback.md +17 -0
  77. package/stack/skills/supabase-postgres-best-practices/SKILL.md +64 -0
  78. package/stack/skills/supabase-postgres-best-practices/references/_contributing.md +170 -0
  79. package/stack/skills/supabase-postgres-best-practices/references/_sections.md +39 -0
  80. package/stack/skills/supabase-postgres-best-practices/references/_template.md +34 -0
  81. package/stack/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -0
  82. package/stack/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
  83. package/stack/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -0
  84. package/stack/skills/supabase-postgres-best-practices/references/conn-limits.md +44 -0
  85. package/stack/skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -0
  86. package/stack/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -0
  87. package/stack/skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -0
  88. package/stack/skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -0
  89. package/stack/skills/supabase-postgres-best-practices/references/data-pagination.md +50 -0
  90. package/stack/skills/supabase-postgres-best-practices/references/data-upsert.md +50 -0
  91. package/stack/skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -0
  92. package/stack/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
  93. package/stack/skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -0
  94. package/stack/skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -0
  95. package/stack/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -0
  96. package/stack/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
  97. package/stack/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
  98. package/stack/skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -0
  99. package/stack/skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -0
  100. package/stack/skills/supabase-postgres-best-practices/references/query-index-types.md +48 -0
  101. package/stack/skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -0
  102. package/stack/skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -0
  103. package/stack/skills/supabase-postgres-best-practices/references/schema-constraints.md +80 -0
  104. package/stack/skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -0
  105. package/stack/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
  106. package/stack/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
  107. package/stack/skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -0
  108. package/stack/skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -0
  109. package/stack/skills/supabase-postgres-best-practices/references/security-privileges.md +54 -0
  110. package/stack/skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -0
  111. package/stack/skills/supabase-postgres-best-practices/references/security-rls-performance.md +63 -0
  112. package/stack/skills/tdd/SKILL.md +109 -0
  113. package/stack/skills/tdd/deep-modules.md +33 -0
  114. package/stack/skills/tdd/interface-design.md +31 -0
  115. package/stack/skills/tdd/mocking.md +59 -0
  116. package/stack/skills/tdd/refactoring.md +10 -0
  117. package/stack/skills/tdd/tests.md +61 -0
  118. package/stack/skills/to-issues/SKILL.md +83 -0
  119. package/stack/skills/to-prd/SKILL.md +72 -0
  120. package/stack/skills/work-lifecycle/SKILL.md +79 -0
  121. package/stack/skills/work-lifecycle/references/plan-template.md +185 -0
  122. package/stack/system-prompt/AGENTS.md +171 -0
  123. package/stack/system-prompt/engram-protocol.md +53 -0
  124. package/upstreams.json +96 -0
@@ -0,0 +1,196 @@
1
+ ---
2
+ name: obsidian-markdown
3
+ description: Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
4
+ ---
5
+
6
+ # Obsidian Flavored Markdown Skill
7
+
8
+ Create and edit valid Obsidian Flavored Markdown. Obsidian extends CommonMark and GFM with wikilinks, embeds, callouts, properties, comments, and other syntax. This skill covers only Obsidian-specific extensions -- standard Markdown (headings, bold, italic, lists, quotes, code blocks, tables) is assumed knowledge.
9
+
10
+ ## Workflow: Creating an Obsidian Note
11
+
12
+ 1. **Add frontmatter** with properties (title, tags, aliases) at the top of the file. See [PROPERTIES.md](references/PROPERTIES.md) for all property types.
13
+ 2. **Write content** using standard Markdown for structure, plus Obsidian-specific syntax below.
14
+ 3. **Link related notes** using wikilinks (`[[Note]]`) for internal vault connections, or standard Markdown links for external URLs.
15
+ 4. **Embed content** from other notes, images, or PDFs using the `![[embed]]` syntax. See [EMBEDS.md](references/EMBEDS.md) for all embed types.
16
+ 5. **Add callouts** for highlighted information using `> [!type]` syntax. See [CALLOUTS.md](references/CALLOUTS.md) for all callout types.
17
+ 6. **Verify** the note renders correctly in Obsidian's reading view.
18
+
19
+ > When choosing between wikilinks and Markdown links: use `[[wikilinks]]` for notes within the vault (Obsidian tracks renames automatically) and `[text](url)` for external URLs only.
20
+
21
+ ## Internal Links (Wikilinks)
22
+
23
+ ```markdown
24
+ [[Note Name]] Link to note
25
+ [[Note Name|Display Text]] Custom display text
26
+ [[Note Name#Heading]] Link to heading
27
+ [[Note Name#^block-id]] Link to block
28
+ [[#Heading in same note]] Same-note heading link
29
+ ```
30
+
31
+ Define a block ID by appending `^block-id` to any paragraph:
32
+
33
+ ```markdown
34
+ This paragraph can be linked to. ^my-block-id
35
+ ```
36
+
37
+ For lists and quotes, place the block ID on a separate line after the block:
38
+
39
+ ```markdown
40
+ > A quote block
41
+
42
+ ^quote-id
43
+ ```
44
+
45
+ ## Embeds
46
+
47
+ Prefix any wikilink with `!` to embed its content inline:
48
+
49
+ ```markdown
50
+ ![[Note Name]] Embed full note
51
+ ![[Note Name#Heading]] Embed section
52
+ ![[image.png]] Embed image
53
+ ![[image.png|300]] Embed image with width
54
+ ![[document.pdf#page=3]] Embed PDF page
55
+ ```
56
+
57
+ See [EMBEDS.md](references/EMBEDS.md) for audio, video, search embeds, and external images.
58
+
59
+ ## Callouts
60
+
61
+ ```markdown
62
+ > [!note]
63
+ > Basic callout.
64
+
65
+ > [!warning] Custom Title
66
+ > Callout with a custom title.
67
+
68
+ > [!faq]- Collapsed by default
69
+ > Foldable callout (- collapsed, + expanded).
70
+ ```
71
+
72
+ Common types: `note`, `tip`, `warning`, `info`, `example`, `quote`, `bug`, `danger`, `success`, `failure`, `question`, `abstract`, `todo`.
73
+
74
+ See [CALLOUTS.md](references/CALLOUTS.md) for the full list with aliases, nesting, and custom CSS callouts.
75
+
76
+ ## Properties (Frontmatter)
77
+
78
+ ```yaml
79
+ ---
80
+ title: My Note
81
+ date: 2024-01-15
82
+ tags:
83
+ - project
84
+ - active
85
+ aliases:
86
+ - Alternative Name
87
+ cssclasses:
88
+ - custom-class
89
+ ---
90
+ ```
91
+
92
+ Default properties: `tags` (searchable labels), `aliases` (alternative note names for link suggestions), `cssclasses` (CSS classes for styling).
93
+
94
+ See [PROPERTIES.md](references/PROPERTIES.md) for all property types, tag syntax rules, and advanced usage.
95
+
96
+ ## Tags
97
+
98
+ ```markdown
99
+ #tag Inline tag
100
+ #nested/tag Nested tag with hierarchy
101
+ ```
102
+
103
+ Tags can contain letters, numbers (not first character), underscores, hyphens, and forward slashes. Tags can also be defined in frontmatter under the `tags` property.
104
+
105
+ ## Comments
106
+
107
+ ```markdown
108
+ This is visible %%but this is hidden%% text.
109
+
110
+ %%
111
+ This entire block is hidden in reading view.
112
+ %%
113
+ ```
114
+
115
+ ## Obsidian-Specific Formatting
116
+
117
+ ```markdown
118
+ ==Highlighted text== Highlight syntax
119
+ ```
120
+
121
+ ## Math (LaTeX)
122
+
123
+ ```markdown
124
+ Inline: $e^{i\pi} + 1 = 0$
125
+
126
+ Block:
127
+ $$
128
+ \frac{a}{b} = c
129
+ $$
130
+ ```
131
+
132
+ ## Diagrams (Mermaid)
133
+
134
+ ````markdown
135
+ ```mermaid
136
+ graph TD
137
+ A[Start] --> B{Decision}
138
+ B -->|Yes| C[Do this]
139
+ B -->|No| D[Do that]
140
+ ```
141
+ ````
142
+
143
+ To link Mermaid nodes to Obsidian notes, add `class NodeName internal-link;`.
144
+
145
+ ## Footnotes
146
+
147
+ ```markdown
148
+ Text with a footnote[^1].
149
+
150
+ [^1]: Footnote content.
151
+
152
+ Inline footnote.^[This is inline.]
153
+ ```
154
+
155
+ ## Complete Example
156
+
157
+ ````markdown
158
+ ---
159
+ title: Project Alpha
160
+ date: 2024-01-15
161
+ tags:
162
+ - project
163
+ - active
164
+ status: in-progress
165
+ ---
166
+
167
+ # Project Alpha
168
+
169
+ This project aims to [[improve workflow]] using modern techniques.
170
+
171
+ > [!important] Key Deadline
172
+ > The first milestone is due on ==January 30th==.
173
+
174
+ ## Tasks
175
+
176
+ - [x] Initial planning
177
+ - [ ] Development phase
178
+ - [ ] Backend implementation
179
+ - [ ] Frontend design
180
+
181
+ ## Notes
182
+
183
+ The algorithm uses $O(n \log n)$ sorting. See [[Algorithm Notes#Sorting]] for details.
184
+
185
+ ![[Architecture Diagram.png|600]]
186
+
187
+ Reviewed in [[Meeting Notes 2024-01-10#Decisions]].
188
+ ````
189
+
190
+ ## References
191
+
192
+ - [Obsidian Flavored Markdown](https://help.obsidian.md/obsidian-flavored-markdown)
193
+ - [Internal links](https://help.obsidian.md/links)
194
+ - [Embed files](https://help.obsidian.md/embeds)
195
+ - [Callouts](https://help.obsidian.md/callouts)
196
+ - [Properties](https://help.obsidian.md/properties)
@@ -0,0 +1,58 @@
1
+ # Callouts Reference
2
+
3
+ ## Basic Callout
4
+
5
+ ```markdown
6
+ > [!note]
7
+ > This is a note callout.
8
+
9
+ > [!info] Custom Title
10
+ > This callout has a custom title.
11
+
12
+ > [!tip] Title Only
13
+ ```
14
+
15
+ ## Foldable Callouts
16
+
17
+ ```markdown
18
+ > [!faq]- Collapsed by default
19
+ > This content is hidden until expanded.
20
+
21
+ > [!faq]+ Expanded by default
22
+ > This content is visible but can be collapsed.
23
+ ```
24
+
25
+ ## Nested Callouts
26
+
27
+ ```markdown
28
+ > [!question] Outer callout
29
+ > > [!note] Inner callout
30
+ > > Nested content
31
+ ```
32
+
33
+ ## Supported Callout Types
34
+
35
+ | Type | Aliases | Color / Icon |
36
+ |------|---------|-------------|
37
+ | `note` | - | Blue, pencil |
38
+ | `abstract` | `summary`, `tldr` | Teal, clipboard |
39
+ | `info` | - | Blue, info |
40
+ | `todo` | - | Blue, checkbox |
41
+ | `tip` | `hint`, `important` | Cyan, flame |
42
+ | `success` | `check`, `done` | Green, checkmark |
43
+ | `question` | `help`, `faq` | Yellow, question mark |
44
+ | `warning` | `caution`, `attention` | Orange, warning |
45
+ | `failure` | `fail`, `missing` | Red, X |
46
+ | `danger` | `error` | Red, zap |
47
+ | `bug` | - | Red, bug |
48
+ | `example` | - | Purple, list |
49
+ | `quote` | `cite` | Gray, quote |
50
+
51
+ ## Custom Callouts (CSS)
52
+
53
+ ```css
54
+ .callout[data-callout="custom-type"] {
55
+ --callout-color: 255, 0, 0;
56
+ --callout-icon: lucide-alert-circle;
57
+ }
58
+ ```
@@ -0,0 +1,63 @@
1
+ # Embeds Reference
2
+
3
+ ## Embed Notes
4
+
5
+ ```markdown
6
+ ![[Note Name]]
7
+ ![[Note Name#Heading]]
8
+ ![[Note Name#^block-id]]
9
+ ```
10
+
11
+ ## Embed Images
12
+
13
+ ```markdown
14
+ ![[image.png]]
15
+ ![[image.png|640x480]] Width x Height
16
+ ![[image.png|300]] Width only (maintains aspect ratio)
17
+ ```
18
+
19
+ ## External Images
20
+
21
+ ```markdown
22
+ ![Alt text](https://example.com/image.png)
23
+ ![Alt text|300](https://example.com/image.png)
24
+ ```
25
+
26
+ ## Embed Audio
27
+
28
+ ```markdown
29
+ ![[audio.mp3]]
30
+ ![[audio.ogg]]
31
+ ```
32
+
33
+ ## Embed PDF
34
+
35
+ ```markdown
36
+ ![[document.pdf]]
37
+ ![[document.pdf#page=3]]
38
+ ![[document.pdf#height=400]]
39
+ ```
40
+
41
+ ## Embed Lists
42
+
43
+ ```markdown
44
+ ![[Note#^list-id]]
45
+ ```
46
+
47
+ Where the list has a block ID:
48
+
49
+ ```markdown
50
+ - Item 1
51
+ - Item 2
52
+ - Item 3
53
+
54
+ ^list-id
55
+ ```
56
+
57
+ ## Embed Search Results
58
+
59
+ ````markdown
60
+ ```query
61
+ tag:#project status:done
62
+ ```
63
+ ````
@@ -0,0 +1,61 @@
1
+ # Properties (Frontmatter) Reference
2
+
3
+ Properties use YAML frontmatter at the start of a note:
4
+
5
+ ```yaml
6
+ ---
7
+ title: My Note Title
8
+ date: 2024-01-15
9
+ tags:
10
+ - project
11
+ - important
12
+ aliases:
13
+ - My Note
14
+ - Alternative Name
15
+ cssclasses:
16
+ - custom-class
17
+ status: in-progress
18
+ rating: 4.5
19
+ completed: false
20
+ due: 2024-02-01T14:30:00
21
+ ---
22
+ ```
23
+
24
+ ## Property Types
25
+
26
+ | Type | Example |
27
+ |------|---------|
28
+ | Text | `title: My Title` |
29
+ | Number | `rating: 4.5` |
30
+ | Checkbox | `completed: true` |
31
+ | Date | `date: 2024-01-15` |
32
+ | Date & Time | `due: 2024-01-15T14:30:00` |
33
+ | List | `tags: [one, two]` or YAML list |
34
+ | Links | `related: "[[Other Note]]"` |
35
+
36
+ ## Default Properties
37
+
38
+ - `tags` - Note tags (searchable, shown in graph view)
39
+ - `aliases` - Alternative names for the note (used in link suggestions)
40
+ - `cssclasses` - CSS classes applied to the note in reading/editing view
41
+
42
+ ## Tags
43
+
44
+ ```markdown
45
+ #tag
46
+ #nested/tag
47
+ #tag-with-dashes
48
+ #tag_with_underscores
49
+ ```
50
+
51
+ Tags can contain: letters (any language), numbers (not first character), underscores `_`, hyphens `-`, forward slashes `/` (for nesting).
52
+
53
+ In frontmatter:
54
+
55
+ ```yaml
56
+ ---
57
+ tags:
58
+ - tag1
59
+ - nested/tag2
60
+ ---
61
+ ```
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: react-doctor
3
+ description: Run after making React changes to catch issues early. Use when reviewing code, finishing a feature, or fixing bugs in a React project.
4
+ version: 1.0.0
5
+ ---
6
+
7
+ # React Doctor
8
+
9
+ Scans your React codebase for security, performance, correctness, and architecture issues. Outputs a 0-100 score with actionable diagnostics.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ npx -y react-doctor@latest . --verbose --diff
15
+ ```
16
+
17
+ ## Workflow
18
+
19
+ Run after making changes to catch issues early. Fix errors first, then re-run to verify the score improved.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.