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:
commit
f8235a2037
32 files changed
+6646
No files matched your search
@@ -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())
|
||||
Reference in new issue
Block a user