context-server 0.1.0__tar.gz → 0.1.5__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 (25) hide show
  1. context_server-0.1.5/.github/workflows/release.yml +89 -0
  2. {context_server-0.1.0 → context_server-0.1.5}/.gitignore +1 -0
  3. {context_server-0.1.0 → context_server-0.1.5}/Cargo.lock +1001 -17
  4. {context_server-0.1.0 → context_server-0.1.5}/Cargo.toml +5 -1
  5. context_server-0.1.5/Containerfile +55 -0
  6. {context_server-0.1.0 → context_server-0.1.5}/PKG-INFO +46 -6
  7. {context_server-0.1.0 → context_server-0.1.5}/PLAN.md +25 -11
  8. {context_server-0.1.0 → context_server-0.1.5}/README.md +45 -5
  9. {context_server-0.1.0 → context_server-0.1.5}/pyproject.toml +1 -1
  10. context_server-0.1.5/scripts/build-wheel.sh +25 -0
  11. context_server-0.1.5/src/bm25.rs +159 -0
  12. {context_server-0.1.0 → context_server-0.1.5}/src/embed.rs +25 -3
  13. {context_server-0.1.0 → context_server-0.1.5}/src/index.rs +94 -3
  14. {context_server-0.1.0 → context_server-0.1.5}/src/main.rs +40 -13
  15. {context_server-0.1.0 → context_server-0.1.5}/src/mcp.rs +45 -15
  16. context_server-0.1.5/src/remote.rs +433 -0
  17. context_server-0.1.5/src/search.rs +240 -0
  18. {context_server-0.1.0 → context_server-0.1.5}/src/store.rs +80 -5
  19. context_server-0.1.0/.github/workflows/release.yml +0 -62
  20. context_server-0.1.0/src/search.rs +0 -101
  21. {context_server-0.1.0 → context_server-0.1.5}/.cargo/config.toml.example +0 -0
  22. {context_server-0.1.0 → context_server-0.1.5}/LICENSE +0 -0
  23. {context_server-0.1.0 → context_server-0.1.5}/examples/sample-docs/README.md +0 -0
  24. {context_server-0.1.0 → context_server-0.1.5}/examples/sample-docs/onboarding.md +0 -0
  25. {context_server-0.1.0 → context_server-0.1.5}/examples/sample-docs/release-process.md +0 -0
@@ -0,0 +1,89 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ linux:
14
+ name: Linux wheel (${{ matrix.arch }})
15
+ runs-on: ${{ matrix.os }}
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ include:
20
+ - os: ubuntu-latest
21
+ arch: x86_64
22
+ - os: ubuntu-24.04-arm
23
+ arch: aarch64
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+
27
+ # Same Containerfile as local `./scripts/build-wheel.sh` (podman/docker).
28
+ # Ubuntu 24.04 base is required: ort prebuilts need glibc >= ~2.38.
29
+ - name: Build wheel with Containerfile
30
+ run: |
31
+ set -euo pipefail
32
+ docker build -t context-server-wheel -f Containerfile .
33
+ cid="$(docker create context-server-wheel)"
34
+ mkdir -p dist
35
+ docker cp "$cid:/out/." dist/
36
+ docker rm "$cid"
37
+ ls -la dist
38
+
39
+ - uses: actions/upload-artifact@v4
40
+ with:
41
+ name: wheels-linux-${{ matrix.arch }}
42
+ path: dist/*
43
+
44
+ macos:
45
+ name: macOS wheel (aarch64)
46
+ runs-on: macos-latest
47
+ steps:
48
+ - uses: actions/checkout@v4
49
+
50
+ # ort does not ship prebuilt ONNX Runtime for x86_64-apple-darwin.
51
+ - uses: PyO3/maturin-action@v1
52
+ with:
53
+ target: aarch64-apple-darwin
54
+ args: --release --locked --out dist
55
+ manylinux: 'off'
56
+
57
+ - uses: actions/upload-artifact@v4
58
+ with:
59
+ name: wheels-macos-aarch64
60
+ path: dist/*
61
+
62
+ publish:
63
+ name: Publish to PyPI
64
+ needs: [linux, macos]
65
+ runs-on: ubuntu-latest
66
+ if: startsWith(github.ref, 'refs/tags/')
67
+ environment:
68
+ name: release
69
+ url: https://pypi.org/project/context-server/
70
+ permissions:
71
+ id-token: write
72
+ contents: read
73
+ steps:
74
+ - uses: astral-sh/setup-uv@v6
75
+
76
+ - uses: actions/download-artifact@v4
77
+ with:
78
+ pattern: wheels-*
79
+ path: wheels
80
+ merge-multiple: true
81
+
82
+ - name: Show artifacts
83
+ run: ls -la wheels
84
+
85
+ # Trusted Publishing (OIDC). Configure at:
86
+ # https://pypi.org/manage/project/context-server/settings/publishing/
87
+ # Owner: shanemcd, Repo: context-server, Workflow: release.yml, Environment: release
88
+ - name: Publish to PyPI
89
+ run: uv publish --trusted-publishing always -v wheels/*
@@ -7,4 +7,5 @@ context-server
7
7
  models/
8
8
  third_party/
9
9
  .fastembed_cache/
10
+ /dist/
10
11
  **/.DS_Store