fd-open-data-protocol 0.5.5__tar.gz → 0.5.6__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.
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/PKG-INFO +1 -1
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/__init__.py +1 -1
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/surface_selfcheck.py +6 -1
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol.egg-info/PKG-INFO +1 -1
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_surface_selfcheck.py +16 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/LICENSE +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/README.md +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/conformance_adapter.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/constants.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/__init__.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/assemble.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/auth_gate.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/client.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/config.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/wellknown.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/loader.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/openalex_provider.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/provider.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/registry.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/registry_cli.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/registry_store.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/schema.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/surface_report.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/alignment/foundation.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/concepts.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/crosswalks/datacommons-worldbank.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/entity_types.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/event_types.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/qualifiers.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/relation_types.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary/units.yaml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol.egg-info/SOURCES.txt +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol.egg-info/dependency_links.txt +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol.egg-info/entry_points.txt +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol.egg-info/requires.txt +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol.egg-info/top_level.txt +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/pyproject.toml +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/setup.cfg +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_drift_inventory.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_line_ops.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_loader.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_openalex_provider.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_registry_pipeline.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_registry_schema.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_schema_vocabulary.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_surface_report.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_vocabulary.py +0 -0
- {fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_vocabulary_additive.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fd-open-data-protocol
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.6
|
|
4
4
|
Summary: The open-data datasource protocol: a manifest contract a datasource exposes to be ingested by fd-open-data-mcp (or any consumer).
|
|
5
5
|
Author: FindDataOfficial
|
|
6
6
|
License: MIT
|
|
@@ -92,11 +92,16 @@ def _levels(manifest: dict) -> tuple[dict[str, str], list[str]]:
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
def _declared_fallback(manifest: dict) -> set[str]:
|
|
95
|
-
"""
|
|
95
|
+
"""声明集:`tools: [{name}]` 或只列 `tool_annotations` 的旧形状。
|
|
96
|
+
|
|
97
|
+
只列注解的 manifest(如 fd-info)没有 tool_groups;把注解键当作声明集,
|
|
98
|
+
否则共享驱动会把运行时工具全部误判为「manifest 未声明」。
|
|
99
|
+
"""
|
|
96
100
|
out = set()
|
|
97
101
|
for t in manifest.get("tools", []) or []:
|
|
98
102
|
if isinstance(t, dict) and t.get("name"):
|
|
99
103
|
out.add(t["name"])
|
|
104
|
+
out.update((manifest.get("tool_annotations") or {}).keys())
|
|
100
105
|
return out
|
|
101
106
|
|
|
102
107
|
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fd-open-data-protocol
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.6
|
|
4
4
|
Summary: The open-data datasource protocol: a manifest contract a datasource exposes to be ingested by fd-open-data-mcp (or any consumer).
|
|
5
5
|
Author: FindDataOfficial
|
|
6
6
|
License: MIT
|
|
@@ -127,3 +127,19 @@ def test_ceiling_breach_fails():
|
|
|
127
127
|
r = evaluate(repo="x", manifest=m, runtime={"a", "b"}, runtime_error=None,
|
|
128
128
|
ceilings={"commercial_nonreadonly": 1})
|
|
129
129
|
assert r.code == 1 and any("基线上限" in p for p in r.problems)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def test_declared_fallback_accepts_tool_annotations_only_manifests():
|
|
133
|
+
"""只列 tool_annotations 的 manifest(fd-info 形状)也能被共享驱动读懂。"""
|
|
134
|
+
from fd_open_data_protocol.surface_selfcheck import evaluate
|
|
135
|
+
|
|
136
|
+
r = evaluate(
|
|
137
|
+
repo="x",
|
|
138
|
+
manifest={"tool_annotations": {"read": {"readOnlyHint": True,
|
|
139
|
+
"destructiveHint": False,
|
|
140
|
+
"idempotentHint": True,
|
|
141
|
+
"openWorldHint": False}}},
|
|
142
|
+
runtime={"read"},
|
|
143
|
+
runtime_error=None,
|
|
144
|
+
)
|
|
145
|
+
assert r.code == 0, (r.problems, r.undecidable)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/client.py
RENAMED
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/line_ops/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/provider.py
RENAMED
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/registry.py
RENAMED
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/registry_cli.py
RENAMED
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/registry_store.py
RENAMED
|
File without changes
|
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/surface_report.py
RENAMED
|
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
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/fd_open_data_protocol/vocabulary.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fd_open_data_protocol-0.5.5 → fd_open_data_protocol-0.5.6}/tests/test_vocabulary_additive.py
RENAMED
|
File without changes
|