This document describes the processes used by agents (such as Gemini CLI) to manage versions and project history for Spelite.
To maintain a clean history without accumulating local branches, feature branches (feature/*) are transformed into annotated tags following Semantic Versioning (SemVer) before being deleted.
- Identify the next version number: Use an incremental minor version (e.g.,
v0.1.0,v0.2.0). - Create the annotated tag:
git tag -a vX.Y.Z -m "Concise description of the feature" branch-name - Delete the local branch:
git branch -D branch-name
The following tags were created to archive initial research and implementations:
v0.1.0: Ontology implementation and repository (ex-feature/ontology)v0.2.0: Semantic search with embeddings and ONNX worker (ex-feature/semantic-embeddings)v0.3.0: Triplestore integration research (ex-feature/triplestore)v0.4.0: Base semantic implementation and optimized indexingv0.5.0: Data architecture documentation and referencesv0.6.0: Semantic export implementation for JSON-LD and RDF-XMLv0.7.0: Hybrid search implementation and SpellBrowser stability fixes
Tags on the main branch should reflect the current stable version or the latest major development milestone.
For a detailed breakdown of the semantic ontology, data models, and reactive state management, refer to:
- Lexical Engine: Rule-based tokenization (
queryParser.ts) using a predefinedLEXICON. It extracts D&D metadata (level, school, etc.) from natural language. - Semantic Engine:
- Model:
Xenova/paraphrase-multilingual-MiniLM-L12-v2(quantized ONNX). - Runtime: Transformers.js inside a Web Worker (
semantic.worker.ts). - Storage: Embeddings are cached in IndexedDB (
embeddingstable) to minimize CPU usage. - Logic: Hybrid filtering (Metadata first, then Semantic ranking) with a dynamic threshold (
max(0.25, best_score * 0.6)). - Security: Strict subject filtering by
spells:prefix inontologyRepository.tsto prevent entity pollution (e.g., excluding classes from spell results). A one-time 120MB data warning is enforced for AI activation.
- Model:
- Semantic search only triggers after a "warmup" (indexing of candidates).
- All AI operations are local (offline-first PWA).
- WASM files for ONNX are served from
/publicto ensure compatibility with sub-directory deployments.