supervaizer 0.9.6__py3-none-any.whl

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 (50) hide show
  1. supervaizer/__init__.py +88 -0
  2. supervaizer/__version__.py +10 -0
  3. supervaizer/account.py +304 -0
  4. supervaizer/account_service.py +87 -0
  5. supervaizer/admin/routes.py +1254 -0
  6. supervaizer/admin/templates/agent_detail.html +145 -0
  7. supervaizer/admin/templates/agents.html +175 -0
  8. supervaizer/admin/templates/agents_grid.html +80 -0
  9. supervaizer/admin/templates/base.html +233 -0
  10. supervaizer/admin/templates/case_detail.html +230 -0
  11. supervaizer/admin/templates/cases_list.html +182 -0
  12. supervaizer/admin/templates/cases_table.html +134 -0
  13. supervaizer/admin/templates/console.html +389 -0
  14. supervaizer/admin/templates/dashboard.html +153 -0
  15. supervaizer/admin/templates/job_detail.html +192 -0
  16. supervaizer/admin/templates/jobs_list.html +180 -0
  17. supervaizer/admin/templates/jobs_table.html +122 -0
  18. supervaizer/admin/templates/navigation.html +153 -0
  19. supervaizer/admin/templates/recent_activity.html +81 -0
  20. supervaizer/admin/templates/server.html +105 -0
  21. supervaizer/admin/templates/server_status_cards.html +121 -0
  22. supervaizer/agent.py +816 -0
  23. supervaizer/case.py +400 -0
  24. supervaizer/cli.py +135 -0
  25. supervaizer/common.py +283 -0
  26. supervaizer/event.py +181 -0
  27. supervaizer/examples/controller-template.py +195 -0
  28. supervaizer/instructions.py +145 -0
  29. supervaizer/job.py +379 -0
  30. supervaizer/job_service.py +155 -0
  31. supervaizer/lifecycle.py +417 -0
  32. supervaizer/parameter.py +173 -0
  33. supervaizer/protocol/__init__.py +11 -0
  34. supervaizer/protocol/a2a/__init__.py +21 -0
  35. supervaizer/protocol/a2a/model.py +227 -0
  36. supervaizer/protocol/a2a/routes.py +99 -0
  37. supervaizer/protocol/acp/__init__.py +21 -0
  38. supervaizer/protocol/acp/model.py +198 -0
  39. supervaizer/protocol/acp/routes.py +74 -0
  40. supervaizer/py.typed +1 -0
  41. supervaizer/routes.py +667 -0
  42. supervaizer/server.py +554 -0
  43. supervaizer/server_utils.py +54 -0
  44. supervaizer/storage.py +436 -0
  45. supervaizer/telemetry.py +81 -0
  46. supervaizer-0.9.6.dist-info/METADATA +245 -0
  47. supervaizer-0.9.6.dist-info/RECORD +50 -0
  48. supervaizer-0.9.6.dist-info/WHEEL +4 -0
  49. supervaizer-0.9.6.dist-info/entry_points.txt +2 -0
  50. supervaizer-0.9.6.dist-info/licenses/LICENSE.md +346 -0
@@ -0,0 +1,245 @@
1
+ Metadata-Version: 2.4
2
+ Name: supervaizer
3
+ Version: 0.9.6
4
+ Summary: Controller system for Supervaize
5
+ Project-URL: Homepage, https://supervaize.com
6
+ Project-URL: Repository, https://github.com/supervaize/supervaizer
7
+ Project-URL: Documentation, https://doc.supervaize.com
8
+ Author-email: Alain Prasquier - Supervaize <alain@supervaize.com>
9
+ License-Expression: MPL-2.0
10
+ License-File: LICENSE.md
11
+ Keywords: AI,agent,agentic,controller,supervaize,workflow
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Requires-Python: >=3.12
18
+ Requires-Dist: art>=6.5
19
+ Requires-Dist: cryptography>=45.0.6
20
+ Requires-Dist: demjson3>=3.0.6
21
+ Requires-Dist: deprecated>=1.2.18
22
+ Requires-Dist: fastapi>=0.116.1
23
+ Requires-Dist: httpx>=0.28.1
24
+ Requires-Dist: jinja2>=3.1.6
25
+ Requires-Dist: loguru>=0.7.3
26
+ Requires-Dist: orjson>=3.11.1
27
+ Requires-Dist: psutil>=6.1.0
28
+ Requires-Dist: pydantic>=2.11.7
29
+ Requires-Dist: pymongo>=4.14.0
30
+ Requires-Dist: python-slugify>=8.0.4
31
+ Requires-Dist: rich>=14.1.0
32
+ Requires-Dist: shortuuid>=1.0.13
33
+ Requires-Dist: sse-starlette>=3.0.2
34
+ Requires-Dist: tinydb>=4.8.1
35
+ Requires-Dist: typer>=0.16
36
+ Requires-Dist: uvicorn>=0.35.0
37
+ Provides-Extra: dev
38
+ Requires-Dist: hatch>=1.14.0; extra == 'dev'
39
+ Requires-Dist: jsonschema>=4.25.0; extra == 'dev'
40
+ Requires-Dist: mypy>=1.17.1; extra == 'dev'
41
+ Requires-Dist: pre-commit>=3.7.0; extra == 'dev'
42
+ Requires-Dist: pytest-asyncio>=1.1.0; extra == 'dev'
43
+ Requires-Dist: pytest-cov>=6.2.1; extra == 'dev'
44
+ Requires-Dist: pytest-mock>=3.14.1; extra == 'dev'
45
+ Requires-Dist: pytest-sugar>=1.0.0; extra == 'dev'
46
+ Requires-Dist: pytest>=8.4.1; extra == 'dev'
47
+ Requires-Dist: respx>=0.22.0; extra == 'dev'
48
+ Requires-Dist: ruff>=0.12.8; extra == 'dev'
49
+ Requires-Dist: types-deprecated>=1.2.15.20250304; extra == 'dev'
50
+ Requires-Dist: types-python-slugify>=8.0.2.20240310; extra == 'dev'
51
+ Description-Content-Type: text/markdown
52
+
53
+ # SUPERVAIZER
54
+
55
+ [[Operate AI Agents with confidence]]
56
+
57
+ A Python toolkit for building, managing, and connecting AI agents with full [Agent-to-Agent (A2A)](https://google.github.io/A2A/#/) and [Agent Communication Protocol (ACP)](https://github.com/i-am-bee/ACP) support.
58
+
59
+ [![Python Version](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue.svg)](https://www.python.org/downloads/)
60
+ [![Package Version](https://img.shields.io/badge/Supervaizer-0.9.6-yellow.svg)](https://github.com/supervaize/supervaizer)
61
+ [![A2A Protocol](https://img.shields.io/badge/A2A-Protocol-orange.svg)](https://google.github.io/A2A/)
62
+ [![ACP Protocol](https://img.shields.io/badge/ACP-Protocol-purple.svg)](https://github.com/i-am-bee/ACP)
63
+ [![Test Coverage](https://img.shields.io/badge/Coverage-81%25-brightgreen.svg)](https://github.com/supervaize/supervaizer)
64
+
65
+ - [SUPERVAIZER](#supervaizer)
66
+ - [Description](#description)
67
+ - [Quick Start](#quick-start)
68
+ - [What we'll do](#what-well-do)
69
+ - [1. Install Supervaizer](#1-install-supervaizer)
70
+ - [3. Scaffold the controller](#3-scaffold-the-controller)
71
+ - [(Optional) 4. Configure your Supervaize account \& environment](#optional-4-configure-your-supervaize-account--environment)
72
+ - [5. Start the server 🚀](#5-start-the-server-)
73
+ - [What's next?](#whats-next)
74
+ - [Features](#features)
75
+ - [Protocol Support](#protocol-support)
76
+ - [Using the CLI](#using-the-cli)
77
+ - [API Documentation \& User Interfaces](#api-documentation--user-interfaces)
78
+ - [Admin Interface (`/admin`)](#admin-interface-admin)
79
+ - [Quick Start](#quick-start-1)
80
+ - [Calculating costs](#calculating-costs)
81
+ - [Documentation](#documentation)
82
+ - [Contributing](#contributing)
83
+ - [License](#license)
84
+
85
+ ## Description
86
+
87
+ SUPERVAIZER is a toolkit built for the age of AI interoperability. At its core, it implements Google's Agent-to-Agent (A2A) protocol and IBM's Agent Communication Protocol (ACP), enabling seamless discovery and interaction between agents across different systems and platforms.
88
+
89
+ With comprehensive support for the A2A/ACP protocols, specification, SUPERVAIZER allows you to:
90
+
91
+ - Enhance the capabilities of your agents, making them automatically discoverable by other A2A/ACP compatible systems
92
+ - Expose standardized agent capabilities through agent cards
93
+ - Monitor agent health and status through dedicated endpoints
94
+ - Connect your agents to the growing ecosystem of A2A-compatible tools
95
+
96
+ Beyond A2A interoperability, SUPERVAIZER provides a robust API for agent registration, job control, event handling, telemetry, and more, making it a crucial component for building and managing AI agent systems.
97
+
98
+ ## Quick Start
99
+
100
+ Kickstart a **Python** agent with the **Supervaizer Controller** so it's discoverable and operable by Supervaize.
101
+
102
+ ### What we'll do
103
+
104
+ 1. **Install Supervaizer** in that project
105
+ 2. **Scaffold the controller** and map it to your agent
106
+ 3. **Configure secrets & env**, then **start** the server 🚀
107
+
108
+ ### 1. Install Supervaizer
109
+
110
+ First, navigate to your existing Python AI agent project. This could be built with any framework - LangChain, CrewAI, AutoGen, or your own custom implementation. Supervaizer works as a wrapper around your existing agent, regardless of the underlying framework you're using.
111
+
112
+ ```bash
113
+ pip install supervaizer
114
+ ```
115
+
116
+ ### 3. Scaffold the controller
117
+
118
+ Generate a starter controller in your project:
119
+
120
+ ```bash
121
+ supervaizer scaffold
122
+ # Success: Created an example file at supervaizer_control_example.py
123
+ ```
124
+
125
+ This creates **`supervaizer_control_example.py`**. You'll customize it to:
126
+
127
+ - Define **agent parameters** (secrets, env, required inputs)
128
+ - Define **agent methods** (start/stop/status, etc.)
129
+ - Map those methods to **your agent's functions**
130
+
131
+ ### (Optional) 4. Configure your Supervaize account & environment
132
+
133
+ Create your developer account on the [Supervaize platform](https://www.supervaize.com).
134
+
135
+ Create your API Key and collect your environment variables:
136
+
137
+ ```bash
138
+ export SUPERVAIZE_API_KEY=...
139
+ export SUPERVAIZE_WORKSPACE_ID=team_1
140
+ export SUPERVAIZE_API_URL=https://app.supervaize.com
141
+ ```
142
+
143
+ ### 5. Start the server 🚀
144
+
145
+ ```bash
146
+ # with the virtual environment active
147
+ supervaizer start
148
+ ```
149
+
150
+ Or run directly:
151
+
152
+ ```bash
153
+ python supervaizer_control.py
154
+ ```
155
+
156
+ Once the server is running, you'll have:
157
+
158
+ - **API docs**: `http://127.0.0.1:8000/docs` (Swagger) and `/redoc`
159
+ - **A2A discovery**: `/.well-known/agents.json`
160
+ - **ACP discovery**: `/agents`
161
+
162
+ ### What's next?
163
+
164
+ - Add more **custom methods** (`chat`, `custom`) to extend control
165
+ - Turn on **A2A / ACP** discovery for interoperability
166
+ - Hook your controller into Supervaize to **monitor, audit, and operate** the agent
167
+
168
+ For detailed instructions on customizing your controller, see the [Controller Setup Guide](https://doc.supervaize.com/docs/supervaizer-controller/controller-setup-guide).
169
+
170
+ ## Features
171
+
172
+ - **Agent Management**: Register, update, and control agents
173
+ - **Job Control**: Create, track, and manage jobs
174
+ - **Event Handling**: Process and respond to system events
175
+ - Protocol support
176
+ - **A2A Protocol **: Integration with Google's Agent-to-Agent protocol for interoperability
177
+ - **ACP Protocol **: Integration with IBM/BeeAI's Agent Communication Protocol for standardized agent discovery and interaction
178
+ - **Server Communication**: Interact with SUPERVAIZE servers (see [supervaize.com](https://www.supervaize.com) for more info)
179
+ - **Web Admin Interface**: Easy to use web-based admin dashboard for managing jobs, cases, and system monitoring
180
+
181
+ ## Protocol Support
182
+
183
+ SUPERVAIZER provides comprehensive support for multiple agent communication protocols. See [Protocol Documentation](docs/PROTOCOLS.md) for complete details.
184
+
185
+ ## Using the CLI
186
+
187
+ SUPERVAIZER includes a command-line interface to simplify setup and operation. See [CLI Documentation](docs/CLI.md) for complete details.
188
+
189
+ Also, check the list of [Environment variables](CLI.md#environment-variables).
190
+
191
+ ## API Documentation & User Interfaces
192
+
193
+ SUPERVAIZER provides multiple ways to interact with and explore the API. See [REST API Documentation](docs/REST_API.md) for complete details.
194
+
195
+ ### Admin Interface (`/admin`)
196
+
197
+ A comprehensive web-based admin interface for managing your SUPERVAIZER instance
198
+ See [Admin documentation](docs/ADMIN_README.md)
199
+
200
+ #### Quick Start
201
+
202
+ ```python
203
+ from supervaizer import Server, Agent
204
+
205
+ # Create server with admin interface
206
+ server = Server(
207
+ agents=[your_agents],
208
+ api_key="your-secure-api-key", # Required for admin interface
209
+ admin_interface=True, # Enable admin interface (default: True)
210
+ )
211
+
212
+ server.launch()
213
+ print(f"Admin Interface: http://localhost:8000/admin/")
214
+ ```
215
+
216
+ # Calculating costs
217
+
218
+ Developers are free to define the cost of the transaction the way they want when updating the cases.
219
+ Here is a way to easily get an estimate of the cost of an LLM transaction (note that litellm also supports custom pricing. )
220
+
221
+ ```python
222
+ from litellm import completion_cost
223
+ prompt = "Explain how transformers work."
224
+ output = "Transformers use attention mechanisms..."
225
+ model = "gpt-4"
226
+ cost = completion_cost(model=model, prompt=prompt, completion=output)
227
+ print(cost)
228
+ ```
229
+
230
+ A list of costs is maintained here:
231
+ `https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json`
232
+
233
+ ## Documentation
234
+
235
+ For a full tutorial and example usage, go to [doc.supervaize.com](https://doc.supervaize.com)
236
+
237
+ ## Contributing
238
+
239
+ We welcome contributions from the community! Whether you're fixing bugs, adding features, improving documentation, or sharing feedback, your contributions help make SUPERVAIZER better for everyone.
240
+
241
+ Please see our [Contributing Guidelines](CONTRIBUTING.md) for details on how to get started, coding standards, and the contribution process.
242
+
243
+ ## License
244
+
245
+ This project is licensed under the [Mozilla Public License 2.0](LICENSE.md) License.
@@ -0,0 +1,50 @@
1
+ supervaizer/__init__.py,sha256=PpLbTZ8lvkdlCJclSpKRY-hd2BRzyRCkM6EakPvDotg,2258
2
+ supervaizer/__version__.py,sha256=P5q-vbIJ6gYh8YeXbnMNybqM8jnl5-Een9rwKuxVzqs,347
3
+ supervaizer/account.py,sha256=O9Rz5MjvMBPw5oJ4yD2kXKnwgcl_QU73pO0jjhE-cHk,10880
4
+ supervaizer/account_service.py,sha256=7iDnaTUwPApnNY_QnXwNxAWKABF2yPNekr4UGGxZdjg,2867
5
+ supervaizer/agent.py,sha256=ph3-kXj9KEGLDBifvcBYmxmJlNDfPQwbRUFu65hfIFM,29946
6
+ supervaizer/case.py,sha256=hNmklwtXYr-c3CHpGAP8mKjhdvFboZYJKen-b587AjI,12887
7
+ supervaizer/cli.py,sha256=RT79Ph8liWJV5cMfcaVYPfcZcXIjYZ-8ntG9j7bU74Y,4706
8
+ supervaizer/common.py,sha256=tKio7xDjfm2Vtqz1Ijb16OpiK0A44Cwge8xTLRXoMU8,8471
9
+ supervaizer/event.py,sha256=2aupUV1HkF0-nBFVmO5ddvj9jb4MiWr2MCxEamHFhx4,5516
10
+ supervaizer/instructions.py,sha256=L0uoZXg8N4PnLxJiqBgD4Pbce-hHTDUx1yImRbtNZNg,4146
11
+ supervaizer/job.py,sha256=XGrKMar3Kzv_197ZcLD0iBOg-b7ZoEOMmm95W74Axgk,12814
12
+ supervaizer/job_service.py,sha256=p7Dq_iy5G37Dj8l0MCLSWuYBbGg34vKq9T8jAegwi8g,4719
13
+ supervaizer/lifecycle.py,sha256=5CunJN7MsM5blyNiFMJMLFDUBmTmmAsPE24QC-gSbYA,13958
14
+ supervaizer/parameter.py,sha256=V1yxAOjcFz_JFDBI5ML_QwHQZqtOCdTh_LF9XjSI56s,5728
15
+ supervaizer/routes.py,sha256=zB4AZ1gRDDl7V4UX9kzz8Rpf0oHy3IcC-uXE1PYxFsI,24142
16
+ supervaizer/server.py,sha256=pDMGqSzpLr23EUtSreksJ9OD_NxO0sTiFwXb4bmfuhA,20753
17
+ supervaizer/server_utils.py,sha256=FMglpADQBJynkR2v-pfwANu6obsaPvR9j0BQc5Otpac,1590
18
+ supervaizer/storage.py,sha256=JO2pczuuJkQtk9o14_7z8yRV_q3bEir3Dtl6ejPIixY,14276
19
+ supervaizer/telemetry.py,sha256=XSYw8ZwoY8W6C7mhwHU67t7trJzWd7CBkkSNdsDT_HA,2596
20
+ supervaizer/admin/routes.py,sha256=Jc4xqLi9rSELkL9hJvDnyzFjFpqToQf99duy__Ic2BE,44298
21
+ supervaizer/admin/templates/agent_detail.html,sha256=DFOGfjuQNC39FOLYUW_jD0A01WpBY1umatGCslyJ0_c,7581
22
+ supervaizer/admin/templates/agents.html,sha256=rOKot2CCCZp83dQINyjAFzjWHSiCUHBgyC2qtOjHs0I,9016
23
+ supervaizer/admin/templates/agents_grid.html,sha256=qIrXwaOyn5mrlnqopP2HkpCTHkV2OvSTCoT-LCDXmsI,5727
24
+ supervaizer/admin/templates/base.html,sha256=ZGS-6IxGRYK41E5Jp3MVrGSwCugg8AVHtW21kKCBDvo,10405
25
+ supervaizer/admin/templates/case_detail.html,sha256=cJ4TUJI3ix3a-veb4g0Tp0AY-uJr0SducK70MZPFsZQ,13848
26
+ supervaizer/admin/templates/cases_list.html,sha256=UV4SfULzxNiOpG8aNddablpwf6hVNpRbAc6dgTmp6_E,9324
27
+ supervaizer/admin/templates/cases_table.html,sha256=VyL5mEF003FTNHym1UYBD8JkvhA9wR328ciTKNKxdb8,6619
28
+ supervaizer/admin/templates/console.html,sha256=tLGGf8vHjGK77Il6SYlgparoU_xz3nbvNpGVQRkVNCc,13966
29
+ supervaizer/admin/templates/dashboard.html,sha256=3Pu5bR78QUcPNp5MyXkyibfp-wxYdJyyf77v3O_f_hU,7873
30
+ supervaizer/admin/templates/job_detail.html,sha256=LDTMWLURyVCp7SMTxQ4M8AFqNpbbUVUx253negp9JNA,10790
31
+ supervaizer/admin/templates/jobs_list.html,sha256=VJ2VYe62dHXvjQQgUAVyKcn58rO5919UuP3VKgxLVhM,9136
32
+ supervaizer/admin/templates/jobs_table.html,sha256=BCOI_7QlxJ5XOra7WKou48a2lNwQYASCMFTtgzHNotw,5974
33
+ supervaizer/admin/templates/navigation.html,sha256=bHzJ2FVjPCmtnFyfe8P58kGXv02KZvQhiBHDw5Sr-WQ,10523
34
+ supervaizer/admin/templates/recent_activity.html,sha256=hL06GXF1a-C_tkj3pRLrDTTDqG0KplcWMZFengFMuEc,4843
35
+ supervaizer/admin/templates/server.html,sha256=m3qIQsEojogXQKTSD6ljKj4_lrwaLJTpTbMpfnWZHxU,5650
36
+ supervaizer/admin/templates/server_status_cards.html,sha256=yJ36hkfgQpscYkiaodFDQPnmJWeb2W7gey09Z3T6JsY,7882
37
+ supervaizer/examples/controller-template.py,sha256=TiXBoA7EKa2REGsXllQVE6QJh4jKc0DSsbVs2SXx8n0,6280
38
+ supervaizer/protocol/__init__.py,sha256=6cwvhmXjJM8Slsdsgu0Hxsi1-fTdcxD4VXQo0DUpPwg,401
39
+ supervaizer/protocol/a2a/__init__.py,sha256=1ACfPGLzS6XdZPiFxn1nVamvbasqtJJ7U1BBbSmT-nI,625
40
+ supervaizer/protocol/a2a/model.py,sha256=sWzatlA_fcva_fdtM8Yh4cioRq0KbwV5AXpNCnsOtQo,7198
41
+ supervaizer/protocol/a2a/routes.py,sha256=XcvA5ohszIh3Rz8Jw4AElozuLugKsWefwpDerp8wB54,3935
42
+ supervaizer/protocol/acp/__init__.py,sha256=rcZDUP63T2zSWfwiDklYn1JuFOSkkO2fQVeyc8UKl4E,615
43
+ supervaizer/protocol/acp/model.py,sha256=Ar4GViZyx5HNa7E3hBC_drkR43S3M70kq1K4C1cwCU0,6354
44
+ supervaizer/protocol/acp/routes.py,sha256=GzjCZlpmvPddTwpvXOa7Nq5lx6lUmFEvONvx8sOzu8M,2719
45
+ supervaizer/py.typed,sha256=bHhvLx7c6MqrzXVPbdK3qAOcSxzp4wDtTx4QifMC2EY,74
46
+ supervaizer-0.9.6.dist-info/METADATA,sha256=wnnN9pD4w1Dyo2fPzFjMWNfVjZYeb5bF0IvU3XI7CNY,9851
47
+ supervaizer-0.9.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
48
+ supervaizer-0.9.6.dist-info/entry_points.txt,sha256=vL_IBR_AeEI2u2-6YL4PY9k2Mar4-gprG8-UxERWjmg,52
49
+ supervaizer-0.9.6.dist-info/licenses/LICENSE.md,sha256=dmdnt1vfpxNPr8Lt0BnxKE5uzUwK3CWTthTUStgOXjY,15327
50
+ supervaizer-0.9.6.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ supervaizer = supervaizer.cli:app
@@ -0,0 +1,346 @@
1
+ # Mozilla Public License Version 2.0
2
+
3
+ ### 1. Definitions
4
+
5
+ **1.1. “Contributor”**
6
+ means each individual or legal entity that creates, contributes to
7
+ the creation of, or owns Covered Software.
8
+
9
+ **1.2. “Contributor Version”**
10
+ means the combination of the Contributions of others (if any) used
11
+ by a Contributor and that particular Contributor's Contribution.
12
+
13
+ **1.3. “Contribution”**
14
+ means Covered Software of a particular Contributor.
15
+
16
+ **1.4. “Covered Software”**
17
+ means Source Code Form to which the initial Contributor has attached
18
+ the notice in Exhibit A, the Executable Form of such Source Code
19
+ Form, and Modifications of such Source Code Form, in each case
20
+ including portions thereof.
21
+
22
+ **1.5. “Incompatible With Secondary Licenses”**
23
+ means
24
+
25
+ - **(a)** that the initial Contributor has attached the notice described
26
+ in Exhibit B to the Covered Software; or
27
+ - **(b)** that the Covered Software was made available under the terms of
28
+ version 1.1 or earlier of the License, but not also under the
29
+ terms of a Secondary License.
30
+
31
+ **1.6. “Executable Form”**
32
+ means any form of the work other than Source Code Form.
33
+
34
+ **1.7. “Larger Work”**
35
+ means a work that combines Covered Software with other material, in
36
+ a separate file or files, that is not Covered Software.
37
+
38
+ **1.8. “License”**
39
+ means this document.
40
+
41
+ **1.9. “Licensable”**
42
+ means having the right to grant, to the maximum extent possible,
43
+ whether at the time of the initial grant or subsequently, any and
44
+ all of the rights conveyed by this License.
45
+
46
+ **1.10. “Modifications”**
47
+ means any of the following:
48
+
49
+ - **(a)** any file in Source Code Form that results from an addition to,
50
+ deletion from, or modification of the contents of Covered
51
+ Software; or
52
+ - **(b)** any new file in Source Code Form that contains any Covered
53
+ Software.
54
+
55
+ **1.11. “Patent Claims” of a Contributor**
56
+ means any patent claim(s), including without limitation, method,
57
+ process, and apparatus claims, in any patent Licensable by such
58
+ Contributor that would be infringed, but for the grant of the
59
+ License, by the making, using, selling, offering for sale, having
60
+ made, import, or transfer of either its Contributions or its
61
+ Contributor Version.
62
+
63
+ **1.12. “Secondary License”**
64
+ means either the GNU General Public License, Version 2.0, the GNU
65
+ Lesser General Public License, Version 2.1, the GNU Affero General
66
+ Public License, Version 3.0, or any later versions of those
67
+ licenses.
68
+
69
+ **1.13. “Source Code Form”**
70
+ means the form of the work preferred for making modifications.
71
+
72
+ **1.14. “You” (or “Your”)**
73
+ means an individual or a legal entity exercising rights under this
74
+ License. For legal entities, “You” includes any entity that
75
+ controls, is controlled by, or is under common control with You. For
76
+ purposes of this definition, “control” means **(a)** the power, direct
77
+ or indirect, to cause the direction or management of such entity,
78
+ whether by contract or otherwise, or **(b)** ownership of more than
79
+ fifty percent (50%) of the outstanding shares or beneficial
80
+ ownership of such entity.
81
+
82
+ ### 2. License Grants and Conditions
83
+
84
+ #### 2.1. Grants
85
+
86
+ Each Contributor hereby grants You a world-wide, royalty-free,
87
+ non-exclusive license:
88
+
89
+ - **(a)** under intellectual property rights (other than patent or trademark)
90
+ Licensable by such Contributor to use, reproduce, make available,
91
+ modify, display, perform, distribute, and otherwise exploit its
92
+ Contributions, either on an unmodified basis, with Modifications, or
93
+ as part of a Larger Work; and
94
+ - **(b)** under Patent Claims of such Contributor to make, use, sell, offer
95
+ for sale, have made, import, and otherwise transfer either its
96
+ Contributions or its Contributor Version.
97
+
98
+ #### 2.2. Effective Date
99
+
100
+ The licenses granted in Section 2.1 with respect to any Contribution
101
+ become effective for each Contribution on the date the Contributor first
102
+ distributes such Contribution.
103
+
104
+ #### 2.3. Limitations on Grant Scope
105
+
106
+ The licenses granted in this Section 2 are the only rights granted under
107
+ this License. No additional rights or licenses will be implied from the
108
+ distribution or licensing of Covered Software under this License.
109
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
110
+ Contributor:
111
+
112
+ - **(a)** for any code that a Contributor has removed from Covered Software;
113
+ or
114
+ - **(b)** for infringements caused by: **(i)** Your and any other third party's
115
+ modifications of Covered Software, or **(ii)** the combination of its
116
+ Contributions with other software (except as part of its Contributor
117
+ Version); or
118
+ - **(c)** under Patent Claims infringed by Covered Software in the absence of
119
+ its Contributions.
120
+
121
+ This License does not grant any rights in the trademarks, service marks,
122
+ or logos of any Contributor (except as may be necessary to comply with
123
+ the notice requirements in Section 3.4).
124
+
125
+ #### 2.4. Subsequent Licenses
126
+
127
+ No Contributor makes additional grants as a result of Your choice to
128
+ distribute the Covered Software under a subsequent version of this
129
+ License (see Section 10.2) or under the terms of a Secondary License (if
130
+ permitted under the terms of Section 3.3).
131
+
132
+ #### 2.5. Representation
133
+
134
+ Each Contributor represents that the Contributor believes its
135
+ Contributions are its original creation(s) or it has sufficient rights
136
+ to grant the rights to its Contributions conveyed by this License.
137
+
138
+ #### 2.6. Fair Use
139
+
140
+ This License is not intended to limit any rights You have under
141
+ applicable copyright doctrines of fair use, fair dealing, or other
142
+ equivalents.
143
+
144
+ #### 2.7. Conditions
145
+
146
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
147
+ in Section 2.1.
148
+
149
+ ### 3. Responsibilities
150
+
151
+ #### 3.1. Distribution of Source Form
152
+
153
+ All distribution of Covered Software in Source Code Form, including any
154
+ Modifications that You create or to which You contribute, must be under
155
+ the terms of this License. You must inform recipients that the Source
156
+ Code Form of the Covered Software is governed by the terms of this
157
+ License, and how they can obtain a copy of this License. You may not
158
+ attempt to alter or restrict the recipients' rights in the Source Code
159
+ Form.
160
+
161
+ #### 3.2. Distribution of Executable Form
162
+
163
+ If You distribute Covered Software in Executable Form then:
164
+
165
+ - **(a)** such Covered Software must also be made available in Source Code
166
+ Form, as described in Section 3.1, and You must inform recipients of
167
+ the Executable Form how they can obtain a copy of such Source Code
168
+ Form by reasonable means in a timely manner, at a charge no more
169
+ than the cost of distribution to the recipient; and
170
+
171
+ - **(b)** You may distribute such Executable Form under the terms of this
172
+ License, or sublicense it under different terms, provided that the
173
+ license for the Executable Form does not attempt to limit or alter
174
+ the recipients' rights in the Source Code Form under this License.
175
+
176
+ #### 3.3. Distribution of a Larger Work
177
+
178
+ You may create and distribute a Larger Work under terms of Your choice,
179
+ provided that You also comply with the requirements of this License for
180
+ the Covered Software. If the Larger Work is a combination of Covered
181
+ Software with a work governed by one or more Secondary Licenses, and the
182
+ Covered Software is not Incompatible With Secondary Licenses, this
183
+ License permits You to additionally distribute such Covered Software
184
+ under the terms of such Secondary License(s), so that the recipient of
185
+ the Larger Work may, at their option, further distribute the Covered
186
+ Software under the terms of either this License or such Secondary
187
+ License(s).
188
+
189
+ #### 3.4. Notices
190
+
191
+ You may not remove or alter the substance of any license notices
192
+ (including copyright notices, patent notices, disclaimers of warranty,
193
+ or limitations of liability) contained within the Source Code Form of
194
+ the Covered Software, except that You may alter any license notices to
195
+ the extent required to remedy known factual inaccuracies.
196
+
197
+ #### 3.5. Application of Additional Terms
198
+
199
+ You may choose to offer, and to charge a fee for, warranty, support,
200
+ indemnity or liability obligations to one or more recipients of Covered
201
+ Software. However, You may do so only on Your own behalf, and not on
202
+ behalf of any Contributor. You must make it absolutely clear that any
203
+ such warranty, support, indemnity, or liability obligation is offered by
204
+ You alone, and You hereby agree to indemnify every Contributor for any
205
+ liability incurred by such Contributor as a result of warranty, support,
206
+ indemnity or liability terms You offer. You may include additional
207
+ disclaimers of warranty and limitations of liability specific to any
208
+ jurisdiction.
209
+
210
+ ### 4. Inability to Comply Due to Statute or Regulation
211
+
212
+ If it is impossible for You to comply with any of the terms of this
213
+ License with respect to some or all of the Covered Software due to
214
+ statute, judicial order, or regulation then You must: **(a)** comply with
215
+ the terms of this License to the maximum extent possible; and **(b)**
216
+ describe the limitations and the code they affect. Such description must
217
+ be placed in a text file included with all distributions of the Covered
218
+ Software under this License. Except to the extent prohibited by statute
219
+ or regulation, such description must be sufficiently detailed for a
220
+ recipient of ordinary skill to be able to understand it.
221
+
222
+ ### 5. Termination
223
+
224
+ **5.1.** The rights granted under this License will terminate automatically
225
+ if You fail to comply with any of its terms. However, if You become
226
+ compliant, then the rights granted under this License from a particular
227
+ Contributor are reinstated **(a)** provisionally, unless and until such
228
+ Contributor explicitly and finally terminates Your grants, and **(b)** on an
229
+ ongoing basis, if such Contributor fails to notify You of the
230
+ non-compliance by some reasonable means prior to 60 days after You have
231
+ come back into compliance. Moreover, Your grants from a particular
232
+ Contributor are reinstated on an ongoing basis if such Contributor
233
+ notifies You of the non-compliance by some reasonable means, this is the
234
+ first time You have received notice of non-compliance with this License
235
+ from such Contributor, and You become compliant prior to 30 days after
236
+ Your receipt of the notice.
237
+
238
+ **5.2.** If You initiate litigation against any entity by asserting a patent
239
+ infringement claim (excluding declaratory judgment actions,
240
+ counter-claims, and cross-claims) alleging that a Contributor Version
241
+ directly or indirectly infringes any patent, then the rights granted to
242
+ You by any and all Contributors for the Covered Software under Section
243
+ 2.1 of this License shall terminate.
244
+
245
+ **5.3.** In the event of termination under Sections 5.1 or 5.2 above, all
246
+ end user license agreements (excluding distributors and resellers) which
247
+ have been validly granted by You or Your distributors under this License
248
+ prior to termination shall survive termination.
249
+
250
+ ### 6. Disclaimer of Warranty
251
+
252
+ > Covered Software is provided under this License on an “as is”
253
+ > basis, without warranty of any kind, either expressed, implied, or
254
+ > statutory, including, without limitation, warranties that the
255
+ > Covered Software is free of defects, merchantable, fit for a
256
+ > particular purpose or non-infringing. The entire risk as to the
257
+ > quality and performance of the Covered Software is with You.
258
+ > Should any Covered Software prove defective in any respect, You
259
+ > (not any Contributor) assume the cost of any necessary servicing,
260
+ > repair, or correction. This disclaimer of warranty constitutes an
261
+ > essential part of this License. No use of any Covered Software is
262
+ > authorized under this License except under this disclaimer.
263
+
264
+ ### 7. Limitation of Liability
265
+
266
+ > Under no circumstances and under no legal theory, whether tort
267
+ > (including negligence), contract, or otherwise, shall any
268
+ > Contributor, or anyone who distributes Covered Software as
269
+ > permitted above, be liable to You for any direct, indirect,
270
+ > special, incidental, or consequential damages of any character
271
+ > including, without limitation, damages for lost profits, loss of
272
+ > goodwill, work stoppage, computer failure or malfunction, or any
273
+ > and all other commercial damages or losses, even if such party
274
+ > shall have been informed of the possibility of such damages. This
275
+ > limitation of liability shall not apply to liability for death or
276
+ > personal injury resulting from such party's negligence to the
277
+ > extent applicable law prohibits such limitation. Some
278
+ > jurisdictions do not allow the exclusion or limitation of
279
+ > incidental or consequential damages, so this exclusion and
280
+ > limitation may not apply to You.
281
+
282
+ ### 8. Litigation
283
+
284
+ Any litigation relating to this License may be brought only in the
285
+ courts of a jurisdiction where the defendant maintains its principal
286
+ place of business and such litigation shall be governed by laws of that
287
+ jurisdiction, without reference to its conflict-of-law provisions.
288
+ Nothing in this Section shall prevent a party's ability to bring
289
+ cross-claims or counter-claims.
290
+
291
+ ### 9. Miscellaneous
292
+
293
+ This License represents the complete agreement concerning the subject
294
+ matter hereof. If any provision of this License is held to be
295
+ unenforceable, such provision shall be reformed only to the extent
296
+ necessary to make it enforceable. Any law or regulation which provides
297
+ that the language of a contract shall be construed against the drafter
298
+ shall not be used to construe this License against a Contributor.
299
+
300
+ ### 10. Versions of the License
301
+
302
+ #### 10.1. New Versions
303
+
304
+ Mozilla Foundation is the license steward. Except as provided in Section
305
+ 10.3, no one other than the license steward has the right to modify or
306
+ publish new versions of this License. Each version will be given a
307
+ distinguishing version number.
308
+
309
+ #### 10.2. Effect of New Versions
310
+
311
+ You may distribute the Covered Software under the terms of the version
312
+ of the License under which You originally received the Covered Software,
313
+ or under the terms of any subsequent version published by the license
314
+ steward.
315
+
316
+ #### 10.3. Modified Versions
317
+
318
+ If you create software not governed by this License, and you want to
319
+ create a new license for such software, you may create and use a
320
+ modified version of this License if you rename the license and remove
321
+ any references to the name of the license steward (except to note that
322
+ such modified license differs from this License).
323
+
324
+ #### 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
325
+
326
+ If You choose to distribute Source Code Form that is Incompatible With
327
+ Secondary Licenses under the terms of this version of the License, the
328
+ notice described in Exhibit B of this License must be attached.
329
+
330
+ ## Exhibit A - Source Code Form License Notice
331
+
332
+ This Source Code Form is subject to the terms of the Mozilla Public
333
+ License, v. 2.0. If a copy of the MPL was not distributed with this
334
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
335
+
336
+ If it is not possible or desirable to put the notice in a particular
337
+ file, then You may include the notice in a location (such as a LICENSE
338
+ file in a relevant directory) where a recipient would be likely to look
339
+ for such a notice.
340
+
341
+ You may add additional accurate notices of copyright ownership.
342
+
343
+ ## Exhibit B - “Incompatible With Secondary Licenses” Notice
344
+
345
+ This Source Code Form is "Incompatible With Secondary Licenses", as
346
+ defined by the Mozilla Public License, v. 2.0.