context-bridge-local 0.7.0b2__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 (104) hide show
  1. context_bridge_local-0.7.0b2/.github/workflows/ci.yml +55 -0
  2. context_bridge_local-0.7.0b2/.github/workflows/release.yml +125 -0
  3. context_bridge_local-0.7.0b2/.gitignore +36 -0
  4. context_bridge_local-0.7.0b2/CHANGELOG.md +55 -0
  5. context_bridge_local-0.7.0b2/CONTRIBUTING.md +23 -0
  6. context_bridge_local-0.7.0b2/LICENSE +202 -0
  7. context_bridge_local-0.7.0b2/MANIFEST.in +16 -0
  8. context_bridge_local-0.7.0b2/NOTICE +7 -0
  9. context_bridge_local-0.7.0b2/PKG-INFO +398 -0
  10. context_bridge_local-0.7.0b2/README.md +174 -0
  11. context_bridge_local-0.7.0b2/SECURITY.md +39 -0
  12. context_bridge_local-0.7.0b2/THIRD_PARTY.md +20 -0
  13. context_bridge_local-0.7.0b2/context_bridge_local.egg-info/PKG-INFO +398 -0
  14. context_bridge_local-0.7.0b2/context_bridge_local.egg-info/SOURCES.txt +102 -0
  15. context_bridge_local-0.7.0b2/context_bridge_local.egg-info/dependency_links.txt +1 -0
  16. context_bridge_local-0.7.0b2/context_bridge_local.egg-info/entry_points.txt +3 -0
  17. context_bridge_local-0.7.0b2/context_bridge_local.egg-info/requires.txt +5 -0
  18. context_bridge_local-0.7.0b2/context_bridge_local.egg-info/top_level.txt +1 -0
  19. context_bridge_local-0.7.0b2/docs/ARCHITECTURE.md +23 -0
  20. context_bridge_local-0.7.0b2/docs/CLIENTS.md +136 -0
  21. context_bridge_local-0.7.0b2/docs/MILESTONES.md +177 -0
  22. context_bridge_local-0.7.0b2/docs/PASSAGE-READING.md +29 -0
  23. context_bridge_local-0.7.0b2/docs/RELEASING.md +94 -0
  24. context_bridge_local-0.7.0b2/docs/RETEST-0.6.0a2.md +85 -0
  25. context_bridge_local-0.7.0b2/docs/RETEST-0.6.0a3.md +26 -0
  26. context_bridge_local-0.7.0b2/docs/assets/demo.gif +0 -0
  27. context_bridge_local-0.7.0b2/docs/verification/0.6.0a2/benchmark-5000.json +18 -0
  28. context_bridge_local-0.7.0b2/docs/verification/0.6.0a2/full-tests.txt +147 -0
  29. context_bridge_local-0.7.0b2/docs/verification/0.6.0a2/package-smoke.txt +1 -0
  30. context_bridge_local-0.7.0b2/docs/verification/0.6.0a2/python312-tests.txt +147 -0
  31. context_bridge_local-0.7.0b2/docs/verification/0.6.0a2/sdk-stdio.txt +2 -0
  32. context_bridge_local-0.7.0b2/docs/verification/0.6.0a2/twine.txt +5 -0
  33. context_bridge_local-0.7.0b2/docs/verification/0.6.0a2/uvx.txt +1 -0
  34. context_bridge_local-0.7.0b2/docs/verification/0.6.0a3/full-tests.txt +159 -0
  35. context_bridge_local-0.7.0b2/docs/verification/0.6.0a3/package-smoke.txt +1 -0
  36. context_bridge_local-0.7.0b2/prototype/__init__.py +3 -0
  37. context_bridge_local-0.7.0b2/prototype/__main__.py +4 -0
  38. context_bridge_local-0.7.0b2/prototype/accounts.py +85 -0
  39. context_bridge_local-0.7.0b2/prototype/benchmark.py +110 -0
  40. context_bridge_local-0.7.0b2/prototype/bridge.py +431 -0
  41. context_bridge_local-0.7.0b2/prototype/cli.py +41 -0
  42. context_bridge_local-0.7.0b2/prototype/compare_evaluations.py +51 -0
  43. context_bridge_local-0.7.0b2/prototype/configure_semantic.py +63 -0
  44. context_bridge_local-0.7.0b2/prototype/demo.py +31 -0
  45. context_bridge_local-0.7.0b2/prototype/evals/README.md +70 -0
  46. context_bridge_local-0.7.0b2/prototype/evals/SEMANTIC.md +58 -0
  47. context_bridge_local-0.7.0b2/prototype/evals/claim-support.json +146 -0
  48. context_bridge_local-0.7.0b2/prototype/evals/model-selection-dev.json +1475 -0
  49. context_bridge_local-0.7.0b2/prototype/evals/pilot-negative-probes.json +66 -0
  50. context_bridge_local-0.7.0b2/prototype/evals/scenarios.json +686 -0
  51. context_bridge_local-0.7.0b2/prototype/evals/semantic-validation.json +296 -0
  52. context_bridge_local-0.7.0b2/prototype/evaluate.py +329 -0
  53. context_bridge_local-0.7.0b2/prototype/evaluate_support.py +82 -0
  54. context_bridge_local-0.7.0b2/prototype/evidence_graph.py +110 -0
  55. context_bridge_local-0.7.0b2/prototype/imports.py +503 -0
  56. context_bridge_local-0.7.0b2/prototype/label_queries.py +121 -0
  57. context_bridge_local-0.7.0b2/prototype/library.py +206 -0
  58. context_bridge_local-0.7.0b2/prototype/live_test.py +117 -0
  59. context_bridge_local-0.7.0b2/prototype/local_profile.py +20 -0
  60. context_bridge_local-0.7.0b2/prototype/mcp_server.py +303 -0
  61. context_bridge_local-0.7.0b2/prototype/migrate.py +64 -0
  62. context_bridge_local-0.7.0b2/prototype/paths.py +20 -0
  63. context_bridge_local-0.7.0b2/prototype/privacy.py +37 -0
  64. context_bridge_local-0.7.0b2/prototype/requirements-semantic-lock.txt +22 -0
  65. context_bridge_local-0.7.0b2/prototype/retrieval.py +100 -0
  66. context_bridge_local-0.7.0b2/prototype/select_retrieval.py +62 -0
  67. context_bridge_local-0.7.0b2/prototype/semantic.py +186 -0
  68. context_bridge_local-0.7.0b2/prototype/session_manager.py +322 -0
  69. context_bridge_local-0.7.0b2/prototype/setup_demo.py +43 -0
  70. context_bridge_local-0.7.0b2/prototype/setup_semantic.py +85 -0
  71. context_bridge_local-0.7.0b2/prototype/setup_support.py +68 -0
  72. context_bridge_local-0.7.0b2/prototype/support.py +152 -0
  73. context_bridge_local-0.7.0b2/prototype/tests/test_bridge.py +97 -0
  74. context_bridge_local-0.7.0b2/prototype/tests/test_conversation_window.py +169 -0
  75. context_bridge_local-0.7.0b2/prototype/tests/test_desktop_client.py +59 -0
  76. context_bridge_local-0.7.0b2/prototype/tests/test_evaluation.py +120 -0
  77. context_bridge_local-0.7.0b2/prototype/tests/test_evidence_graph.py +57 -0
  78. context_bridge_local-0.7.0b2/prototype/tests/test_imports.py +137 -0
  79. context_bridge_local-0.7.0b2/prototype/tests/test_label_queries.py +52 -0
  80. context_bridge_local-0.7.0b2/prototype/tests/test_live.py +46 -0
  81. context_bridge_local-0.7.0b2/prototype/tests/test_manager.py +100 -0
  82. context_bridge_local-0.7.0b2/prototype/tests/test_mcp.py +86 -0
  83. context_bridge_local-0.7.0b2/prototype/tests/test_milestone1.py +98 -0
  84. context_bridge_local-0.7.0b2/prototype/tests/test_passage_read.py +63 -0
  85. context_bridge_local-0.7.0b2/prototype/tests/test_portability.py +49 -0
  86. context_bridge_local-0.7.0b2/prototype/tests/test_project_account_fixes.py +175 -0
  87. context_bridge_local-0.7.0b2/prototype/tests/test_redaction_cases.py +132 -0
  88. context_bridge_local-0.7.0b2/prototype/tests/test_retest_fixes.py +245 -0
  89. context_bridge_local-0.7.0b2/prototype/tests/test_retrieval.py +35 -0
  90. context_bridge_local-0.7.0b2/prototype/tests/test_semantic.py +206 -0
  91. context_bridge_local-0.7.0b2/prototype/tests/test_support.py +99 -0
  92. context_bridge_local-0.7.0b2/prototype/tests/test_support_review.py +41 -0
  93. context_bridge_local-0.7.0b2/prototype/tests/test_trust_scale.py +189 -0
  94. context_bridge_local-0.7.0b2/prototype/tests/test_web_exclusions.py +101 -0
  95. context_bridge_local-0.7.0b2/pyproject.toml +35 -0
  96. context_bridge_local-0.7.0b2/registry/server.template.json +18 -0
  97. context_bridge_local-0.7.0b2/server.json +28 -0
  98. context_bridge_local-0.7.0b2/setup.cfg +4 -0
  99. context_bridge_local-0.7.0b2/tools/check_artifacts.py +38 -0
  100. context_bridge_local-0.7.0b2/tools/make_demo.py +91 -0
  101. context_bridge_local-0.7.0b2/tools/package_smoke.py +84 -0
  102. context_bridge_local-0.7.0b2/tools/prepare_registry.py +36 -0
  103. context_bridge_local-0.7.0b2/tools/sdk_smoke.py +52 -0
  104. context_bridge_local-0.7.0b2/tools/uvx_smoke.py +36 -0
@@ -0,0 +1,55 @@
1
+ name: Tests and packages
2
+ on:
3
+ push:
4
+ pull_request:
5
+ workflow_dispatch:
6
+ permissions:
7
+ contents: read
8
+ jobs:
9
+ test:
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ os: [ubuntu-latest, macos-latest]
14
+ python: ['3.9', '3.10', '3.11', '3.12', '3.13']
15
+ # ubuntu-latest (26.04) ships no Python 3.9 build; test it on 24.04.
16
+ exclude:
17
+ - os: ubuntu-latest
18
+ python: '3.9'
19
+ include:
20
+ - os: ubuntu-24.04
21
+ python: '3.9'
22
+ runs-on: ${{ matrix.os }}
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: ${{ matrix.python }}
28
+ - name: Install build checks
29
+ run: python -m pip install build twine uv
30
+ - name: Regression suite
31
+ env:
32
+ PYTHONPATH: prototype
33
+ PYTHONDONTWRITEBYTECODE: '1'
34
+ run: python -m unittest discover -s prototype/tests -v
35
+ - name: Build and check distributions
36
+ run: |
37
+ python -m build
38
+ python -m twine check --strict dist/*
39
+ python tools/check_artifacts.py dist
40
+ - name: uvx package smoke test
41
+ run: python tools/uvx_smoke.py dist
42
+ - name: Installed package smoke test
43
+ run: |
44
+ python -m venv /tmp/context-bridge-smoke
45
+ /tmp/context-bridge-smoke/bin/python -m pip install dist/*.whl
46
+ /tmp/context-bridge-smoke/bin/python tools/package_smoke.py
47
+ sdk-client:
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - uses: actions/checkout@v4
51
+ - uses: actions/setup-python@v5
52
+ with:
53
+ python-version: '3.12'
54
+ - run: python -m pip install . 'mcp>=1.12,<2'
55
+ - run: python tools/sdk_smoke.py
@@ -0,0 +1,125 @@
1
+ name: Release
2
+ # Publishes with PyPI Trusted Publishing (OIDC); no API tokens are stored.
3
+ # Push a tag vX.Y.Z[aN|bN|rcN] matching pyproject.toml -> PyPI + GitHub release.
4
+ # Run manually (Actions > Release > Run workflow) -> TestPyPI only.
5
+ on:
6
+ push:
7
+ tags: ['v*']
8
+ workflow_dispatch:
9
+ permissions:
10
+ contents: read
11
+ concurrency:
12
+ group: release-${{ github.ref }}
13
+ cancel-in-progress: false
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ outputs:
18
+ version: ${{ steps.version.outputs.version }}
19
+ prerelease: ${{ steps.version.outputs.prerelease }}
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - uses: actions/setup-python@v5
23
+ with:
24
+ python-version: '3.12'
25
+ - name: Check version consistency
26
+ id: version
27
+ run: |
28
+ python - <<'EOF'
29
+ import os, re, sys, tomllib
30
+ version = tomllib.load(open('pyproject.toml', 'rb'))['project']['version']
31
+ module = re.search(r"__version__ = '([^']+)'", open('prototype/__init__.py').read()).group(1)
32
+ errors = []
33
+ # Collaborators have write access; only the owner may start or re-run a release.
34
+ for name in ('GITHUB_ACTOR', 'GITHUB_TRIGGERING_ACTOR'):
35
+ if os.environ.get(name, 'ModernFarm-hub') != 'ModernFarm-hub':
36
+ errors.append(f'{name}={os.environ[name]} may not publish; only ModernFarm-hub releases')
37
+ if module != version:
38
+ errors.append(f'prototype/__init__.py has {module}, pyproject.toml has {version}')
39
+ if os.environ['GITHUB_REF_TYPE'] == 'tag' and os.environ['GITHUB_REF_NAME'] != 'v' + version:
40
+ errors.append(f"tag {os.environ['GITHUB_REF_NAME']} does not match v{version}")
41
+ if 'mcp-name: io.github.' not in open('README.md').read():
42
+ errors.append('README.md lacks the mcp-name marker; run tools/prepare_registry.py first')
43
+ if errors:
44
+ sys.exit('\n'.join(errors))
45
+ with open(os.environ['GITHUB_OUTPUT'], 'a') as out:
46
+ out.write(f'version={version}\n')
47
+ out.write(f"prerelease={str(bool(re.search(r'(a|b|rc|dev)[0-9]', version))).lower()}\n")
48
+ print('Releasing', version)
49
+ EOF
50
+ - name: Install build checks
51
+ run: python -m pip install build twine
52
+ - name: Regression suite
53
+ env:
54
+ PYTHONPATH: prototype
55
+ PYTHONDONTWRITEBYTECODE: '1'
56
+ run: python -m unittest discover -s prototype/tests
57
+ - name: Build and check distributions
58
+ run: |
59
+ python -m build
60
+ python -m twine check --strict dist/*
61
+ python tools/check_artifacts.py dist
62
+ - name: Installed package smoke test
63
+ run: |
64
+ python -m venv /tmp/context-bridge-smoke
65
+ /tmp/context-bridge-smoke/bin/python -m pip install dist/*.whl
66
+ /tmp/context-bridge-smoke/bin/python tools/package_smoke.py
67
+ - uses: actions/upload-artifact@v4
68
+ with:
69
+ name: dist
70
+ path: dist/
71
+ if-no-files-found: error
72
+
73
+ testpypi:
74
+ if: github.event_name == 'workflow_dispatch'
75
+ needs: build
76
+ runs-on: ubuntu-latest
77
+ environment:
78
+ name: testpypi
79
+ url: https://test.pypi.org/project/context-bridge-local/${{ needs.build.outputs.version }}/
80
+ permissions:
81
+ id-token: write
82
+ steps:
83
+ - uses: actions/download-artifact@v4
84
+ with:
85
+ name: dist
86
+ path: dist/
87
+ - uses: pypa/gh-action-pypi-publish@release/v1
88
+ with:
89
+ repository-url: https://test.pypi.org/legacy/
90
+
91
+ pypi:
92
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
93
+ needs: build
94
+ runs-on: ubuntu-latest
95
+ environment:
96
+ name: pypi
97
+ url: https://pypi.org/project/context-bridge-local/${{ needs.build.outputs.version }}/
98
+ permissions:
99
+ id-token: write
100
+ steps:
101
+ - uses: actions/download-artifact@v4
102
+ with:
103
+ name: dist
104
+ path: dist/
105
+ - uses: pypa/gh-action-pypi-publish@release/v1
106
+
107
+ github-release:
108
+ needs: [build, pypi]
109
+ runs-on: ubuntu-latest
110
+ permissions:
111
+ contents: write
112
+ steps:
113
+ - uses: actions/download-artifact@v4
114
+ with:
115
+ name: dist
116
+ path: dist/
117
+ - name: Create GitHub release
118
+ env:
119
+ GH_TOKEN: ${{ github.token }}
120
+ run: |
121
+ gh release create "$GITHUB_REF_NAME" dist/* \
122
+ --repo "$GITHUB_REPOSITORY" \
123
+ --title "Context Bridge ${{ needs.build.outputs.version }}" \
124
+ --generate-notes \
125
+ ${{ needs.build.outputs.prerelease == 'true' && '--prerelease' || '' }}
@@ -0,0 +1,36 @@
1
+ # Local state, session histories, credentials and model assets must never ship.
2
+ work/
3
+ **/__pycache__/
4
+ *.py[cod]
5
+ .venv/
6
+ venv/
7
+ .env
8
+ .env.*
9
+ !.env.example
10
+ *.db
11
+ *.db-*
12
+ *.sqlite*
13
+ *.jsonl
14
+ *.command.tmp
15
+ **/enrollment.json
16
+ **/*-settings.json
17
+ **/*-mcp.json
18
+ **/mcp-demo.json
19
+ **/context.db*
20
+ *.log
21
+ .DS_Store
22
+ # Generated reports contain local paths. Publish curated synthetic summaries only.
23
+ /evaluation/
24
+ /research/internal/
25
+ # Reproducible fixtures in prototype/evals/*.json are intentional source files.
26
+ build/
27
+ dist/
28
+ *.egg-info/
29
+
30
+ /releases/
31
+
32
+ **/profile.json
33
+ .mcpregistry_*
34
+
35
+ .build-venv/
36
+ docs/assets/*.preview.png
@@ -0,0 +1,55 @@
1
+ # Changelog
2
+
3
+ ## 0.7.0b2 — first public beta
4
+
5
+ - `context_read` returns surrounding conversation turns (`context`, default 2, maximum 10 each side) in order, with per-message record IDs, roles, timestamps and a target marker; conversation text appears once in the combined body.
6
+ - `remove --conversation` now records a hashed, per-profile exclusion: removed ChatGPT and Claude chats stay out on re-import and are reported as `conversations_excluded`. `exclusions list` and `exclusions clear` restore eligibility deliberately.
7
+ - Search results add a readable `Source: label — link` line for clients that ignore structured fields.
8
+ - Document ChatGPT desktop app STDIO setup; arguments passed as one string now produce an explicit error instead of "Unknown command".
9
+ - CI runs Python 3.9 on Ubuntu 24.04, because `ubuntu-latest` (26.04) has no 3.9 build.
10
+ - 0.7.0b1 was uploaded to TestPyPI only as a release rehearsal; it was never published to PyPI.
11
+
12
+
13
+ ## 0.7.0b1 — first beta release preparation
14
+
15
+ - Prepare the `io.github.ModernFarm-hub/context-bridge` MCP registry identity, README ownership marker, repository/issue URLs and generated server metadata before the first PyPI upload.
16
+ - Synchronize the package, runtime, MCP server and registry package versions at 0.7.0b1; mark the distribution as beta.
17
+ - Carry forward the independently tested local import/search, scoped removal, project selection, credential redaction and account-isolation features from the alpha series.
18
+ - PyPI and MCP registry publication remain pending; this entry records release preparation, not a completed upload.
19
+
20
+
21
+ ## 0.6.0a3 — project selection and account safety
22
+
23
+ - Accept dash-prefixed project names, numbered `--select`, original `--path` and an interactive numbered picker.
24
+ - Restrict structured credential names so database schema fields remain intact; redact Slack/Discord webhooks.
25
+ - Upgrade redaction to policy 3 for stored webhook credentials. Already-erased schema values require re-importing an original export; original Claude Code transcripts can be reprocessed.
26
+ - Improve fallback Code titles using the project folder and redacted first-user excerpt.
27
+ - Compare hashed export account identifiers before replacing a provider snapshot; require explicit confirmation for switches and offer separate named profiles across import/MCP/management.
28
+ - Commit 0.6.0a2 in logical groups; run the updated matrix through GitHub Actions before publication.
29
+
30
+
31
+ ## 0.6.0a2 — independent re-test fixes, publication pending
32
+
33
+ - Reconcile provider export snapshots and remove absent conversations, reporting removal counts.
34
+ - Add `list`, `stats`, and scoped conversation/provider removal with complete index/copy cleanup.
35
+ - Expand credential redaction, bump the policy to version 2, and migrate existing index metadata and owned working copies.
36
+ - Batch export imports into one database transaction/connection and one profile write, with progress and unchanged-copy detection.
37
+ - Cache profile parsing and canonical paths; skip unchanged metadata writes and batch refresh updates.
38
+ - Discover new Claude Code sessions only within explicitly approved project directories; respect removals.
39
+ - Update MCP descriptions, macOS pip setup guidance, and the benchmark to 5,000 files containing 2–40 messages each.
40
+
41
+
42
+ ## 0.6.0a1 — local release candidate, publication pending
43
+
44
+ - Import official ChatGPT and Claude.ai exports with conversation URLs and metadata.
45
+ - Preview and approve existing Claude Code projects before importing.
46
+ - Search one shared local library from stdio MCP clients, with no required source/reader split.
47
+ - Add opaque record IDs, source labels, paginated reads and changed-record checks. Public MCP `context_read` now requires `record_id`; reconnect clients after upgrading so they refresh the tool schema.
48
+ - Skip malformed transcript lines with diagnostics; preserve named-source capture across new session IDs.
49
+ - Negotiate supported MCP versions and return actionable tool errors.
50
+ - Redact recognized secrets before indexing and on MCP output; exclude tool/thinking bodies.
51
+ - Add incremental ingestion and profile-specific SQLite FTS5/BM25 indexing.
52
+ - Use local profile terminology while retaining legacy configuration/database compatibility.
53
+ - Prepare a product README/demo, security policy, CI matrix and publishing/registry instructions. Move historical research docs aside; retrieval research remains frozen.
54
+
55
+ The distribution name is `context-bridge-local`; `context-bridge` on PyPI is an unrelated project. Publication and remote CI results must be verified separately from local build checks.
@@ -0,0 +1,23 @@
1
+ # Contributing
2
+
3
+ Help make imports, search, citations and local installation reliable. Research work is frozen while the product milestones ship.
4
+
5
+ ## Develop
6
+
7
+ ```sh
8
+ python3 -m venv .venv
9
+ .venv/bin/python -m pip install .
10
+ PYTHONPATH=prototype .venv/bin/python -m unittest discover -s prototype/tests -v
11
+ ```
12
+
13
+ Default tests require no external services or private conversations. Add a regression test for each bug fix, using small invented fixtures. Existing optional model tests skip when dependencies/assets are absent; report skips honestly. Do not download models or tune reserved evaluation sets as part of a product bug fix.
14
+
15
+ CI runs the base suite and package smoke checks on macOS and Linux, Python 3.9–3.13. This is configured coverage, not a claim that remote jobs have already passed. Test installed artifacts as well as source imports when changing packaging.
16
+
17
+ ## Report a bug
18
+
19
+ Include the version, OS/Python version, exact steps, and a minimal synthetic export/transcript that reproduces the issue. Distinguish an actual MCP call from a model's description of one. Omit local usernames, private exports, employer/client data, credentials and database files. See [SECURITY.md](SECURITY.md) for sensitive vulnerabilities.
20
+
21
+ ## License
22
+
23
+ Contribute only material you have the right to share. Original contributions use Apache-2.0. Preserve third-party licenses and document any new runtime dependencies. Public repository and reporting details will be added when publication is configured; no contact address is assumed.
@@ -0,0 +1,202 @@
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 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
+
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.
@@ -0,0 +1,16 @@
1
+ include .gitignore LICENSE NOTICE README.md CHANGELOG.md CONTRIBUTING.md SECURITY.md THIRD_PARTY.md pyproject.toml
2
+ recursive-include docs *.md *.gif *.txt *.json
3
+ recursive-include tools *.py
4
+ recursive-include registry *.json
5
+ recursive-include .github *.yml
6
+ recursive-include prototype *.py
7
+ recursive-include prototype/evals *.json *.md
8
+ include prototype/requirements-semantic-lock.txt
9
+ prune research
10
+ prune evaluation
11
+ prune releases
12
+ prune work
13
+ prune prototype/__pycache__
14
+ recursive-exclude * __pycache__ *.pyc *.jsonl *.db *.log
15
+
16
+ include server.json
@@ -0,0 +1,7 @@
1
+ Context Bridge
2
+ Copyright 2026 Vineeth Ayyat Kochaniyan and Context Bridge contributors.
3
+
4
+ Original project code is licensed under the Apache License, Version 2.0.
5
+ External dependencies and downloaded model assets retain their own licenses.
6
+ See THIRD_PARTY.md. No affiliation with Anthropic, OpenAI, Mem0 or the
7
+ Apache Software Foundation is implied.