Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84636efd32 |
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hyperstitionstud.io/workspace-core",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.13",
|
||||
"private": true,
|
||||
"description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hyperstitionstud.io/ciphers-aq",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.13",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"license": "MIT"
|
||||
|
||||
+2
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "hyperstitionstudio-core"
|
||||
version = "2.0.0"
|
||||
version = "2.0.13"
|
||||
description = "Shared PEP 420 common library (hyperstitionstud_io.*) for Base-36 AQ ciphers, offline CMUdict Ingglish phonetics, ReportLab/Pillow publishing, SHA-256 glossary isolation guards, local-config citation verification, and multi-format knowledge graphs."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
@@ -26,6 +26,7 @@ hs-pdf-build = "hyperstitionstud_io.publishing.pdf_compiler:main"
|
||||
hs-kg-build = "hyperstitionstud_io.graph.cli:main"
|
||||
hs-quant-harvest = "hyperstitionstud_io.quant.collector:main"
|
||||
hs-mcp = "hyperstitionstud_io.mcp.server:main"
|
||||
hs-sync-version = "hyperstitionstud_io.version_sync:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
||||
@@ -144,8 +144,8 @@ def main() -> int:
|
||||
})
|
||||
|
||||
manifest = {
|
||||
"version": "2.0.0",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.0",
|
||||
"version": "2.0.13",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.13",
|
||||
"total_items": len(items),
|
||||
"items": items,
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||
window.HyperstitionStudio.GalleryData = {
|
||||
"version": "2.0.0",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.0",
|
||||
"version": "2.0.13",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.13",
|
||||
"total_items": 37,
|
||||
"items": [
|
||||
{
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
<main class="gallery-grid" id="galleryGrid"></main>
|
||||
|
||||
<footer>
|
||||
<div>hyperstitionstud.io/gallery • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.0.0)</div>
|
||||
<div>hyperstitionstud.io/gallery • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.0.13)</div>
|
||||
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">♥</span> by Lemurs.</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -131,7 +131,7 @@
|
||||
<span class="dot"></span>
|
||||
<h1>HYPERSTITIONSTUD.IO // TECHNOCAPITAL SINGULARITY ZOOLOGY WORKBENCH</h1>
|
||||
</div>
|
||||
<p class="subtitle">100% Offline-Portable & HTTP/3 Edge-Ready Research Corpus • Namespace Authority: urn:io:hyperstitionstud (v2.0.0)</p>
|
||||
<p class="subtitle">100% Offline-Portable & HTTP/3 Edge-Ready Research Corpus • Namespace Authority: urn:io:hyperstitionstud (v2.0.13)</p>
|
||||
</div>
|
||||
<div class="meta-badges">
|
||||
<a class="btn primary" data-route="learn-track" href="/learn/index.html" style="padding:0.35rem 0.75rem;font-size:0.74rem;">Start Learning Track (/learn/)</a>
|
||||
@@ -253,7 +253,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div>hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.0.0) • Zero External Network Dependencies</div>
|
||||
<div>hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.0.13) • Zero External Network Dependencies</div>
|
||||
<div class="hs-lemur-credit" style="margin-top:0.35rem;color:var(--text-muted);font-size:0.75rem;">Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">♥</span> by Lemurs.</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -413,7 +413,7 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div>hyperstitionstud.io/learn • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.0.0)</div>
|
||||
<div>hyperstitionstud.io/learn • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.0.13)</div>
|
||||
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">♥</span> by Lemurs.</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -265,7 +265,7 @@
|
||||
const base = {
|
||||
$schema: "../schemas/v1/learn-progress-state.schema.json",
|
||||
$id: SCHEMA_ID,
|
||||
version: "2.0.0",
|
||||
version: "2.0.13",
|
||||
updated_at_utc: new Date().toISOString(),
|
||||
preferred_register: "fund_manager",
|
||||
completed_modules: [],
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.0.0)."""
|
||||
__version__ = "2.0.0"
|
||||
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.0.13)."""
|
||||
__version__ = "2.0.13"
|
||||
NAMESPACE_URN = "urn:io:hyperstitionstud"
|
||||
@@ -32,8 +32,8 @@ from hyperstitionstud_io.mcp.tools import MCP_TOOLS_SCHEMA, call_mcp_tool # noq
|
||||
|
||||
SERVER_INFO = {
|
||||
"name": "hyperstitionstudio-mcp",
|
||||
"version": "2.0.0",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.0",
|
||||
"version": "2.0.13",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.13",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@ def build_financial_quant_harvest(
|
||||
payload: dict[str, Any] = {
|
||||
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.13",
|
||||
"target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
|
||||
"harvest_mode": harvest_mode,
|
||||
"regime_summary": {
|
||||
|
||||
Executable
+186
@@ -0,0 +1,186 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
hyperstitionstud_io.version_sync — Single-Source-of-Truth Version Synchronizer & Verifier (`hs-sync-version`).
|
||||
|
||||
Ensures that every visible version badge across all HTML site surfaces (`/`, `/learn/`, `/gallery/`,
|
||||
`/graph/`, `/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html`, `/calc/`), JS bundles,
|
||||
MCP/Quant servers, and package manifests updates in lockstep on every version change.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
_SRC_DIR = Path(__file__).resolve().parents[1]
|
||||
if _SRC_DIR.is_dir() and str(_SRC_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(_SRC_DIR))
|
||||
|
||||
from hyperstitionstud_io import __version__ as CURRENT_VERSION # noqa: E402
|
||||
from hyperstitionstud_io.config import load_workspace_config # noqa: E402
|
||||
|
||||
SEMVER_RE = r"\d+\.\d+\.\d+"
|
||||
|
||||
|
||||
def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tuple[str, str]]]]:
|
||||
cfg = load_workspace_config(workspace_root=ws_root)
|
||||
core = cfg.core_dir
|
||||
kg = cfg.knowledge_graph_dir
|
||||
calc = cfg.paths["gematria_js_dir"]
|
||||
|
||||
return [
|
||||
(
|
||||
core / "src" / "hyperstitionstud_io" / "__init__.py",
|
||||
[
|
||||
(rf'\(v{SEMVER_RE}\)', "(v{V})"),
|
||||
(rf'__version__\s*=\s*"{SEMVER_RE}"', '__version__ = "{V}"'),
|
||||
],
|
||||
),
|
||||
(
|
||||
core / "pyproject.toml",
|
||||
[(rf'^version\s*=\s*"{SEMVER_RE}"', 'version = "{V}"')],
|
||||
),
|
||||
(
|
||||
core / "package.json",
|
||||
[(rf'"version":\s*"{SEMVER_RE}"', '"version": "{V}"')],
|
||||
),
|
||||
(
|
||||
core / "packages-js" / "ciphers-aq" / "package.json",
|
||||
[(rf'"version":\s*"{SEMVER_RE}"', '"version": "{V}"')],
|
||||
),
|
||||
(
|
||||
core / "workspace.example.toml",
|
||||
[(rf'schema_version\s*=\s*"{SEMVER_RE}"', 'schema_version = "{V}"')],
|
||||
),
|
||||
(
|
||||
cfg.workspace_root / "workspace.toml",
|
||||
[(rf'schema_version\s*=\s*"{SEMVER_RE}"', 'schema_version = "{V}"')],
|
||||
),
|
||||
(
|
||||
core / "site" / "index.html",
|
||||
[
|
||||
(rf'urn:io:hyperstitionstud \(v{SEMVER_RE}\)', "urn:io:hyperstitionstud (v{V})"),
|
||||
(rf'urn:io:hyperstitionstud v{SEMVER_RE}\)', "urn:io:hyperstitionstud v{V})"),
|
||||
],
|
||||
),
|
||||
(
|
||||
core / "site" / "learn" / "index.html",
|
||||
[
|
||||
(rf'learn-progress-state v{SEMVER_RE}\)', "learn-progress-state v{V})"),
|
||||
],
|
||||
),
|
||||
(
|
||||
core / "site" / "learn" / "learn-app.js",
|
||||
[
|
||||
(rf'version:\s*"{SEMVER_RE}"', 'version: "{V}"'),
|
||||
],
|
||||
),
|
||||
(
|
||||
core / "site" / "gallery" / "index.html",
|
||||
[
|
||||
(rf'urn:io:hyperstitionstud:gallery:{SEMVER_RE}\)', "urn:io:hyperstitionstud:gallery:{V})"),
|
||||
],
|
||||
),
|
||||
(
|
||||
core / "scripts" / "build_gallery_manifest.py",
|
||||
[
|
||||
(rf'"version":\s*"{SEMVER_RE}"', '"version": "{V}"'),
|
||||
(rf'urn:io:hyperstitionstud:gallery:{SEMVER_RE}', "urn:io:hyperstitionstud:gallery:{V}"),
|
||||
],
|
||||
),
|
||||
(
|
||||
core / "src" / "hyperstitionstud_io" / "mcp" / "server.py",
|
||||
[
|
||||
(rf'"version":\s*"{SEMVER_RE}"', '"version": "{V}"'),
|
||||
(rf'urn:io:hyperstitionstud:mcp:{SEMVER_RE}', "urn:io:hyperstitionstud:mcp:{V}"),
|
||||
],
|
||||
),
|
||||
(
|
||||
core / "src" / "hyperstitionstud_io" / "quant" / "collector.py",
|
||||
[
|
||||
(rf'"version":\s*"{SEMVER_RE}"', '"version": "{V}"'),
|
||||
],
|
||||
),
|
||||
(
|
||||
kg / "index.html",
|
||||
[
|
||||
(rf'Interactive Knowledge Graph \(v{SEMVER_RE}\)', "Interactive Knowledge Graph (v{V})"),
|
||||
(rf'Zero Glossary Leak(?: • v{SEMVER_RE})?</p>', "Zero Glossary Leak • v{V}</p>"),
|
||||
(rf'(?:hyperstitionstud\.io/graph v{SEMVER_RE} • )?Made with <span class="hs-heart"', "hyperstitionstud.io/graph v{V} • Made with <span class=\"hs-heart\""),
|
||||
],
|
||||
),
|
||||
(
|
||||
kg / "scripts" / "build_encyclopedia_knowledge_graph.py",
|
||||
[
|
||||
(rf'"version":\s*"{SEMVER_RE}"', '"version": "{V}"'),
|
||||
],
|
||||
),
|
||||
(
|
||||
kg / "docs" / "cross-repo-dependency-and-audit-flow-diagram.html",
|
||||
[
|
||||
(rf'technocapital-singularity-zoology \(v{SEMVER_RE}\)', "technocapital-singularity-zoology (v{V})"),
|
||||
(rf'encyclopedia-knowledge-graph \(v{SEMVER_RE}\)', "encyclopedia-knowledge-graph (v{V})"),
|
||||
],
|
||||
),
|
||||
(
|
||||
calc / "index.html",
|
||||
[
|
||||
(rf'(?:hyperstitionstud\.io/calc v{SEMVER_RE} • )?Made with <span class="hs-heart"', "hyperstitionstud.io/calc v{V} • Made with <span class=\"hs-heart\""),
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
def sync_workspace_version(target_version: str, check_only: bool = False, ws_root: Path | None = None) -> dict[str, Any]:
|
||||
v = target_version.lstrip("v").strip()
|
||||
if not re.match(rf"^{SEMVER_RE}$", v):
|
||||
raise ValueError(f"Invalid semantic version '{target_version}' (expected X.Y.Z)")
|
||||
|
||||
targets = get_version_targets(ws_root=ws_root)
|
||||
modified_files: list[str] = []
|
||||
mismatched_files: list[str] = []
|
||||
|
||||
for path, patterns in targets:
|
||||
if not path.is_file():
|
||||
continue
|
||||
orig = path.read_text(encoding="utf-8")
|
||||
updated = orig
|
||||
for pat_re, repl_tmpl in patterns:
|
||||
repl = repl_tmpl.replace("{V}", v)
|
||||
updated = re.sub(pat_re, repl, updated, flags=re.M)
|
||||
if f"v{v}" not in updated and f'"{v}"' not in updated and f":{v}" not in updated:
|
||||
mismatched_files.append(str(path))
|
||||
elif updated != orig:
|
||||
if check_only:
|
||||
mismatched_files.append(str(path))
|
||||
else:
|
||||
path.write_text(updated, encoding="utf-8")
|
||||
modified_files.append(str(path))
|
||||
|
||||
return {
|
||||
"target_version": v,
|
||||
"check_only": check_only,
|
||||
"all_in_sync": len(mismatched_files) == 0,
|
||||
"modified_files": modified_files,
|
||||
"mismatched_files": mismatched_files,
|
||||
}
|
||||
|
||||
|
||||
def main(argv: list[str] | None = None) -> int:
|
||||
ap = argparse.ArgumentParser(prog="hs-sync-version", description="Synchronize or verify version numbers across all site elements and manifests.")
|
||||
ap.add_argument("--set", dest="set_version", default=None, help="Set new version X.Y.Z across all site HTML elements, JS bundles, and manifests.")
|
||||
ap.add_argument("--check", action="store_true", help="Verify that all site elements match hyperstitionstud_io.__version__ without modifying files.")
|
||||
args = ap.parse_args(argv)
|
||||
|
||||
target_v = args.set_version.lstrip("v") if args.set_version else CURRENT_VERSION
|
||||
res = sync_workspace_version(target_v, check_only=args.check)
|
||||
print(json.dumps(res, indent=2))
|
||||
return 0 if res["all_in_sync"] else 1
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -62,6 +62,13 @@ def test_offline_urn_namespaces_and_no_external_https_fonts() -> None:
|
||||
assert s_obj["$id"].startswith("urn:io:hyperstitionstud:schema:v1:")
|
||||
assert "https://hyperstitionstud.io" not in sp.read_text(encoding="utf-8")
|
||||
|
||||
# Verify all visible site version numbers match hyperstitionstud_io.__version__
|
||||
from hyperstitionstud_io import __version__ as cur_ver
|
||||
from hyperstitionstud_io.version_sync import sync_workspace_version
|
||||
|
||||
v_sync = sync_workspace_version(cur_ver, check_only=True, ws_root=cfg.workspace_root)
|
||||
assert v_sync["all_in_sync"] is True, f"Site version drift detected: {v_sync['mismatched_files']}"
|
||||
|
||||
|
||||
def test_ciphers_and_bilingual_ledger_parity() -> None:
|
||||
cfg = load_workspace_config()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# workspace.example.toml — Location-Independent Workspace Configuration Template (v1.2.0)
|
||||
# Copy to your parent workspace folder: cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
|
||||
schema_version = "2.0.0"
|
||||
schema_version = "2.0.13"
|
||||
namespace_urn = "urn:io:hyperstitionstud"
|
||||
|
||||
[paths]
|
||||
|
||||
Reference in new issue
Block a user