feat(portability): add __file__-anchored WORKSPACE_ROOT discovery, cross-OS font resolver, and public HTTP onboarding quickstart (v1.2.0)
This commit is contained in:
1 parent
f8235a2037
commit
4e38541fbf
7 files changed
+227
-103
No files matched your search
@@ -1,39 +1,48 @@
|
||||
# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v1.2.0`)
|
||||
|
||||
Shared PEP 420 Python common library (`hyperstitionstud_io.*`), offline `URN:` JSON Schema registry (`urn:io:hyperstitionstud:schema:v1:*`), and offline browser/ESM modules (`@hyperstitionstud.io/*` / `window.HyperstitionStudio.*`) across all `/workspace` projects.
|
||||
Shared Python common library (`hyperstitionstud_io.*`), offline `URN:` JSON Schema registry (`urn:io:hyperstitionstud:schema:v1:*`), and offline browser/ESM modules (`@hyperstitionstud.io/*` / `window.HyperstitionStudio.*`) across all workspace projects.
|
||||
|
||||
---
|
||||
|
||||
## 5-Minute New-User Onboarding (Public HTTP Clone into Any Directory)
|
||||
|
||||
```bash
|
||||
# 1. Create a parent workspace folder anywhere on your machine
|
||||
mkdir -p ~/hyperstition-workspace && cd ~/hyperstition-workspace
|
||||
|
||||
# 2. Clone the peer repositories over public HTTPS (no SSH key required)
|
||||
git clone https://git.libre.audio/seasharp/hyperstitionstudio-core.git
|
||||
git clone https://git.libre.audio/seasharp/ingglish-hyperdope-gematria.git
|
||||
git clone https://git.libre.audio/seasharp/technocapital-singularity-zoology.git
|
||||
git clone https://git.libre.audio/seasharp/encyclopedia-knowledge-graph.git
|
||||
|
||||
# 3. Create & activate a local Python virtual environment and install dependencies
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r hyperstitionstudio-core/requirements.txt
|
||||
pip install --no-deps -e ./hyperstitionstudio-core
|
||||
|
||||
# 4. Copy the location-independent workspace configuration and run the health check
|
||||
cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
|
||||
hs-doctor
|
||||
|
||||
# 5. Run the 6-suite verification test runner (stdlib-compatible, zero pytest dependency required)
|
||||
python3 hyperstitionstudio-core/tests/test_core_suite.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Key Features (`v1.2.0`)
|
||||
|
||||
1. **100% Offline & Portable Namespace Architecture (Zero `https://` Network Calls):**
|
||||
- Python PEP 420 namespace: `hyperstitionstud_io.{config,ciphers,phonetics,publishing,glossary,graph,ci,audio}`
|
||||
- Offline JSON Schema `$id` URNs: `urn:io:hyperstitionstud:schema:v1:*` (local relative `$schema` resolution)
|
||||
- GraphML / GEXF XML namespace: `xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0"`
|
||||
- Browser global & ESM scope: `window.HyperstitionStudio.*` and `@hyperstitionstud.io/*`
|
||||
2. **Local-Configuration Citation URL Resolution (`[citations.path_mounts]` in `/workspace/workspace.toml`):**
|
||||
- Resolves local dossier paths into remote citation URLs **only** when explicitly configured in local `workspace.toml`, falling back deterministically to the verified local filesystem path (`/workspace/...`).
|
||||
- Zero version-control subprocess calls; zero global package namespace URL synthesis.
|
||||
1. **100% Offline & Location-Independent Architecture (Zero `https://` Network Calls, Zero `/workspace` Lock-In):**
|
||||
- Python package root: `hyperstitionstud_io.{config,ciphers,phonetics,publishing,glossary,graph,ci,audio}`
|
||||
- Dynamic `__file__`-anchored `WORKSPACE_ROOT` discovery so sibling repositories work in any parent directory (`~/...`, `/tmp/...`, `/workspace/`).
|
||||
- Cross-OS TrueType font resolver (`hyperstitionstud_io.publishing.fonts`) supporting Debian/Ubuntu, Fedora/RHEL, Arch, Alpine, and macOS with built-in Pillow/ReportLab fallbacks.
|
||||
- Offline JSON Schema `$id` URNs: `urn:io:hyperstitionstud:schema:v1:*` (`schemas/v1/*.schema.json`).
|
||||
- GraphML / GEXF XML namespace: `xmlns:hs="urn:io:hyperstitionstud:ns:kg:1.0"`.
|
||||
2. **Local-Configuration Citation URL Resolution (`[citations.path_mounts]` in `workspace.toml`):**
|
||||
- Resolves local dossier paths into remote citation URLs **only** when explicitly configured in local `workspace.toml`, falling back deterministically to the verified local filesystem path.
|
||||
- Transparently rebases `/workspace/...` paths in existing `v1` citation ledgers onto the active `WORKSPACE_ROOT` when running outside `/workspace`.
|
||||
3. **4,897-Entry Offline `CMUdict` Phonetics Lookup (`cmudict_fallback.json`):**
|
||||
- Translates `Gen 0` English tokens to `Gen 1` Ingglish 100% offline without requiring `--workdir /workspace/ingglish-hyperdope-gematria`.
|
||||
4. **Dual Deployment Support (`Scenario A: file://` Offline Browser & `Scenario B: http://` Static Server):**
|
||||
- Supports both direct `file://` browser execution and static HTTP server hosting (either rooted at `/workspace` or rooted inside `/workspace/encyclopedia-knowledge-graph` via `--bundle-encyclopedia`).
|
||||
|
||||
---
|
||||
|
||||
## Quickstart & Diagnostics
|
||||
|
||||
```bash
|
||||
# 1. Install in editable mode
|
||||
pip install --no-deps -e /workspace/hyperstitionstudio-core
|
||||
|
||||
# 2. Run single-command environment, font, schema & SHA-256 isolation check
|
||||
hs-doctor
|
||||
|
||||
# 3. Verify grounded citations against local configuration & evidence quotes
|
||||
hs-citations --ledger /workspace/technocapital-singularity-zoology/taxonomy/citations-ledger-common.json \
|
||||
verify /workspace/technocapital-singularity-zoology/proposal-corporate-board-technocapital-allocation.md --evidence
|
||||
|
||||
# 4. Run full pytest suite
|
||||
pytest /workspace/hyperstitionstudio-core/tests/
|
||||
```
|
||||
- Translates `Gen 0` English tokens to `Gen 1` Ingglish 100% offline without requiring Node.js or `--workdir`.
|
||||
Reference in new issue
Block a user