From 62592f2efdcf97f850191d86d1693df667d69c0b Mon Sep 17 00:00:00 2001 From: m00t & Hermes Agent Date: Mon, 30 Nov 2026 04:52:39 +0000 Subject: [PATCH] fix(deploy): auto-sync untracked workspace.toml in sync-vps-repos.sh before version_sync --check and fix run_checked exit code capture (v2.0.16) --- deploy/sync-vps-repos.sh | 13 +++++++++---- 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 +- workspace.example.toml | 2 +- 13 files changed, 25 insertions(+), 20 deletions(-) diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index 1983661..bc56171 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -20,9 +20,10 @@ trap 'on_error ${LINENO}' ERR run_checked() { local label="$1" shift - local out - if ! out="$("$@" 2>&1)"; then - local rc=$? + local out="" + local rc=0 + out="$("$@" 2>&1)" || rc=$? + if [[ "${rc}" -ne 0 ]]; then echo "[ERROR] ${label} failed (exit code ${rc}): $*" >&2 if [[ -n "${out}" ]]; then echo "${out}" >&2 @@ -119,7 +120,11 @@ if [[ -d "${REPOS_ROOT}/haiperdohp-jemaytreeah" ]]; then fi fi -echo "[2/5] Running hs-doctor, version_sync --check, and 6-Gate Knowledge Graph Verification..." +echo "[2/5] Synchronizing local workspace.toml version and running hs-doctor, version_sync --check, and 6-Gate Knowledge Graph Verification..." +if [[ -f "${REPOS_ROOT}/workspace.toml" ]] && [[ -f "${REPOS_ROOT}/hyperstitionstudio-core/workspace.example.toml" ]]; then + # Sync schema_version in untracked parent workspace.toml with hyperstitionstud_io.__version__ + run_checked "version_sync (sync untracked workspace.toml)" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync +fi run_checked "version_sync --check" "${PYTHON_BIN}" -m hyperstitionstud_io.version_sync --check run_checked "hs-doctor" "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor run_checked "build_encyclopedia_knowledge_graph.py --verify-only" "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only diff --git a/package.json b/package.json index 9666e60..195dd95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperstitionstud.io/workspace-core", - "version": "2.0.15", + "version": "2.0.16", "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 eba7283..46c067e 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.15", + "version": "2.0.16", "type": "module", "main": "index.js", "license": "MIT" diff --git a/pyproject.toml b/pyproject.toml index a4a2720..8d514cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "hyperstitionstudio-core" -version = "2.0.15" +version = "2.0.16" 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 eb1a4b6..e4a4a30 100755 --- a/scripts/build_gallery_manifest.py +++ b/scripts/build_gallery_manifest.py @@ -144,8 +144,8 @@ def main() -> int: }) manifest = { - "version": "2.0.15", - "namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.15", + "version": "2.0.16", + "namespace_urn": "urn:io:hyperstitionstud:gallery:2.0.16", "total_items": len(items), "items": items, } diff --git a/site/gallery/index.html b/site/gallery/index.html index 0b18783..5090c4e 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 8ea24a6..b6aa09e 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.15)

+

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

Start Learning Track (/learn/) @@ -253,7 +253,7 @@
-
hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.0.15) • Zero External Network Dependencies
+
hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.0.16) • Zero External Network Dependencies
Made with ♥ by Lemurs.
diff --git a/site/learn/index.html b/site/learn/index.html index 9bcc53b..29fb117 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 6ccb058..1db115c 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.15", + version: "2.0.16", 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 1459393..6a53c74 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.15).""" -__version__ = "2.0.15" +"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.0.16).""" +__version__ = "2.0.16" NAMESPACE_URN = "urn:io:hyperstitionstud" diff --git a/src/hyperstitionstud_io/mcp/server.py b/src/hyperstitionstud_io/mcp/server.py index 9cecbbe..27eb54c 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.15", - "namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.15", + "version": "2.0.16", + "namespace_urn": "urn:io:hyperstitionstud:mcp:2.0.16", } diff --git a/src/hyperstitionstud_io/quant/collector.py b/src/hyperstitionstud_io/quant/collector.py index d136582..6b121a1 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.15", + "version": "2.0.16", "target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"), "harvest_mode": harvest_mode, "regime_summary": { diff --git a/workspace.example.toml b/workspace.example.toml index e6ce1a0..99ad904 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.15" +schema_version = "2.0.16" namespace_urn = "urn:io:hyperstitionstud" [paths]