makefile-mcp 0.1.0__tar.gz

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 (99) hide show
  1. makefile_mcp-0.1.0/.dockerignore +7 -0
  2. makefile_mcp-0.1.0/.github/dependabot.yml +12 -0
  3. makefile_mcp-0.1.0/.github/workflows/ci.yml +68 -0
  4. makefile_mcp-0.1.0/.github/workflows/release.yml +119 -0
  5. makefile_mcp-0.1.0/.gitignore +11 -0
  6. makefile_mcp-0.1.0/.makefile-mcp.yaml +47 -0
  7. makefile_mcp-0.1.0/.zipignore +28 -0
  8. makefile_mcp-0.1.0/CHANGELOG.md +32 -0
  9. makefile_mcp-0.1.0/CONTRIBUTING.md +18 -0
  10. makefile_mcp-0.1.0/Dockerfile +23 -0
  11. makefile_mcp-0.1.0/LICENSE +202 -0
  12. makefile_mcp-0.1.0/Makefile +355 -0
  13. makefile_mcp-0.1.0/PKG-INFO +212 -0
  14. makefile_mcp-0.1.0/README.md +174 -0
  15. makefile_mcp-0.1.0/SECURITY.md +31 -0
  16. makefile_mcp-0.1.0/docker-compose.yml +13 -0
  17. makefile_mcp-0.1.0/docs/architecture.md +182 -0
  18. makefile_mcp-0.1.0/docs/cli.md +111 -0
  19. makefile_mcp-0.1.0/docs/clients.md +150 -0
  20. makefile_mcp-0.1.0/docs/configuration.md +283 -0
  21. makefile_mcp-0.1.0/docs/contexts_and_capabilities.md +279 -0
  22. makefile_mcp-0.1.0/docs/deployment.md +259 -0
  23. makefile_mcp-0.1.0/docs/design_rationale.md +76 -0
  24. makefile_mcp-0.1.0/docs/development.md +156 -0
  25. makefile_mcp-0.1.0/docs/discovery.md +141 -0
  26. makefile_mcp-0.1.0/docs/governed_mode.md +192 -0
  27. makefile_mcp-0.1.0/docs/mcp_presentations.md +214 -0
  28. makefile_mcp-0.1.0/docs/releasing.md +230 -0
  29. makefile_mcp-0.1.0/docs/security.md +178 -0
  30. makefile_mcp-0.1.0/examples/docker/.makefile-mcp.yaml +6 -0
  31. makefile_mcp-0.1.0/examples/docker/Makefile +7 -0
  32. makefile_mcp-0.1.0/examples/docker/README.md +5 -0
  33. makefile_mcp-0.1.0/examples/java/.makefile-mcp.yaml +8 -0
  34. makefile_mcp-0.1.0/examples/java/Makefile +7 -0
  35. makefile_mcp-0.1.0/examples/java/README.md +3 -0
  36. makefile_mcp-0.1.0/examples/monorepo/.makefile-mcp.yaml +13 -0
  37. makefile_mcp-0.1.0/examples/monorepo/Makefile +3 -0
  38. makefile_mcp-0.1.0/examples/monorepo/README.md +3 -0
  39. makefile_mcp-0.1.0/examples/monorepo/backend/Makefile +3 -0
  40. makefile_mcp-0.1.0/examples/monorepo/frontend/Makefile +3 -0
  41. makefile_mcp-0.1.0/examples/node/.makefile-mcp.yaml +8 -0
  42. makefile_mcp-0.1.0/examples/node/Makefile +7 -0
  43. makefile_mcp-0.1.0/examples/node/README.md +3 -0
  44. makefile_mcp-0.1.0/examples/python/.makefile-mcp.yaml +10 -0
  45. makefile_mcp-0.1.0/examples/python/Makefile +7 -0
  46. makefile_mcp-0.1.0/examples/python/README.md +3 -0
  47. makefile_mcp-0.1.0/pyproject.toml +108 -0
  48. makefile_mcp-0.1.0/scripts/check_release.py +203 -0
  49. makefile_mcp-0.1.0/scripts/smoke_mcp_stdio.py +47 -0
  50. makefile_mcp-0.1.0/server.json +30 -0
  51. makefile_mcp-0.1.0/src/makefile_mcp/__init__.py +5 -0
  52. makefile_mcp-0.1.0/src/makefile_mcp/app.py +125 -0
  53. makefile_mcp-0.1.0/src/makefile_mcp/catalog.py +146 -0
  54. makefile_mcp-0.1.0/src/makefile_mcp/cli.py +219 -0
  55. makefile_mcp-0.1.0/src/makefile_mcp/config.py +74 -0
  56. makefile_mcp-0.1.0/src/makefile_mcp/doctor.py +213 -0
  57. makefile_mcp-0.1.0/src/makefile_mcp/errors.py +41 -0
  58. makefile_mcp-0.1.0/src/makefile_mcp/execution.py +177 -0
  59. makefile_mcp-0.1.0/src/makefile_mcp/filesystem.py +131 -0
  60. makefile_mcp-0.1.0/src/makefile_mcp/inputs.py +182 -0
  61. makefile_mcp-0.1.0/src/makefile_mcp/makefile.py +355 -0
  62. makefile_mcp-0.1.0/src/makefile_mcp/mcp/__init__.py +5 -0
  63. makefile_mcp-0.1.0/src/makefile_mcp/mcp/presentation.py +285 -0
  64. makefile_mcp-0.1.0/src/makefile_mcp/mcp/server.py +198 -0
  65. makefile_mcp-0.1.0/src/makefile_mcp/models.py +329 -0
  66. makefile_mcp-0.1.0/src/makefile_mcp/process.py +188 -0
  67. makefile_mcp-0.1.0/src/makefile_mcp/syntax.py +82 -0
  68. makefile_mcp-0.1.0/src/makefile_mcp/version.py +1 -0
  69. makefile_mcp-0.1.0/tests/conftest.py +24 -0
  70. makefile_mcp-0.1.0/tests/fixtures/dangerous-targets/Makefile +3 -0
  71. makefile_mcp-0.1.0/tests/fixtures/documented-targets/Makefile +4 -0
  72. makefile_mcp-0.1.0/tests/fixtures/failing-task/Makefile +3 -0
  73. makefile_mcp-0.1.0/tests/fixtures/included-makefiles/Makefile +1 -0
  74. makefile_mcp-0.1.0/tests/fixtures/included-makefiles/rules.mk +3 -0
  75. makefile_mcp-0.1.0/tests/fixtures/large-output/Makefile +3 -0
  76. makefile_mcp-0.1.0/tests/fixtures/monorepo/.makefile-mcp.yaml +4 -0
  77. makefile_mcp-0.1.0/tests/fixtures/monorepo/Makefile +3 -0
  78. makefile_mcp-0.1.0/tests/fixtures/monorepo/backend/Makefile +3 -0
  79. makefile_mcp-0.1.0/tests/fixtures/phony-only/Makefile +3 -0
  80. makefile_mcp-0.1.0/tests/fixtures/simple-python/Makefile +3 -0
  81. makefile_mcp-0.1.0/tests/fixtures/timeout-task/Makefile +3 -0
  82. makefile_mcp-0.1.0/tests/fixtures/variables/.makefile-mcp.yaml +6 -0
  83. makefile_mcp-0.1.0/tests/fixtures/variables/Makefile +3 -0
  84. makefile_mcp-0.1.0/tests/integration/test_contexts_and_cache.py +138 -0
  85. makefile_mcp-0.1.0/tests/integration/test_doctor.py +104 -0
  86. makefile_mcp-0.1.0/tests/integration/test_execution.py +229 -0
  87. makefile_mcp-0.1.0/tests/integration/test_mcp.py +161 -0
  88. makefile_mcp-0.1.0/tests/security/test_regressions.py +154 -0
  89. makefile_mcp-0.1.0/tests/unit/test_architecture.py +180 -0
  90. makefile_mcp-0.1.0/tests/unit/test_capabilities.py +34 -0
  91. makefile_mcp-0.1.0/tests/unit/test_cli.py +165 -0
  92. makefile_mcp-0.1.0/tests/unit/test_config.py +120 -0
  93. makefile_mcp-0.1.0/tests/unit/test_contexts.py +37 -0
  94. makefile_mcp-0.1.0/tests/unit/test_discovery.py +310 -0
  95. makefile_mcp-0.1.0/tests/unit/test_docs.py +123 -0
  96. makefile_mcp-0.1.0/tests/unit/test_mcp_presentation.py +266 -0
  97. makefile_mcp-0.1.0/tests/unit/test_release_checks.py +83 -0
  98. makefile_mcp-0.1.0/tests/unit/test_variables.py +104 -0
  99. makefile_mcp-0.1.0/uv.lock +1081 -0
@@ -0,0 +1,7 @@
1
+ .git
2
+ .venv
3
+ __pycache__
4
+ .pytest_cache
5
+ .ruff_cache
6
+ dist
7
+ .makefile-mcp
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: "/"
5
+ schedule:
6
+ interval: monthly
7
+ open-pull-requests-limit: 5
8
+ - package-ecosystem: uv
9
+ directory: "/"
10
+ schedule:
11
+ interval: monthly
12
+ open-pull-requests-limit: 5
@@ -0,0 +1,68 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test:
14
+ name: ${{ matrix.os }} / Python ${{ matrix.python }}
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ os: [ubuntu-latest, macos-latest]
19
+ python: ["3.11", "3.12", "3.13", "3.14"]
20
+ runs-on: ${{ matrix.os }}
21
+ steps:
22
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ with:
24
+ persist-credentials: false
25
+ - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
26
+ with:
27
+ version: "0.12.1"
28
+ python-version: ${{ matrix.python }}
29
+ enable-cache: true
30
+ - run: uv sync --frozen --extra dev
31
+ - run: make check
32
+
33
+ quality:
34
+ name: Static types and dependency audit
35
+ runs-on: ubuntu-latest
36
+ steps:
37
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38
+ with:
39
+ persist-credentials: false
40
+ - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
41
+ with:
42
+ version: "0.12.1"
43
+ python-version: "3.13"
44
+ enable-cache: true
45
+ - run: uv sync --frozen --extra dev
46
+ - run: make typecheck
47
+ - run: make dependency-audit
48
+
49
+ package:
50
+ name: Package and clean-install smoke
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
54
+ with:
55
+ persist-credentials: false
56
+ - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
57
+ with:
58
+ version: "0.12.1"
59
+ enable-cache: true
60
+ - run: make package
61
+ - run: make package-smoke
62
+ - run: docker build -t makefile-mcp:ci .
63
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
64
+ with:
65
+ name: ci-python-distributions
66
+ path: dist/
67
+ if-no-files-found: error
68
+ retention-days: 7
@@ -0,0 +1,119 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ build:
13
+ name: Validate and build
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: read
17
+ id-token: write
18
+ attestations: write
19
+ artifact-metadata: write
20
+ steps:
21
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22
+ with:
23
+ persist-credentials: false
24
+ fetch-depth: 0
25
+
26
+ - name: Verify release tag belongs to main
27
+ run: |
28
+ tag_commit="$(git rev-list -n 1 "$GITHUB_REF_NAME")"
29
+ if ! git merge-base --is-ancestor "$tag_commit" origin/main; then
30
+ echo "::error::Release tag must point to a commit reachable from main."
31
+ exit 1
32
+ fi
33
+
34
+ - name: Install uv
35
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
36
+ with:
37
+ version: "0.12.1"
38
+ enable-cache: true
39
+
40
+ - name: Sync locked development environment
41
+ run: uv sync --frozen --extra dev
42
+
43
+ - name: Run deterministic release-blocking checks
44
+ run: make check
45
+
46
+ - name: Run static type gate
47
+ run: make typecheck
48
+
49
+ - name: Audit locked runtime dependencies
50
+ run: make dependency-audit
51
+
52
+ - name: Verify tag, version, changelog, and MCP Registry metadata
53
+ run: python scripts/check_release.py --tag "$GITHUB_REF_NAME"
54
+
55
+ - name: Build wheel and source distribution
56
+ run: make package
57
+
58
+ - name: Verify built distribution identity
59
+ run: python scripts/check_release.py --tag "$GITHUB_REF_NAME" --dist dist
60
+
61
+ - name: Smoke-test installed wheel CLI and MCP stdio
62
+ run: make package-smoke
63
+
64
+ - name: Generate build provenance attestation
65
+ uses: actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d # v4.2.1
66
+ with:
67
+ subject-path: "dist/*"
68
+
69
+ - name: Upload immutable release artifacts
70
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
71
+ with:
72
+ name: python-distributions
73
+ path: dist/
74
+ if-no-files-found: error
75
+ retention-days: 14
76
+
77
+ publish-pypi:
78
+ name: Publish to PyPI
79
+ needs: build
80
+ runs-on: ubuntu-latest
81
+ environment:
82
+ name: pypi
83
+ url: https://pypi.org/p/makefile-mcp
84
+ permissions:
85
+ id-token: write
86
+ steps:
87
+ - name: Download validated distributions
88
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
89
+ with:
90
+ name: python-distributions
91
+ path: dist/
92
+
93
+ - name: Publish with PyPI Trusted Publishing
94
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
95
+ with:
96
+ packages-dir: dist/
97
+
98
+ github-release:
99
+ name: Create GitHub release
100
+ needs: [build, publish-pypi]
101
+ runs-on: ubuntu-latest
102
+ permissions:
103
+ contents: write
104
+ steps:
105
+ - name: Download published distributions
106
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
107
+ with:
108
+ name: python-distributions
109
+ path: dist/
110
+
111
+ - name: Create release from the pushed tag
112
+ env:
113
+ GH_TOKEN: ${{ github.token }}
114
+ run: |
115
+ gh release create "$GITHUB_REF_NAME" dist/* \
116
+ --repo "$GITHUB_REPOSITORY" \
117
+ --verify-tag \
118
+ --generate-notes \
119
+ --title "Makefile MCP ${GITHUB_REF_NAME#v}"
@@ -0,0 +1,11 @@
1
+ .venv/
2
+ __pycache__/
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ dist/
6
+ *.egg-info/
7
+ .makefile-mcp/locks/
8
+ .coverage
9
+ .coverage.*
10
+ .venv
11
+ .venv*
@@ -0,0 +1,47 @@
1
+ schema_version: 1
2
+
3
+ defaults:
4
+ timeout_seconds: 1800
5
+ output_limit_bytes: 1048576
6
+ input_limit_bytes: 1048576
7
+
8
+ tasks:
9
+ format-check:
10
+ risk: safe
11
+ description: Check Python formatting without modifying files
12
+
13
+ lint:
14
+ risk: safe
15
+ description: Run Ruff lint checks
16
+
17
+ test:
18
+ risk: safe
19
+ description: Run the complete test suite
20
+
21
+ test-unit:
22
+ risk: safe
23
+ description: Run unit tests
24
+
25
+ test-integration:
26
+ risk: safe
27
+ description: Run integration tests
28
+
29
+ test-security:
30
+ risk: safe
31
+ description: Run request-boundary security regression tests
32
+
33
+ coverage:
34
+ risk: write
35
+ description: Run branch-aware coverage and enforce the project floor
36
+
37
+ check:
38
+ risk: write
39
+ description: Run the local release-blocking validation gate
40
+
41
+ package:
42
+ risk: write
43
+ description: Build the wheel and source distribution
44
+
45
+ capabilities:
46
+ verify: check
47
+ package: package
@@ -0,0 +1,28 @@
1
+ # Local environments and caches
2
+ .venv/
3
+ __pycache__/
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+
7
+ # Build/package output
8
+ build/
9
+ dist/
10
+ *.egg-info/
11
+
12
+ # Runtime state
13
+ .makefile-mcp/locks/
14
+
15
+ # Local editor/OS noise
16
+ .vscode/
17
+ .idea/
18
+ .DS_Store
19
+ *.swp
20
+ *~
21
+
22
+ # Local secrets/config overrides
23
+ .env
24
+ .env.*
25
+ !.env.example
26
+
27
+ .coverage
28
+ .coverage.*
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+
3
+ All notable changes to Makefile MCP are documented here.
4
+
5
+ ## Unreleased
6
+
7
+ ## 0.1.0 — 2026-08-23
8
+
9
+ Initial public release.
10
+
11
+ ### Added
12
+
13
+ - Zero-configuration discovery of conservatively recognized GNU Make targets.
14
+ - Governed deny-by-default exposure through `.makefile-mcp.yaml`.
15
+ - Typed task inputs for tokens, integers, booleans, enums, repository-confined paths,
16
+ and arbitrary strings through a private JSON side channel.
17
+ - Explicit repository contexts, capability aliases, risk metadata, and physical-context locking.
18
+ - CLI commands for listing, describing, running, previewing, diagnosing, and serving tasks.
19
+ - MCP v2 stdio presentation with generic and direct tool modes, collision-safe direct tool names,
20
+ and typed client schema hints.
21
+ - GNU Make `--dry-run` preview support and MCP start/completion progress feedback.
22
+ - Bounded input, stdout/stderr capture, timeouts, cancellation, process-group cleanup,
23
+ stdin isolation, and fail-closed policy-change detection.
24
+ - Conservative static Makefile/include discovery without evaluating GNU Make during discovery.
25
+ - Linux/macOS CI, clean-package wheel/sdist and CLI/MCP stdio smoke tests, static type checking,
26
+ runtime dependency vulnerability auditing, PyPI Trusted Publishing, release provenance,
27
+ main-branch tag enforcement, and immutable GitHub Actions references.
28
+ - Security, architecture, design-rationale, configuration, discovery, CLI, deployment, client,
29
+ development, and release documentation.
30
+ - Self-hosted `.makefile-mcp.yaml` governance for Makefile MCP's own agent-callable maintenance surface.
31
+ - MCP Registry `server.json` metadata prepared for publication after the first PyPI release.
32
+ - Non-root default Docker runtime user; Compose can still map the host UID/GID for mounted worktrees.
@@ -0,0 +1,18 @@
1
+ # Contributing
2
+
3
+ Keep changes aligned with the product boundary:
4
+
5
+ > Makefile MCP exposes trusted Make targets to MCP clients with zero-config discovery or explicit governed policy, while preserving one bounded execution path.
6
+
7
+ The repository Makefile is the contributor interface:
8
+
9
+ ```bash
10
+ make install
11
+ make check
12
+ ```
13
+
14
+ Keep CLI/MCP adapters thin, keep recipes in Make, add regressions for boundary changes, and add abstractions only when a concrete second implementation or distinct responsibility justifies them.
15
+
16
+ See [docs/development.md](docs/development.md) for contributor workflows, ownership boundaries, regression expectations, and Definition of Done. Public contracts are documented in the [CLI reference](docs/cli.md), [configuration reference](docs/configuration.md), and [static discovery contract](docs/discovery.md).
17
+
18
+ Release maintainers should also follow [docs/releasing.md](docs/releasing.md); PyPI artifacts are published only by the tag-driven GitHub Actions workflow.
@@ -0,0 +1,23 @@
1
+ FROM python:3.13-slim AS runtime
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1 \
5
+ PIP_DISABLE_PIP_VERSION_CHECK=1 \
6
+ HOME=/home/makefile-mcp
7
+
8
+ RUN apt-get update \
9
+ && apt-get install -y --no-install-recommends make ca-certificates \
10
+ && rm -rf /var/lib/apt/lists/* \
11
+ && groupadd --gid 10001 makefile-mcp \
12
+ && useradd --uid 10001 --gid 10001 --create-home --home-dir /home/makefile-mcp --shell /usr/sbin/nologin makefile-mcp
13
+
14
+ WORKDIR /opt/makefile-mcp
15
+ COPY pyproject.toml README.md LICENSE ./
16
+ COPY src ./src
17
+ RUN pip install --no-cache-dir .
18
+
19
+ RUN mkdir -p /workspace && chown makefile-mcp:makefile-mcp /workspace
20
+ WORKDIR /workspace
21
+ USER makefile-mcp
22
+ ENTRYPOINT ["makefile-mcp"]
23
+ CMD ["serve"]
@@ -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.