@cachly-dev/mcp-server 0.10.13 → 0.10.15

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 (44) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +50 -0
  2. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +25 -0
  4. package/.github/workflows/publish.yml +72 -0
  5. package/CHANGELOG.md +28 -0
  6. package/LAUNCH_TEXTS.md +182 -0
  7. package/LICENSE +202 -0
  8. package/README.md +106 -53
  9. package/dist/__tests__/auth.test.d.ts +1 -0
  10. package/dist/__tests__/auth.test.js +107 -0
  11. package/dist/__tests__/auth.test.js.map +1 -0
  12. package/dist/handlers/brain.js +7 -67
  13. package/dist/handlers/brain.js.map +1 -1
  14. package/dist/handlers/fedbrain.js +93 -44
  15. package/dist/handlers/fedbrain.js.map +1 -1
  16. package/dist/handlers/roadmap.js +8 -2
  17. package/dist/handlers/roadmap.js.map +1 -1
  18. package/dist/handlers/syndicate.js +15 -7
  19. package/dist/handlers/syndicate.js.map +1 -1
  20. package/dist/handlers/team.js +62 -50
  21. package/dist/handlers/team.js.map +1 -1
  22. package/dist/index.js +555 -93
  23. package/dist/index.js.map +1 -1
  24. package/dist/tools.d.ts +3 -54
  25. package/dist/tools.js +8 -62
  26. package/dist/tools.js.map +1 -1
  27. package/glama.json +29 -0
  28. package/llms.txt +155 -0
  29. package/package.json +29 -13
  30. package/scripts/postinstall.js +12 -12
  31. package/server.json +3 -9
  32. package/smithery.yaml +6 -8
  33. package/src/__tests__/auth.test.ts +147 -0
  34. package/src/handlers/brain.ts +7 -64
  35. package/src/handlers/fedbrain.ts +88 -38
  36. package/src/handlers/roadmap.ts +7 -2
  37. package/src/handlers/syndicate.ts +13 -7
  38. package/src/handlers/team.ts +57 -33
  39. package/src/index.ts +599 -106
  40. package/src/tools.ts +8 -66
  41. package/dist/__tests__/brain-predict-failures.test.d.ts +0 -17
  42. package/dist/__tests__/brain-predict-failures.test.js +0 -339
  43. package/dist/__tests__/brain-predict-failures.test.js.map +0 -1
  44. package/src/__tests__/brain-predict-failures.test.ts +0 -430
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: Bug report
3
+ about: Something isn't working as expected
4
+ title: '[bug] '
5
+ labels: bug
6
+ assignees: ''
7
+ ---
8
+
9
+ ## What happened?
10
+
11
+ <!-- Describe the bug clearly. -->
12
+
13
+ ## Steps to reproduce
14
+
15
+ 1.
16
+ 2.
17
+ 3.
18
+
19
+ ## Expected behavior
20
+
21
+ <!-- What should have happened? -->
22
+
23
+ ## Brain doctor output
24
+
25
+ Run `brain_doctor` in your AI assistant and paste the output here.
26
+
27
+ <details>
28
+ <summary>brain_doctor output</summary>
29
+
30
+ ```
31
+ (paste here)
32
+ ```
33
+ </details>
34
+
35
+ ## Environment
36
+
37
+ - Package version: <!-- `npm list @cachly-dev/mcp-server` -->
38
+ - Editor / AI assistant: <!-- Claude Code / Cursor / Windsurf / etc. -->
39
+ - OS: <!-- macOS / Linux / Windows -->
40
+ - Node version: <!-- `node --version` -->
41
+
42
+ ## Logs
43
+
44
+ <details>
45
+ <summary>Relevant logs or error output</summary>
46
+
47
+ ```
48
+ (paste here)
49
+ ```
50
+ </details>
@@ -0,0 +1,8 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Documentation
4
+ url: https://cachly.dev/docs/mcp
5
+ about: Read the full MCP server docs
6
+ - name: Discord / Community
7
+ url: https://cachly.dev/discord
8
+ about: Ask questions and share what you've built
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest a new tool, behavior, or improvement
4
+ title: '[feat] '
5
+ labels: enhancement
6
+ assignees: ''
7
+ ---
8
+
9
+ ## What problem does this solve?
10
+
11
+ <!-- Describe the pain point clearly. What can't you do today that you wish you could? -->
12
+
13
+ ## Proposed solution
14
+
15
+ <!-- How would you like it to work? Be specific — tool name, input/output, behavior. -->
16
+
17
+ ## Alternatives you've considered
18
+
19
+ <!-- What workarounds are you using now? What else did you consider? -->
20
+
21
+ ## Context
22
+
23
+ - Tool(s) involved: <!-- e.g. smart_recall, causal_trace, brain_predict -->
24
+ - Editor / AI assistant: <!-- Claude Code / Cursor / Windsurf / etc. -->
25
+ - Use case: <!-- team / solo / CI / other -->
@@ -0,0 +1,72 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write # needed to create GitHub Releases
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20'
19
+ registry-url: 'https://registry.npmjs.org'
20
+
21
+ - name: Install dependencies
22
+ run: npm install --ignore-scripts
23
+
24
+ - name: Test
25
+ run: npm test
26
+
27
+ - name: Build
28
+ run: npm run build
29
+
30
+ - name: Check if version is already published
31
+ id: version_check
32
+ run: |
33
+ PKG_VERSION=$(node -p "require('./package.json').version")
34
+ echo "version=$PKG_VERSION" >> $GITHUB_OUTPUT
35
+ if npm view "@cachly-dev/mcp-server@$PKG_VERSION" version &>/dev/null; then
36
+ echo "skip=true" >> $GITHUB_OUTPUT
37
+ echo "Version $PKG_VERSION already published — skipping."
38
+ else
39
+ echo "skip=false" >> $GITHUB_OUTPUT
40
+ echo "Version $PKG_VERSION is new — will publish."
41
+ fi
42
+
43
+ - name: Extract CHANGELOG notes
44
+ if: steps.version_check.outputs.skip == 'false'
45
+ id: changelog
46
+ run: |
47
+ VERSION="${{ steps.version_check.outputs.version }}"
48
+ # Extract section for this version from CHANGELOG.md
49
+ NOTES=$(awk "/^## \[?${VERSION}\]?/{found=1; next} found && /^## /{exit} found{print}" CHANGELOG.md | sed '/^[[:space:]]*$/d' | head -60)
50
+ if [ -z "$NOTES" ]; then
51
+ NOTES="See [CHANGELOG.md](https://github.com/cachly-dev/cachly-mcp/blob/main/CHANGELOG.md) for details."
52
+ fi
53
+ # Write to file to avoid env var quoting issues
54
+ echo "$NOTES" > /tmp/release-notes.md
55
+ echo "See the [CHANGELOG](https://github.com/cachly-dev/cachly-mcp/blob/main/CHANGELOG.md) for full details." >> /tmp/release-notes.md
56
+
57
+ - name: Publish
58
+ if: steps.version_check.outputs.skip == 'false'
59
+ run: npm publish --access public
60
+ env:
61
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62
+
63
+ - name: Create GitHub Release
64
+ if: steps.version_check.outputs.skip == 'false'
65
+ env:
66
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67
+ run: |
68
+ VERSION="${{ steps.version_check.outputs.version }}"
69
+ gh release create "v${VERSION}" \
70
+ --title "v${VERSION}" \
71
+ --notes-file /tmp/release-notes.md \
72
+ --latest
package/CHANGELOG.md CHANGED
@@ -7,6 +7,34 @@
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.10.8] – 2026-05-14
11
+
12
+ ### Viral CLI — 6 new commands
13
+
14
+ - **`cachly demo`** — zero-signup Brain preview. Reads local `.git/` history, classifies commits by type (fix/feat/security/deploy/refactor/perf), and renders an ASCII table showing commit count, date range, contributors, per-category bar charts, and sample security + bug-fix lessons. No account or token required — works before any sign-in.
15
+
16
+ - **`cachly share`** — shareable ASCII stats card. Fetches live Brain stats (lessons, recalls, tokens/cost saved, Brain level) and generates a tweet-ready text block with `#AIMemory #ClaudeCode #Cursor` hashtags. Requires `CACHLY_JWT`.
17
+
18
+ - **`cachly digest`** — weekly Brain summary. Displays a formatted summary table: lessons stored, recalls performed, tokens saved, estimated cost saved, Brain level, top team contributors, and top-recalled lessons. Includes a crontab snippet for automated Monday morning delivery. Requires `CACHLY_JWT`.
19
+
20
+ - **`cachly invite [email]`** — team referral. Accepts an email address as argument or via interactive prompt, then POSTs to `/api/v1/team/invite`. Handles 409 (already a member) gracefully. Requires `CACHLY_JWT`.
21
+
22
+ - **`cachly health`** — connection check. Validates JWT (decode + expiry), tests API reachability, checks Brain instance status, scans all editor MCP config files (Claude Code, Cursor, Windsurf, VS Code, Zed, Continue), and verifies the git post-commit hook. Exits 1 if any checks fail — CI-friendly.
23
+
24
+ - **No-args splash screen** — running `npx @cachly-dev/mcp-server@latest` in a TTY now shows a violet-framed help card listing all commands instead of silently starting the MCP server.
25
+
26
+ ### brain_from_git — Incremental mode + progress feedback
27
+
28
+ - **Incremental by default** — after the first full run, subsequent calls only process commits since the last ingested SHA (stored in Redis with 90-day TTL). Repeated calls on active repos are near-instant.
29
+ - **Progress output** — reports progress to stderr every ~10% of commits (`⏳ Processing N/total…`) and prints a completion summary (`✅ brain_from_git complete: N/total commits ingested`).
30
+ - New `incremental` boolean parameter (default `true`). Pass `false` to force a full reprocess.
31
+
32
+ ### README
33
+
34
+ - Complete rewrite: `cachly demo` featured at the very top with embedded ASCII preview output, all 6 CLI commands documented, Zed manual-setup section added, competitor table updated, FAQ expanded with incremental `brain_from_git` Q&A.
35
+
36
+ ---
37
+
10
38
  ## [0.10.0] – 2026-05-08
11
39
 
12
40
  ### Zero-Friction Onboarding
@@ -0,0 +1,182 @@
1
+ # Launch Texts — cachly AI Brain
2
+
3
+ ---
4
+
5
+ ## Product Hunt
6
+
7
+ ### Tagline (60 chars max)
8
+ Persistent memory + causal AI for Claude, Cursor & Copilot
9
+
10
+ ### Description (260 chars)
11
+ Your AI forgets everything between sessions. cachly fixes that permanently. One command sets it up: detects your editors, writes all configs, bootstraps lessons from your git history. Free forever. No credentials required.
12
+
13
+ ### Full Description
14
+
15
+ **The problem:** Every morning you re-explain your architecture to your AI. Every bug gets re-researched. Every fix gets re-discovered. The average developer wastes 45 minutes/day on this.
16
+
17
+ **The fix:** `npx @cachly-dev/mcp-server@latest setup`
18
+
19
+ One command. It signs you in (one browser click), detects every editor you have (Claude Code, Cursor, Windsurf, VS Code, Copilot, Cline, Zed), writes the correct config for each, bootstraps your Brain from your git history, and installs a git hook that learns from every future commit automatically.
20
+
21
+ **What your AI gets:**
22
+ - A briefing at every session start: last session, open failures, relevant past fixes
23
+ - Causal root cause analysis: `causal_trace("auth breaks after restart")` → Root cause → Chain → Exact fix from 3 months ago with the command that worked
24
+ - Failure prediction before it happens: `brain_predict` reads your history before every deploy
25
+ - A running "time saved" counter — so you can see the ROI
26
+
27
+ **What makes it different from mem0, MemGPT, etc.:**
28
+ The `causal_trace` tool. No other memory system builds a Causal Knowledge Graph. Most systems store facts. cachly stores WHY things broke and HOW they were fixed — with the full chain of cause and effect. 30 minutes of git blame in one call.
29
+
30
+ **Free forever:** 25 MB, German servers, GDPR-compliant, no credit card.
31
+
32
+ ### First Comment (post immediately after launch)
33
+ Hey PH! 👋
34
+
35
+ I built cachly after watching my AI re-research the same deployment bug for the third time in a month. It had no memory. I did.
36
+
37
+ The thing I'm most proud of: `causal_trace`. You describe a problem in plain English, and it walks your Brain's Causal Knowledge Graph to find: the root cause, the intermediate failure chain, and the exact fix that worked last time — including the date and the command. Nothing else does this.
38
+
39
+ 5000+ developers are already using the npm package. Would love your feedback on what's missing.
40
+
41
+ **Commands to try after setup:**
42
+ - `causal_trace(problem="[your last bug]")` — see if it already knows the answer
43
+ - `brain_predict(context="about to deploy")` — what will go wrong?
44
+ - `brain_doctor` — Brain health check
45
+
46
+ ---
47
+
48
+ ## Hacker News — Show HN
49
+
50
+ **Title:**
51
+ Show HN: cachly – causal memory for AI coding assistants (MCP server, free)
52
+
53
+ **Text:**
54
+ I built cachly after noticing that my AI re-researched the same bug three times in a month. The context window empties, the memory vanishes.
55
+
56
+ cachly is an MCP server that gives Claude Code, Cursor, Copilot, and Windsurf persistent memory with one command:
57
+
58
+ npx @cachly-dev/mcp-server@latest setup
59
+
60
+ It detects your editors, writes all the MCP configs, bootstraps from your git history, and installs a git hook that learns from every future commit. No credentials needed in any config file — OAuth Device Flow handles auth inline on the first tool call.
61
+
62
+ The part I think is technically interesting: `causal_trace`. Instead of just storing facts like most memory systems, cachly builds a Causal Knowledge Graph — typed edges: `fixes`, `requires`, `co-occurs`, `causes`, `contradicts`. When you describe a problem, it walks the graph to reconstruct the failure chain and surface the exact fix.
63
+
64
+ causal_trace(problem="auth breaks after restart")
65
+ → Root: k8s:namespace-terminating
66
+ → Via: keycloak:jwks-race
67
+ → Fix: PollUntilContextTimeout 3min ← worked March 12
68
+
69
+ Sessions start and end automatically (no manual session_start/session_end). Everything runs in the background.
70
+
71
+ Free tier: 25 MB, German servers, GDPR. Apache-2.0.
72
+
73
+ GitHub: https://github.com/cachly-dev/cachly-mcp
74
+ npm: https://www.npmjs.com/package/@cachly-dev/mcp-server
75
+
76
+ Happy to answer questions about the architecture.
77
+
78
+ ---
79
+
80
+ ## Reddit — r/ClaudeAI
81
+
82
+ **Title:**
83
+ I built persistent memory for Claude Code — no credentials, no config, one command
84
+
85
+ **Text:**
86
+ After the 10th time explaining my project architecture to Claude, I built cachly.
87
+
88
+ **What it does:**
89
+ Run `npx @cachly-dev/mcp-server@latest setup` once. It:
90
+ 1. Signs you in with one browser click (no credentials in config)
91
+ 2. Detects Claude Code, Cursor, Windsurf, VS Code, Cline — writes all configs automatically
92
+ 3. Bootstraps your Brain from your git history right away
93
+ 4. Installs a git hook so every future commit feeds the brain automatically
94
+
95
+ From that point, your AI arrives pre-briefed every session. No `session_start` needed — it's automatic.
96
+
97
+ **The feature I'm most excited about:**
98
+ `causal_trace("auth breaks after restart")` — it doesn't just search for similar lessons, it walks a Causal Knowledge Graph to reconstruct the failure chain and return the exact fix you used before, with commands and file paths.
99
+
100
+ **Free forever** — 25 MB, German servers, GDPR, no credit card.
101
+
102
+ GitHub: https://github.com/cachly-dev/cachly-mcp
103
+
104
+ Would love feedback from this community — what memory features would you most want?
105
+
106
+ ---
107
+
108
+ ## Reddit — r/LocalLLaMA
109
+
110
+ **Title:**
111
+ MCP server that learns from your git history automatically — causal memory for AI coding
112
+
113
+ **Text:**
114
+ Built this for the problem of AI context loss between sessions. Technical highlights:
115
+
116
+ - **Causal Knowledge Graph (CKG):** Typed edges (fixes, requires, co-occurs, causes, contradicts). `causal_trace` walks the graph instead of just doing text similarity.
117
+ - **Continuous Learning Stream:** git post-commit hook + GitHub Actions step. Every commit → lessons extracted automatically. Zero `session_end` calls needed.
118
+ - **brain_predict:** Before deploys, reads your CKG for patterns that match past failures and returns probability-weighted warnings.
119
+ - **Memory Crystals:** Compresses 30-50 sessions into a dense snapshot injected at every session start.
120
+ - **11-language BM25+ search:** EN, DE, FR, ES, IT, PT, ZH, JA, KO, AR, HE — cross-lingual retrieval (e.g. `smart_recall("deploy")` finds デプロイ, 部署, 배포).
121
+
122
+ Works with any MCP host: Claude Code, Cursor, Windsurf, VS Code, Cline, Zed, Continue.dev.
123
+
124
+ Free tier: 25 MB. Apache-2.0. German servers.
125
+
126
+ GitHub: https://github.com/cachly-dev/cachly-mcp
127
+
128
+ ---
129
+
130
+ ## Twitter/X Thread
131
+
132
+ **Tweet 1:**
133
+ Your AI forgets everything between sessions.
134
+ I built the fix.
135
+
136
+ `npx @cachly-dev/mcp-server@latest setup`
137
+
138
+ One command → persistent AI memory across Claude, Cursor, Copilot, Windsurf.
139
+ Free forever. 🧵
140
+
141
+ **Tweet 2:**
142
+ The part that took the longest to build: `causal_trace`
143
+
144
+ You type: "auth breaks after restart"
145
+
146
+ It returns:
147
+ → Root: k8s:namespace-terminating
148
+ → Via: keycloak:jwks-race
149
+ → Fix: PollUntilContextTimeout 3min ← you used this March 12, it worked
150
+
151
+ 30 minutes of git blame. One call.
152
+
153
+ **Tweet 3:**
154
+ How setup works:
155
+ 1. Run the command
156
+ 2. Browser opens → one click sign-in (no password)
157
+ 3. It detects every editor you have
158
+ 4. Writes MCP config for each automatically
159
+ 5. Bootstraps Brain from your git history
160
+ 6. Installs git hook for automatic future learning
161
+
162
+ Restart editor. Done.
163
+
164
+ **Tweet 4:**
165
+ What your AI sees every morning:
166
+
167
+ 🧠 Session Briefing
168
+ ⏱️ Brain saved you ~4h 30m total
169
+ ✅ api:auth — Bearer in header, not cookie
170
+ ✅ docker:build — ARG changes bust cache
171
+ ⚠️ k8s:deploy — namespace terminating race condition
172
+
173
+ 🤝 Your team has 3 new lessons since yesterday
174
+
175
+ **Tweet 5:**
176
+ Free tier: 25 MB, German servers, GDPR-compliant, no credit card.
177
+ Open source: Apache-2.0
178
+
179
+ GitHub: github.com/cachly-dev/cachly-mcp
180
+ npm: @cachly-dev/mcp-server
181
+
182
+ If this saves you time, a ⭐ means a lot.
package/LICENSE ADDED
@@ -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.