memory-access 0.1.3__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 (53) hide show
  1. memory_access-0.1.3/.claude/scratchpad/test.json +1 -0
  2. memory_access-0.1.3/.claude-plugin/marketplace.json +18 -0
  3. memory_access-0.1.3/.claude-plugin/plugin.json +12 -0
  4. memory_access-0.1.3/.github/workflows/ci.yml +16 -0
  5. memory_access-0.1.3/.github/workflows/publish-pypi.yml +65 -0
  6. memory_access-0.1.3/.github/workflows/publish.yml +18 -0
  7. memory_access-0.1.3/.github/workflows/release.yml +102 -0
  8. memory_access-0.1.3/.github/workflows/tests.yml +39 -0
  9. memory_access-0.1.3/.gitignore +9 -0
  10. memory_access-0.1.3/CHANGELOG.md +39 -0
  11. memory_access-0.1.3/CLAUDE.md +75 -0
  12. memory_access-0.1.3/LICENSE +54 -0
  13. memory_access-0.1.3/PKG-INFO +352 -0
  14. memory_access-0.1.3/README.md +320 -0
  15. memory_access-0.1.3/analyze_chunks.py +61 -0
  16. memory_access-0.1.3/commands/setup-memory-access.md +294 -0
  17. memory_access-0.1.3/docs/PUBLISHING.md +132 -0
  18. memory_access-0.1.3/docs/plans/2026-02-07-add-knowledge-base-design.md +66 -0
  19. memory_access-0.1.3/docs/plans/2026-02-07-knowledge-bases.md +647 -0
  20. memory_access-0.1.3/docs/plans/2026-02-07-setup-wizard-design.md +86 -0
  21. memory_access-0.1.3/hooks/hooks.json +17 -0
  22. memory_access-0.1.3/hooks/scripts/pre-compact.sh +32 -0
  23. memory_access-0.1.3/mcp-config-example.json +25 -0
  24. memory_access-0.1.3/pyproject.toml +58 -0
  25. memory_access-0.1.3/scripts/generate_dummy_data.py +446 -0
  26. memory_access-0.1.3/scripts/setup.sh +73 -0
  27. memory_access-0.1.3/scripts/verify_migration.py +141 -0
  28. memory_access-0.1.3/skills/add-knowledge-base/SKILL.md +140 -0
  29. memory_access-0.1.3/skills/using-semantic-memory/SKILL.md +138 -0
  30. memory_access-0.1.3/skills/using-semantic-memory/references/schema.md +110 -0
  31. memory_access-0.1.3/src/memory_access/__init__.py +1 -0
  32. memory_access-0.1.3/src/memory_access/cli.py +131 -0
  33. memory_access-0.1.3/src/memory_access/crawl.py +84 -0
  34. memory_access-0.1.3/src/memory_access/embeddings.py +96 -0
  35. memory_access-0.1.3/src/memory_access/ingest.py +228 -0
  36. memory_access-0.1.3/src/memory_access/models.py +86 -0
  37. memory_access-0.1.3/src/memory_access/normalizer.py +181 -0
  38. memory_access-0.1.3/src/memory_access/server.py +404 -0
  39. memory_access-0.1.3/src/memory_access/storage.py +899 -0
  40. memory_access-0.1.3/test_search.py +25 -0
  41. memory_access-0.1.3/tests/__init__.py +0 -0
  42. memory_access-0.1.3/tests/conftest.py +7 -0
  43. memory_access-0.1.3/tests/test_cli.py +118 -0
  44. memory_access-0.1.3/tests/test_crawl.py +210 -0
  45. memory_access-0.1.3/tests/test_embeddings.py +165 -0
  46. memory_access-0.1.3/tests/test_ingest.py +212 -0
  47. memory_access-0.1.3/tests/test_kb_integration.py +471 -0
  48. memory_access-0.1.3/tests/test_models.py +161 -0
  49. memory_access-0.1.3/tests/test_normalizer.py +189 -0
  50. memory_access-0.1.3/tests/test_quality.py +88 -0
  51. memory_access-0.1.3/tests/test_server.py +439 -0
  52. memory_access-0.1.3/tests/test_storage.py +957 -0
  53. memory_access-0.1.3/uv.lock +1672 -0
@@ -0,0 +1 @@
1
+ {"test": "value"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "memory-access",
3
+ "description": "Semantic memory MCP server for persistent knowledge storage, retrieval, and graph traversal",
4
+ "owner": {
5
+ "name": "Emma Hyde"
6
+ },
7
+ "plugins": [
8
+ {
9
+ "name": "memory-access",
10
+ "description": "Teaches Claude how to use the memory-access MCP server for persistent knowledge storage, retrieval, and graph traversal. Includes PreCompact hook to preserve insights before context compaction.",
11
+ "version": "1.0.0",
12
+ "author": {
13
+ "name": "Emma Hyde"
14
+ },
15
+ "source": "./"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "memory-access",
3
+ "version": "1.0.0",
4
+ "description": "Teaches Claude how to use the memory-access MCP server for persistent knowledge storage, retrieval, and graph traversal. Includes PreCompact hook to preserve insights before context compaction.",
5
+ "author": {
6
+ "name": "Emma Hyde"
7
+ },
8
+ "homepage": "https://github.com/emmahyde/memory-access",
9
+ "repository": "https://github.com/emmahyde/memory-access",
10
+ "license": "Apache-2.0",
11
+ "keywords": ["memory-access", "mcp", "knowledge-graph", "embeddings", "insights"]
12
+ }
@@ -0,0 +1,16 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: astral-sh/setup-uv@v6
15
+ - run: uv sync --group dev
16
+ - run: uv run pytest
@@ -0,0 +1,65 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ publish:
13
+ name: Publish to PyPI
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
20
+
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: '3.12'
25
+
26
+ - name: Install build dependencies
27
+ run: pip install build twine
28
+
29
+ - name: Extract version from tag
30
+ id: version
31
+ run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
32
+
33
+ - name: Validate version matches
34
+ run: |
35
+ VERSION="${{ steps.version.outputs.version }}"
36
+ PYPROJECT_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
37
+ if [ "$VERSION" != "$PYPROJECT_VERSION" ]; then
38
+ echo "Tag version ($VERSION) does not match pyproject.toml ($PYPROJECT_VERSION)"
39
+ exit 1
40
+ fi
41
+ echo "✓ Version $VERSION matches"
42
+
43
+ - name: Build package
44
+ run: python -m build
45
+
46
+ - name: Publish to PyPI
47
+ run: twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
48
+
49
+ - name: Create GitHub Release
50
+ uses: softprops/action-gh-release@v1
51
+ with:
52
+ body: |
53
+ Released on PyPI: https://pypi.org/project/memory-access/${{ steps.version.outputs.version }}/
54
+
55
+ Install with:
56
+ ```bash
57
+ pip install memory-access==${{ steps.version.outputs.version }}
58
+ ```
59
+ or
60
+ ```bash
61
+ uv add memory-access==${{ steps.version.outputs.version }}
62
+ ```
63
+ files: dist/*
64
+ draft: false
65
+ prerelease: ${{ contains(github.ref, 'rc') || contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
@@ -0,0 +1,18 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ id-token: write
9
+
10
+ jobs:
11
+ publish:
12
+ runs-on: ubuntu-latest
13
+ environment: pypi
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: astral-sh/setup-uv@v6
17
+ - run: uv build
18
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,102 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: write
9
+
10
+ jobs:
11
+ release:
12
+ runs-on: ubuntu-latest
13
+ # Skip if commit message contains [skip ci] or [skip release]
14
+ if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip release]')"
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ with:
18
+ fetch-depth: 0
19
+ token: ${{ secrets.GITHUB_TOKEN }}
20
+
21
+ - name: Determine version bump type
22
+ id: bump_type
23
+ run: |
24
+ # Get PR number from merge commit
25
+ PR_NUMBER=$(echo "${{ github.event.head_commit.message }}" | grep -oP '(?<=#)\d+(?=\))' || echo "")
26
+
27
+ BUMP_TYPE="patch"
28
+
29
+ # Check commit message for conventional commit patterns
30
+ if echo "${{ github.event.head_commit.message }}" | grep -qE "BREAKING CHANGE|^[a-z]+!:"; then
31
+ BUMP_TYPE="major"
32
+ elif echo "${{ github.event.head_commit.message }}" | grep -qE "^feat:"; then
33
+ BUMP_TYPE="minor"
34
+ elif [ -n "$PR_NUMBER" ]; then
35
+ # Check PR labels if we have a PR number
36
+ LABELS=$(gh pr view "$PR_NUMBER" --json labels --jq '.labels[].name' || echo "")
37
+ if echo "$LABELS" | grep -q "major"; then
38
+ BUMP_TYPE="major"
39
+ elif echo "$LABELS" | grep -q "minor"; then
40
+ BUMP_TYPE="minor"
41
+ fi
42
+ fi
43
+
44
+ echo "bump_type=$BUMP_TYPE" >> $GITHUB_OUTPUT
45
+ echo "Detected bump type: $BUMP_TYPE"
46
+ env:
47
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48
+
49
+ - name: Bump version
50
+ id: bump_version
51
+ run: |
52
+ # Read current version
53
+ CURRENT_VERSION=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
54
+ echo "Current version: $CURRENT_VERSION"
55
+
56
+ # Split version into parts
57
+ IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
58
+
59
+ # Bump based on type
60
+ case "${{ steps.bump_type.outputs.bump_type }}" in
61
+ major)
62
+ MAJOR=$((MAJOR + 1))
63
+ MINOR=0
64
+ PATCH=0
65
+ ;;
66
+ minor)
67
+ MINOR=$((MINOR + 1))
68
+ PATCH=0
69
+ ;;
70
+ patch)
71
+ PATCH=$((PATCH + 1))
72
+ ;;
73
+ esac
74
+
75
+ NEW_VERSION="$MAJOR.$MINOR.$PATCH"
76
+ echo "New version: $NEW_VERSION"
77
+
78
+ # Update pyproject.toml
79
+ sed -i "s/^version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
80
+
81
+ echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
82
+
83
+ - name: Commit version bump
84
+ run: |
85
+ git config user.name "github-actions[bot]"
86
+ git config user.email "github-actions[bot]@users.noreply.github.com"
87
+ git add pyproject.toml
88
+ git commit -m "chore: bump version to ${{ steps.bump_version.outputs.new_version }} [skip ci]"
89
+ git push
90
+
91
+ - name: Create tag and release
92
+ run: |
93
+ TAG="v${{ steps.bump_version.outputs.new_version }}"
94
+ git tag "$TAG"
95
+ git push origin "$TAG"
96
+
97
+ # Create GitHub release (this triggers publish.yml)
98
+ gh release create "$TAG" \
99
+ --title "Release $TAG" \
100
+ --generate-notes
101
+ env:
102
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,39 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ name: Test Python ${{ matrix.python-version }}
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ python-version: ['3.12', '3.13']
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+
26
+ - name: Install uv
27
+ uses: astral-sh/setup-uv@v2
28
+
29
+ - name: Install dependencies
30
+ run: uv sync --group dev
31
+
32
+ - name: Install build dependencies
33
+ run: uv pip install build
34
+
35
+ - name: Run tests
36
+ run: uv run pytest -v
37
+
38
+ - name: Build package
39
+ run: uv run python -m build
@@ -0,0 +1,9 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.egg-info/
4
+ dist/
5
+ build/
6
+ .eggs/
7
+ *.db
8
+ .venv/
9
+ data/
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+ - Initial MCP server implementation for semantic memory
12
+ - Vector-based knowledge storage and retrieval
13
+ - Subject-indexed knowledge graph
14
+ - Support for Anthropic and AWS Bedrock LLMs
15
+ - Support for OpenAI and AWS Bedrock embeddings
16
+ - SQLite persistence with migration system
17
+ - Claude Code plugin with skills and hooks
18
+ - Comprehensive test suite with 100%+ coverage
19
+
20
+ ### Changed
21
+
22
+ ### Deprecated
23
+
24
+ ### Removed
25
+
26
+ ### Fixed
27
+
28
+ ### Security
29
+
30
+ ## [0.1.2] - 2025-02-08
31
+
32
+ ### Added
33
+ - Initial stable release
34
+ - Complete MCP server implementation
35
+ - Knowledge graph with subject relations
36
+ - Integration tests and examples
37
+
38
+ [Unreleased]: https://github.com/emmahyde/memory-access/compare/v0.1.2...HEAD
39
+ [0.1.2]: https://github.com/emmahyde/memory-access/releases/tag/v0.1.2
@@ -0,0 +1,75 @@
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+ ## What This Is
6
+
7
+ A semantic memory MCP server that stores intent-based knowledge for AI agents. Text is decomposed into atomic insights, classified into semantic frames, embedded as vectors, and stored in SQLite with a subject-indexed knowledge graph.
8
+
9
+ ## Commands
10
+
11
+ ```bash
12
+ # Install dependencies
13
+ uv sync --group dev
14
+
15
+ # Run all tests
16
+ uv run pytest
17
+
18
+ # Run a single test file
19
+ uv run pytest tests/test_storage.py
20
+
21
+ # Run a single test
22
+ uv run pytest tests/test_storage.py::TestInsightStoreInit::test_initialize_creates_tables
23
+
24
+ # Run MCP server directly
25
+ uv run memory-access
26
+ ```
27
+
28
+ ## Architecture
29
+
30
+ **Data flow (store):** User text → `Normalizer` (Claude haiku via Anthropic or Bedrock) decomposes into atomic insights → classifies each into a `Frame` with extracted subjects → `EmbeddingEngine` (OpenAI text-embedding-3-small) or `BedrockEmbeddingEngine` (Titan Embed V2) generates vectors → `InsightStore` persists to SQLite with auto-created subject links and relations.
31
+
32
+ **Data flow (search):** Query → embed → cosine similarity search in `InsightStore`, or subject-based lookup, or graph traversal via shared-subject relations.
33
+
34
+ ### Source layout (`src/memory_access/`)
35
+
36
+ - **`models.py`** — `Frame` enum (CAUSAL, CONSTRAINT, PATTERN, EQUIVALENCE, TAXONOMY, PROCEDURE), `Insight`, `GitContext`, `SearchResult`
37
+ - **`normalizer.py`** — LLM decomposition/classification via Anthropic API (or Bedrock). Uses `DECOMPOSE_PROMPT` and `CLASSIFY_PROMPT`
38
+ - **`embeddings.py`** — Embedding generation (OpenAI or Bedrock Titan), L2-normalized float32 vectors. `create_embedding_engine()` factory selects provider.
39
+ - **`storage.py`** — `InsightStore` class: SQLite persistence, migration system, subject indexing, knowledge graph queries
40
+ - **`server.py`** — `SemMemApp` orchestrator + MCP tool definitions (9 tools: `store_insight`, `search_insights`, `list_insights`, `update_insight`, `forget`, `search_by_subject`, `related_insights`, `add_subject_relation`, `get_subject_relations`)
41
+
42
+ ### Database
43
+
44
+ Default location: `~/.claude/memory-access/memory.db` (override with `MEMORY_DB_PATH` env var).
45
+
46
+ Four tables: `insights`, `subjects` (with `insight_subjects` junction), `insight_relations`, `subject_relations`. Schema versioned via `schema_versions` table.
47
+
48
+ ### Migration system
49
+
50
+ Migrations are Python functions in `storage.py` (named `_migrate_NNN_*`), tracked in `schema_versions`, and run automatically on `InsightStore.initialize()`. They are idempotent. Currently at migration 004.
51
+
52
+ ## Key Conventions
53
+
54
+ - All I/O is async (aiosqlite, async MCP handlers)
55
+ - Tests use `pytest-asyncio` with `asyncio_mode = "auto"` — async test functions just work
56
+ - Tests use the `tmp_db` fixture from `conftest.py` for isolated database paths
57
+ - Subject kinds: `domain`, `entity`, `problem`, `resolution`, `context`, `repo`, `pr`, `person`, `project`, `task`
58
+ - Subject lists on insights (domains, entities, etc.) are stored as JSON-encoded arrays in TEXT columns
59
+ - Embeddings stored as raw float32 BLOBs
60
+
61
+ ## Environment Variables
62
+
63
+ - `OPENAI_API_KEY` — required for embeddings (when using OpenAI provider)
64
+ - `ANTHROPIC_API_KEY` — required for normalization (when using Anthropic provider)
65
+ - `MEMORY_DB_PATH` — optional, overrides default DB location
66
+ - `EMBEDDING_PROVIDER` — `openai` (default) or `bedrock`
67
+ - `LLM_PROVIDER` — `anthropic` (default) or `bedrock`
68
+ - `AWS_PROFILE` — AWS SSO profile name (for Bedrock)
69
+ - `AWS_REGION` — AWS region (for Bedrock, default: `us-east-1`)
70
+ - `BEDROCK_EMBEDDING_MODEL` — Bedrock embedding model ID (default: `amazon.titan-embed-text-v2:0`)
71
+ - `BEDROCK_LLM_MODEL` — Bedrock Claude model ID (default: `us.anthropic.claude-haiku-4-5-20251001-v1:0`)
72
+
73
+ ## Plugin
74
+
75
+ This repo is also a Claude Code plugin (`claude plugin install memory-access@emmahyde`). Plugin files live at the repo root: `.claude-plugin/`, `skills/`, `hooks/`. Includes a `using-semantic-memory` skill and a `PreCompact` hook.
@@ -0,0 +1,54 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+
4
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
5
+
6
+ 1. Definitions.
7
+
8
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined in Sections 1 through 9 of this document.
9
+
10
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
11
+
12
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
13
+
14
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
15
+
16
+ "Source" form shall mean the preferred form for making modifications, including but not limited to source code, documentation source, and configuration files.
17
+
18
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
19
+
20
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
21
+
22
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
23
+
24
+ "Contribution" shall mean any work of authorship, including the original Work and any Derivative Works thereof, submitted to, or received by, Licensor or its representatives, including but not limited to source code, object code, patches, and documentation. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives.
25
+
26
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
27
+
28
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
29
+
30
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
31
+
32
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
33
+
34
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
35
+
36
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
37
+
38
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
39
+
40
+ (d) If the Work includes a "NOTICE" text file, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
41
+
42
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions of this License.
43
+
44
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contribution.
45
+
46
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
47
+
48
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
49
+
50
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
51
+
52
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
53
+
54
+ END OF TERMS AND CONDITIONS