@codyswann/lisa 1.53.8 → 1.54.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 (39) hide show
  1. package/README.md +1 -1
  2. package/all/merge/.claude/settings.json +3 -2
  3. package/cdk/merge/.claude/settings.json +0 -1
  4. package/expo/merge/.claude/settings.json +1 -0
  5. package/nestjs/merge/.claude/settings.json +0 -1
  6. package/package.json +1 -1
  7. package/rails/merge/.claude/settings.json +0 -1
  8. package/scripts/install-claude-plugins.sh +11 -1
  9. package/typescript/merge/.claude/settings.json +0 -1
  10. package/plugins/lisa-cdk/skills/skill-creator/LICENSE.txt +0 -202
  11. package/plugins/lisa-cdk/skills/skill-creator/SKILL.md +0 -210
  12. package/plugins/lisa-cdk/skills/skill-creator/scripts/init_skill.py +0 -305
  13. package/plugins/lisa-cdk/skills/skill-creator/scripts/package_skill.py +0 -112
  14. package/plugins/lisa-cdk/skills/skill-creator/scripts/quick_validate.py +0 -67
  15. package/plugins/lisa-expo/skills/skill-creator/LICENSE.txt +0 -202
  16. package/plugins/lisa-expo/skills/skill-creator/SKILL.md +0 -210
  17. package/plugins/lisa-expo/skills/skill-creator/scripts/init_skill.py +0 -305
  18. package/plugins/lisa-expo/skills/skill-creator/scripts/package_skill.py +0 -112
  19. package/plugins/lisa-expo/skills/skill-creator/scripts/quick_validate.py +0 -67
  20. package/plugins/lisa-nestjs/skills/skill-creator/LICENSE.txt +0 -202
  21. package/plugins/lisa-nestjs/skills/skill-creator/SKILL.md +0 -210
  22. package/plugins/lisa-nestjs/skills/skill-creator/scripts/init_skill.py +0 -305
  23. package/plugins/lisa-nestjs/skills/skill-creator/scripts/package_skill.py +0 -112
  24. package/plugins/lisa-nestjs/skills/skill-creator/scripts/quick_validate.py +0 -67
  25. package/plugins/lisa-rails/skills/skill-creator/LICENSE.txt +0 -202
  26. package/plugins/lisa-rails/skills/skill-creator/SKILL.md +0 -210
  27. package/plugins/lisa-rails/skills/skill-creator/scripts/init_skill.py +0 -305
  28. package/plugins/lisa-rails/skills/skill-creator/scripts/package_skill.py +0 -112
  29. package/plugins/lisa-rails/skills/skill-creator/scripts/quick_validate.py +0 -67
  30. package/plugins/lisa-typescript/skills/skill-creator/LICENSE.txt +0 -202
  31. package/plugins/lisa-typescript/skills/skill-creator/SKILL.md +0 -210
  32. package/plugins/lisa-typescript/skills/skill-creator/scripts/init_skill.py +0 -305
  33. package/plugins/lisa-typescript/skills/skill-creator/scripts/package_skill.py +0 -112
  34. package/plugins/lisa-typescript/skills/skill-creator/scripts/quick_validate.py +0 -67
  35. package/plugins/src/base/skills/skill-creator/LICENSE.txt +0 -202
  36. package/plugins/src/base/skills/skill-creator/SKILL.md +0 -210
  37. package/plugins/src/base/skills/skill-creator/scripts/init_skill.py +0 -305
  38. package/plugins/src/base/skills/skill-creator/scripts/package_skill.py +0 -112
  39. package/plugins/src/base/skills/skill-creator/scripts/quick_validate.py +0 -67
@@ -1,305 +0,0 @@
1
- #!/usr/bin/env python3
2
- # This file is managed by Lisa.
3
- # Do not edit directly — changes will be overwritten on the next `lisa` run.
4
- """
5
- Skill Initializer - Creates a new skill from template
6
-
7
- Usage:
8
- init_skill.py <skill-name> --path <path>
9
-
10
- Examples:
11
- init_skill.py my-new-skill --path skills/public
12
- init_skill.py my-api-helper --path skills/private
13
- init_skill.py custom-skill --path /custom/location
14
- """
15
-
16
- import sys
17
- from pathlib import Path
18
-
19
-
20
- SKILL_TEMPLATE = """---
21
- name: {skill_name}
22
- description: [TODO: Complete and informative explanation of what the skill does and when to use it. Include WHEN to use this skill - specific scenarios, file types, or tasks that trigger it.]
23
- ---
24
-
25
- # {skill_title}
26
-
27
- ## Overview
28
-
29
- [TODO: 1-2 sentences explaining what this skill enables]
30
-
31
- ## Structuring This Skill
32
-
33
- [TODO: Choose the structure that best fits this skill's purpose. Common patterns:
34
-
35
- **1. Workflow-Based** (best for sequential processes)
36
- - Works well when there are clear step-by-step procedures
37
- - Example: DOCX skill with "Workflow Decision Tree" → "Reading" → "Creating" → "Editing"
38
- - Structure: ## Overview → ## Workflow Decision Tree → ## Step 1 → ## Step 2...
39
-
40
- **2. Task-Based** (best for tool collections)
41
- - Works well when the skill offers different operations/capabilities
42
- - Example: PDF skill with "Quick Start" → "Merge PDFs" → "Split PDFs" → "Extract Text"
43
- - Structure: ## Overview → ## Quick Start → ## Task Category 1 → ## Task Category 2...
44
-
45
- **3. Reference/Guidelines** (best for standards or specifications)
46
- - Works well for brand guidelines, coding standards, or requirements
47
- - Example: Brand styling with "Brand Guidelines" → "Colors" → "Typography" → "Features"
48
- - Structure: ## Overview → ## Guidelines → ## Specifications → ## Usage...
49
-
50
- **4. Capabilities-Based** (best for integrated systems)
51
- - Works well when the skill provides multiple interrelated features
52
- - Example: Product Management with "Core Capabilities" → numbered capability list
53
- - Structure: ## Overview → ## Core Capabilities → ### 1. Feature → ### 2. Feature...
54
-
55
- Patterns can be mixed and matched as needed. Most skills combine patterns (e.g., start with task-based, add workflow for complex operations).
56
-
57
- Delete this entire "Structuring This Skill" section when done - it's just guidance.]
58
-
59
- ## [TODO: Replace with the first main section based on chosen structure]
60
-
61
- [TODO: Add content here. See examples in existing skills:
62
- - Code samples for technical skills
63
- - Decision trees for complex workflows
64
- - Concrete examples with realistic user requests
65
- - References to scripts/templates/references as needed]
66
-
67
- ## Resources
68
-
69
- This skill includes example resource directories that demonstrate how to organize different types of bundled resources:
70
-
71
- ### scripts/
72
- Executable code (Python/Bash/etc.) that can be run directly to perform specific operations.
73
-
74
- **Examples from other skills:**
75
- - PDF skill: `fill_fillable_fields.py`, `extract_form_field_info.py` - utilities for PDF manipulation
76
- - DOCX skill: `document.py`, `utilities.py` - Python modules for document processing
77
-
78
- **Appropriate for:** Python scripts, shell scripts, or any executable code that performs automation, data processing, or specific operations.
79
-
80
- **Note:** Scripts may be executed without loading into context, but can still be read by Claude for patching or environment adjustments.
81
-
82
- ### references/
83
- Documentation and reference material intended to be loaded into context to inform Claude's process and thinking.
84
-
85
- **Examples from other skills:**
86
- - Product management: `communication.md`, `context_building.md` - detailed workflow guides
87
- - BigQuery: API reference documentation and query examples
88
- - Finance: Schema documentation, company policies
89
-
90
- **Appropriate for:** In-depth documentation, API references, database schemas, comprehensive guides, or any detailed information that Claude should reference while working.
91
-
92
- ### assets/
93
- Files not intended to be loaded into context, but rather used within the output Claude produces.
94
-
95
- **Examples from other skills:**
96
- - Brand styling: PowerPoint template files (.pptx), logo files
97
- - Frontend builder: HTML/React boilerplate project directories
98
- - Typography: Font files (.ttf, .woff2)
99
-
100
- **Appropriate for:** Templates, boilerplate code, document templates, images, icons, fonts, or any files meant to be copied or used in the final output.
101
-
102
- ---
103
-
104
- **Any unneeded directories can be deleted.** Not every skill requires all three types of resources.
105
- """
106
-
107
- EXAMPLE_SCRIPT = '''#!/usr/bin/env python3
108
- """
109
- Example helper script for {skill_name}
110
-
111
- This is a placeholder script that can be executed directly.
112
- Replace with actual implementation or delete if not needed.
113
-
114
- Example real scripts from other skills:
115
- - pdf/scripts/fill_fillable_fields.py - Fills PDF form fields
116
- - pdf/scripts/convert_pdf_to_images.py - Converts PDF pages to images
117
- """
118
-
119
- def main():
120
- print("This is an example script for {skill_name}")
121
- # TODO: Add actual script logic here
122
- # This could be data processing, file conversion, API calls, etc.
123
-
124
- if __name__ == "__main__":
125
- main()
126
- '''
127
-
128
- EXAMPLE_REFERENCE = """# Reference Documentation for {skill_title}
129
-
130
- This is a placeholder for detailed reference documentation.
131
- Replace with actual reference content or delete if not needed.
132
-
133
- Example real reference docs from other skills:
134
- - product-management/references/communication.md - Comprehensive guide for status updates
135
- - product-management/references/context_building.md - Deep-dive on gathering context
136
- - bigquery/references/ - API references and query examples
137
-
138
- ## When Reference Docs Are Useful
139
-
140
- Reference docs are ideal for:
141
- - Comprehensive API documentation
142
- - Detailed workflow guides
143
- - Complex multi-step processes
144
- - Information too lengthy for main SKILL.md
145
- - Content that's only needed for specific use cases
146
-
147
- ## Structure Suggestions
148
-
149
- ### API Reference Example
150
- - Overview
151
- - Authentication
152
- - Endpoints with examples
153
- - Error codes
154
- - Rate limits
155
-
156
- ### Workflow Guide Example
157
- - Prerequisites
158
- - Step-by-step instructions
159
- - Common patterns
160
- - Troubleshooting
161
- - Best practices
162
- """
163
-
164
- EXAMPLE_ASSET = """# Example Asset File
165
-
166
- This placeholder represents where asset files would be stored.
167
- Replace with actual asset files (templates, images, fonts, etc.) or delete if not needed.
168
-
169
- Asset files are NOT intended to be loaded into context, but rather used within
170
- the output Claude produces.
171
-
172
- Example asset files from other skills:
173
- - Brand guidelines: logo.png, slides_template.pptx
174
- - Frontend builder: hello-world/ directory with HTML/React boilerplate
175
- - Typography: custom-font.ttf, font-family.woff2
176
- - Data: sample_data.csv, test_dataset.json
177
-
178
- ## Common Asset Types
179
-
180
- - Templates: .pptx, .docx, boilerplate directories
181
- - Images: .png, .jpg, .svg, .gif
182
- - Fonts: .ttf, .otf, .woff, .woff2
183
- - Boilerplate code: Project directories, starter files
184
- - Icons: .ico, .svg
185
- - Data files: .csv, .json, .xml, .yaml
186
-
187
- Note: This is a text placeholder. Actual assets can be any file type.
188
- """
189
-
190
-
191
- def title_case_skill_name(skill_name):
192
- """Convert hyphenated skill name to Title Case for display."""
193
- return ' '.join(word.capitalize() for word in skill_name.split('-'))
194
-
195
-
196
- def init_skill(skill_name, path):
197
- """
198
- Initialize a new skill directory with template SKILL.md.
199
-
200
- Args:
201
- skill_name: Name of the skill
202
- path: Path where the skill directory should be created
203
-
204
- Returns:
205
- Path to created skill directory, or None if error
206
- """
207
- # Determine skill directory path
208
- skill_dir = Path(path).resolve() / skill_name
209
-
210
- # Check if directory already exists
211
- if skill_dir.exists():
212
- print(f"❌ Error: Skill directory already exists: {skill_dir}")
213
- return None
214
-
215
- # Create skill directory
216
- try:
217
- skill_dir.mkdir(parents=True, exist_ok=False)
218
- print(f"✅ Created skill directory: {skill_dir}")
219
- except Exception as e:
220
- print(f"❌ Error creating directory: {e}")
221
- return None
222
-
223
- # Create SKILL.md from template
224
- skill_title = title_case_skill_name(skill_name)
225
- skill_content = SKILL_TEMPLATE.format(
226
- skill_name=skill_name,
227
- skill_title=skill_title
228
- )
229
-
230
- skill_md_path = skill_dir / 'SKILL.md'
231
- try:
232
- skill_md_path.write_text(skill_content)
233
- print("✅ Created SKILL.md")
234
- except Exception as e:
235
- print(f"❌ Error creating SKILL.md: {e}")
236
- return None
237
-
238
- # Create resource directories with example files
239
- try:
240
- # Create scripts/ directory with example script
241
- scripts_dir = skill_dir / 'scripts'
242
- scripts_dir.mkdir(exist_ok=True)
243
- example_script = scripts_dir / 'example.py'
244
- example_script.write_text(EXAMPLE_SCRIPT.format(skill_name=skill_name))
245
- example_script.chmod(0o755)
246
- print("✅ Created scripts/example.py")
247
-
248
- # Create references/ directory with example reference doc
249
- references_dir = skill_dir / 'references'
250
- references_dir.mkdir(exist_ok=True)
251
- example_reference = references_dir / 'api_reference.md'
252
- example_reference.write_text(EXAMPLE_REFERENCE.format(skill_title=skill_title))
253
- print("✅ Created references/api_reference.md")
254
-
255
- # Create assets/ directory with example asset placeholder
256
- assets_dir = skill_dir / 'assets'
257
- assets_dir.mkdir(exist_ok=True)
258
- example_asset = assets_dir / 'example_asset.txt'
259
- example_asset.write_text(EXAMPLE_ASSET)
260
- print("✅ Created assets/example_asset.txt")
261
- except Exception as e:
262
- print(f"❌ Error creating resource directories: {e}")
263
- return None
264
-
265
- # Print next steps
266
- print(f"\n✅ Skill '{skill_name}' initialized successfully at {skill_dir}")
267
- print("\nNext steps:")
268
- print("1. Edit SKILL.md to complete the TODO items and update the description")
269
- print("2. Customize or delete the example files in scripts/, references/, and assets/")
270
- print("3. Run the validator when ready to check the skill structure")
271
-
272
- return skill_dir
273
-
274
-
275
- def main():
276
- if len(sys.argv) < 4 or sys.argv[2] != '--path':
277
- print("Usage: init_skill.py <skill-name> --path <path>")
278
- print("\nSkill name requirements:")
279
- print(" - Hyphen-case identifier (e.g., 'data-analyzer')")
280
- print(" - Lowercase letters, digits, and hyphens only")
281
- print(" - Max 40 characters")
282
- print(" - Must match directory name exactly")
283
- print("\nExamples:")
284
- print(" init_skill.py my-new-skill --path skills/public")
285
- print(" init_skill.py my-api-helper --path skills/private")
286
- print(" init_skill.py custom-skill --path /custom/location")
287
- sys.exit(1)
288
-
289
- skill_name = sys.argv[1]
290
- path = sys.argv[3]
291
-
292
- print(f"🚀 Initializing skill: {skill_name}")
293
- print(f" Location: {path}")
294
- print()
295
-
296
- result = init_skill(skill_name, path)
297
-
298
- if result:
299
- sys.exit(0)
300
- else:
301
- sys.exit(1)
302
-
303
-
304
- if __name__ == "__main__":
305
- main()
@@ -1,112 +0,0 @@
1
- #!/usr/bin/env python3
2
- # This file is managed by Lisa.
3
- # Do not edit directly — changes will be overwritten on the next `lisa` run.
4
- """
5
- Skill Packager - Creates a distributable zip file of a skill folder
6
-
7
- Usage:
8
- python utils/package_skill.py <path/to/skill-folder> [output-directory]
9
-
10
- Example:
11
- python utils/package_skill.py skills/public/my-skill
12
- python utils/package_skill.py skills/public/my-skill ./dist
13
- """
14
-
15
- import sys
16
- import zipfile
17
- from pathlib import Path
18
- from quick_validate import validate_skill
19
-
20
-
21
- def package_skill(skill_path, output_dir=None):
22
- """
23
- Package a skill folder into a zip file.
24
-
25
- Args:
26
- skill_path: Path to the skill folder
27
- output_dir: Optional output directory for the zip file (defaults to current directory)
28
-
29
- Returns:
30
- Path to the created zip file, or None if error
31
- """
32
- skill_path = Path(skill_path).resolve()
33
-
34
- # Validate skill folder exists
35
- if not skill_path.exists():
36
- print(f"❌ Error: Skill folder not found: {skill_path}")
37
- return None
38
-
39
- if not skill_path.is_dir():
40
- print(f"❌ Error: Path is not a directory: {skill_path}")
41
- return None
42
-
43
- # Validate SKILL.md exists
44
- skill_md = skill_path / "SKILL.md"
45
- if not skill_md.exists():
46
- print(f"❌ Error: SKILL.md not found in {skill_path}")
47
- return None
48
-
49
- # Run validation before packaging
50
- print("🔍 Validating skill...")
51
- valid, message = validate_skill(skill_path)
52
- if not valid:
53
- print(f"❌ Validation failed: {message}")
54
- print(" Please fix the validation errors before packaging.")
55
- return None
56
- print(f"✅ {message}\n")
57
-
58
- # Determine output location
59
- skill_name = skill_path.name
60
- if output_dir:
61
- output_path = Path(output_dir).resolve()
62
- output_path.mkdir(parents=True, exist_ok=True)
63
- else:
64
- output_path = Path.cwd()
65
-
66
- zip_filename = output_path / f"{skill_name}.zip"
67
-
68
- # Create the zip file
69
- try:
70
- with zipfile.ZipFile(zip_filename, 'w', zipfile.ZIP_DEFLATED) as zipf:
71
- # Walk through the skill directory
72
- for file_path in skill_path.rglob('*'):
73
- if file_path.is_file():
74
- # Calculate the relative path within the zip
75
- arcname = file_path.relative_to(skill_path.parent)
76
- zipf.write(file_path, arcname)
77
- print(f" Added: {arcname}")
78
-
79
- print(f"\n✅ Successfully packaged skill to: {zip_filename}")
80
- return zip_filename
81
-
82
- except Exception as e:
83
- print(f"❌ Error creating zip file: {e}")
84
- return None
85
-
86
-
87
- def main():
88
- if len(sys.argv) < 2:
89
- print("Usage: python utils/package_skill.py <path/to/skill-folder> [output-directory]")
90
- print("\nExample:")
91
- print(" python utils/package_skill.py skills/public/my-skill")
92
- print(" python utils/package_skill.py skills/public/my-skill ./dist")
93
- sys.exit(1)
94
-
95
- skill_path = sys.argv[1]
96
- output_dir = sys.argv[2] if len(sys.argv) > 2 else None
97
-
98
- print(f"📦 Packaging skill: {skill_path}")
99
- if output_dir:
100
- print(f" Output directory: {output_dir}")
101
- print()
102
-
103
- result = package_skill(skill_path, output_dir)
104
-
105
- if result:
106
- sys.exit(0)
107
- else:
108
- sys.exit(1)
109
-
110
-
111
- if __name__ == "__main__":
112
- main()
@@ -1,67 +0,0 @@
1
- #!/usr/bin/env python3
2
- # This file is managed by Lisa.
3
- # Do not edit directly — changes will be overwritten on the next `lisa` run.
4
- """
5
- Quick validation script for skills - minimal version
6
- """
7
-
8
- import sys
9
- import os
10
- import re
11
- from pathlib import Path
12
-
13
- def validate_skill(skill_path):
14
- """Basic validation of a skill"""
15
- skill_path = Path(skill_path)
16
-
17
- # Check SKILL.md exists
18
- skill_md = skill_path / 'SKILL.md'
19
- if not skill_md.exists():
20
- return False, "SKILL.md not found"
21
-
22
- # Read and validate frontmatter
23
- content = skill_md.read_text()
24
- if not content.startswith('---'):
25
- return False, "No YAML frontmatter found"
26
-
27
- # Extract frontmatter
28
- match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL)
29
- if not match:
30
- return False, "Invalid frontmatter format"
31
-
32
- frontmatter = match.group(1)
33
-
34
- # Check required fields
35
- if 'name:' not in frontmatter:
36
- return False, "Missing 'name' in frontmatter"
37
- if 'description:' not in frontmatter:
38
- return False, "Missing 'description' in frontmatter"
39
-
40
- # Extract name for validation
41
- name_match = re.search(r'name:\s*(.+)', frontmatter)
42
- if name_match:
43
- name = name_match.group(1).strip()
44
- # Check naming convention (hyphen-case: lowercase with hyphens)
45
- if not re.match(r'^[a-z0-9-]+$', name):
46
- return False, f"Name '{name}' should be hyphen-case (lowercase letters, digits, and hyphens only)"
47
- if name.startswith('-') or name.endswith('-') or '--' in name:
48
- return False, f"Name '{name}' cannot start/end with hyphen or contain consecutive hyphens"
49
-
50
- # Extract and validate description
51
- desc_match = re.search(r'description:\s*(.+)', frontmatter)
52
- if desc_match:
53
- description = desc_match.group(1).strip()
54
- # Check for angle brackets
55
- if '<' in description or '>' in description:
56
- return False, "Description cannot contain angle brackets (< or >)"
57
-
58
- return True, "Skill is valid!"
59
-
60
- if __name__ == "__main__":
61
- if len(sys.argv) != 2:
62
- print("Usage: python quick_validate.py <skill_directory>")
63
- sys.exit(1)
64
-
65
- valid, message = validate_skill(sys.argv[1])
66
- print(message)
67
- sys.exit(0 if valid else 1)
@@ -1,202 +0,0 @@
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.