From 5841ccea2c08a3c7153a21404dddae06c730f25a Mon Sep 17 00:00:00 2001 From: m00t & Hermes Agent Date: Mon, 30 Nov 2026 04:56:16 +0000 Subject: [PATCH] fix(version-sync,deploy): exclude untracked parent workspace.toml from --check failure and re-exec sync-vps-repos.sh on self-update (v2.0.17) --- deploy/sync-vps-repos.sh | 7 +++++++ package.json | 2 +- packages-js/ciphers-aq/package.json | 2 +- pyproject.toml | 2 +- scripts/build_gallery_manifest.py | 4 ++-- site/gallery/index.html | 2 +- site/index.html | 4 ++-- site/learn/index.html | 2 +- site/learn/learn-app.js | 2 +- src/hyperstitionstud_io/__init__.py | 4 ++-- src/hyperstitionstud_io/mcp/server.py | 4 ++-- src/hyperstitionstud_io/quant/collector.py | 2 +- src/hyperstitionstud_io/version_sync.py | 14 ++++++++++---- workspace.example.toml | 2 +- 14 files changed, 33 insertions(+), 20 deletions(-) diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index bc56171..762ab6d 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -102,8 +102,15 @@ if [[ "${DO_PULL}" -eq 1 ]]; then remote_name="downstream" fi echo "[1/5] Updating ${REPOS_ROOT}/${repo} (${remote_name}/${branch})..." + prev_head="$(git -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)" run_checked "git fetch ${repo}" git -C "${REPOS_ROOT}/${repo}" fetch --force "${remote_name}" "${branch}" --tags run_checked "git merge ${repo}" git -C "${REPOS_ROOT}/${repo}" merge --ff-only "${remote_name}/${branch}" + new_head="$(git -C "${REPOS_ROOT}/${repo}" rev-parse HEAD)" + if [[ "${repo}" == "hyperstitionstudio-core" && "${prev_head}" != "${new_head}" && -z "${HYPERSTITION_SYNC_REEXEC:-}" ]]; then + echo "[1/5] hyperstitionstudio-core updated (${prev_head:0:7} -> ${new_head:0:7}); re-executing updated sync-vps-repos.sh..." + export HYPERSTITION_SYNC_REEXEC=1 + exec "${REPOS_ROOT}/hyperstitionstudio-core/deploy/sync-vps-repos.sh" "$@" + fi fi done fi diff --git a/package.json b/package.json index 195dd95..5d076a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperstitionstud.io/workspace-core", - "version": "2.0.16", + "version": "2.0.17", "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", diff --git a/packages-js/ciphers-aq/package.json b/packages-js/ciphers-aq/package.json index 46c067e..4b5df9a 100644 --- a/packages-js/ciphers-aq/package.json +++ b/packages-js/ciphers-aq/package.json @@ -1,6 +1,6 @@ { "name": "@hyperstitionstud.io/ciphers-aq", - "version": "2.0.16", + "version": "2.0.17", "type": "module", "main": "index.js", "license": "MIT" diff --git a/pyproject.toml b/pyproject.toml index 8d514cc..4ca1ae4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "hyperstitionstudio-core" -version = "2.0.16" +version = "2.0.17" 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" diff --git a/scripts/build_gallery_manifest.py b/scripts/build_gallery_manifest.py index e4a4a30..7ba3455 100755 --- a/scripts/build_gallery_manifest.py +++ b/scripts/build_gallery_manifest.py @@ -144,8 +144,8 @@ def main() -> int: }) manifest = { - "version": "2.0.16", - "namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.16", + "version": "2.0.17", + "namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.17", "total_items": len(items), "items": items, } diff --git a/site/gallery/index.html b/site/gallery/index.html index 5090c4e..475666b 100644 --- a/site/gallery/index.html +++ b/site/gallery/index.html @@ -217,7 +217,7 @@
diff --git a/site/index.html b/site/index.html index b6aa09e..f65a6fb 100644 --- a/site/index.html +++ b/site/index.html @@ -131,7 +131,7 @@

HYPERSTITIONSTUD.IO // TECHNOCAPITAL SINGULARITY ZOOLOGY WORKBENCH

-

100% Offline-Portable & HTTP/3 Edge-Ready Research Corpus • Namespace Authority: urn:io:hyperstitionstud (v2.0.16)

+

100% Offline-Portable & HTTP/3 Edge-Ready Research Corpus • Namespace Authority: urn:io:hyperstitionstud (v2.0.17)

Start Learning Track (/learn/) @@ -253,7 +253,7 @@
-
hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.0.16) • Zero External Network Dependencies
+
hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.0.17) • Zero External Network Dependencies
Made with ♥ by Lemurs.
diff --git a/site/learn/index.html b/site/learn/index.html index 29fb117..534972b 100644 --- a/site/learn/index.html +++ b/site/learn/index.html @@ -413,7 +413,7 @@ diff --git a/site/learn/learn-app.js b/site/learn/learn-app.js index 1db115c..2a7a974 100644 --- a/site/learn/learn-app.js +++ b/site/learn/learn-app.js @@ -265,7 +265,7 @@ const base = { $schema: "../schemas/v1/learn-progress-state.schema.json", $id: SCHEMA_ID, - version: "2.0.16", + version: "2.0.17", updated_at_utc: new Date().toISOString(), preferred_register: "fund_manager", completed_modules: [], diff --git a/src/hyperstitionstud_io/__init__.py b/src/hyperstitionstud_io/__init__.py index 6a53c74..a0023f3 100644 --- a/src/hyperstitionstud_io/__init__.py +++ b/src/hyperstitionstud_io/__init__.py @@ -1,3 +1,3 @@ -"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.0.16).""" -__version__ = "2.0.16" +"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.0.17).""" +__version__ = "2.0.17" NAMESPACE_URN = "urn:io:hyperstitionstud" diff --git a/src/hyperstitionstud_io/mcp/server.py b/src/hyperstitionstud_io/mcp/server.py index 27eb54c..66d6984 100755 --- a/src/hyperstitionstud_io/mcp/server.py +++ b/src/hyperstitionstud_io/mcp/server.py @@ -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.16", - "namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.16", + "version": "2.0.17", + "namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.17", } diff --git a/src/hyperstitionstud_io/quant/collector.py b/src/hyperstitionstud_io/quant/collector.py index 6b121a1..efaba36 100755 --- a/src/hyperstitionstud_io/quant/collector.py +++ b/src/hyperstitionstud_io/quant/collector.py @@ -496,7 +496,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.16", + "version": "2.0.17", "target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"), "harvest_mode": harvest_mode, "regime_summary": { diff --git a/src/hyperstitionstud_io/version_sync.py b/src/hyperstitionstud_io/version_sync.py index d5cadc1..ee0fdd8 100755 --- a/src/hyperstitionstud_io/version_sync.py +++ b/src/hyperstitionstud_io/version_sync.py @@ -56,10 +56,6 @@ def get_version_targets(ws_root: Path | None = None) -> list[tuple[Path, list[tu 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", [ @@ -140,6 +136,7 @@ def sync_workspace_version(target_version: str, check_only: bool = False, ws_roo if not re.match(rf"^{SEMVER_RE}$", v): raise ValueError(f"Invalid semantic version '{target_version}' (expected X.Y.Z)") + cfg = load_workspace_config(workspace_root=ws_root) targets = get_version_targets(ws_root=ws_root) modified_files: list[str] = [] mismatched_files: list[str] = [] @@ -161,6 +158,15 @@ def sync_workspace_version(target_version: str, check_only: bool = False, ws_roo path.write_text(updated, encoding="utf-8") modified_files.append(str(path)) + if not check_only: + ws_toml = cfg.workspace_root / "workspace.toml" + if ws_toml.is_file(): + orig_ws = ws_toml.read_text(encoding="utf-8") + upd_ws = re.sub(rf'schema_version\s*=\s*"{SEMVER_RE}"', f'schema_version = "{v}"', orig_ws, flags=re.M) + if upd_ws != orig_ws: + ws_toml.write_text(upd_ws, encoding="utf-8") + modified_files.append(str(ws_toml)) + return { "target_version": v, "check_only": check_only, diff --git a/workspace.example.toml b/workspace.example.toml index 99ad904..3554567 100644 --- a/workspace.example.toml +++ b/workspace.example.toml @@ -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.16" +schema_version = "2.0.17" namespace_urn = "urn:io:hyperstitionstud" [paths]