webarchiver 1.2.0__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.0 → webarchiver-1.2.2}/.bumpversion.cfg +1 -1
  2. webarchiver-1.2.2/.github/workflows/connector-pr.yml +17 -0
  3. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/provenance.json +5 -5
  4. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/scripts/sync_mkdocs_theme.py +15 -30
  5. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/README.md +2 -0
  6. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/base.mkdocs.yml +11 -0
  7. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/overrides/main.html +7 -0
  8. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pre-commit-config.yaml +3 -6
  9. {webarchiver-1.2.0/webarchiver.egg-info → webarchiver-1.2.2}/PKG-INFO +4 -4
  10. {webarchiver-1.2.0 → webarchiver-1.2.2}/docker/Dockerfile +1 -1
  11. {webarchiver-1.2.0 → webarchiver-1.2.2}/pyproject.toml +9 -5
  12. webarchiver-1.2.2/scripts/bootstrap.sh +61 -0
  13. {webarchiver-1.2.0 → webarchiver-1.2.2}/specs/web-source/requirements.md +1 -0
  14. {webarchiver-1.2.0 → webarchiver-1.2.2}/specs/web-source/status.json +17 -4
  15. {webarchiver-1.2.0 → webarchiver-1.2.2}/specs/web-source/tasks.md +1 -0
  16. {webarchiver-1.2.0 → webarchiver-1.2.2}/specs/web-source/test-spec.md +1 -0
  17. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_kg_ingest.py +1 -1
  18. webarchiver-1.2.2/tests/test_startup.py +18 -0
  19. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/_version.py +1 -1
  20. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/browser.py +52 -82
  21. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/extraction.py +41 -30
  22. webarchiver-1.2.2/webarchiver/api/request_filter.py +71 -0
  23. webarchiver-1.2.2/webarchiver/connector_sources.py +95 -0
  24. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/kg_ingest.py +1 -1
  25. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/mcp_server.py +4 -2
  26. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/ontology/webarchiver.ttl +1 -2
  27. {webarchiver-1.2.0 → webarchiver-1.2.2/webarchiver.egg-info}/PKG-INFO +4 -4
  28. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver.egg-info/SOURCES.txt +4 -4
  29. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver.egg-info/entry_points.txt +3 -0
  30. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver.egg-info/requires.txt +3 -3
  31. webarchiver-1.2.0/scripts/generate_tool_schemas.py +0 -100
  32. webarchiver-1.2.0/tests/test_startup.py +0 -68
  33. webarchiver-1.2.0/webarchiver/connector_manifest.yml +0 -89
  34. webarchiver-1.2.0/webarchiver/connectors/mcp_source_presets.json +0 -1
  35. webarchiver-1.2.0/webarchiver/connectors/tool_schema_fingerprints.json +0 -1
  36. {webarchiver-1.2.0 → webarchiver-1.2.2}/.config/spec-dashboard.json +0 -0
  37. {webarchiver-1.2.0 → webarchiver-1.2.2}/.github/workflows/pages.yml +0 -0
  38. {webarchiver-1.2.0 → webarchiver-1.2.2}/.github/workflows/pipeline.yml +0 -0
  39. {webarchiver-1.2.0 → webarchiver-1.2.2}/.github/workflows/scanners.yml +0 -0
  40. {webarchiver-1.2.0 → webarchiver-1.2.2}/.github/workflows/windows-ci.yml +0 -0
  41. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-connector-sdk-logo-v1.png +0 -0
  42. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-terminal-ui-logo-v1.png +0 -0
  43. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-utilities-logo-v1.png +0 -0
  44. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-webui-logo-v1.png +0 -0
  45. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/arbora-logo-v1.png +0 -0
  46. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/epistemic-graph-logo-v1.png +0 -0
  47. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/brands/geniusbot-logo-v1.png +0 -0
  48. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/favicon.svg +0 -0
  49. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/assets/graph-mark.svg +0 -0
  50. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/extra.css +0 -0
  51. {webarchiver-1.2.0 → webarchiver-1.2.2}/.pipeline-theme/templates/mkdocs-theme/glossary.md +0 -0
  52. {webarchiver-1.2.0 → webarchiver-1.2.2}/LICENSE +0 -0
  53. {webarchiver-1.2.0 → webarchiver-1.2.2}/MANIFEST.in +0 -0
  54. {webarchiver-1.2.0 → webarchiver-1.2.2}/README.md +0 -0
  55. {webarchiver-1.2.0 → webarchiver-1.2.2}/docker/debug.Dockerfile +0 -0
  56. {webarchiver-1.2.0 → webarchiver-1.2.2}/docker/mcp.compose.yml +0 -0
  57. {webarchiver-1.2.0 → webarchiver-1.2.2}/docker/starship.toml +0 -0
  58. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/agent-readiness.json +0 -0
  59. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/agent-readiness.schema.json +0 -0
  60. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/architecture.md +0 -0
  61. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/brands/agent-connector-sdk-logo-v1.png +0 -0
  62. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/brands/agent-terminal-ui-logo-v1.png +0 -0
  63. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/brands/agent-utilities-logo-v1.png +0 -0
  64. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/brands/agent-webui-logo-v1.png +0 -0
  65. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/brands/arbora-logo-v1.png +0 -0
  66. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/brands/epistemic-graph-logo-v1.png +0 -0
  67. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/brands/geniusbot-logo-v1.png +0 -0
  68. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/favicon.svg +0 -0
  69. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/assets/graph-mark.svg +0 -0
  70. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/capabilities/api.json +0 -0
  71. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/capabilities/mcp.json +0 -0
  72. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/concepts.md +0 -0
  73. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/deployment.md +0 -0
  74. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/glossary.md +0 -0
  75. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/index.md +0 -0
  76. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/installation.md +0 -0
  77. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/overview.md +0 -0
  78. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/platform.md +0 -0
  79. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/spec-delivery.md +0 -0
  80. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/stylesheets/extra.css +0 -0
  81. {webarchiver-1.2.0 → webarchiver-1.2.2}/docs/usage.md +0 -0
  82. {webarchiver-1.2.0 → webarchiver-1.2.2}/mkdocs.yml +0 -0
  83. {webarchiver-1.2.0 → webarchiver-1.2.2}/pytest.ini +0 -0
  84. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/agent_readiness_tck.py +0 -0
  85. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/bootstrap_environment.py +0 -0
  86. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/bootstrap_sources.py +0 -0
  87. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/check_connector_contract.py +0 -0
  88. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/check_import_safety.py +0 -0
  89. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/check_workspace_source_drift.py +0 -0
  90. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/generate_agent_readiness.py +0 -0
  91. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/security_sanitizer.py +0 -0
  92. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/select_python.py +0 -0
  93. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/verify_api_integration.py +0 -0
  94. {webarchiver-1.2.0 → webarchiver-1.2.2}/scripts/workspace_sources.py +0 -0
  95. {webarchiver-1.2.0 → webarchiver-1.2.2}/setup.cfg +0 -0
  96. {webarchiver-1.2.0 → webarchiver-1.2.2}/specs/README.md +0 -0
  97. {webarchiver-1.2.0 → webarchiver-1.2.2}/specs/web-source/plan.md +0 -0
  98. {webarchiver-1.2.0 → webarchiver-1.2.2}/specs/web-source/spec.md +0 -0
  99. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/__init__.py +0 -0
  100. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/conftest.py +0 -0
  101. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/fixtures/article.html +0 -0
  102. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_concept_parity.py +0 -0
  103. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_conformance.py +0 -0
  104. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_crawl.py +0 -0
  105. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_error_authority.py +0 -0
  106. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_extract.py +0 -0
  107. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_init_dynamics.py +0 -0
  108. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_served.py +0 -0
  109. {webarchiver-1.2.0 → webarchiver-1.2.2}/tests/test_webarchiver_mcp_validation.py +0 -0
  110. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/__init__.py +0 -0
  111. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/__main__.py +0 -0
  112. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/__init__.py +0 -0
  113. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/_support.py +0 -0
  114. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/api_client_system.py +0 -0
  115. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/crawl.py +0 -0
  116. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/fetcher.py +0 -0
  117. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/policy.py +0 -0
  118. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/api/web_source.py +0 -0
  119. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/auth.py +0 -0
  120. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/connectors/__init__.py +0 -0
  121. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/error_authority.py +0 -0
  122. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/error_rendering.py +0 -0
  123. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/mcp/__init__.py +0 -0
  124. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/mcp/mcp_system.py +0 -0
  125. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/mcp_config.json +0 -0
  126. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/ontology/__init__.py +0 -0
  127. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/ontology/pack.ttl +0 -0
  128. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/prompts/__init__.py +0 -0
  129. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/prompts/webarchiver_specialist.json +0 -0
  130. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/skills/__init__.py +0 -0
  131. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/skills/webarchiver-starter/SKILL.md +0 -0
  132. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/webarchiver_input_models.py +0 -0
  133. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver/webarchiver_response_models.py +0 -0
  134. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver.egg-info/dependency_links.txt +0 -0
  135. {webarchiver-1.2.0 → webarchiver-1.2.2}/webarchiver.egg-info/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 1.2.0
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
- "scripts/sync_mkdocs_theme.py": "bec06ab81fcf5df697b37419324535d2385be2675d34dd093f60190c12c2e390",
4
- "templates/mkdocs-theme/README.md": "e5484fae67ffa597e6f40747f52b2e321b9b1b31612b6d5a141a2dcf6029f180",
3
+ "scripts/sync_mkdocs_theme.py": "5c87660f8ef721bf764bb5b4f03ea502a19b4baf9be83da9876999871ce4a193",
4
+ "templates/mkdocs-theme/README.md": "d83c24bc1f4ec08a5142c16729df41cf4d9bad55559b4766e0f399fc31cd5fc7",
5
5
  "templates/mkdocs-theme/assets/brands/agent-connector-sdk-logo-v1.png": "6688810468a77118ee1960ac3872816c6ace4f750a849688d306d7a63132e1b1",
6
6
  "templates/mkdocs-theme/assets/brands/agent-terminal-ui-logo-v1.png": "d5e3c011066e2241c09c885f65d9a07c6ff32f4244b00dbe8e7550a3bab20dc8",
7
7
  "templates/mkdocs-theme/assets/brands/agent-utilities-logo-v1.png": "923319a3b89fa1fbd14ca14c27cf49d2e2d9f85bc45456e05b788692700f0103",
@@ -11,11 +11,11 @@
11
11
  "templates/mkdocs-theme/assets/brands/geniusbot-logo-v1.png": "c4a17404f234f677496197ac202ca8fb30b136c5a69243811bbfa6e5d5352b28",
12
12
  "templates/mkdocs-theme/assets/favicon.svg": "aa606f9668a363bfe533f7d835700c246efaed0b8895cce5fe4398f36c35e7ba",
13
13
  "templates/mkdocs-theme/assets/graph-mark.svg": "d0c69cdc06aa51439b6ce04b4c6df4dbf02283329f01122a78e08f286186e25d",
14
- "templates/mkdocs-theme/base.mkdocs.yml": "5424438de987d1ea222f8ce4467e830f286784d14e35b71c623616c9a6ce87d9",
14
+ "templates/mkdocs-theme/base.mkdocs.yml": "679ef9374f19087d832cd57b6ed8782d3b192c9d9cdac2c1672d7c2d487750b1",
15
15
  "templates/mkdocs-theme/extra.css": "2cc17b7610b67c82895312e7e61cf84587a6fe291bbc154d3c83c59fba2ee843",
16
16
  "templates/mkdocs-theme/glossary.md": "f35f337fd8175dfdd274442795558772ae3138bb95fc31d84937f5047bff1f64",
17
- "templates/mkdocs-theme/overrides/main.html": "766234b5045a5815805bb2ce5223ddd93729f7854abc4b6cdf4fba9c7e0dab3b"
17
+ "templates/mkdocs-theme/overrides/main.html": "c166d88485822f2d2d8b4ad981510744946201cc767e6defee55f503c0afcbb6"
18
18
  },
19
19
  "repository": "https://github.com/Knuckles-Team/pipelines",
20
- "revision": "58e9bbc62557f2d4a07438070b1ceebb5864a81f"
20
+ "revision": "3c6158a5fd7c938ed57347279401e0991c174448"
21
21
  }
@@ -40,9 +40,7 @@ THEME_FILES = (
40
40
  "assets/brands/agent-webui-logo-v1.png",
41
41
  "assets/brands/agent-webui-logo-v1.png",
42
42
  ),
43
- ThemeFile(
44
- "assets/brands/geniusbot-logo-v1.png", "assets/brands/geniusbot-logo-v1.png"
45
- ),
43
+ ThemeFile("assets/brands/geniusbot-logo-v1.png", "assets/brands/geniusbot-logo-v1.png"),
46
44
  ThemeFile(
47
45
  "assets/brands/agent-terminal-ui-logo-v1.png",
48
46
  "assets/brands/agent-terminal-ui-logo-v1.png",
@@ -52,9 +50,10 @@ THEME_FILES = (
52
50
 
53
51
 
54
52
  RUNTIME_DIAGRAM_URL = (
55
- "https://raw.githubusercontent.com/Knuckles-Team/epistemic-graph/main/"
56
- "docs/assets/runtime-architecture.svg"
53
+ "https://raw.githubusercontent.com/Knuckles-Team/epistemic-graph/main/docs/assets/runtime-architecture.svg"
57
54
  )
55
+ # The live, generated architecture view; every page that shows the static diagram links it.
56
+ ARCHITECTURE_EXPLORER_URL = "https://knuckles-team.github.io/.github/architecture/"
58
57
  # Any reference to the diagram file; the only accepted target is RUNTIME_DIAGRAM_URL.
59
58
  RUNTIME_DIAGRAM_REFERENCE = re.compile(r"[^\s\"'()<>]*runtime-architecture\.svg")
60
59
  PAGE_SUFFIXES = {".md", ".html", ".yml", ".yaml"}
@@ -66,11 +65,7 @@ class ThemeSyncError(Exception):
66
65
 
67
66
  def _safe_relative_path(value: str, label: str) -> Path:
68
67
  path = Path(value)
69
- if (
70
- path.is_absolute()
71
- or not path.parts
72
- or any(part in {".", ".."} for part in path.parts)
73
- ):
68
+ if path.is_absolute() or not path.parts or any(part in {".", ".."} for part in path.parts):
74
69
  raise ThemeSyncError(f"{label} must be a contained relative path")
75
70
  return path
76
71
 
@@ -95,7 +90,7 @@ def _check_file(destination: Path, expected: bytes, repository: Path) -> str | N
95
90
 
96
91
 
97
92
  def _runtime_reference_mismatches(content_root: Path, repository: Path) -> list[str]:
98
- """Pages may show the runtime diagram only through the single canonical URL."""
93
+ """Pages may show the runtime diagram only through the single canonical URL, linked to the explorer."""
99
94
  mismatches: list[str] = []
100
95
  if not content_root.is_dir():
101
96
  return mismatches
@@ -103,13 +98,13 @@ def _runtime_reference_mismatches(content_root: Path, repository: Path) -> list[
103
98
  if page.suffix not in PAGE_SUFFIXES or not page.is_file():
104
99
  continue
105
100
  text = page.read_text(encoding="utf-8", errors="replace")
106
- if any(
107
- match.group(0) != RUNTIME_DIAGRAM_URL
108
- for match in RUNTIME_DIAGRAM_REFERENCE.finditer(text)
109
- ):
101
+ if any(match.group(0) != RUNTIME_DIAGRAM_URL for match in RUNTIME_DIAGRAM_REFERENCE.finditer(text)):
110
102
  mismatches.append(
111
- f"runtime diagram must be referenced as {RUNTIME_DIAGRAM_URL}: "
112
- f"{page.relative_to(repository)}"
103
+ f"runtime diagram must be referenced as {RUNTIME_DIAGRAM_URL}: {page.relative_to(repository)}"
104
+ )
105
+ elif RUNTIME_DIAGRAM_URL in text and ARCHITECTURE_EXPLORER_URL not in text:
106
+ mismatches.append(
107
+ f"runtime diagram must link the explorer at {ARCHITECTURE_EXPLORER_URL}: {page.relative_to(repository)}"
113
108
  )
114
109
  return mismatches
115
110
 
@@ -135,13 +130,7 @@ def sync_theme(
135
130
  return mismatches
136
131
 
137
132
 
138
- def _sync_files(
139
- source: Path,
140
- content_root: Path,
141
- repository: Path,
142
- *,
143
- mode: Literal["sync", "check"],
144
- ) -> list[str]:
133
+ def _sync_files(source: Path, content_root: Path, repository: Path, *, mode: Literal["sync", "check"]) -> list[str]:
145
134
  """Write or compare every theme file and describe each divergence."""
146
135
  mismatches: list[str] = []
147
136
  for item in THEME_FILES:
@@ -149,9 +138,7 @@ def _sync_files(
149
138
  if not source_file.is_file():
150
139
  raise ThemeSyncError(f"canonical theme file does not exist: {source_file}")
151
140
  destination_root = content_root if item.content_relative else repository
152
- destination = _contained(
153
- destination_root, Path(item.destination), item.destination
154
- )
141
+ destination = _contained(destination_root, Path(item.destination), item.destination)
155
142
  expected = source_file.read_bytes()
156
143
  if mode == "check":
157
144
  mismatch = _check_file(destination, expected, repository)
@@ -166,9 +153,7 @@ def _sync_files(
166
153
  def main(argv: list[str] | None = None) -> int:
167
154
  parser = argparse.ArgumentParser(description=__doc__)
168
155
  parser.add_argument("mode", choices=("sync", "check"))
169
- parser.add_argument(
170
- "--root", type=Path, default=Path.cwd(), help="consumer repository root"
171
- )
156
+ parser.add_argument("--root", type=Path, default=Path.cwd(), help="consumer repository root")
172
157
  parser.add_argument(
173
158
  "--content-source",
174
159
  default="docs",
@@ -18,6 +18,8 @@ This folder is the canonical source for the five ecosystem documentation sites.
18
18
 
19
19
  The runtime architecture diagram is not a theme asset and is never copied into a consumer. There is exactly one file, `docs/assets/runtime-architecture.svg` in Knuckles-Team/epistemic-graph, and every page that shows it references the URL `https://raw.githubusercontent.com/Knuckles-Team/epistemic-graph/main/docs/assets/runtime-architecture.svg`. The `check` mode fails when a page under the content source references `runtime-architecture.svg` by any other path.
20
20
 
21
+ Every page that shows the diagram wraps it in a link to the live, generated [Arbora Architecture Explorer](https://knuckles-team.github.io/.github/architecture/) (deep-linked to the repository's node as `#<node-id>` where one exists) and adds the text link "Explore the live architecture"; the check fails on a page that shows the diagram without that link. The explorer is the canonical, always-current view: it is rebuilt every 30 minutes from every repository's default branch, and each core repository's `/architecture/` redirects to it.
22
+
21
23
  ## MkDocs configuration
22
24
 
23
25
  The repository's `mkdocs.yml` inherits `templates/mkdocs-theme/base.mkdocs.yml` and supplies `extra.ecosystem.current` with its own slug (`agent-webui`, `arbora`, `agent-utilities`, `epistemic-graph`, or `agent-connector-sdk`). It continues to own its site name, URL, content directory, and navigation. For local builds, check out the exact pinned `pipelines` revision into `.pipeline-theme`, run the `sync` command above, then run `mkdocs build --strict`.
@@ -53,6 +53,17 @@ extra_css:
53
53
 
54
54
  extra:
55
55
  spec_delivery: !ENV [SPEC_DELIVERY_ENABLED, false]
56
+ architecture_explorer: !ENV [ARCHITECTURE_EXPLORER_ENABLED, false]
57
+ # The explorer node each site opens at (deep link /architecture/#<node>).
58
+ architecture_nodes:
59
+ epistemic-graph: eg
60
+ arbora: arbora
61
+ agent-connector-sdk: sdk
62
+ agent-utilities: au
63
+ agent-terminal-ui: tui
64
+ agent-webui: webui
65
+ pipelines: pipelines
66
+ universal-skills: skills
56
67
  ecosystem:
57
68
  current: ""
58
69
  sites:
@@ -21,6 +21,13 @@
21
21
  </ul>
22
22
  </nav>
23
23
  </details>
24
+ {% if config.extra.architecture_explorer %}
25
+ {% set arch_node = config.extra.architecture_nodes[config.extra.ecosystem.current] | default("") %}
26
+ <nav class="site-spec-delivery" aria-label="Architecture Explorer">
27
+ <a class="site-architecture__link" target="_self" href="{{ base_url }}/architecture/{% if arch_node %}#{{ arch_node }}{% endif %}">Architecture Explorer</a>
28
+ <span>Zoom from the ecosystem into this repository and its spec rows.</span>
29
+ </nav>
30
+ {% endif %}
24
31
  {% if config.extra.spec_delivery %}
25
32
  <style>
26
33
  .site-spec-delivery { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; padding: 0.3rem 0.8rem; }
@@ -1,3 +1,6 @@
1
+ # .pipeline-theme/ is vendored from pipelines and pinned by provenance.json
2
+ # hashes; this repository's formatters must not rewrite it.
3
+ exclude: ^\.pipeline-theme/
1
4
  default_language_version:
2
5
  python: python3
3
6
  default_install_hook_types: [pre-commit, pre-push]
@@ -64,12 +67,6 @@ repos:
64
67
  language: system
65
68
  pass_filenames: false
66
69
  always_run: true
67
- - id: connector-tool-schemas
68
- name: Live SDK input and output schema contracts
69
- entry: python scripts/generate_tool_schemas.py --check
70
- language: system
71
- pass_filenames: false
72
- always_run: true
73
70
  - id: pytest
74
71
  name: Generated connector contracts
75
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.0
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.0 \
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.0"
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",]
@@ -32,6 +32,10 @@ test = [
32
32
  [project.scripts]
33
33
  webarchiver-mcp = "webarchiver.mcp_server:mcp_server"
34
34
 
35
+ # The one declared connector identity: the fleet name (SDK-CONNECTOR-CONTROL-R071).
36
+ [project.entry-points."agent_connector_sdk.connector"]
37
+ webarchiver-mcp = "webarchiver"
38
+
35
39
  [tool.uv.workspace]
36
40
  members = ["."]
37
41
 
@@ -71,7 +75,7 @@ dev = [
71
75
  ]
72
76
 
73
77
  [tool.setuptools.package-data]
74
- webarchiver = [ "mcp_config.json", "prompts/**", "skills/**", "ontology/**", "connectors/**", "connector_manifest.yml",]
78
+ webarchiver = [ "mcp_config.json", "prompts/**", "skills/**", "ontology/**", "connectors/**", ]
75
79
 
76
80
  [tool.ruff.lint]
77
81
  select = [ "E", "F", "I", "UP", "B",]
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env bash
2
+ # One-command contributor setup from a fresh clone. Idempotent and
3
+ # non-interactive; safe for people, CI and any AI agent.
4
+ #
5
+ # scripts/bootstrap.sh
6
+ #
7
+ # Installs a current uv, the pinned Python (.python-version, else 3.14), the
8
+ # locked environment (`uv sync --locked`, or `uv sync` when the repository
9
+ # has no uv.lock yet), and the pre-commit and pre-push git hooks. Then it
10
+ # prints the gate command. Set BOOTSTRAP_SKIP_HOOKS=1 to skip hook install.
11
+ set -euo pipefail
12
+
13
+ cd "$(dirname "$0")/.."
14
+
15
+ log() { printf 'bootstrap: %s\n' "$*"; }
16
+ export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
17
+
18
+ case "${1:-}" in
19
+ -h | --help)
20
+ sed -n '2,10p' "$0"
21
+ exit 0
22
+ ;;
23
+ "") ;;
24
+ *)
25
+ echo "unknown argument: $1" >&2
26
+ exit 2
27
+ ;;
28
+ esac
29
+
30
+ # 1. uv + Python ------------------------------------------------------------
31
+ # uv older than 0.9 cannot download current CPython patch releases.
32
+ uv_minor() { uv --version 2>/dev/null | awk '{split($2, v, "."); print v[1] * 1000 + v[2]}'; }
33
+ if ! command -v uv >/dev/null 2>&1 || [[ "$(uv_minor)" -lt 9 ]]; then
34
+ log "installing a current uv"
35
+ python3 -m pip install --quiet --user --upgrade "uv>=0.9" \
36
+ || python3 -m pip install --quiet --user --break-system-packages --upgrade "uv>=0.9" \
37
+ || { echo "bootstrap: could not install uv>=0.9; see https://docs.astral.sh/uv/getting-started/installation/" >&2; exit 2; }
38
+ fi
39
+ python_version="3.14"
40
+ if [ -f .python-version ]; then
41
+ python_version="$(tr -d '[:space:]' < .python-version)"
42
+ fi
43
+ log "Python ${python_version} (uv $(uv --version | awk '{print $2}'))"
44
+ uv python install "$python_version"
45
+
46
+ # 2. Environment ------------------------------------------------------------
47
+ if [ -f uv.lock ]; then
48
+ log "uv sync --locked"
49
+ uv sync --locked --python "$python_version"
50
+ else
51
+ log "no uv.lock: uv sync (generate and commit one)"
52
+ uv sync --python "$python_version"
53
+ fi
54
+
55
+ # 3. Git hooks --------------------------------------------------------------
56
+ if [ "${BOOTSTRAP_SKIP_HOOKS:-0}" != 1 ] && [ -f .pre-commit-config.yaml ]; then
57
+ log "installing pre-commit and pre-push hooks"
58
+ uvx pre-commit install --hook-type pre-commit --hook-type pre-push >/dev/null
59
+ fi
60
+
61
+ log "done. Gate command: uvx pre-commit run --all-files"
@@ -16,3 +16,4 @@ Each row is one requirement. A child row `.n` is one five-minute unit of work. A
16
16
  | `CONN-WEBARCHIVER-WEB-SOURCE-R001.7` | **Bounded site crawl.** `web_crawl(seed_url, same_site, max_pages, max_depth, include, exclude)` in `webarchiver/api/crawl.py` must walk links breadth-first from one seed and return the page URLs it reached, in discovery order. It must fetch every page through the same policy as `web_fetch`: robots.txt, the per-domain rate limit, size and content-type caps and egress pinning. `same_site` defaults to true. `max_pages` ranges from 1 to 1000 and `max_depth` from 0 to 10. `include` and `exclude` are regular expressions. A robots-disallowed or failed page is reported as skipped with its closed reason. It returns URLs only; fetching content is the caller's next step. Proving test: `tests/test_crawl.py::test_bounded_crawl`. | A fixture site yields the expected URLs in order, the disallowed path is reported and never fetched, and out-of-range bounds refuse with `policy_refused`. |
17
17
  | `CONN-WEBARCHIVER-WEB-SOURCE-R001.8` | **Ingest mappings.** `webarchiver/connector_manifest.yml` must declare `schema_mappings` for the `Document` and `Chunk` record types, mapped to the core `Document` and `Chunk` classes, so `SourceIngest` resolves `manifest:<connector>#schema_mappings/Document` and `.../Chunk` in the pack the fleet imports (`SDK-SOURCE-INGEST-R004.25`). Proving test: `tests/test_startup.py::test_manifest_maps_document_and_chunk_records`. | The served manifest maps both record types with their text, title, source and backend fields. |
18
18
  | `CONN-WEBARCHIVER-WEB-SOURCE-R001.10` | **Conformance.** The connector passes the SDK conformance kit (`SDK-SOURCE-INGEST-R005.40.2`) against itself, served in process. The kit checks robots.txt, the per-domain rate limit, `max_bytes`, the content type, the digest and the tool schemas. The archivebox-api connector passes the same kit, so both produce the same tools and record shape (`CONN-ARCHIVEBOX-API-WEB-SOURCE-R001.8`). Proving test: `tests/test_conformance.py::test_webarchiver_conforms_to_the_web_source_contract`. | The kit reports no broken obligation. |
19
+ | `CONN-WEBARCHIVER-WEB-SOURCE-R001.11` | **Fleet name.** The connector files its content pack, manifest and ingest binding under its fleet name `webarchiver-mcp`, not the package name. `ConnectorContent.connector` in `webarchiver/mcp_server.py`, `connector` in `webarchiver/connector_manifest.yml` and the `IngestBinding` in `webarchiver/kg_ingest.py` all carry `webarchiver-mcp`, so the engine lists the connector's tools and ingest under the name the fleet and onboarding use. Proving test: `tests/test_startup.py::test_connector_name_is_the_fleet_name`. | The served content, the manifest and the ingest binding all name `webarchiver-mcp`. |
@@ -13,7 +13,8 @@
13
13
  "CONN-WEBARCHIVER-WEB-SOURCE-R001.6",
14
14
  "CONN-WEBARCHIVER-WEB-SOURCE-R001.7",
15
15
  "CONN-WEBARCHIVER-WEB-SOURCE-R001.8",
16
- "CONN-WEBARCHIVER-WEB-SOURCE-R001.10"
16
+ "CONN-WEBARCHIVER-WEB-SOURCE-R001.10",
17
+ "CONN-WEBARCHIVER-WEB-SOURCE-R001.11"
17
18
  ],
18
19
  "requirements": [
19
20
  {
@@ -31,7 +32,8 @@
31
32
  "CONN-WEBARCHIVER-WEB-SOURCE-R001.6",
32
33
  "CONN-WEBARCHIVER-WEB-SOURCE-R001.7",
33
34
  "CONN-WEBARCHIVER-WEB-SOURCE-R001.8",
34
- "CONN-WEBARCHIVER-WEB-SOURCE-R001.10"
35
+ "CONN-WEBARCHIVER-WEB-SOURCE-R001.10",
36
+ "CONN-WEBARCHIVER-WEB-SOURCE-R001.11"
35
37
  ]
36
38
  },
37
39
  {
@@ -39,7 +41,7 @@
39
41
  "title": "Model",
40
42
  "delivery_state": "VERIFIED",
41
43
  "landed_in": [
42
- "31e5998eddc5"
44
+ "cb1d8b9cd97d"
43
45
  ],
44
46
  "verified_by": [
45
47
  "tests/test_conformance.py:20"
@@ -133,11 +135,22 @@
133
135
  "title": "Conformance",
134
136
  "delivery_state": "VERIFIED",
135
137
  "landed_in": [
136
- "31e5998eddc5"
138
+ "cb1d8b9cd97d"
137
139
  ],
138
140
  "verified_by": [
139
141
  "tests/test_conformance.py:21"
140
142
  ]
143
+ },
144
+ {
145
+ "id": "CONN-WEBARCHIVER-WEB-SOURCE-R001.11",
146
+ "title": "Fleet name",
147
+ "delivery_state": "VERIFIED",
148
+ "landed_in": [
149
+ "e9e08644df80"
150
+ ],
151
+ "verified_by": [
152
+ "tests/test_startup.py:71"
153
+ ]
141
154
  }
142
155
  ]
143
156
  }
@@ -12,3 +12,4 @@ Governing spec: [spec.md](spec.md). Design: [plan.md](plan.md). Rows: [requireme
12
12
  - [x] `CONN-WEBARCHIVER-WEB-SOURCE-R001.7` — Bounded site crawl `web_crawl` returning URLs under the fetch policy.
13
13
  - [x] `CONN-WEBARCHIVER-WEB-SOURCE-R001.8` — Document and Chunk schema_mappings in the served manifest.
14
14
  - [x] `CONN-WEBARCHIVER-WEB-SOURCE-R001.10` — Pass the SDK web-source conformance kit.
15
+ - [ ] `CONN-WEBARCHIVER-WEB-SOURCE-R001.11` — File the content pack, manifest and ingest binding under the fleet name `webarchiver-mcp`.
@@ -14,3 +14,4 @@ Governing spec: [spec.md](spec.md).
14
14
  | T-008 | `CONN-WEBARCHIVER-WEB-SOURCE-R001.7` | Unit | `tests/test_crawl.py::test_bounded_crawl` | The fixture site yields the expected URLs in order and the disallowed path is reported, not fetched. | |
15
15
  | T-009 | `CONN-WEBARCHIVER-WEB-SOURCE-R001.8` | Unit | `tests/test_startup.py::test_manifest_maps_document_and_chunk_records` | The manifest maps Document and Chunk to the core classes. | |
16
16
  | T-010 | `CONN-WEBARCHIVER-WEB-SOURCE-R001.10` | Unit | `tests/test_conformance.py::test_webarchiver_conforms_to_the_web_source_contract` | The kit reports no broken obligation. | |
17
+ | T-011 | `CONN-WEBARCHIVER-WEB-SOURCE-R001.11` | Unit | `tests/test_startup.py::test_connector_name_is_the_fleet_name` | Content, manifest and ingest binding all name `webarchiver-mcp`. | |
@@ -23,7 +23,7 @@ def test_ingest_maps_record_and_uses_submit():
23
23
  kg_ingest.ingest_records([{"id": 0, "name": "first"}], ingest=fake)
24
24
  ) == {"nodes": 1, "edges": 0}
25
25
  binding, changes = fake.calls[0]
26
- assert binding.connector
26
+ assert binding.connector == "webarchiver-mcp"
27
27
  assert changes.entities[0].id == "0"
28
28
  assert changes.entities[0].properties == {"name": "first"}
29
29
  assert changes.withdrawals == ()
@@ -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.0"
3
+ __version__ = "1.2.2"