tribalmemory 0.1.0__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 (51) hide show
  1. tribalmemory/__init__.py +3 -0
  2. tribalmemory/a21/__init__.py +38 -0
  3. tribalmemory/a21/config/__init__.py +20 -0
  4. tribalmemory/a21/config/providers.py +104 -0
  5. tribalmemory/a21/config/system.py +184 -0
  6. tribalmemory/a21/container/__init__.py +8 -0
  7. tribalmemory/a21/container/container.py +212 -0
  8. tribalmemory/a21/providers/__init__.py +32 -0
  9. tribalmemory/a21/providers/base.py +241 -0
  10. tribalmemory/a21/providers/deduplication.py +99 -0
  11. tribalmemory/a21/providers/lancedb.py +232 -0
  12. tribalmemory/a21/providers/memory.py +128 -0
  13. tribalmemory/a21/providers/mock.py +54 -0
  14. tribalmemory/a21/providers/openai.py +151 -0
  15. tribalmemory/a21/providers/timestamp.py +88 -0
  16. tribalmemory/a21/system.py +293 -0
  17. tribalmemory/cli.py +298 -0
  18. tribalmemory/interfaces.py +306 -0
  19. tribalmemory/mcp/__init__.py +9 -0
  20. tribalmemory/mcp/__main__.py +6 -0
  21. tribalmemory/mcp/server.py +484 -0
  22. tribalmemory/performance/__init__.py +1 -0
  23. tribalmemory/performance/benchmarks.py +285 -0
  24. tribalmemory/performance/corpus_generator.py +171 -0
  25. tribalmemory/portability/__init__.py +1 -0
  26. tribalmemory/portability/embedding_metadata.py +320 -0
  27. tribalmemory/server/__init__.py +9 -0
  28. tribalmemory/server/__main__.py +6 -0
  29. tribalmemory/server/app.py +187 -0
  30. tribalmemory/server/config.py +115 -0
  31. tribalmemory/server/models.py +206 -0
  32. tribalmemory/server/routes.py +378 -0
  33. tribalmemory/services/__init__.py +15 -0
  34. tribalmemory/services/deduplication.py +115 -0
  35. tribalmemory/services/embeddings.py +273 -0
  36. tribalmemory/services/import_export.py +506 -0
  37. tribalmemory/services/memory.py +275 -0
  38. tribalmemory/services/vector_store.py +360 -0
  39. tribalmemory/testing/__init__.py +22 -0
  40. tribalmemory/testing/embedding_utils.py +110 -0
  41. tribalmemory/testing/fixtures.py +123 -0
  42. tribalmemory/testing/metrics.py +256 -0
  43. tribalmemory/testing/mocks.py +560 -0
  44. tribalmemory/testing/semantic_expansions.py +91 -0
  45. tribalmemory/utils.py +23 -0
  46. tribalmemory-0.1.0.dist-info/METADATA +275 -0
  47. tribalmemory-0.1.0.dist-info/RECORD +51 -0
  48. tribalmemory-0.1.0.dist-info/WHEEL +5 -0
  49. tribalmemory-0.1.0.dist-info/entry_points.txt +3 -0
  50. tribalmemory-0.1.0.dist-info/licenses/LICENSE +190 -0
  51. tribalmemory-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,275 @@
1
+ Metadata-Version: 2.4
2
+ Name: tribalmemory
3
+ Version: 0.1.0
4
+ Summary: Shared memory infrastructure for multi-instance AI agents
5
+ Author-email: Joe <joe@example.com>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/abbudjoe/TribalMemory
8
+ Project-URL: Repository, https://github.com/abbudjoe/TribalMemory
9
+ Project-URL: Issues, https://github.com/abbudjoe/TribalMemory/issues
10
+ Keywords: ai,agents,memory,embeddings,vector-search,lancedb
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: openai>=1.0.0
23
+ Requires-Dist: numpy>=1.24.0
24
+ Requires-Dist: scipy>=1.11.0
25
+ Requires-Dist: httpx>=0.25.0
26
+ Requires-Dist: pydantic>=2.0.0
27
+ Requires-Dist: lancedb>=0.4.0
28
+ Requires-Dist: pyarrow>=14.0.0
29
+ Requires-Dist: fastapi>=0.109.0
30
+ Requires-Dist: uvicorn>=0.27.0
31
+ Requires-Dist: pyyaml>=6.0.0
32
+ Requires-Dist: mcp[cli]>=1.2.0
33
+ Provides-Extra: dev
34
+ Requires-Dist: pytest>=7.4.0; extra == "dev"
35
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
36
+ Requires-Dist: pytest-timeout>=2.2.0; extra == "dev"
37
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
38
+ Requires-Dist: black>=23.0.0; extra == "dev"
39
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
40
+ Provides-Extra: benchmarks
41
+ Requires-Dist: datasets>=2.14.0; extra == "benchmarks"
42
+ Requires-Dist: ragas>=0.1.0; extra == "benchmarks"
43
+ Dynamic: license-file
44
+
45
+ # Tribal Memory
46
+
47
+ > Your AI tools don't share a brain. Tribal Memory gives them one.
48
+
49
+ One memory store, many agents. Teach Claude Code something — Codex already knows it. That's not just persistence — it's **cross-agent intelligence**.
50
+
51
+ ## Why
52
+
53
+ Every AI coding assistant starts fresh. Claude Code doesn't know what you told Codex. Codex doesn't know what you told Claude. You repeat yourself constantly.
54
+
55
+ Tribal Memory is a shared memory server that any AI agent can connect to. Store a memory from one agent, recall it from another. It just works.
56
+
57
+ ## Quick Start
58
+
59
+ ### Option A: Local Mode (Zero Cloud, Zero Cost)
60
+
61
+ No API keys. No cloud. Everything runs on your machine.
62
+
63
+ ```bash
64
+ pip install tribalmemory
65
+
66
+ # Set up with local Ollama embeddings
67
+ tribalmemory init --local
68
+
69
+ # Pull an embedding model (one time)
70
+ ollama pull nomic-embed-text
71
+
72
+ # Start the server
73
+ tribalmemory serve
74
+ ```
75
+
76
+ ### Option B: OpenAI Embeddings
77
+
78
+ ```bash
79
+ pip install tribalmemory
80
+
81
+ # Set up with OpenAI
82
+ export OPENAI_API_KEY=sk-...
83
+ tribalmemory init
84
+
85
+ # Start the server
86
+ tribalmemory serve
87
+ ```
88
+
89
+ Server runs on `http://localhost:18790`.
90
+
91
+ ## Claude Code Integration (MCP)
92
+
93
+ ```bash
94
+ # Auto-configure Claude Code
95
+ tribalmemory init --local --claude-code
96
+
97
+ # Or manually add to your Claude Code MCP config:
98
+ ```
99
+
100
+ ```json
101
+ {
102
+ "mcpServers": {
103
+ "tribal-memory": {
104
+ "command": "tribalmemory-mcp"
105
+ }
106
+ }
107
+ }
108
+ ```
109
+
110
+ Now Claude Code has persistent memory across sessions:
111
+
112
+ ```
113
+ You: Remember that the auth service uses JWT with RS256
114
+ Claude: ✅ Stored.
115
+
116
+ --- next session ---
117
+
118
+ You: How does the auth service work?
119
+ Claude: Based on my memory, the auth service uses JWT with RS256...
120
+ ```
121
+
122
+ ## Architecture
123
+
124
+ ```
125
+ ┌─────────────┐
126
+ │ Claude Code │──── MCP ────┐
127
+ └─────────────┘ │
128
+ ┌─────────────┐ ▼
129
+ │ Codex CLI │──── MCP ───► Tribal Memory Server
130
+ └─────────────┘ ▲ (localhost:18790)
131
+ ┌─────────────┐ │
132
+ │ OpenClaw │── plugin ───┘
133
+ └─────────────┘
134
+ ```
135
+
136
+ The server is the single source of truth. Each agent connects as an instance. Memories are tagged with `source_instance` so you can see *who* learned *what*.
137
+
138
+ ## Features
139
+
140
+ - **Semantic search** — Find memories by meaning, not keywords
141
+ - **Cross-agent sharing** — Memories from one agent are available to all
142
+ - **Automatic deduplication** — Won't store the same thing twice
143
+ - **Memory corrections** — Update outdated information with audit trail
144
+ - **Import/export** — Portable JSON bundles with embedding metadata
145
+ - **Token budgets** — Smart context management to avoid LLM overload
146
+ - **Local-only mode** — Ollama + LanceDB = zero data leaves your machine
147
+ - **MCP server** — Native integration with Claude Code and compatible tools
148
+
149
+ ## MCP Tools
150
+
151
+ When connected via MCP, your AI gets these tools:
152
+
153
+ | Tool | Description |
154
+ |------|-------------|
155
+ | `tribal_remember` | Store a new memory with deduplication |
156
+ | `tribal_recall` | Search memories by semantic similarity |
157
+ | `tribal_correct` | Update/correct an existing memory |
158
+ | `tribal_forget` | Delete a memory (soft delete) |
159
+ | `tribal_stats` | Get memory statistics |
160
+ | `tribal_export` | Export memories to portable JSON |
161
+ | `tribal_import` | Import memories from a bundle |
162
+
163
+ ## Configuration
164
+
165
+ Generated by `tribalmemory init`. Lives at `~/.tribal-memory/config.yaml`:
166
+
167
+ ```yaml
168
+ instance_id: my-agent
169
+
170
+ embedding:
171
+ provider: openai
172
+ model: nomic-embed-text # or text-embedding-3-small
173
+ api_base: http://localhost:11434/v1 # Ollama (omit for OpenAI)
174
+ dimensions: 768 # 768 for nomic, 1536 for OpenAI
175
+ # api_key not needed for local Ollama
176
+
177
+ db:
178
+ provider: lancedb
179
+ path: ~/.tribal-memory/lancedb
180
+
181
+ server:
182
+ host: 127.0.0.1
183
+ port: 18790
184
+ ```
185
+
186
+ ### Environment Variables
187
+
188
+ | Variable | Description |
189
+ |----------|-------------|
190
+ | `OPENAI_API_KEY` | OpenAI API key (not needed for local mode) |
191
+ | `TRIBAL_MEMORY_CONFIG` | Path to config file (default: `~/.tribal-memory/config.yaml`) |
192
+ | `TRIBAL_MEMORY_INSTANCE_ID` | Override instance ID |
193
+ | `TRIBAL_MEMORY_EMBEDDING_API_BASE` | Override embedding API base URL |
194
+
195
+ ## Python API
196
+
197
+ ```python
198
+ from tribalmemory.services import create_memory_service
199
+
200
+ # Local embeddings
201
+ service = create_memory_service(
202
+ instance_id="my-agent",
203
+ db_path="./memories",
204
+ api_base="http://localhost:11434/v1",
205
+ embedding_model="nomic-embed-text",
206
+ embedding_dimensions=768,
207
+ )
208
+
209
+ # Store
210
+ result = await service.remember(
211
+ "User prefers TypeScript for web projects",
212
+ tags=["preference", "coding"]
213
+ )
214
+
215
+ # Recall
216
+ results = await service.recall("What language for web?")
217
+ for r in results:
218
+ print(f"{r.similarity_score:.2f}: {r.memory.content}")
219
+
220
+ # Correct
221
+ await service.correct(
222
+ original_id=result.memory_id,
223
+ corrected_content="User prefers TypeScript for web, Python for scripts"
224
+ )
225
+ ```
226
+
227
+ ## HTTP API
228
+
229
+ ```bash
230
+ # Store a memory
231
+ curl -X POST http://localhost:18790/memories \
232
+ -H "Content-Type: application/json" \
233
+ -d '{"content": "The database uses Postgres 16", "tags": ["infra"]}'
234
+
235
+ # Search memories
236
+ curl "http://localhost:18790/memories/search?query=what+database&limit=5"
237
+
238
+ # Get stats
239
+ curl http://localhost:18790/stats
240
+ ```
241
+
242
+ ## OpenClaw Integration
243
+
244
+ Tribal Memory includes a plugin for [OpenClaw](https://github.com/openclaw/openclaw):
245
+
246
+ ```bash
247
+ openclaw plugins install ./extensions/memory-tribal
248
+ openclaw config set plugins.slots.memory=memory-tribal
249
+ ```
250
+
251
+ ## Development
252
+
253
+ ```bash
254
+ git clone https://github.com/abbudjoe/TribalMemory.git
255
+ cd TribalMemory
256
+ pip install -e ".[dev]"
257
+
258
+ # Run tests
259
+ PYTHONPATH=src pytest
260
+
261
+ # Run linting
262
+ ruff check .
263
+ black --check .
264
+ ```
265
+
266
+ ## Privacy
267
+
268
+ In local mode (Ollama + LanceDB), **zero data leaves your machine**:
269
+ - Embeddings computed locally by Ollama
270
+ - Memories stored locally in LanceDB
271
+ - No API keys, no cloud services, no telemetry
272
+
273
+ ## License
274
+
275
+ Apache 2.0 — see [LICENSE](LICENSE)
@@ -0,0 +1,51 @@
1
+ tribalmemory/__init__.py,sha256=DNgC_ZT0lrhxsPdhXu4oeG_UdrLstYQHeKwR-U2toeY,104
2
+ tribalmemory/cli.py,sha256=QYpHt0E-hRWK35YttlJks-xuV6kDfc6O4FrxChvZaxU,9043
3
+ tribalmemory/interfaces.py,sha256=W2BNYyYlY-RHTbnJn8-u1wbhfcUK5egzjUzrGexxyB0,9966
4
+ tribalmemory/utils.py,sha256=aei7xR6OVMGkllPySA2boeHyI3D1JsHTUX1YeaZdkMY,696
5
+ tribalmemory/a21/__init__.py,sha256=u1793uKzbWGKwiAVmCxEO9_3rdTL7QKTLhQQB8Umsl4,1181
6
+ tribalmemory/a21/system.py,sha256=gGFVWBTckSTFv8ZciEUc05HYjwxZP22UpIqbxXD6giM,9185
7
+ tribalmemory/a21/config/__init__.py,sha256=T9JNbnPGNCgtpHq7zht0lhjOcmOd5564PpzDDmloZ6U,481
8
+ tribalmemory/a21/config/providers.py,sha256=HctLmXSLdeVRM3PzyjE8ID9MNUlr1SVqsoNRzs3zGGQ,3123
9
+ tribalmemory/a21/config/system.py,sha256=yM4s2pt_0zTbgImMvbQATdJdj_r4M4stjNhh6WBy-FA,7150
10
+ tribalmemory/a21/container/__init__.py,sha256=6L8wsz31NGMlXtsbK_2mu86kKuyVPULpQzklnT6z3_A,153
11
+ tribalmemory/a21/container/container.py,sha256=fzjurVQvBK4_dID03YFJaexrARu9HcejBlWm_Hykj8U,7506
12
+ tribalmemory/a21/providers/__init__.py,sha256=yjYgjyC7lSTAnwyKfBEBqiA3YSSM1m_HkbzsaPLdz3o,876
13
+ tribalmemory/a21/providers/base.py,sha256=1A3RBXo1kO-88Lx7a-_qWtPcdsp-lU2H4TLuErXGsIM,6686
14
+ tribalmemory/a21/providers/deduplication.py,sha256=MKyNgrfJTcJcXM-RqDRgW6qKahfODUK6EbSJn4Tdqew,3182
15
+ tribalmemory/a21/providers/lancedb.py,sha256=Xs_t8TT00F7LADSe0h4WztFOZytQD1ovbTlnIBAwb3A,8404
16
+ tribalmemory/a21/providers/memory.py,sha256=uvvMnl3blA6YYMA34NfSZfPwYbbMOeofli-Sf1w1n5Y,4345
17
+ tribalmemory/a21/providers/mock.py,sha256=C58YQrUjqOB2ASFHu7vdeJTvE3_ujp4jfrzIYaWw6Hg,1627
18
+ tribalmemory/a21/providers/openai.py,sha256=MxFJXph8rVFAqkVMCS3vxdqwBB8_MhoqqGg6I9JW-lI,5426
19
+ tribalmemory/a21/providers/timestamp.py,sha256=T1sJkaQSixRip2C0AUPnljWP0u5w4iHoIcVRmG8FgPo,2994
20
+ tribalmemory/mcp/__init__.py,sha256=r7CzTwzAnSgox8_cBNZgtXDjMGxC7o8polptSvB-AvY,262
21
+ tribalmemory/mcp/__main__.py,sha256=GX6mNmM_Lpq4EyuTr__awVTf1btCi7TpEkNtMTkgas0,115
22
+ tribalmemory/mcp/server.py,sha256=otmDaFe2sXlHNyPorLgUIvkaM6F01EQ-1OdiyhqGDoU,15458
23
+ tribalmemory/performance/__init__.py,sha256=truSiOqk2WuzatOrzVQICwF8pxLxMlCD8R9O-uqiX3I,55
24
+ tribalmemory/performance/benchmarks.py,sha256=2MVfML04Y-05YpmHCsU-SLtS05-H38oJ7a6DCk2qGIc,8985
25
+ tribalmemory/performance/corpus_generator.py,sha256=ovln1d-7JGd5fJbdSRsdxlA0uaqLCVM3Lo_1SDGRkA0,5894
26
+ tribalmemory/portability/__init__.py,sha256=_USwXZyUKn9idsItv94AAzxKv1wqURYf68IzZ9Zmbyg,80
27
+ tribalmemory/portability/embedding_metadata.py,sha256=uT_f9jc_vpemY2WxK_UhP3kOAWgZLMRShKKxh3OzzPM,10478
28
+ tribalmemory/server/__init__.py,sha256=2YYwVr1IEr93MVa_7BKCX43bC82-ySnAfwypUw_nQJQ,238
29
+ tribalmemory/server/__main__.py,sha256=Uk2_8MH-aQ65QWDg_XMe5i-hdaQB-yJApLT8YUaIdEs,116
30
+ tribalmemory/server/app.py,sha256=P4QrOaw35t8NQvrJjYCXMEEFMuH2MrIibCyB2uwpvVU,4836
31
+ tribalmemory/server/config.py,sha256=4BCRUjTnkVCEGPNUK5UiOFXyO91BxwxXsCuEG0lnVh4,3552
32
+ tribalmemory/server/models.py,sha256=bY6IBn6_AW7PnGunQGa0W7LgKym0-KW05lGMztLbhY0,5652
33
+ tribalmemory/server/routes.py,sha256=8-Ie0Ib7t_tUT_kZvsb1QUuNQZ2Dd6rOTlI0d2CoiAk,11403
34
+ tribalmemory/services/__init__.py,sha256=htv8HuG_r_lYJwP5Q1bwO-oir436U0NfJrOxk9mB7kU,468
35
+ tribalmemory/services/deduplication.py,sha256=E8PaIDB6g24H28tKHrB5rMBJaKGGT3pFTDepXQThvcc,3679
36
+ tribalmemory/services/embeddings.py,sha256=0kY1uPyCg81AlRTNg5QhXbRLDv8hN9khKR4JDGF2sik,10005
37
+ tribalmemory/services/import_export.py,sha256=KfEl5EXAFcuyDmhOYJZfjiIRtJYY4qQlvxv2ePJQHaA,15095
38
+ tribalmemory/services/memory.py,sha256=UDypOGf8fAfN4iepkncrJn9v3QWvQx5lmItSZfwLUGg,9438
39
+ tribalmemory/services/vector_store.py,sha256=8oq1V-pedIW4A7FXvqHY91L5DK56YdGlZUC3qjDtugo,12703
40
+ tribalmemory/testing/__init__.py,sha256=XVS3uy0BjABCErgZohaqtj5MF20NKmj1KmtJfRiI_XI,524
41
+ tribalmemory/testing/embedding_utils.py,sha256=E40lSAU7cz-ow2hzKLSaZmafIlOP8d9gakP8R2DTlGM,3705
42
+ tribalmemory/testing/fixtures.py,sha256=_zDyUVm6CQqXK1Us8CN6A95tJcmo1D7LFDktIvjOmwM,3584
43
+ tribalmemory/testing/metrics.py,sha256=X1n84dJDNQXsfGV-i-MzhsWKnFgqHWIcIaQB-BUp0e0,8711
44
+ tribalmemory/testing/mocks.py,sha256=sjLy-pq3D_T21rEvWWKM_bqw7xnchRPGLARZNfKkpGU,19788
45
+ tribalmemory/testing/semantic_expansions.py,sha256=AbbJIXYN4EJT8WKJ7UmIlNRlv63VejbcnbzBy2z2Ofk,2953
46
+ tribalmemory-0.1.0.dist-info/licenses/LICENSE,sha256=M8D9Xf3B6C6DFiCgAAhKcXeTscaC4cw1fhr3LHUrALU,10774
47
+ tribalmemory-0.1.0.dist-info/METADATA,sha256=l-vV4rYIt3WFbe6Jbtzot4fZ3yTuzQA_yEXcmzdVJXs,7804
48
+ tribalmemory-0.1.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
49
+ tribalmemory-0.1.0.dist-info/entry_points.txt,sha256=9Pep7JNCk9ifdFP4WbeCugDOjMrLVegGJ5iuvbcZ9e8,103
50
+ tribalmemory-0.1.0.dist-info/top_level.txt,sha256=kX36ZpH4W7EWcInV4MrIudicusdz5hfkezKMZ3HCMQs,13
51
+ tribalmemory-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.2)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ tribalmemory = tribalmemory.cli:main
3
+ tribalmemory-mcp = tribalmemory.mcp.server:main
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 TribalMemory Contributors
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1 @@
1
+ tribalmemory