webarchiver 1.2.2__tar.gz → 1.2.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.
- {webarchiver-1.2.2 → webarchiver-1.2.5}/.bumpversion.cfg +1 -5
- webarchiver-1.2.5/.github/workflows/connector.yml +94 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/.pre-commit-config.yaml +3 -3
- {webarchiver-1.2.2 → webarchiver-1.2.5}/MANIFEST.in +0 -1
- {webarchiver-1.2.2/webarchiver.egg-info → webarchiver-1.2.5}/PKG-INFO +6 -6
- {webarchiver-1.2.2 → webarchiver-1.2.5}/README.md +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docker/Dockerfile +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/architecture.md +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/installation.md +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/overview.md +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/mkdocs.yml +0 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/pyproject.toml +7 -6
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/bootstrap_environment.py +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/bootstrap_sources.py +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/check_connector_contract.py +4 -6
- {webarchiver-1.2.2 → webarchiver-1.2.5}/specs/README.md +1 -1
- webarchiver-1.2.5/specs/web-source/checklists/requirements.md +24 -0
- webarchiver-1.2.5/specs/web-source/data-model.md +9 -0
- webarchiver-1.2.5/specs/web-source/plan.md +242 -0
- webarchiver-1.2.5/specs/web-source/quickstart.md +9 -0
- webarchiver-1.2.5/specs/web-source/requirements.md +24 -0
- webarchiver-1.2.5/specs/web-source/spec.md +227 -0
- webarchiver-1.2.5/specs/web-source/tasks.md +22 -0
- webarchiver-1.2.5/specs/web-source/test-spec.md +30 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_conformance.py +2 -2
- webarchiver-1.2.5/tests/test_content_pack.py +124 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_extract.py +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_startup.py +3 -3
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/fetcher.py +4 -4
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/request_filter.py +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/web_source.py +2 -2
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/auth.py +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/connector_sources.py +0 -22
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/error_authority.py +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/kg_ingest.py +1 -1
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/mcp_server.py +10 -8
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/ontology/__init__.py +1 -1
- webarchiver-1.2.5/webarchiver/ontology/access_contracts.ttl +127 -0
- webarchiver-1.2.5/webarchiver/ontology/pack.ttl +117 -0
- webarchiver-1.2.5/webarchiver/ontology/webarchiver.ttl +127 -0
- webarchiver-1.2.5/webarchiver/prompts/webarchiver_market_researcher.json +49 -0
- webarchiver-1.2.5/webarchiver/prompts/webarchiver_operator.json +46 -0
- webarchiver-1.2.5/webarchiver/skills/webarchiver-market-research-capture/SKILL.md +79 -0
- webarchiver-1.2.5/webarchiver/skills/webarchiver-web-capture/SKILL.md +65 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5/webarchiver.egg-info}/PKG-INFO +6 -6
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver.egg-info/SOURCES.txt +11 -25
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver.egg-info/entry_points.txt +3 -3
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver.egg-info/requires.txt +3 -3
- webarchiver-1.2.2/.github/workflows/connector-pr.yml +0 -17
- webarchiver-1.2.2/.github/workflows/pages.yml +0 -25
- webarchiver-1.2.2/.github/workflows/pipeline.yml +0 -27
- webarchiver-1.2.2/.github/workflows/scanners.yml +0 -42
- webarchiver-1.2.2/.pipeline-theme/provenance.json +0 -21
- webarchiver-1.2.2/.pipeline-theme/scripts/sync_mkdocs_theme.py +0 -189
- webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme/README.md +0 -29
- webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme/base.mkdocs.yml +0 -116
- webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme/overrides/main.html +0 -64
- webarchiver-1.2.2/docs/assets/brands/agent-connector-sdk-logo-v1.png +0 -0
- webarchiver-1.2.2/docs/assets/brands/agent-terminal-ui-logo-v1.png +0 -0
- webarchiver-1.2.2/docs/assets/brands/agent-utilities-logo-v1.png +0 -0
- webarchiver-1.2.2/docs/assets/brands/agent-webui-logo-v1.png +0 -0
- webarchiver-1.2.2/docs/assets/brands/arbora-logo-v1.png +0 -0
- webarchiver-1.2.2/docs/assets/brands/epistemic-graph-logo-v1.png +0 -0
- webarchiver-1.2.2/docs/assets/brands/geniusbot-logo-v1.png +0 -0
- webarchiver-1.2.2/docs/assets/favicon.svg +0 -13
- webarchiver-1.2.2/docs/assets/graph-mark.svg +0 -13
- webarchiver-1.2.2/docs/glossary.md +0 -57
- webarchiver-1.2.2/docs/stylesheets/extra.css +0 -249
- webarchiver-1.2.2/specs/web-source/plan.md +0 -29
- webarchiver-1.2.2/specs/web-source/requirements.md +0 -19
- webarchiver-1.2.2/specs/web-source/spec.md +0 -26
- webarchiver-1.2.2/specs/web-source/status.json +0 -156
- webarchiver-1.2.2/specs/web-source/tasks.md +0 -15
- webarchiver-1.2.2/specs/web-source/test-spec.md +0 -17
- webarchiver-1.2.2/webarchiver/_version.py +0 -3
- webarchiver-1.2.2/webarchiver/ontology/pack.ttl +0 -48
- webarchiver-1.2.2/webarchiver/ontology/webarchiver.ttl +0 -28
- webarchiver-1.2.2/webarchiver/prompts/webarchiver_specialist.json +0 -30
- webarchiver-1.2.2/webarchiver/skills/webarchiver-starter/SKILL.md +0 -25
- {webarchiver-1.2.2 → webarchiver-1.2.5}/.config/spec-dashboard.json +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/.github/workflows/windows-ci.yml +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/LICENSE +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docker/debug.Dockerfile +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docker/mcp.compose.yml +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docker/starship.toml +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/agent-readiness.json +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/agent-readiness.schema.json +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/brands/agent-terminal-ui-logo-v1.png +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/brands/agent-utilities-logo-v1.png +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/brands/agent-webui-logo-v1.png +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/brands/arbora-logo-v1.png +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/brands/epistemic-graph-logo-v1.png +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/brands/geniusbot-logo-v1.png +0 -0
- /webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme/assets/brands/agent-connector-sdk-logo-v1.png → /webarchiver-1.2.5/docs/assets/brands/scion-sdk-logo-v1.png +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/favicon.svg +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/assets/graph-mark.svg +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/capabilities/api.json +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/capabilities/mcp.json +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/concepts.md +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/deployment.md +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs}/glossary.md +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/index.md +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/platform.md +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/spec-delivery.md +0 -0
- {webarchiver-1.2.2/.pipeline-theme/templates/mkdocs-theme → webarchiver-1.2.5/docs/stylesheets}/extra.css +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/docs/usage.md +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/pytest.ini +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/agent_readiness_tck.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/bootstrap.sh +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/check_import_safety.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/check_workspace_source_drift.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/generate_agent_readiness.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/security_sanitizer.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/select_python.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/verify_api_integration.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/scripts/workspace_sources.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/setup.cfg +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/__init__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/conftest.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/fixtures/article.html +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_concept_parity.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_crawl.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_error_authority.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_init_dynamics.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_kg_ingest.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_served.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/tests/test_webarchiver_mcp_validation.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/__init__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/__main__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/__init__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/_support.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/api_client_system.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/browser.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/crawl.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/extraction.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/api/policy.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/connectors/__init__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/error_rendering.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/mcp/__init__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/mcp/mcp_system.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/mcp_config.json +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/prompts/__init__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/skills/__init__.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/webarchiver_input_models.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver/webarchiver_response_models.py +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver.egg-info/dependency_links.txt +0 -0
- {webarchiver-1.2.2 → webarchiver-1.2.5}/webarchiver.egg-info/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[bumpversion]
|
|
2
|
-
current_version = 1.2.
|
|
2
|
+
current_version = 1.2.5
|
|
3
3
|
commit = True
|
|
4
4
|
tag = True
|
|
5
5
|
|
|
@@ -7,10 +7,6 @@ tag = True
|
|
|
7
7
|
search = version = "{current_version}"
|
|
8
8
|
replace = version = "{new_version}"
|
|
9
9
|
|
|
10
|
-
[bumpversion:file:webarchiver/_version.py]
|
|
11
|
-
search = __version__ = "{current_version}"
|
|
12
|
-
replace = __version__ = "{new_version}"
|
|
13
|
-
|
|
14
10
|
[bumpversion:file(dockerpin):docker/Dockerfile]
|
|
15
11
|
search = webarchiver[mcp]=={current_version}
|
|
16
12
|
replace = webarchiver[mcp]=={new_version}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: Connector
|
|
2
|
+
|
|
3
|
+
# Copy to .github/workflows/connector.yml (reference/ci-standard.md, "Connector pipeline").
|
|
4
|
+
# The ONE caller a connector carries; every pipeline change is made in pipelines'
|
|
5
|
+
# connector_pipeline.yml. Routing by event:
|
|
6
|
+
# pull_request gates, affected tests, image check
|
|
7
|
+
# push to main org-site notify + main checks; never publishes
|
|
8
|
+
# push of a v* tag PyPI, then Docker, and GitHub Pages
|
|
9
|
+
# schedule, repository_dispatch, workflow_dispatch SDK rebuild
|
|
10
|
+
# Releases are cut by the owner with gh: scripts/release_connector.sh in pipelines (the owner's tag push publishes).
|
|
11
|
+
# Per-connector differences are `with:` inputs of the job below (all defaulted).
|
|
12
|
+
# The GitHub Pages environment needs a `v*` tag deployment policy.
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
pull_request:
|
|
16
|
+
branches: [main]
|
|
17
|
+
push:
|
|
18
|
+
branches: [main]
|
|
19
|
+
tags: ['v*']
|
|
20
|
+
schedule:
|
|
21
|
+
- cron: '17 5 * * *'
|
|
22
|
+
repository_dispatch:
|
|
23
|
+
types: [sdk-release]
|
|
24
|
+
workflow_dispatch:
|
|
25
|
+
inputs:
|
|
26
|
+
release_repair:
|
|
27
|
+
description: Republish the already published container after the reviewed public-wheel guard.
|
|
28
|
+
required: false
|
|
29
|
+
default: false
|
|
30
|
+
type: boolean
|
|
31
|
+
release_source_sha:
|
|
32
|
+
description: Full SHA of the original package source that produced the public wheel.
|
|
33
|
+
required: false
|
|
34
|
+
default: ''
|
|
35
|
+
type: string
|
|
36
|
+
release_source_epoch:
|
|
37
|
+
description: Exact SOURCE_DATE_EPOCH used to generate the public connector payload.
|
|
38
|
+
required: false
|
|
39
|
+
default: ''
|
|
40
|
+
type: string
|
|
41
|
+
legacy_profile:
|
|
42
|
+
description: Preserve the reviewed tracked wheel-only package tree without renderer generation.
|
|
43
|
+
required: false
|
|
44
|
+
default: false
|
|
45
|
+
type: boolean
|
|
46
|
+
|
|
47
|
+
# Pull requests cancel superseded runs; every other event queues per event and ref and never cancels.
|
|
48
|
+
concurrency:
|
|
49
|
+
group: ${{ github.event_name == 'pull_request' && format('pr-{0}-{1}', github.workflow, github.event.pull_request.number) || format('connector-{0}-{1}', github.event_name, github.ref) }}
|
|
50
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
51
|
+
|
|
52
|
+
permissions: {}
|
|
53
|
+
|
|
54
|
+
jobs:
|
|
55
|
+
pipeline:
|
|
56
|
+
permissions:
|
|
57
|
+
contents: write
|
|
58
|
+
pages: write
|
|
59
|
+
id-token: write
|
|
60
|
+
uses: Knuckles-Team/pipelines/.github/workflows/connector_pipeline.yml@main
|
|
61
|
+
with:
|
|
62
|
+
release_repair: ${{ inputs.release_repair || false }}
|
|
63
|
+
release_source_sha: ${{ inputs.release_source_sha || '' }}
|
|
64
|
+
release_source_epoch: ${{ inputs.release_source_epoch || '' }}
|
|
65
|
+
legacy_profile: ${{ inputs.legacy_profile || false }}
|
|
66
|
+
skip-hooks: docker-compose-check,scanner-versions
|
|
67
|
+
python-connector: false
|
|
68
|
+
render-connector: false
|
|
69
|
+
pages-spec-dashboard-config: .config/spec-dashboard.json
|
|
70
|
+
secrets:
|
|
71
|
+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
72
|
+
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
|
|
73
|
+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
74
|
+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
75
|
+
DOCKER_REPOSITORY: ${{ secrets.DOCKER_REPOSITORY }}
|
|
76
|
+
org_site_app_id: ${{ secrets.org_site_app_id }}
|
|
77
|
+
org_site_app_private_key: ${{ secrets.org_site_app_private_key }}
|
|
78
|
+
|
|
79
|
+
# The one required status check (reference/ci-standard.md): named in the caller so the
|
|
80
|
+
# ruleset context is exactly `CI required`. Skipped routes pass; failed or cancelled fail.
|
|
81
|
+
ci-required:
|
|
82
|
+
name: CI required
|
|
83
|
+
if: always()
|
|
84
|
+
needs: [pipeline]
|
|
85
|
+
runs-on: ubuntu-latest
|
|
86
|
+
timeout-minutes: 5
|
|
87
|
+
permissions: {}
|
|
88
|
+
steps:
|
|
89
|
+
- name: Fail on a failed or cancelled pipeline (skipped is fine)
|
|
90
|
+
env:
|
|
91
|
+
RESULT: ${{ needs.pipeline.result }}
|
|
92
|
+
run: |
|
|
93
|
+
echo "pipeline result: $RESULT"
|
|
94
|
+
case "$RESULT" in failure|cancelled) echo "::error::the pipeline ended $RESULT"; exit 1;; esac
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# .pipeline-theme/ is
|
|
2
|
-
#
|
|
1
|
+
# .pipeline-theme/ is the shared Pages theme checked out from pipelines at
|
|
2
|
+
# build time (never tracked); formatters must not rewrite a local checkout.
|
|
3
3
|
exclude: ^\.pipeline-theme/
|
|
4
4
|
default_language_version:
|
|
5
5
|
python: python3
|
|
@@ -69,7 +69,7 @@ repos:
|
|
|
69
69
|
always_run: true
|
|
70
70
|
- id: pytest
|
|
71
71
|
name: Generated connector contracts
|
|
72
|
-
entry:
|
|
72
|
+
entry: uv run --all-extras pytest tests -q
|
|
73
73
|
language: system
|
|
74
74
|
pass_filenames: false
|
|
75
75
|
always_run: true
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webarchiver
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.5
|
|
4
4
|
Summary: Governed web fetch, extract, render, screenshot and link connector
|
|
5
|
-
Author: Repository Maintainers
|
|
5
|
+
Author-email: Repository Maintainers <maintainers@knuckles.team>
|
|
6
6
|
License: MIT
|
|
7
7
|
Classifier: Development Status :: 5 - Production/Stable
|
|
8
8
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -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:
|
|
18
|
+
Requires-Dist: scion-sdk[mcp]<0.7.0,>=0.6.4
|
|
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:
|
|
23
|
+
Requires-Dist: scion-sdk[mcp]<0.7.0,>=0.6.4; extra == "mcp"
|
|
24
24
|
Provides-Extra: all
|
|
25
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: scion-sdk[mcp]<0.7.0,>=0.6.4; 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"
|
|
@@ -80,7 +80,7 @@ DOMs, full-page screenshots and outbound links. It holds no credentials.
|
|
|
80
80
|
`web_render`, `web_screenshot`, `web_crawl` and `web_links`, all
|
|
81
81
|
read-only.
|
|
82
82
|
- **Shared web-source contract** — `web_fetch` and `web_extract` are the
|
|
83
|
-
|
|
83
|
+
scion-sdk web-source contract's tools: the same request, page
|
|
84
84
|
result and refusal reasons as every page connector, including the ArchiveBox
|
|
85
85
|
connector. Each page names its `backend` (`webarchiver`).
|
|
86
86
|
|
|
@@ -48,7 +48,7 @@ DOMs, full-page screenshots and outbound links. It holds no credentials.
|
|
|
48
48
|
`web_render`, `web_screenshot`, `web_crawl` and `web_links`, all
|
|
49
49
|
read-only.
|
|
50
50
|
- **Shared web-source contract** — `web_fetch` and `web_extract` are the
|
|
51
|
-
|
|
51
|
+
scion-sdk web-source contract's tools: the same request, page
|
|
52
52
|
result and refusal reasons as every page connector, including the ArchiveBox
|
|
53
53
|
connector. Each page names its `backend` (`webarchiver`).
|
|
54
54
|
|
|
@@ -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.
|
|
23
|
+
RUN pip install --only-binary :all: webarchiver[mcp]==1.2.5 \
|
|
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 \
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Connector architecture
|
|
2
2
|
|
|
3
3
|
The `webarchiver` package owns external-system operations and source mappings.
|
|
4
|
-
The [shared connector SDK](https://github.com/Knuckles-Team/
|
|
4
|
+
The [shared connector SDK](https://github.com/Knuckles-Team/scion-sdk/blob/5babc4cc48ad73928468b243842f219f51e2cca1/README.md) owns reusable runtime contracts.
|
|
5
5
|
|
|
6
6
|
```mermaid
|
|
7
7
|
flowchart LR
|
|
@@ -17,7 +17,7 @@ pip install webarchiver
|
|
|
17
17
|
|
|
18
18
|
| Extra | Install | Pulls in |
|
|
19
19
|
|---|---|---|
|
|
20
|
-
| `mcp` | `pip install "webarchiver[mcp]"` | MCP runtime (`
|
|
20
|
+
| `mcp` | `pip install "webarchiver[mcp]"` | MCP runtime (`scion-sdk`) |
|
|
21
21
|
| `all` | `pip install "webarchiver[all]"` | Everything above |
|
|
22
22
|
|
|
23
23
|
## From source
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# webarchiver — Concept Overview
|
|
2
2
|
|
|
3
3
|
> **Category**: Integration | **Ecosystem Role**: MCP Server
|
|
4
|
-
> Built on [`
|
|
4
|
+
> Built on [`scion-sdk`](https://github.com/Knuckles-Team/scion-sdk).
|
|
5
5
|
|
|
6
6
|
## Description
|
|
7
7
|
|
|
@@ -4,27 +4,28 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "webarchiver"
|
|
7
|
-
version = "1.2.
|
|
7
|
+
version = "1.2.5"
|
|
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
|
-
"
|
|
13
|
+
"scion-sdk[mcp]>=0.6.4,<0.7.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",
|
|
17
17
|
]
|
|
18
18
|
[[project.authors]]
|
|
19
19
|
name = "Repository Maintainers"
|
|
20
|
+
email = "maintainers@knuckles.team"
|
|
20
21
|
|
|
21
22
|
[project.license]
|
|
22
23
|
text = "MIT"
|
|
23
24
|
|
|
24
25
|
[project.optional-dependencies]
|
|
25
|
-
mcp = [ "
|
|
26
|
+
mcp = [ "scion-sdk[mcp]>=0.6.4,<0.7.0",]
|
|
26
27
|
all = [
|
|
27
|
-
"
|
|
28
|
+
"scion-sdk[mcp]>=0.6.4,<0.7.0",
|
|
28
29
|
]
|
|
29
30
|
test = [
|
|
30
31
|
"pytest-xdist>=3.6.0", "pytest", "pytest-asyncio", "pytest-cov",]
|
|
@@ -32,8 +33,8 @@ test = [
|
|
|
32
33
|
[project.scripts]
|
|
33
34
|
webarchiver-mcp = "webarchiver.mcp_server:mcp_server"
|
|
34
35
|
|
|
35
|
-
# The one declared connector identity: the fleet name (
|
|
36
|
-
[project.entry-points."
|
|
36
|
+
# The one declared connector identity: the fleet name (SCION-CONNECTOR-CONTROL-R071).
|
|
37
|
+
[project.entry-points."scion_sdk.connector"]
|
|
37
38
|
webarchiver-mcp = "webarchiver"
|
|
38
39
|
|
|
39
40
|
[tool.uv.workspace]
|
|
@@ -88,7 +88,7 @@ for name, source in expected.items():
|
|
|
88
88
|
origin = pathlib.Path(module.__file__).resolve()
|
|
89
89
|
origin.relative_to(pathlib.Path(source).resolve())
|
|
90
90
|
origins[name] = str(origin)
|
|
91
|
-
for name in ('
|
|
91
|
+
for name in ('scion_sdk', 'epistemic_graph', 'fastmcp', 'mcp', 'pytest'):
|
|
92
92
|
origin = pathlib.Path(importlib.import_module(name).__file__).resolve()
|
|
93
93
|
origin.relative_to(pathlib.Path(expected.get(name, prefix)).resolve())
|
|
94
94
|
origins[name] = str(origin)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""Reject retired connector APIs in a generated SDK-based project.
|
|
3
3
|
|
|
4
4
|
This static check needs no installed connector dependencies. A connector is
|
|
5
|
-
MCP-only and depends on
|
|
5
|
+
MCP-only and depends on scion-sdk alone: the retired control-plane
|
|
6
6
|
package may be neither imported nor declared as a dependency.
|
|
7
7
|
"""
|
|
8
8
|
|
|
@@ -75,12 +75,10 @@ def check_project(root: Path, package: str) -> list[str]:
|
|
|
75
75
|
for value in dependencies
|
|
76
76
|
}
|
|
77
77
|
violations = []
|
|
78
|
-
if "
|
|
79
|
-
violations.append("pyproject.toml: connector requires
|
|
78
|
+
if "scion-sdk" not in names:
|
|
79
|
+
violations.append("pyproject.toml: connector requires scion-sdk")
|
|
80
80
|
if RETIRED_PACKAGE.replace("_", "-") in names:
|
|
81
|
-
violations.append(
|
|
82
|
-
"pyproject.toml: connectors depend on agent-connector-sdk only"
|
|
83
|
-
)
|
|
81
|
+
violations.append("pyproject.toml: connectors depend on scion-sdk only")
|
|
84
82
|
for extra, values in project.get("optional-dependencies", {}).items():
|
|
85
83
|
if any(RETIRED_PACKAGE.replace("_", "-") in value.lower() for value in values):
|
|
86
84
|
violations.append(
|
|
@@ -4,7 +4,7 @@ These specs follow the ecosystem [spec standard](https://github.com/Knuckles-Tea
|
|
|
4
4
|
|
|
5
5
|
## Owner
|
|
6
6
|
|
|
7
|
-
This repository owns the specs with the ID prefix `CONN-WEBARCHIVER`. The connector contract, certification, and transport rules belong to [
|
|
7
|
+
This repository owns the specs with the ID prefix `CONN-WEBARCHIVER`. The connector contract, certification, and transport rules belong to [scion-sdk](https://github.com/Knuckles-Team/scion-sdk/tree/main/specs).
|
|
8
8
|
|
|
9
9
|
## Local specifications
|
|
10
10
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CONN-WEBARCHIVER-WEB-SOURCE — Requirements quality checklist
|
|
2
|
+
|
|
3
|
+
Filled before landing from the checklist template.
|
|
4
|
+
|
|
5
|
+
## Content quality
|
|
6
|
+
|
|
7
|
+
- [x] No implementation detail leaks into the user stories
|
|
8
|
+
- [x] Every story states a user, an outcome and a reason
|
|
9
|
+
- [x] Every mandatory section is complete
|
|
10
|
+
|
|
11
|
+
## Requirement completeness
|
|
12
|
+
|
|
13
|
+
- [x] No `[NEEDS CLARIFICATION: ...]` marker remains
|
|
14
|
+
- [x] Each row is testable and unambiguous
|
|
15
|
+
- [x] Each `SC-` criterion is measurable and technology-agnostic
|
|
16
|
+
- [x] Acceptance scenarios cover each story
|
|
17
|
+
- [x] Edge cases are listed
|
|
18
|
+
- [x] Scope is bounded and dependencies are named by row ID
|
|
19
|
+
- [x] Assumptions are listed
|
|
20
|
+
|
|
21
|
+
## Readiness
|
|
22
|
+
|
|
23
|
+
- [x] Every row has a task line and a bound test or a test-spec entry
|
|
24
|
+
- [x] Each story can be delivered and proven on its own
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CONN-WEBARCHIVER-WEB-SOURCE — Data model
|
|
2
|
+
|
|
3
|
+
Entities and records that the rows add or declare.
|
|
4
|
+
|
|
5
|
+
| Row | Entity or record | Definition |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| `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 (`SCION-SOURCE-INGEST-R004.25`). |
|
|
8
|
+
|
|
9
|
+
Relations follow the row text; the connector adds no table of its own.
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# CONN-WEBARCHIVER-WEB-SOURCE — Implementation plan
|
|
2
|
+
|
|
3
|
+
Governing spec: [spec.md](spec.md). Rows: [requirements.md](requirements.md).
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
|
|
7
|
+
This plan states how `webarchiver` delivers the rows of `CONN-WEBARCHIVER-WEB-SOURCE`. The live caller is the `webarchiver-mcp` console script. The owner is the `webarchiver` package. The rows reuse the `scion-sdk` helpers and add no second authority. The plan changes no runtime code.
|
|
8
|
+
|
|
9
|
+
## Technical Context
|
|
10
|
+
|
|
11
|
+
- **Language/Version**: Python >=3.12,<3.15
|
|
12
|
+
- **Primary Dependencies**: scion-sdk[mcp]>=0.6.4,<0.7.0; fastmcp; further pins in `pyproject.toml` (scion-sdk[mcp]>=0.6.4,<0.7.0, trafilatura>=2.0.0,<3.0.0, lxml>=6.0.0, playwright>=1.55.0,<2.0.0)
|
|
13
|
+
- **Storage**: N/A, the connector keeps no store of its own
|
|
14
|
+
- **Testing**: pytest; each row names the proving test as `path::name`
|
|
15
|
+
- **Target Platform**: Linux container and stdio or streamable HTTP MCP clients
|
|
16
|
+
- **Project Type**: connector
|
|
17
|
+
- **Performance Goals**: N/A, the vendor service sets the latency
|
|
18
|
+
- **Constraints**: vendor calls go through the SDK governed client; no connector-local transport
|
|
19
|
+
- **Scale/Scope**: 12 active row(s) in this spec
|
|
20
|
+
|
|
21
|
+
## Constitution Check
|
|
22
|
+
|
|
23
|
+
- Organization constitution 1.5.0, spec-first change: pass. Every behaviour is a row of this spec with a bound or planned test.
|
|
24
|
+
- Repository article R-I, connector scope: pass. The rows stay inside this connector's one external system and reuse the SDK for shared capabilities.
|
|
25
|
+
|
|
26
|
+
## Project Structure
|
|
27
|
+
|
|
28
|
+
- `webarchiver/api/web_source.py` (existing)
|
|
29
|
+
- `tests/test_conformance.py` (existing)
|
|
30
|
+
- `webarchiver/api/fetcher.py` (existing)
|
|
31
|
+
- `webarchiver/api/policy.py` (existing)
|
|
32
|
+
- `webarchiver/api/extraction.py` (existing)
|
|
33
|
+
- `tests/test_extract.py` (existing)
|
|
34
|
+
- `webarchiver/mcp_server.py` (existing)
|
|
35
|
+
- `webarchiver/api/browser.py` (existing)
|
|
36
|
+
- `tests/test_served.py` (existing)
|
|
37
|
+
- `webarchiver/api/request_filter.py` (existing)
|
|
38
|
+
- `webarchiver/api/crawl.py` (existing)
|
|
39
|
+
- `tests/test_crawl.py` (existing)
|
|
40
|
+
- `tests/test_kg_ingest.py` (existing)
|
|
41
|
+
- `webarchiver/kg_ingest.py` (existing)
|
|
42
|
+
- `pyproject.toml` (existing)
|
|
43
|
+
- `webarchiver/__init__.py` (existing)
|
|
44
|
+
- `tests/test_fleet_name.py` (new, planned)
|
|
45
|
+
|
|
46
|
+
## Phase 0: Research
|
|
47
|
+
|
|
48
|
+
No unknowns. Every row names its code and test; the caller chain of each row was read from the code.
|
|
49
|
+
|
|
50
|
+
## Phase 1: Design
|
|
51
|
+
|
|
52
|
+
### Summary
|
|
53
|
+
|
|
54
|
+
This plan states how `webarchiver` delivers the rows of `CONN-WEBARCHIVER-WEB-SOURCE`. The live caller is the `webarchiver-mcp` console script. The owner is the `webarchiver` package. The rows reuse the `scion-sdk` helpers and add no second authority. The plan changes no runtime code.
|
|
55
|
+
|
|
56
|
+
### Technical Context
|
|
57
|
+
|
|
58
|
+
- **Language/Version**: Python >=3.12,<3.15
|
|
59
|
+
- **Primary Dependencies**: scion-sdk[mcp]>=0.6.4,<0.7.0; fastmcp; further pins in `pyproject.toml` (scion-sdk[mcp]>=0.6.4,<0.7.0, trafilatura>=2.0.0,<3.0.0, lxml>=6.0.0, playwright>=1.55.0,<2.0.0)
|
|
60
|
+
- **Storage**: N/A, the connector keeps no store of its own
|
|
61
|
+
- **Testing**: pytest; each row names the proving test as `path::name`
|
|
62
|
+
- **Target Platform**: Linux container and stdio or streamable HTTP MCP clients
|
|
63
|
+
- **Project Type**: connector
|
|
64
|
+
- **Performance Goals**: N/A, the vendor service sets the latency
|
|
65
|
+
- **Constraints**: vendor calls go through the SDK governed client; no connector-local transport
|
|
66
|
+
- **Scale/Scope**: 12 active row(s) in this spec
|
|
67
|
+
|
|
68
|
+
### Constitution Check
|
|
69
|
+
|
|
70
|
+
- Organization constitution 1.5.0, spec-first change: pass. Every behaviour is a row of this spec with a bound or planned test.
|
|
71
|
+
- Repository article R-I, connector scope: pass. The rows stay inside this connector's one external system and reuse the SDK for shared capabilities.
|
|
72
|
+
|
|
73
|
+
### Project Structure
|
|
74
|
+
|
|
75
|
+
- `webarchiver/api/web_source.py` (existing)
|
|
76
|
+
- `tests/test_conformance.py` (existing)
|
|
77
|
+
- `tests/test_extract.py` (existing)
|
|
78
|
+
- `tests/test_served.py` (existing)
|
|
79
|
+
- `webarchiver/api/crawl.py` (existing)
|
|
80
|
+
- `tests/test_crawl.py` (existing)
|
|
81
|
+
- `tests/test_startup.py` (existing)
|
|
82
|
+
- `webarchiver/mcp_server.py` (existing)
|
|
83
|
+
- `webarchiver/kg_ingest.py` (existing)
|
|
84
|
+
- `pyproject.toml` (existing)
|
|
85
|
+
- `webarchiver/__init__.py` (existing)
|
|
86
|
+
- `tests/test_conformance_served.py` (new, planned)
|
|
87
|
+
- `tests/test_fleet_name.py` (new, planned)
|
|
88
|
+
|
|
89
|
+
### Phase 0: Research
|
|
90
|
+
|
|
91
|
+
No unknowns. Every row names its code and test; the caller chain of each row was read from the code.
|
|
92
|
+
|
|
93
|
+
### Phase 1: Design
|
|
94
|
+
|
|
95
|
+
### Summary
|
|
96
|
+
|
|
97
|
+
This plan states how `webarchiver` delivers the rows of `CONN-WEBARCHIVER-WEB-SOURCE`. The live caller is the `webarchiver-mcp` console script. The owner is the `webarchiver` package. The rows reuse the `scion-sdk` helpers and add no second authority. The plan changes no runtime code.
|
|
98
|
+
|
|
99
|
+
### Technical Context
|
|
100
|
+
|
|
101
|
+
- **Language/Version**: Python >=3.12,<3.15
|
|
102
|
+
- **Primary Dependencies**: scion-sdk[mcp]>=0.6.4,<0.7.0; fastmcp; further pins in `pyproject.toml` (scion-sdk[mcp]>=0.6.4,<0.7.0, trafilatura>=2.0.0,<3.0.0, lxml>=6.0.0, playwright>=1.55.0,<2.0.0)
|
|
103
|
+
- **Storage**: N/A, the connector keeps no store of its own
|
|
104
|
+
- **Testing**: pytest; each row names the proving test as `path::name`
|
|
105
|
+
- **Target Platform**: Linux container and stdio or streamable HTTP MCP clients
|
|
106
|
+
- **Project Type**: connector
|
|
107
|
+
- **Performance Goals**: N/A, the vendor service sets the latency
|
|
108
|
+
- **Constraints**: vendor calls go through the SDK governed client; no connector-local transport
|
|
109
|
+
- **Scale/Scope**: 12 active row(s) in this spec
|
|
110
|
+
|
|
111
|
+
### Constitution Check
|
|
112
|
+
|
|
113
|
+
- Organization constitution 1.5.0, spec-first change: pass. Every behaviour is a row of this spec with a bound or planned test.
|
|
114
|
+
- Repository article R-I, connector scope: pass. The rows stay inside this connector's one external system and reuse the SDK for shared capabilities.
|
|
115
|
+
|
|
116
|
+
### Project Structure
|
|
117
|
+
|
|
118
|
+
- `webarchiver/api/web_source.py` (existing)
|
|
119
|
+
- `tests/test_conformance.py` (existing)
|
|
120
|
+
- `tests/test_extract.py` (existing)
|
|
121
|
+
- `tests/test_served.py` (existing)
|
|
122
|
+
- `webarchiver/api/crawl.py` (existing)
|
|
123
|
+
- `tests/test_crawl.py` (existing)
|
|
124
|
+
- `tests/test_startup.py` (existing)
|
|
125
|
+
- `webarchiver/mcp_server.py` (existing)
|
|
126
|
+
- `webarchiver/kg_ingest.py` (existing)
|
|
127
|
+
- `pyproject.toml` (existing)
|
|
128
|
+
- `webarchiver/__init__.py` (existing)
|
|
129
|
+
- `tests/test_conformance_served.py` (new, planned)
|
|
130
|
+
- `tests/test_fleet_name.py` (new, planned)
|
|
131
|
+
|
|
132
|
+
### Phase 0: Research
|
|
133
|
+
|
|
134
|
+
No unknowns. Every row names its code and test; the caller chain of each row was read from the code.
|
|
135
|
+
|
|
136
|
+
### Phase 1: Design
|
|
137
|
+
|
|
138
|
+
### Existing system and reuse
|
|
139
|
+
|
|
140
|
+
`Webarchiver.launch_browser` at `webarchiver/webarchiver.py:63` holds the existing browser capture with ad removal. It becomes the render and screenshot path. The fetch and extraction tools are new. The SDK supplies the contract types, the server factory, the egress policy and the conformance kit.
|
|
141
|
+
|
|
142
|
+
### Architecture
|
|
143
|
+
|
|
144
|
+
Call path: arbora `research.web` -> engine work item of kind `WebPage` -> SDK ingest worker -> `WebFetchSourceAdapter.extract` -> this connector `web_extract` -> engine `SourceIngest`.
|
|
145
|
+
|
|
146
|
+
The connector holds no store and no selection rule. It returns one page result or one typed refusal per call.
|
|
147
|
+
|
|
148
|
+
### Interfaces and data model
|
|
149
|
+
|
|
150
|
+
The tool arguments and results are the SDK contract types of `SCION-SOURCE-INGEST-R005.40.1`. No connector-local result type exists.
|
|
151
|
+
|
|
152
|
+
### Live integration path
|
|
153
|
+
|
|
154
|
+
The production caller is `WebFetchSourceAdapter.extract` in the SDK. arbora reaches it through the engine work item of `ARBORA-OPS-R067.2`.
|
|
155
|
+
|
|
156
|
+
### Quality and release gates
|
|
157
|
+
|
|
158
|
+
The SDK conformance kit of `SCION-SOURCE-INGEST-R005.40.2` must pass against the served connector.
|
|
159
|
+
|
|
160
|
+
### Risks, alternatives, and decisions
|
|
161
|
+
|
|
162
|
+
A spec-only change on `main` must not publish a release. Merge commits for spec text carry `[skip ci]`.
|
|
163
|
+
|
|
164
|
+
### Phase 2: Task approach
|
|
165
|
+
|
|
166
|
+
`tasks.md` holds one task per row, producer first. Rows that depend on none run in parallel. A task is checked when its `Spec:` trailer is on the default branch.
|
|
167
|
+
|
|
168
|
+
### Complexity Tracking
|
|
169
|
+
|
|
170
|
+
None. The constitution check passed.
|
|
171
|
+
|
|
172
|
+
### Build contract
|
|
173
|
+
|
|
174
|
+
- `pre-commit run --all-files` runs ruff check, ruff format, the shared `connector-standard`, `spec`, `secrets` and `dependency-readiness` gates at the pinned shared revision.
|
|
175
|
+
- `uv run pytest tests` runs the proving tests; the shared complexity, duplication and KISS gates apply their org thresholds and this repository sets no local override.
|
|
176
|
+
- A change adds no scanner suppression and no duplicate implementation of an SDK helper.
|
|
177
|
+
|
|
178
|
+
### Production caller chain
|
|
179
|
+
|
|
180
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.11`: `webarchiver-mcp` in `pyproject.toml` runs `webarchiver.mcp_server:mcp_server`, which builds the server from the `scion_sdk.connector` entry point `webarchiver` (`webarchiver/__init__.py:0`); `connector_name("webarchiver")` in the SDK resolves the same entry point name for the content pack, the manifest and the ingest binding.
|
|
181
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R003`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, whose `ConnectorContent` (webarchiver/mcp_server.py:30) serves `webarchiver/ontology/*.ttl`, `webarchiver/prompts/*.json` and `webarchiver/skills/*/SKILL.md` through the SDK content provider.
|
|
182
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R003.1`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, whose `ConnectorContent` (webarchiver/mcp_server.py:30) serves `webarchiver/ontology/*.ttl`, `webarchiver/prompts/*.json` and `webarchiver/skills/*/SKILL.md` through the SDK content provider.
|
|
183
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R003.2`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, whose `ConnectorContent` (webarchiver/mcp_server.py:30) serves `webarchiver/ontology/*.ttl`, `webarchiver/prompts/*.json` and `webarchiver/skills/*/SKILL.md` through the SDK content provider.
|
|
184
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R003.3`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, whose `ConnectorContent` (webarchiver/mcp_server.py:30) serves `webarchiver/ontology/*.ttl`, `webarchiver/prompts/*.json` and `webarchiver/skills/*/SKILL.md` through the SDK content provider.
|
|
185
|
+
|
|
186
|
+
### Cross-repo seams
|
|
187
|
+
|
|
188
|
+
None. The rows depend only on the published `scion-sdk` package, which the connector imports.
|
|
189
|
+
|
|
190
|
+
### Phase 2: Task approach
|
|
191
|
+
|
|
192
|
+
`tasks.md` holds one task per row, producer first. Rows that depend on none run in parallel. A task is checked when its `Spec:` trailer is on the default branch.
|
|
193
|
+
|
|
194
|
+
### Complexity Tracking
|
|
195
|
+
|
|
196
|
+
None. The constitution check passed.
|
|
197
|
+
|
|
198
|
+
### Build contract
|
|
199
|
+
|
|
200
|
+
- `pre-commit run --all-files` runs ruff check, ruff format, the shared `connector-standard`, `spec`, `secrets` and `dependency-readiness` gates at the pinned shared revision.
|
|
201
|
+
- `uv run pytest tests` runs the proving tests; the shared complexity, duplication and KISS gates apply their org thresholds and this repository sets no local override.
|
|
202
|
+
- A change adds no scanner suppression and no duplicate implementation of an SDK helper.
|
|
203
|
+
|
|
204
|
+
### Production caller chain
|
|
205
|
+
|
|
206
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.11`: `webarchiver-mcp` in `pyproject.toml` runs `webarchiver.mcp_server:mcp_server`, which builds the server from the `scion_sdk.connector` entry point `webarchiver` (`webarchiver/__init__.py:0`); `connector_name("webarchiver")` in the SDK resolves the same entry point name for the content pack, the manifest and the ingest binding.
|
|
207
|
+
|
|
208
|
+
### Cross-repo seams
|
|
209
|
+
|
|
210
|
+
None. The rows depend only on the published `scion-sdk` package, which the connector imports.
|
|
211
|
+
|
|
212
|
+
## Phase 2: Task approach
|
|
213
|
+
|
|
214
|
+
`tasks.md` holds one task per row, producer first. Rows that depend on none run in parallel. A task is checked when its `Spec:` trailer is on the default branch.
|
|
215
|
+
|
|
216
|
+
## Complexity Tracking
|
|
217
|
+
|
|
218
|
+
None. The constitution check passed.
|
|
219
|
+
|
|
220
|
+
## Build contract
|
|
221
|
+
|
|
222
|
+
- `pre-commit run --all-files` runs ruff check, ruff format, the shared `connector-standard`, `spec`, `secrets` and `dependency-readiness` gates at the pinned shared revision.
|
|
223
|
+
- `uv run pytest tests` runs the proving tests; the shared complexity, duplication and KISS gates apply their org thresholds and this repository sets no local override.
|
|
224
|
+
- A change adds no scanner suppression and no duplicate implementation of an SDK helper.
|
|
225
|
+
|
|
226
|
+
## Production caller chain
|
|
227
|
+
|
|
228
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.1`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, which calls `register_web_source_tools` (webarchiver/mcp_server.py:46) over `WebarchiverSource` (webarchiver/api/web_source.py:31).
|
|
229
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.2`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, which calls `register_web_source_tools` (webarchiver/mcp_server.py:46) over `WebarchiverSource` (webarchiver/api/web_source.py:31); the fetcher in `webarchiver/api/fetcher.py` applies robots, rate and size policy of `webarchiver/api/policy.py`.
|
|
230
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.3`: an MCP client calls `web_render` or `web_screenshot`, registered by `register_tool_surface` in `webarchiver/mcp_server.py`, which reach `webarchiver/api/browser.py` through `Webarchiver.launch_browser`.
|
|
231
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.4`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, which calls `register_web_source_tools` (webarchiver/mcp_server.py:46) over `WebarchiverSource` (webarchiver/api/web_source.py:31); refusals come from `webarchiver/api/policy.py` and `webarchiver/api/request_filter.py`.
|
|
232
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.5`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, which calls `register_web_source_tools` (webarchiver/mcp_server.py:46) over `WebarchiverSource` (webarchiver/api/web_source.py:31).
|
|
233
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.6`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, which calls `register_web_source_tools` (webarchiver/mcp_server.py:46) over `WebarchiverSource` (webarchiver/api/web_source.py:31); the SDK conformance kit calls the served tools, then `connector-sync --once` ingests one page.
|
|
234
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.7`: an MCP client calls `web_crawl`, implemented in `webarchiver/api/crawl.py`, which fetches every page through the same fetcher.
|
|
235
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.8`: the ingest runner reads `webarchiver/connector_manifest.yml`, whose `schema_mappings` resolve `manifest:<connector>#schema_mappings/Document` and `Chunk`.
|
|
236
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.10`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, which calls `register_web_source_tools` (webarchiver/mcp_server.py:46) over `WebarchiverSource` (webarchiver/api/web_source.py:31); the SDK conformance kit runs against the served connector in process.
|
|
237
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R001.11`: `webarchiver-mcp` in `pyproject.toml` runs `webarchiver.mcp_server:mcp_server`, which builds the server from the `scion_sdk.connector` entry point `webarchiver` (`webarchiver/__init__.py:0`); `connector_name("webarchiver")` in the SDK resolves the same entry point name for the content pack, the manifest and the ingest binding.
|
|
238
|
+
- `CONN-WEBARCHIVER-WEB-SOURCE-R002`: the `webarchiver-mcp` console script runs `webarchiver.mcp_server:mcp_server`, which calls `register_web_source_tools` (webarchiver/mcp_server.py:46) over `WebarchiverSource` (webarchiver/api/web_source.py:31).
|
|
239
|
+
|
|
240
|
+
## Cross-repo seams
|
|
241
|
+
|
|
242
|
+
None. The rows depend only on the published `scion-sdk` package, which the connector imports.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CONN-WEBARCHIVER-WEB-SOURCE — Quickstart
|
|
2
|
+
|
|
3
|
+
The shortest path that shows the served behaviour working.
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
uv run pytest tests/test_conformance.py tests/test_crawl.py tests/test_extract.py tests/test_fleet_name.py tests/test_kg_ingest.py tests/test_served.py
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The command starts the connector in process and calls the served tools through the MCP client. A test marked planned in `test-spec.md` runs once the code change that lands its row adds it.
|