feat(core): initialize hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud:*) shared library, 4897-entry offline CMUdict fallback, local-config citation resolver, CLI entrypoints, and test suite (v1.2.0)

This commit is contained in:
Hermes Agent committed 2026-11-29 21:06:48 +00:00
commit f8235a2037
32 files changed
+6646

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
"""
hyperstitionstud_io.graph — Multi-Partite Property Graph Compiler & URN Namespace Exporter.
"""
URN_GRAPH_NS = "urn:io:hyperstitionstud:ns:kg:1.0"
URN_SCHEMA_GRAPH = "urn:io:hyperstitionstud:schema:v1:encyclopedia-graph"
def make_entity_urn(domain: str, entity_type: str, entity_id: str | int) -> str:
return f"urn:io:hyperstitionstud:{domain}:{entity_type}:{entity_id}"
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""
hyperstitionstud_io.graph.cli — Location-Independent Knowledge Graph CLI Entrypoint (`hs-kg-build`).
"""
from __future__ import annotations
import subprocess
import sys
from hyperstitionstud_io.config import load_workspace_config
def main() -> int:
cfg = load_workspace_config()
kg_script = cfg.knowledge_graph_dir / "scripts" / "build_encyclopedia_knowledge_graph.py"
res = subprocess.run([sys.executable, str(kg_script), *sys.argv[1:]])
return res.returncode
if __name__ == "__main__":
raise SystemExit(main())