webarchiver 1.2.1__tar.gz → 1.2.2__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 (135) hide show
  1. {webarchiver-1.2.1 → webarchiver-1.2.2}/.bumpversion.cfg +1 -1
  2. webarchiver-1.2.2/.github/workflows/connector-pr.yml +17 -0
  3. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pre-commit-config.yaml +0 -6
  4. {webarchiver-1.2.1/webarchiver.egg-info → webarchiver-1.2.2}/PKG-INFO +4 -4
  5. {webarchiver-1.2.1 → webarchiver-1.2.2}/docker/Dockerfile +1 -1
  6. {webarchiver-1.2.1 → webarchiver-1.2.2}/pyproject.toml +5 -5
  7. webarchiver-1.2.2/tests/test_startup.py +18 -0
  8. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/_version.py +1 -1
  9. webarchiver-1.2.2/webarchiver/connector_sources.py +95 -0
  10. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/mcp_server.py +0 -1
  11. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/ontology/webarchiver.ttl +1 -2
  12. {webarchiver-1.2.1 → webarchiver-1.2.2/webarchiver.egg-info}/PKG-INFO +4 -4
  13. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver.egg-info/SOURCES.txt +2 -4
  14. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver.egg-info/requires.txt +3 -3
  15. webarchiver-1.2.1/scripts/generate_tool_schemas.py +0 -102
  16. webarchiver-1.2.1/tests/test_startup.py +0 -87
  17. webarchiver-1.2.1/webarchiver/connector_manifest.yml +0 -89
  18. webarchiver-1.2.1/webarchiver/connectors/mcp_source_presets.json +0 -1
  19. webarchiver-1.2.1/webarchiver/connectors/tool_schema_fingerprints.json +0 -1
  20. {webarchiver-1.2.1 → webarchiver-1.2.2}/.config/spec-dashboard.json +0 -0
  21. {webarchiver-1.2.1 → webarchiver-1.2.2}/.github/workflows/pages.yml +0 -0
  22. {webarchiver-1.2.1 → webarchiver-1.2.2}/.github/workflows/pipeline.yml +0 -0
  23. {webarchiver-1.2.1 → webarchiver-1.2.2}/.github/workflows/scanners.yml +0 -0
  24. {webarchiver-1.2.1 → webarchiver-1.2.2}/.github/workflows/windows-ci.yml +0 -0
  25. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/provenance.json +0 -0
  26. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/scripts/sync_mkdocs_theme.py +0 -0
  27. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/README.md +0 -0
  28. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-connector-sdk-logo-v1.png +0 -0
  29. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-terminal-ui-logo-v1.png +0 -0
  30. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-utilities-logo-v1.png +0 -0
  31. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-webui-logo-v1.png +0 -0
  32. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/arbora-logo-v1.png +0 -0
  33. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/epistemic-graph-logo-v1.png +0 -0
  34. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/geniusbot-logo-v1.png +0 -0
  35. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/favicon.svg +0 -0
  36. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/graph-mark.svg +0 -0
  37. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/base.mkdocs.yml +0 -0
  38. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/extra.css +0 -0
  39. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/glossary.md +0 -0
  40. {webarchiver-1.2.1 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/overrides/main.html +0 -0
  41. {webarchiver-1.2.1 → webarchiver-1.2.2}/LICENSE +0 -0
  42. {webarchiver-1.2.1 → webarchiver-1.2.2}/MANIFEST.in +0 -0
  43. {webarchiver-1.2.1 → webarchiver-1.2.2}/README.md +0 -0
  44. {webarchiver-1.2.1 → webarchiver-1.2.2}/docker/debug.Dockerfile +0 -0
  45. {webarchiver-1.2.1 → webarchiver-1.2.2}/docker/mcp.compose.yml +0 -0
  46. {webarchiver-1.2.1 → webarchiver-1.2.2}/docker/starship.toml +0 -0
  47. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/agent-readiness.json +0 -0
  48. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/agent-readiness.schema.json +0 -0
  49. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/architecture.md +0 -0
  50. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/brands/agent-connector-sdk-logo-v1.png +0 -0
  51. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/brands/agent-terminal-ui-logo-v1.png +0 -0
  52. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/brands/agent-utilities-logo-v1.png +0 -0
  53. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/brands/agent-webui-logo-v1.png +0 -0
  54. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/brands/arbora-logo-v1.png +0 -0
  55. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/brands/epistemic-graph-logo-v1.png +0 -0
  56. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/brands/geniusbot-logo-v1.png +0 -0
  57. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/favicon.svg +0 -0
  58. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/assets/graph-mark.svg +0 -0
  59. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/capabilities/api.json +0 -0
  60. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/capabilities/mcp.json +0 -0
  61. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/concepts.md +0 -0
  62. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/deployment.md +0 -0
  63. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/glossary.md +0 -0
  64. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/index.md +0 -0
  65. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/installation.md +0 -0
  66. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/overview.md +0 -0
  67. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/platform.md +0 -0
  68. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/spec-delivery.md +0 -0
  69. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/stylesheets/extra.css +0 -0
  70. {webarchiver-1.2.1 → webarchiver-1.2.2}/docs/usage.md +0 -0
  71. {webarchiver-1.2.1 → webarchiver-1.2.2}/mkdocs.yml +0 -0
  72. {webarchiver-1.2.1 → webarchiver-1.2.2}/pytest.ini +0 -0
  73. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/agent_readiness_tck.py +0 -0
  74. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/bootstrap.sh +0 -0
  75. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/bootstrap_environment.py +0 -0
  76. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/bootstrap_sources.py +0 -0
  77. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/check_connector_contract.py +0 -0
  78. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/check_import_safety.py +0 -0
  79. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/check_workspace_source_drift.py +0 -0
  80. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/generate_agent_readiness.py +0 -0
  81. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/security_sanitizer.py +0 -0
  82. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/select_python.py +0 -0
  83. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/verify_api_integration.py +0 -0
  84. {webarchiver-1.2.1 → webarchiver-1.2.2}/scripts/workspace_sources.py +0 -0
  85. {webarchiver-1.2.1 → webarchiver-1.2.2}/setup.cfg +0 -0
  86. {webarchiver-1.2.1 → webarchiver-1.2.2}/specs/README.md +0 -0
  87. {webarchiver-1.2.1 → webarchiver-1.2.2}/specs/web-source/plan.md +0 -0
  88. {webarchiver-1.2.1 → webarchiver-1.2.2}/specs/web-source/requirements.md +0 -0
  89. {webarchiver-1.2.1 → webarchiver-1.2.2}/specs/web-source/spec.md +0 -0
  90. {webarchiver-1.2.1 → webarchiver-1.2.2}/specs/web-source/status.json +0 -0
  91. {webarchiver-1.2.1 → webarchiver-1.2.2}/specs/web-source/tasks.md +0 -0
  92. {webarchiver-1.2.1 → webarchiver-1.2.2}/specs/web-source/test-spec.md +0 -0
  93. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/__init__.py +0 -0
  94. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/conftest.py +0 -0
  95. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/fixtures/article.html +0 -0
  96. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_concept_parity.py +0 -0
  97. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_conformance.py +0 -0
  98. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_crawl.py +0 -0
  99. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_error_authority.py +0 -0
  100. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_extract.py +0 -0
  101. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_init_dynamics.py +0 -0
  102. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_kg_ingest.py +0 -0
  103. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_served.py +0 -0
  104. {webarchiver-1.2.1 → webarchiver-1.2.2}/tests/test_webarchiver_mcp_validation.py +0 -0
  105. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/__init__.py +0 -0
  106. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/__main__.py +0 -0
  107. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/__init__.py +0 -0
  108. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/_support.py +0 -0
  109. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/api_client_system.py +0 -0
  110. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/browser.py +0 -0
  111. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/crawl.py +0 -0
  112. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/extraction.py +0 -0
  113. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/fetcher.py +0 -0
  114. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/policy.py +0 -0
  115. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/request_filter.py +0 -0
  116. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/api/web_source.py +0 -0
  117. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/auth.py +0 -0
  118. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/connectors/__init__.py +0 -0
  119. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/error_authority.py +0 -0
  120. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/error_rendering.py +0 -0
  121. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/kg_ingest.py +0 -0
  122. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/mcp/__init__.py +0 -0
  123. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/mcp/mcp_system.py +0 -0
  124. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/mcp_config.json +0 -0
  125. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/ontology/__init__.py +0 -0
  126. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/ontology/pack.ttl +0 -0
  127. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/prompts/__init__.py +0 -0
  128. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/prompts/webarchiver_specialist.json +0 -0
  129. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/skills/__init__.py +0 -0
  130. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/skills/webarchiver-starter/SKILL.md +0 -0
  131. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/webarchiver_input_models.py +0 -0
  132. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver/webarchiver_response_models.py +0 -0
  133. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver.egg-info/dependency_links.txt +0 -0
  134. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver.egg-info/entry_points.txt +0 -0
  135. {webarchiver-1.2.1 → webarchiver-1.2.2}/webarchiver.egg-info/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 1.2.1
2
+ current_version = 1.2.2
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -0,0 +1,17 @@
1
+ name: Connector PR
2
+
3
+ on: pull_request
4
+
5
+ concurrency:
6
+ group: pr-${{ github.workflow }}-${{ github.event.pull_request.number }}
7
+ cancel-in-progress: true
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ gates:
14
+ uses: Knuckles-Team/pipelines/.github/workflows/connector_pr_pipeline.yml@main
15
+ with:
16
+ # The self-hosted "Connector quality" workflow runs the native scanners; hosted runners have none.
17
+ skip-hooks: docker-compose-check,scanner-versions
@@ -67,12 +67,6 @@ repos:
67
67
  language: system
68
68
  pass_filenames: false
69
69
  always_run: true
70
- - id: connector-tool-schemas
71
- name: Live SDK input and output schema contracts
72
- entry: python scripts/generate_tool_schemas.py --check
73
- language: system
74
- pass_filenames: false
75
- always_run: true
76
70
  - id: pytest
77
71
  name: Generated connector contracts
78
72
  entry: python -m pytest tests -q
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webarchiver
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Governed web fetch, extract, render, screenshot and link connector
5
5
  Author: Repository Maintainers
6
6
  License: MIT
@@ -15,14 +15,14 @@ Classifier: Programming Language :: Python :: 3.14
15
15
  Requires-Python: <3.15,>=3.12
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.7
18
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
19
19
  Requires-Dist: trafilatura<3.0.0,>=2.0.0
20
20
  Requires-Dist: lxml>=6.0.0
21
21
  Requires-Dist: playwright<2.0.0,>=1.55.0
22
22
  Provides-Extra: mcp
23
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.7; extra == "mcp"
23
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
24
24
  Provides-Extra: all
25
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.7; extra == "all"
25
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
26
26
  Provides-Extra: test
27
27
  Requires-Dist: pytest-xdist>=3.6.0; extra == "test"
28
28
  Requires-Dist: pytest; extra == "test"
@@ -20,7 +20,7 @@ ENV HOST=${HOST} \
20
20
  PLAYWRIGHT_BROWSERS_PATH=/opt/ms-playwright
21
21
  # The render and screenshot operations drive Playwright's prebuilt Chromium
22
22
  # (downloaded, not compiled) with its system libraries.
23
- RUN pip install --only-binary :all: webarchiver[mcp]==1.2.1 \
23
+ RUN pip install --only-binary :all: webarchiver[mcp]==1.2.2 \
24
24
  && playwright install --with-deps --only-shell chromium \
25
25
  && rm -rf /var/lib/apt/lists/* \
26
26
  && chmod -R a+rX /opt/ms-playwright \
@@ -4,13 +4,13 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "webarchiver"
7
- version = "1.2.1"
7
+ version = "1.2.2"
8
8
  description = "Governed web fetch, extract, render, screenshot and link connector"
9
9
  readme = "README.md"
10
10
  classifiers = [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14",]
11
11
  requires-python = ">=3.12,<3.15"
12
12
  dependencies = [
13
- "agent-connector-sdk[mcp]>=0.3.7,<1.0.0",
13
+ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",
14
14
  "trafilatura>=2.0.0,<3.0.0",
15
15
  "lxml>=6.0.0",
16
16
  "playwright>=1.55.0,<2.0.0",
@@ -22,9 +22,9 @@ name = "Repository Maintainers"
22
22
  text = "MIT"
23
23
 
24
24
  [project.optional-dependencies]
25
- mcp = [ "agent-connector-sdk[mcp]>=0.3.7,<1.0.0",]
25
+ mcp = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
26
26
  all = [
27
- "agent-connector-sdk[mcp]>=0.3.7,<1.0.0",
27
+ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",
28
28
  ]
29
29
  test = [
30
30
  "pytest-xdist>=3.6.0", "pytest", "pytest-asyncio", "pytest-cov",]
@@ -75,7 +75,7 @@ dev = [
75
75
  ]
76
76
 
77
77
  [tool.setuptools.package-data]
78
- webarchiver = [ "mcp_config.json", "prompts/**", "skills/**", "ontology/**", "connectors/**", "connector_manifest.yml",]
78
+ webarchiver = [ "mcp_config.json", "prompts/**", "skills/**", "ontology/**", "connectors/**", ]
79
79
 
80
80
  [tool.ruff.lint]
81
81
  select = [ "E", "F", "I", "UP", "B",]
@@ -0,0 +1,18 @@
1
+ import importlib
2
+
3
+ import pytest
4
+
5
+
6
+ @pytest.mark.concept("CONN-WEBARCHIVER-001")
7
+ def test_mcp_server_module_importable():
8
+ """MCP server module imports cleanly at startup. CONCEPT:CONN-WEBARCHIVER-001"""
9
+ assert importlib.import_module("webarchiver.mcp_server") is not None
10
+
11
+
12
+ @pytest.mark.concept("CONN-WEBARCHIVER-001")
13
+ def test_version_has_one_source():
14
+ """The package version comes from _version.py. CONCEPT:CONN-WEBARCHIVER-001"""
15
+ from webarchiver._version import __version__
16
+
17
+ module = importlib.import_module("webarchiver.mcp_server")
18
+ assert module.__version__ == __version__
@@ -1,3 +1,3 @@
1
1
  """Single source of the package version (read by bump2version)."""
2
2
 
3
- __version__ = "1.2.1"
3
+ __version__ = "1.2.2"
@@ -0,0 +1,95 @@
1
+ """Data sources of this connector, declared by tool name (generated by connector-ontology-map migrate).
2
+
3
+ Served live as ``connector://resources``. Regenerate by editing the declarations, not the tools.
4
+ """
5
+
6
+ # ruff: noqa: E501
7
+ from __future__ import annotations
8
+
9
+ from typing import Any
10
+
11
+ from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
12
+
13
+ CONNECTOR: str = "webarchiver-mcp"
14
+
15
+ SOURCES: tuple[Any, ...] = ()
16
+
17
+ SCHEMA_MAPPINGS: dict[str, Any] = {
18
+ "Chunk": {
19
+ "fields": {
20
+ "backend": "xsd:string",
21
+ "char_end": "xsd:integer",
22
+ "char_start": "xsd:integer",
23
+ "chunk_index": "xsd:integer",
24
+ "content_hash": "xsd:string",
25
+ "document_id": "xsd:string",
26
+ "source_uri": "xsd:string",
27
+ "text": "xsd:string",
28
+ "title": "xsd:string",
29
+ },
30
+ "ontology_class": "Chunk",
31
+ },
32
+ "Document": {
33
+ "fields": {
34
+ "author": "xsd:string",
35
+ "backend": "xsd:string",
36
+ "canonical_url": "xsd:string",
37
+ "chunk_count": "xsd:integer",
38
+ "content_hash": "xsd:string",
39
+ "content_sha256": "xsd:string",
40
+ "fallback_from": "xsd:string",
41
+ "fetch_mode": "xsd:string",
42
+ "published": "xsd:string",
43
+ "search_engine": "xsd:string",
44
+ "search_query": "xsd:string",
45
+ "search_rank": "xsd:integer",
46
+ "site_name": "xsd:string",
47
+ "source_uri": "xsd:string",
48
+ "text": "xsd:string",
49
+ "title": "xsd:string",
50
+ "url": "xsd:string",
51
+ },
52
+ "ontology_class": "Document",
53
+ },
54
+ "WebarchiverResource": {
55
+ "fields": {
56
+ "name": "xsd:string",
57
+ },
58
+ "ontology_class": None,
59
+ },
60
+ }
61
+
62
+ RESOURCES: tuple[dict[str, str], ...] = (
63
+ {
64
+ "name": "WebarchiverResource",
65
+ },
66
+ {
67
+ "name": "Document",
68
+ },
69
+ {
70
+ "name": "MediaAsset",
71
+ },
72
+ {
73
+ "name": "Chunk",
74
+ },
75
+ )
76
+
77
+
78
+ def declaration() -> IngestSourceDeclaration:
79
+ """The declaration the server assembles from this module."""
80
+ specs: list[IngestSourceSpec] = []
81
+ for item in SOURCES:
82
+ for entry in item["connector_sources"]:
83
+ body: dict[str, Any] = {
84
+ k: v for k, v in entry.items() if k not in ("tool", "mapping")
85
+ }
86
+ spec = {**body, "tools": (entry["tool"],)}
87
+ specs.append(IngestSourceSpec.model_validate(spec))
88
+ return IngestSourceDeclaration.model_validate(
89
+ {
90
+ "connector": CONNECTOR,
91
+ "sources": specs,
92
+ "schema_mappings": SCHEMA_MAPPINGS,
93
+ "resources": RESOURCES,
94
+ }
95
+ )
@@ -29,7 +29,6 @@ def get_mcp_instance(*, command_args=None):
29
29
  connector=CONNECTOR_NAME,
30
30
  package_root=package_root,
31
31
  package_version=__version__,
32
- manifest_path=package_root / "connector_manifest.yml",
33
32
  ),
34
33
  )
35
34
  # One typed, annotated MCP tool per API operation (SDK default).
@@ -25,5 +25,4 @@
25
25
 
26
26
  <http://knuckles.team/kg/webarchiver> a owl:Ontology ;
27
27
  rdfs:label "Webarchiver Ontology" ;
28
- rdfs:comment "Webarchiver domain extensions federated into the KG hub. STUB." ;
29
- owl:imports <http://knuckles.team/kg> .
28
+ rdfs:comment "Webarchiver domain extensions federated into the KG hub. STUB." .
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webarchiver
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Governed web fetch, extract, render, screenshot and link connector
5
5
  Author: Repository Maintainers
6
6
  License: MIT
@@ -15,14 +15,14 @@ Classifier: Programming Language :: Python :: 3.14
15
15
  Requires-Python: <3.15,>=3.12
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.7
18
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
19
19
  Requires-Dist: trafilatura<3.0.0,>=2.0.0
20
20
  Requires-Dist: lxml>=6.0.0
21
21
  Requires-Dist: playwright<2.0.0,>=1.55.0
22
22
  Provides-Extra: mcp
23
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.7; extra == "mcp"
23
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
24
24
  Provides-Extra: all
25
- Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.3.7; extra == "all"
25
+ Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
26
26
  Provides-Extra: test
27
27
  Requires-Dist: pytest-xdist>=3.6.0; extra == "test"
28
28
  Requires-Dist: pytest; extra == "test"
@@ -7,6 +7,7 @@ mkdocs.yml
7
7
  pyproject.toml
8
8
  pytest.ini
9
9
  .config/spec-dashboard.json
10
+ .github/workflows/connector-pr.yml
10
11
  .github/workflows/pages.yml
11
12
  .github/workflows/pipeline.yml
12
13
  .github/workflows/scanners.yml
@@ -63,7 +64,6 @@ scripts/check_connector_contract.py
63
64
  scripts/check_import_safety.py
64
65
  scripts/check_workspace_source_drift.py
65
66
  scripts/generate_agent_readiness.py
66
- scripts/generate_tool_schemas.py
67
67
  scripts/security_sanitizer.py
68
68
  scripts/select_python.py
69
69
  scripts/verify_api_integration.py
@@ -92,7 +92,7 @@ webarchiver/__init__.py
92
92
  webarchiver/__main__.py
93
93
  webarchiver/_version.py
94
94
  webarchiver/auth.py
95
- webarchiver/connector_manifest.yml
95
+ webarchiver/connector_sources.py
96
96
  webarchiver/error_authority.py
97
97
  webarchiver/error_rendering.py
98
98
  webarchiver/kg_ingest.py
@@ -117,8 +117,6 @@ webarchiver/api/policy.py
117
117
  webarchiver/api/request_filter.py
118
118
  webarchiver/api/web_source.py
119
119
  webarchiver/connectors/__init__.py
120
- webarchiver/connectors/mcp_source_presets.json
121
- webarchiver/connectors/tool_schema_fingerprints.json
122
120
  webarchiver/mcp/__init__.py
123
121
  webarchiver/mcp/mcp_system.py
124
122
  webarchiver/ontology/__init__.py
@@ -1,13 +1,13 @@
1
- agent-connector-sdk[mcp]<1.0.0,>=0.3.7
1
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
2
2
  trafilatura<3.0.0,>=2.0.0
3
3
  lxml>=6.0.0
4
4
  playwright<2.0.0,>=1.55.0
5
5
 
6
6
  [all]
7
- agent-connector-sdk[mcp]<1.0.0,>=0.3.7
7
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
8
8
 
9
9
  [mcp]
10
- agent-connector-sdk[mcp]<1.0.0,>=0.3.7
10
+ agent-connector-sdk[mcp]<1.0.0,>=0.4.1
11
11
 
12
12
  [test]
13
13
  pytest-xdist>=3.6.0
@@ -1,102 +0,0 @@
1
- #!/usr/bin/env python3
2
- """Generate or check live MCP contracts without calling provider tools.
3
-
4
- Run from the project environment: python scripts/generate_tool_schemas.py [--check].
5
- All tools retain both schemas in schemas/mcp_tools.json. Only tools in real
6
- extraction presets receive connector pins; an empty starter preset is valid.
7
- """
8
-
9
- from __future__ import annotations
10
-
11
- import argparse
12
- import asyncio
13
- import json
14
- import sys
15
- from pathlib import Path
16
-
17
- ROOT = Path(__file__).resolve().parents[1]
18
- sys.path.insert(0, str(ROOT))
19
-
20
- try:
21
- from agent_connector_sdk.manifest.live_contract import validate_live_tool_contract
22
- from agent_connector_sdk.manifest.loader import (
23
- load_manifest,
24
- load_tool_presets,
25
- require_valid_connector_package,
26
- )
27
- from agent_connector_sdk.manifest.tool_schema import (
28
- COMPATIBILITY_FINGERPRINT_ALGORITHM,
29
- canonical_input_schema,
30
- canonical_output_schema,
31
- )
32
- from fastmcp import Client
33
-
34
- from webarchiver.mcp_server import build_server
35
- except ImportError as exc:
36
- raise SystemExit(
37
- "Install this project's declared dependencies before generating schemas"
38
- ) from exc
39
-
40
- PACKAGE = ROOT / "webarchiver"
41
-
42
-
43
- def _write_or_check(path: Path, value: dict, check: bool) -> None:
44
- text = (
45
- json.dumps(
46
- value,
47
- ensure_ascii=False,
48
- sort_keys=True,
49
- separators=(",", ":"),
50
- allow_nan=False,
51
- )
52
- + "\n"
53
- )
54
- if check:
55
- if not path.is_file() or path.read_text(encoding="utf-8") != text:
56
- raise SystemExit(f"Stale generated contract: {path.relative_to(ROOT)}")
57
- else:
58
- path.parent.mkdir(parents=True, exist_ok=True)
59
- path.write_text(text, encoding="utf-8")
60
-
61
-
62
- async def generate(check: bool) -> None:
63
- async with Client(build_server(command_args=["--transport", "stdio"])) as client:
64
- tools = await client.list_tools()
65
- contracts = {}
66
- for tool in tools:
67
- contract = validate_live_tool_contract(tools, tool_name=tool.name)
68
- contracts[tool.name] = {
69
- "inputSchema": canonical_input_schema(tool),
70
- "outputSchema": canonical_output_schema(tool),
71
- "compatibility_sha256": contract.compatibility_sha256,
72
- }
73
- presets = load_tool_presets(PACKAGE / "connectors/mcp_source_presets.json")
74
- pinned = {
75
- preset.tool: contracts[preset.tool]["compatibility_sha256"]
76
- for preset in presets.values()
77
- }
78
- _write_or_check(
79
- ROOT / "schemas/mcp_tools.json",
80
- {
81
- "algorithm": COMPATIBILITY_FINGERPRINT_ALGORITHM,
82
- "tools": contracts,
83
- },
84
- check,
85
- )
86
- _write_or_check(
87
- PACKAGE / "connectors/tool_schema_fingerprints.json",
88
- {
89
- # The manifest carries the one connector identity, the fleet name.
90
- "connector": load_manifest(PACKAGE / "connector_manifest.yml").connector,
91
- "algorithm": COMPATIBILITY_FINGERPRINT_ALGORITHM,
92
- "tools": pinned,
93
- },
94
- check,
95
- )
96
- require_valid_connector_package(PACKAGE)
97
-
98
-
99
- if __name__ == "__main__":
100
- parser = argparse.ArgumentParser(description=__doc__)
101
- parser.add_argument("--check", action="store_true")
102
- asyncio.run(generate(parser.parse_args().check))
@@ -1,87 +0,0 @@
1
- import importlib
2
-
3
- import pytest
4
-
5
-
6
- @pytest.mark.concept("CONN-WEBARCHIVER-001")
7
- def test_mcp_server_module_importable():
8
- """MCP server module imports cleanly at startup. CONCEPT:CONN-WEBARCHIVER-001"""
9
- assert importlib.import_module("webarchiver.mcp_server") is not None
10
-
11
-
12
- @pytest.mark.concept("CONN-WEBARCHIVER-001")
13
- def test_version_has_one_source():
14
- """The package version comes from _version.py. CONCEPT:CONN-WEBARCHIVER-001"""
15
- from webarchiver._version import __version__
16
-
17
- module = importlib.import_module("webarchiver.mcp_server")
18
- assert module.__version__ == __version__
19
-
20
-
21
- @pytest.mark.concept("CONN-WEBARCHIVER-001")
22
- async def test_server_lists_registered_tools_and_content():
23
- """The SDK-built server lists its tools and serves the manifest."""
24
- from fastmcp import Client
25
-
26
- from webarchiver.mcp_server import get_mcp_instance
27
-
28
- server, _args, _middlewares = get_mcp_instance(command_args=[])
29
- async with Client(server) as client:
30
- tools = {tool.name for tool in await client.list_tools()}
31
- resources = {str(item.uri) for item in await client.list_resources()}
32
- assert tools
33
- assert "manifest://connector" in resources
34
-
35
-
36
- @pytest.mark.concept("CONN-WEBARCHIVER-001")
37
- def test_manifest_loads_with_the_sdk_model():
38
- """connector_manifest.yml validates against agent-connector-sdk."""
39
- from pathlib import Path
40
-
41
- from agent_connector_sdk.manifest.loader import load_manifest
42
-
43
- import webarchiver
44
-
45
- manifest = load_manifest(
46
- Path(webarchiver.__file__).parent / "connector_manifest.yml"
47
- )
48
- assert manifest.connector == "webarchiver-mcp"
49
-
50
-
51
- @pytest.mark.spec("CONN-WEBARCHIVER-WEB-SOURCE-R001.8")
52
- def test_manifest_maps_document_and_chunk_records():
53
- """SourceIngest resolves manifest:<connector>#schema_mappings/<type> for both."""
54
- from pathlib import Path
55
-
56
- from agent_connector_sdk.manifest.loader import load_manifest
57
-
58
- import webarchiver
59
-
60
- manifest = load_manifest(
61
- Path(webarchiver.__file__).parent / "connector_manifest.yml"
62
- )
63
- for record_type, ontology_class in (("Document", "Document"), ("Chunk", "Chunk")):
64
- mapping = manifest.schema_mappings[record_type]
65
- assert mapping.ontology_class == ontology_class
66
- assert {"text", "title", "source_uri", "content_hash", "backend"} <= set(
67
- mapping.fields
68
- )
69
-
70
-
71
- @pytest.mark.spec("CONN-WEBARCHIVER-WEB-SOURCE-R001.11")
72
- def test_connector_name_is_the_fleet_name():
73
- """Pack, manifest and ingest binding are filed under the fleet name."""
74
- from pathlib import Path
75
-
76
- from agent_connector_sdk.manifest.loader import load_manifest
77
-
78
- import webarchiver
79
- from webarchiver import kg_ingest
80
-
81
- mcp_server = importlib.import_module("webarchiver.mcp_server")
82
- assert mcp_server.CONNECTOR_NAME == "webarchiver-mcp"
83
- assert kg_ingest._BINDING.connector == "webarchiver-mcp"
84
- manifest = load_manifest(
85
- Path(webarchiver.__file__).parent / "connector_manifest.yml"
86
- )
87
- assert manifest.connector == "webarchiver-mcp"
@@ -1,89 +0,0 @@
1
- {
2
- "connector": "webarchiver-mcp",
3
- "ontology_source": "webarchiver",
4
- "schema_version": "1",
5
- "resources": [
6
- {
7
- "name": "WebarchiverResource"
8
- },
9
- {
10
- "name": "Document"
11
- },
12
- {
13
- "name": "MediaAsset"
14
- },
15
- {
16
- "name": "Chunk"
17
- }
18
- ],
19
- "identity": {
20
- "id_field": {
21
- "WebarchiverResource": "id",
22
- "Document": "id",
23
- "Chunk": "id"
24
- },
25
- "title_field": {
26
- "WebarchiverResource": "name",
27
- "Document": "title",
28
- "Chunk": "title"
29
- }
30
- },
31
- "schema_mappings": {
32
- "WebarchiverResource": {
33
- "fields": {
34
- "name": "xsd:string"
35
- }
36
- },
37
- "Document": {
38
- "ontology_class": "Document",
39
- "fields": {
40
- "text": "xsd:string",
41
- "title": "xsd:string",
42
- "source_uri": "xsd:string",
43
- "content_hash": "xsd:string",
44
- "url": "xsd:string",
45
- "canonical_url": "xsd:string",
46
- "author": "xsd:string",
47
- "published": "xsd:string",
48
- "site_name": "xsd:string",
49
- "content_sha256": "xsd:string",
50
- "backend": "xsd:string",
51
- "fetch_mode": "xsd:string",
52
- "fallback_from": "xsd:string",
53
- "search_query": "xsd:string",
54
- "search_engine": "xsd:string",
55
- "search_rank": "xsd:integer",
56
- "chunk_count": "xsd:integer"
57
- }
58
- },
59
- "Chunk": {
60
- "ontology_class": "Chunk",
61
- "fields": {
62
- "text": "xsd:string",
63
- "title": "xsd:string",
64
- "source_uri": "xsd:string",
65
- "content_hash": "xsd:string",
66
- "document_id": "xsd:string",
67
- "chunk_index": "xsd:integer",
68
- "char_start": "xsd:integer",
69
- "char_end": "xsd:integer",
70
- "backend": "xsd:string"
71
- }
72
- }
73
- },
74
- "sync": [],
75
- "provenance": {
76
- "generated_by": "mcp-builder/scripts/scaffold_package.py",
77
- "source_artifacts": [
78
- "ontology/webarchiver.ttl"
79
- ],
80
- "integrity": {
81
- "algorithm": "sha256",
82
- "hash": "96567d5fb4e3d237096f0ac4674568b49007e1482cc462f96223c2f726348e39"
83
- }
84
- },
85
- "review_todos": [
86
- "Declare real source presets and matching sync entries before certification.",
87
- "Integrity is an ontology byte hash, not canonical RDF or release certification."
88
- ]
89
- }
@@ -1 +0,0 @@
1
- {"algorithm":"agent-connector-sdk:mcp-tool-contract-compat:v2","connector":"webarchiver-mcp","tools":{}}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes