Compare commits

...
2 Commits
+46 -1
View File
@@ -3183,6 +3183,19 @@ def main() -> int:
action="store_true",
help="Build and synchronize the multi-folder, alphabetically organized PDF Encyclopedia in /workspace/technocapital-singularity-zoology/encyclopedia/.",
)
ap.add_argument(
"--scan-quant-harvest",
nargs="?",
const="AUTO",
default=None,
help="Run or scan periodic quantitative financial telemetry harvest (financial-aq-harvest-latest.json) for Scope 1-3 contingent locks.",
)
ap.add_argument(
"--pokedex-card",
default=None,
metavar="SYMBOL_OR_DEX",
help="Inspect time-series-grounded Gen IV INFO Pokedex & multi-lens specimen profile for a ticker symbol or DEX coordinate (e.g. NVDA, 137, ASML).",
)
ap.add_argument("--out", default=None, help="Optional JSON output file path.")
args = ap.parse_args()
@@ -3210,7 +3223,39 @@ def main() -> int:
report = analyze_terms(processed_terms, workdir=args.workdir)
report["quant_mode"] = args.quant_mode
if args.add_glossary_term:
if args.pokedex_card is not None:
from hyperstitionstud_io.quant.timeseries import build_quant_timeseries_bundle
q_str = str(args.pokedex_card).strip().upper()
ts_bundle = build_quant_timeseries_bundle(write_files=False)
matched_inst = None
for inst in ts_bundle["instruments"]:
if (
inst["symbol"].upper() == q_str
or inst["entity_eng"].upper() == q_str
or str(inst["entity_ing_aq"]) == q_str.lstrip("#DEX ")
):
matched_inst = inst
break
if matched_inst is None:
matched_inst = ts_bundle["instruments"][0]
out_str = json.dumps(
{
"pokedex_profile": matched_inst.get("pokedex_profile"),
"lens_projections": matched_inst.get("lens_projections"),
"structural_vector": matched_inst.get("structural_vector"),
"timeseries_moments": matched_inst.get("timeseries_moments"),
},
indent=2,
ensure_ascii=False,
)
elif args.scan_quant_harvest is not None:
from hyperstitionstud_io.quant.collector import build_financial_quant_harvest
snap = None if args.scan_quant_harvest == "AUTO" else args.scan_quant_harvest
q_payload = build_financial_quant_harvest(harvest_mode="us-closing-bell", snapshot_path=snap)
out_str = json.dumps(q_payload, indent=2, ensure_ascii=False)
elif args.add_glossary_term:
t_name, t_cat, t_def = args.add_glossary_term
gl_payload = sync_glossary(
memetic_registry_path=args.memetic_registry,