agent-link-mcp 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.
- agent_link_mcp-0.1.0/.github/workflows/publish.yml +38 -0
- agent_link_mcp-0.1.0/.github/workflows/test.yml +17 -0
- agent_link_mcp-0.1.0/.gitignore +6 -0
- agent_link_mcp-0.1.0/LICENSE +674 -0
- agent_link_mcp-0.1.0/PKG-INFO +111 -0
- agent_link_mcp-0.1.0/README.md +86 -0
- agent_link_mcp-0.1.0/pyproject.toml +47 -0
- agent_link_mcp-0.1.0/src/agent_link/__init__.py +4 -0
- agent_link_mcp-0.1.0/src/agent_link/__main__.py +4 -0
- agent_link_mcp-0.1.0/src/agent_link/claims.py +112 -0
- agent_link_mcp-0.1.0/src/agent_link/cli.py +69 -0
- agent_link_mcp-0.1.0/src/agent_link/client.py +209 -0
- agent_link_mcp-0.1.0/src/agent_link/host.py +214 -0
- agent_link_mcp-0.1.0/src/agent_link/hub.py +319 -0
- agent_link_mcp-0.1.0/src/agent_link/paths.py +61 -0
- agent_link_mcp-0.1.0/src/agent_link/server.py +344 -0
- agent_link_mcp-0.1.0/src/agent_link/summary.py +235 -0
- agent_link_mcp-0.1.0/tests/conftest.py +31 -0
- agent_link_mcp-0.1.0/tests/test_claims.py +76 -0
- agent_link_mcp-0.1.0/tests/test_e2e.py +264 -0
- agent_link_mcp-0.1.0/tests/test_hub.py +188 -0
- agent_link_mcp-0.1.0/tests/test_summary.py +109 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags: ["v*"]
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v7
|
|
10
|
+
with:
|
|
11
|
+
persist-credentials: false
|
|
12
|
+
- uses: actions/setup-python@v7
|
|
13
|
+
with:
|
|
14
|
+
python-version: "3.x"
|
|
15
|
+
- name: Check the tag matches the version
|
|
16
|
+
run: |
|
|
17
|
+
version=$(python -c "import re; print(re.search(r'__version__ = \"(.+)\"', open('src/agent_link/__init__.py').read())[1])")
|
|
18
|
+
test "v$version" = "$GITHUB_REF_NAME" || { echo "tag $GITHUB_REF_NAME doesn't match version $version"; exit 1; }
|
|
19
|
+
- run: pip install build
|
|
20
|
+
- run: python -m build
|
|
21
|
+
- uses: actions/upload-artifact@v7
|
|
22
|
+
with:
|
|
23
|
+
name: dist
|
|
24
|
+
path: dist/
|
|
25
|
+
pypi:
|
|
26
|
+
needs: build
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
environment:
|
|
29
|
+
name: pypi
|
|
30
|
+
url: https://pypi.org/p/agent-link-mcp
|
|
31
|
+
permissions:
|
|
32
|
+
id-token: write
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/download-artifact@v8
|
|
35
|
+
with:
|
|
36
|
+
name: dist
|
|
37
|
+
path: dist/
|
|
38
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
strategy:
|
|
6
|
+
fail-fast: false
|
|
7
|
+
matrix:
|
|
8
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
9
|
+
python: ["3.12", "3.14"]
|
|
10
|
+
runs-on: ${{ matrix.os }}
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v7
|
|
13
|
+
- uses: actions/setup-python@v7
|
|
14
|
+
with:
|
|
15
|
+
python-version: ${{ matrix.python }}
|
|
16
|
+
- run: pip install -e '.[test]'
|
|
17
|
+
- run: pytest
|