Home /Modules/api/registry.html

registry.html

api/sleela/2.9/package/registry.html · 243 line(s) · html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Package registry — SleelaDoc API</title>
<link rel="stylesheet" href="../style.css">

</head>
<body>
<header class="top">
  <div class="brand"><a href="../index.html">SleelaDoc API</a></div>
  <div class="tag">HTML documentation for the SLeeLa standard library (/lib)</div>
</header>
<div class="wrap">
<nav class="side">
  <a href="../index.html"><strong>Home</strong></a>
  <a href="../packages.html"><strong>All packages</strong></a>
  <a href="../glossary.html"><strong>Glossary</strong></a>
  <a href="../authorship.html"><strong>Authorship</strong></a>
  <h2>Packages</h2><ul>
<li><a href="../package/alphabet.html">alphabet</a></li>
<li><a href="../package/antivirus.html">antivirus</a></li>
<li><a href="../package/api.html">api</a></li>
<li><a href="../package/audio.html">audio</a></li>
<li><a href="../package/autocad.html">autocad</a></li>
<li><a href="../package/ballum.html">ballum</a></li>
<li><a href="../package/bash.html">bash</a></li>
<li><a href="../package/boolean.html">boolean</a></li>
<li><a href="../package/cdma.html">cdma</a></li>
<li><a href="../package/character.html">character</a></li>
<li><a href="../package/churn.html">churn</a></li>
<li><a href="../package/citizen.html">citizen</a></li>
<li><a href="../package/codecs.html">codecs</a></li>
<li><a href="../package/collections.html">collections</a></li>
<li><a href="../package/common-rails.html">common-rails</a></li>
<li><a href="../package/compiler.html">compiler</a></li>
<li><a href="../package/compression.html">compression</a></li>
<li><a href="../package/config.html">config</a></li>
<li><a href="../package/connector.html">connector</a></li>
<li><a href="../package/coorenagraph.html">coorenagraph</a></li>
<li><a href="../package/core.html">core</a></li>
<li><a href="../package/cpu.html">cpu</a></li>
<li><a href="../package/crypto.html">crypto</a></li>
<li><a href="../package/data.html">data</a></li>
<li><a href="../package/data-structures.html">data-structures</a></li>
<li><a href="../package/database.html">database</a></li>
<li><a href="../package/debugger.html">debugger</a></li>
<li><a href="../package/decompiler.html">decompiler</a></li>
<li><a href="../package/deliberation.html">deliberation</a></li>
<li><a href="../package/drivers.html">drivers</a></li>
<li><a href="../package/filesystem.html">filesystem</a></li>
<li><a href="../package/gameplay.html">gameplay</a></li>
<li><a href="../package/gui.html">gui</a></li>
<li><a href="../package/html.html">html</a></li>
<li><a href="../package/http.html">http</a></li>
<li><a href="../package/http-1.0.html">http-1.0</a></li>
<li><a href="../package/http-2.0.html">http-2.0</a></li>
<li><a href="../package/http-3.0.html">http-3.0</a></li>
<li><a href="../package/http-4.0.html">http-4.0</a></li>
<li><a href="../package/http-5.0.html">http-5.0</a></li>
<li><a href="../package/http-6.0.html">http-6.0</a></li>
<li><a href="../package/http-7.0.html">http-7.0</a></li>
<li><a href="../package/http-8.0.html">http-8.0</a></li>
<li><a href="../package/http-9.0.html">http-9.0</a></li>
<li><a href="../package/http-servers.html">http-servers</a></li>
<li><a href="../package/ide.html">ide</a></li>
<li><a href="../package/ide-workbench.html">ide-workbench</a></li>
<li><a href="../package/idea.html">idea</a></li>
<li><a href="../package/inference-model.html">inference-model</a></li>
<li><a href="../package/inputs.html">inputs</a></li>
<li><a href="../package/international-criminal-court.html">international-criminal-court</a></li>
<li><a href="../package/io.html">io</a></li>
<li><a href="../package/java.html">java</a></li>
<li><a href="../package/java28.html">java28</a></li>
<li><a href="../package/journey.html">journey</a></li>
<li><a href="../package/languages.html">languages</a></li>
<li><a href="../package/ledger.html">ledger</a></li>
<li><a href="../package/linux-editors.html">linux-editors</a></li>
<li><a href="../package/manifesto.html">manifesto</a></li>
<li><a href="../package/math.html">math</a></li>
<li><a href="../package/memory.html">memory</a></li>
<li><a href="../package/modules.html">modules</a></li>
<li><a href="../package/moral-capacitor.html">moral-capacitor</a></li>
<li><a href="../package/munction.html">munction</a></li>
<li><a href="../package/native.html">native</a></li>
<li><a href="../package/net.html">net</a></li>
<li><a href="../package/nordshrift.html">nordshrift</a></li>
<li><a href="../package/opcodes.html">opcodes</a></li>
<li><a href="../package/operating-system.html">operating-system</a></li>
<li><a href="../package/philosophers.html">philosophers</a></li>
<li><a href="../package/philosophy.html">philosophy</a></li>
<li><a href="../package/politico.html">politico</a></li>
<li><a href="../package/process.html">process</a></li>
<li><a href="../package/psychiatry.html">psychiatry</a></li>
<li><a href="../package/public.html">public</a></li>
<li><a href="../package/reflection.html">reflection</a></li>
<li><a href="../package/regex.html">regex</a></li>
<li><a href="../package/registry.html">registry</a></li>
<li><a href="../package/rmi.html">rmi</a></li>
<li><a href="../package/runtime.html">runtime</a></li>
<li><a href="../package/security.html">security</a></li>
<li><a href="../package/server-edition.html">server-edition</a></li>
<li><a href="../package/signal-processing.html">signal-processing</a></li>
<li><a href="../package/sldocument.html">sldocument</a></li>
<li><a href="../package/sleela.html">sleela</a></li>
<li><a href="../package/sleela-sql.html">sleela-sql</a></li>
<li><a href="../package/sleela-terminal.html">sleela-terminal</a></li>
<li><a href="../package/sleeladoc.html">sleeladoc</a></li>
<li><a href="../package/social-model.html">social-model</a></li>
<li><a href="../package/sommeliers.html">sommeliers</a></li>
<li><a href="../package/sst.html">sst</a></li>
<li><a href="../package/synchro.html">synchro</a></li>
<li><a href="../package/systems.html">systems</a></li>
<li><a href="../package/telephony-skya.html">telephony-skya</a></li>
<li><a href="../package/terminal.html">terminal</a></li>
<li><a href="../package/terminal_pixel.html">terminal_pixel</a></li>
<li><a href="../package/text.html">text</a></li>
<li><a href="../package/ui.html">ui</a></li>
<li><a href="../package/us-infrastructure.html">us-infrastructure</a></li>
<li><a href="../package/user-interface.html">user-interface</a></li>
<li><a href="../package/video.html">video</a></li>
<li><a href="../package/vm.html">vm</a></li>
<li><a href="../package/web-server-technology.html">web-server-technology</a></li>
<li><a href="../package/website.html">website</a></li>
<li><a href="../package/wifi.html">wifi</a></li>
<li><a href="../package/xlt.html">xlt</a></li>
<li><a href="../package/xml.html">xml</a></li>
</ul>
</nav>
<main>
<div class="crumbs"><a href="../index.html">Home</a> &rsaquo; <a href="../packages.html">Packages</a> &rsaquo; registry</div>
<h1>Package <code>registry</code></h1>
<div class="lead">This package contains <strong>4</strong> source unit(s) defining <strong>4</strong> class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.</div>
<input class="search" placeholder="Filter on this page (Ctrl+F also works)…" oninput="flt(this.value)">
<h2 class="section" data-u="slregistry">SLRegistry <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/registry/SLRegistry.sleela)</span></h2>
<div data-u="slregistry slregistry">
<h3 id="SLRegistry">SLRegistry <span class="pill">class</span></h3>
<p class="desc">Defines SLRegistry — the OOD equivalent of the native Sleela Registry (registry/sleela_registry.*): a Windows-style hierarchical store of keys (an HKEY-like path tree), each holding settings and feature-flag values and, where relevant, a sealed provenance record (file/date/author/ version/hex-id/hash/originality-seal). A fresh SLeeLa install seeds a baseline registry that is reviewable from a terminal (sleela registry) or a Sleela terminal program. Persistence and SHA-256/seal computation cross the native bridge; this class is the Sleela-side model + review. Mirrors: sl_reg_create, seed_defaults, key_create, the set_* family, provenance_set, save, load, and review. The native OP for a registry service is reserved for a future opcode; today the terminal &#x27;sleela registry&#x27; is the review surface. Family: registry. Composes SLRegistryKey, SLRegistryValue, SLRegistryProvenance.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>MAX_KEYS</code></td><td><span class="sig">static final int MAX_KEYS = 64</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>version</code></td><td><span class="sig">String version</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>count</code></td><td><span class="sig">int    count</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>boot</code></td><td><span class="sig">void boot()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>addKey</code></td><td><span class="sig">boolean addKey(SLRegistryKey k)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>keyAt</code></td><td><span class="sig">SLRegistryKey keyAt(int idx)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>seedDefaults</code></td><td><span class="sig">void seedDefaults()</span></td><td class="desc">Seed the baseline a new install starts from (mirrors sl_reg_seed_defaults): System, System/VM, Settings, Features, Artifacts.</td></tr>
<tr><td><code>featureEnabled</code></td><td><span class="sig">boolean featureEnabled(String name)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>show</code></td><td><span class="sig">void show()</span></td><td class="desc">Terminal review (mirrors sl_reg_review).</td></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slregistrykey">SLRegistryKey <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/registry/SLRegistryKey.sleela)</span></h2>
<div data-u="slregistrykey slregistrykey">
<h3 id="SLRegistryKey">SLRegistryKey <span class="pill">class</span></h3>
<p class="desc">Defines SLRegistryKey — the OOD equivalent of a native registry key (a node in the HKEY-style path tree). A key is named by its full path (&quot;A/B/C&quot;), holds a bounded set of SLRegistryValue entries (settings and feature flags), and may carry one SLRegistryProvenance record. The surface has no arrays, so the value set is numbered fields (the SLVM binding-table convention). Mirrors: the native RegKey (path + values + optional provenance). Family: registry. Composes SLRegistryValue, SLRegistryProvenance; held by SLRegistry.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>MAX_VALUES</code></td><td><span class="sig">static final int MAX_VALUES = 8</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>path</code></td><td><span class="sig">String path</span></td><td class="desc">full key path, e.g. &quot;Settings&quot;</td></tr>
<tr><td><code>count</code></td><td><span class="sig">int    count</span></td><td class="desc">live values</td></tr>
<tr><td><code>hasProvenance</code></td><td><span class="sig">int hasProvenance</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>provenance</code></td><td><span class="sig">SLRegistryProvenance provenance</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String keyPath)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">boolean add(SLRegistryValue val)</span></td><td class="desc">append a value (numbered-field store in place of an array)</td></tr>
<tr><td><code>valueAt</code></td><td><span class="sig">SLRegistryValue valueAt(int idx)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>attachProvenance</code></td><td><span class="sig">void attachProvenance(SLRegistryProvenance p)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>tracked</code></td><td><span class="sig">boolean tracked()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>show</code></td><td><span class="sig">void show()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slregistryprovenance">SLRegistryProvenance <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/registry/SLRegistryProvenance.sleela)</span></h2>
<div data-u="slregistryprovenance slregistryprovenance">
<h3 id="SLRegistryProvenance">SLRegistryProvenance <span class="pill">class</span></h3>
<p class="desc">Defines SLRegistryProvenance — the OOD equivalent of a native registry provenance record (registry/sleela_registry.* struct sl_reg_provenance). It makes a registry entry self-describing and verifiable: the tracked file&#x27;s name, date, author, version, a stable hex id, the SHA-256 of its content, and an ORIGINALITY SEAL. The seal is a SHA-256 over (hexId | version | hash | author); if any of those is altered, verify() reports the seal broken. The actual hashing crosses the native bridge (the host computes SHA-256); this class is the record + seal check. Mirrors: sl_reg_provenance + sl_reg_seal/sl_reg_seal_verify. Family: registry. Attached to an SLRegistryKey.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>name</code></td><td><span class="sig">String name</span></td><td class="desc">tracked file name</td></tr>
<tr><td><code>date</code></td><td><span class="sig">String date</span></td><td class="desc">ISO-8601 recorded date/time</td></tr>
<tr><td><code>author</code></td><td><span class="sig">String author</span></td><td class="desc">authoring party</td></tr>
<tr><td><code>version</code></td><td><span class="sig">String version</span></td><td class="desc">artifact version</td></tr>
<tr><td><code>hexId</code></td><td><span class="sig">String hexId</span></td><td class="desc">16 hex chars, stable identity</td></tr>
<tr><td><code>hash</code></td><td><span class="sig">String hash</span></td><td class="desc">SHA-256 of the file content (64 hex)</td></tr>
<tr><td><code>seal</code></td><td><span class="sig">String seal</span></td><td class="desc">originality seal (64 hex)</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String fileName, String recordedDate, String by,</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sealInput</code></td><td><span class="sig">String sealInput()</span></td><td class="desc">The seal input: the four identity-and-content fields, order fixed.</td></tr>
<tr><td><code>setSeal</code></td><td><span class="sig">void setSeal(String computed)</span></td><td class="desc">The host computes SHA-256 of sealInput() and sets it here (native bridge).</td></tr>
<tr><td><code>isSealed</code></td><td><span class="sig">boolean isSealed()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>verify</code></td><td><span class="sig">boolean verify(String expected)</span></td><td class="desc">Verify requires the host to recompute SHA-256(sealInput()) and compare. expected = that recomputation; returns true if it matches the stored seal.</td></tr>
<tr><td><code>render</code></td><td><span class="sig">String render()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slregistryvalue">SLRegistryValue <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/registry/SLRegistryValue.sleela)</span></h2>
<div data-u="slregistryvalue slregistryvalue">
<h3 id="SLRegistryValue">SLRegistryValue <span class="pill">class</span></h3>
<p class="desc">Defines SLRegistryValue — the OOD equivalent of a native registry value (registry/sleela_registry.* : a name -&gt; typed scalar). A value holds one setting or feature flag under a key: a string, an int, or a boolean, tagged by kind. It is the leaf the registry stores and the terminal review renders. Pure data + accessors; the native store owns persistence. Mirrors: enum sl_reg_kind (STRING/INT/BOOL) and the value cell. Family: registry. Composed by SLRegistryKey.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>KIND_STRING</code></td><td><span class="sig">static final int KIND_STRING = 0</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>KIND_INT</code></td><td><span class="sig">static final int KIND_INT    = 1</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>KIND_BOOL</code></td><td><span class="sig">static final int KIND_BOOL   = 2</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>name</code></td><td><span class="sig">String name</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>kind</code></td><td><span class="sig">int    kind</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>s</code></td><td><span class="sig">String s</span></td><td class="desc">when KIND_STRING</td></tr>
<tr><td><code>i</code></td><td><span class="sig">int    i</span></td><td class="desc">when KIND_INT</td></tr>
<tr><td><code>b</code></td><td><span class="sig">int    b</span></td><td class="desc">when KIND_BOOL (0/1)</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>setString</code></td><td><span class="sig">void setString(String n, String value)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setInt</code></td><td><span class="sig">void setInt(String n, int value)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setBool</code></td><td><span class="sig">void setBool(String n, boolean value)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isString</code></td><td><span class="sig">boolean isString()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isInt</code></td><td><span class="sig">boolean isInt()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isBool</code></td><td><span class="sig">boolean isBool()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>render</code></td><td><span class="sig">String render()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<script>function flt(q){q=q.toLowerCase();document.querySelectorAll('[data-u]').forEach(function(el){el.style.display = el.getAttribute('data-u').indexOf(q)>=0||q==''?'':'none';});}</script>
<footer>
Generated by <code>tools/generate-sleeladoc-api.py</code> from the live
<code>/lib</code> tree on 2026-10-31 00:02 UTC.
SleelaDoc — the SLeeLa documentation brand. SLeeLa — MEARVK LLC · Max Rupplin · UNCW, NCSU, Harvard · 2026 · George Soros 2507-2608.
</footer>
</main>
</div>
</body>
</html>