context-server 0.1.0__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.
- context_server-0.1.0/.cargo/config.toml.example +8 -0
- context_server-0.1.0/.github/workflows/release.yml +62 -0
- context_server-0.1.0/.gitignore +10 -0
- context_server-0.1.0/Cargo.lock +3743 -0
- context_server-0.1.0/Cargo.toml +35 -0
- context_server-0.1.0/LICENSE +21 -0
- context_server-0.1.0/PKG-INFO +104 -0
- context_server-0.1.0/PLAN.md +62 -0
- context_server-0.1.0/README.md +92 -0
- context_server-0.1.0/examples/sample-docs/README.md +10 -0
- context_server-0.1.0/examples/sample-docs/onboarding.md +11 -0
- context_server-0.1.0/examples/sample-docs/release-process.md +9 -0
- context_server-0.1.0/pyproject.toml +18 -0
- context_server-0.1.0/src/embed.rs +47 -0
- context_server-0.1.0/src/index.rs +259 -0
- context_server-0.1.0/src/main.rs +203 -0
- context_server-0.1.0/src/mcp.rs +164 -0
- context_server-0.1.0/src/search.rs +101 -0
- context_server-0.1.0/src/store.rs +234 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Optional: only needed on hosts where `-lstdc++` fails because
|
|
2
|
+
# libstdc++.so is missing (Fedora often ships only libstdc++.so.6).
|
|
3
|
+
#
|
|
4
|
+
# mkdir -p .linker && ln -sfn /usr/lib64/libstdc++.so.6 .linker/libstdc++.so
|
|
5
|
+
# cp .cargo/config.toml.example .cargo/config.toml
|
|
6
|
+
#
|
|
7
|
+
# [build]
|
|
8
|
+
# rustflags = ["-L", "native=.linker"]
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
build:
|
|
14
|
+
name: Build wheels (${{ matrix.target }})
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
include:
|
|
20
|
+
- os: ubuntu-latest
|
|
21
|
+
target: x86_64-unknown-linux-gnu
|
|
22
|
+
manylinux: "2_28"
|
|
23
|
+
- os: ubuntu-latest
|
|
24
|
+
target: aarch64-unknown-linux-gnu
|
|
25
|
+
manylinux: "2_28"
|
|
26
|
+
- os: macos-latest
|
|
27
|
+
target: aarch64-apple-darwin
|
|
28
|
+
- os: macos-13
|
|
29
|
+
target: x86_64-apple-darwin
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v4
|
|
32
|
+
|
|
33
|
+
- uses: PyO3/maturin-action@v1
|
|
34
|
+
with:
|
|
35
|
+
target: ${{ matrix.target }}
|
|
36
|
+
manylinux: ${{ matrix.manylinux || 'auto' }}
|
|
37
|
+
args: --release --locked --out dist
|
|
38
|
+
|
|
39
|
+
- uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: wheels-${{ matrix.target }}
|
|
42
|
+
path: dist
|
|
43
|
+
|
|
44
|
+
publish:
|
|
45
|
+
name: Publish to PyPI
|
|
46
|
+
needs: build
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
49
|
+
environment:
|
|
50
|
+
name: release
|
|
51
|
+
permissions:
|
|
52
|
+
id-token: write
|
|
53
|
+
steps:
|
|
54
|
+
- uses: astral-sh/setup-uv@v6
|
|
55
|
+
|
|
56
|
+
- uses: actions/download-artifact@v4
|
|
57
|
+
with:
|
|
58
|
+
pattern: wheels-*
|
|
59
|
+
path: wheels
|
|
60
|
+
merge-multiple: true
|
|
61
|
+
|
|
62
|
+
- run: uv publish -v wheels/*
|