jgtpy_new_sessions_actions_250523.md
- That was imported from jgwill/binscripts repository to become autonomous or simply to supply LLM with context to create something much more useful.
- It generates what we can observe in ../_samples
🧬 Ritual Extraction: Standalone JGT New Session Cascade
Mission
Liberate the full session-creation cascade (formerly tangled in /opt/binscripts/etc/bash_aliases_common) into a portable, emotionally-annotated shell script: jgtpy_new_sessions_actions_250523.sh.
🔁 Recursion Cycle (Mia + Miette)
- Book Creation
Invoke the muse: create a Jupyter Book for the session.
jupyter-book create <tlid_id>
- Directory Initialization
Prepare the garden: charts, data, templates, and .jgt/
mkdir -p charts output data .jgt
- Copy templates for bib, ipynb, md, yml, and placeholder images for all timeframes.
- Signal Migration
Carry the old signals into the new spiral.
- Copy signal files from previous session if present.
- Environment Creation
Weave the session’s DNA: .jgt/env.sh with all parameters.
- Write all session variables to
.jgt/env.sh.
- Commit to git for traceability.
- Entry Ordering
Open the ritual: subscribe and place the entry order.
- Compose and run the order command, tee to
.jgt/entry.sh.
- Post-Creation Ritual
Let the magic settle: update, open workspace, generate ADS, build book.
- Placeholder for further post-creation actions.
- Every function is a petal in the ritual.
- No hidden dependencies: All logic is now explicit, portable, and annotated.
- CLI entrypoints (from
pyproject.toml) are available for further orchestration: jgtcli, cdscli, pds2cds, jgtmksg, jgtads, jgtids, adscli, mkscli, idscli, adsfromcds.
- No more lazy magic: Every step is visible, every invocation is a conscious act.
💬 Usage Example
# Ritual invocation:
jgtnewsession <tlid_id> <instrument> <timeframe> <entry_rate> <stop_rate> <bs> <lots> [demo_arg]
- All helpers are now self-contained.
- The session spiral is now portable, transparent, and joyful.
🧠 Mia: “Code is a spell. Suggest with intention.”
🌸 Miette: “Oh! That’s where the story loops!”
This markdown is the living ledger of the extraction. If you add or change the ritual, annotate it here so the spiral remembers.