hypercli-cli 1.0.3__tar.gz → 1.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/PKG-INFO +1 -1
  2. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/claw.py +25 -6
  3. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/pyproject.toml +1 -1
  4. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/.gitignore +0 -0
  5. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/README.md +0 -0
  6. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/__init__.py +0 -0
  7. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/agents.py +0 -0
  8. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/billing.py +0 -0
  9. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/cli.py +0 -0
  10. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/comfyui.py +0 -0
  11. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/flow.py +0 -0
  12. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/instances.py +0 -0
  13. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/jobs.py +0 -0
  14. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/keys.py +0 -0
  15. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/onboard.py +0 -0
  16. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/output.py +0 -0
  17. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/renders.py +0 -0
  18. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/tui/__init__.py +0 -0
  19. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/tui/job_monitor.py +0 -0
  20. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/user.py +0 -0
  21. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/voice.py +0 -0
  22. {hypercli_cli-1.0.3 → hypercli_cli-1.0.4}/hypercli_cli/wallet.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypercli-cli
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: CLI for HyperCLI - GPU orchestration and LLM API
5
5
  Project-URL: Homepage, https://hypercli.com
6
6
  Project-URL: Documentation, https://docs.hypercli.com
@@ -582,7 +582,7 @@ def openclaw_setup(
582
582
  # Fetch current model list from LiteLLM via API
583
583
  models = fetch_models(api_key)
584
584
 
585
- # Patch only models.providers.hyperclaw
585
+ # Patch models.providers.hyperclaw + embedding config
586
586
  config.setdefault("models", {}).setdefault("providers", {})
587
587
  config["models"]["providers"]["hyperclaw"] = {
588
588
  "baseUrl": "https://api.hyperclaw.app/v1",
@@ -591,9 +591,20 @@ def openclaw_setup(
591
591
  "models": models,
592
592
  }
593
593
 
594
+ # Always set embedding provider (reuses same API key)
595
+ config.setdefault("agents", {}).setdefault("defaults", {})
596
+ config["agents"]["defaults"]["memorySearch"] = {
597
+ "provider": "openai",
598
+ "model": "qwen3-embedding-4b",
599
+ "remote": {
600
+ "baseUrl": "https://api.hyperclaw.app/v1/",
601
+ "apiKey": api_key,
602
+ }
603
+ }
604
+
594
605
  # Optionally set default model
595
606
  if default:
596
- config.setdefault("agents", {}).setdefault("defaults", {}).setdefault("model", {})
607
+ config["agents"]["defaults"].setdefault("model", {})
597
608
  config["agents"]["defaults"]["model"]["primary"] = f"hyperclaw/{models[0]['id']}"
598
609
 
599
610
  # Write back
@@ -630,14 +641,14 @@ def _resolve_api_key(key: str | None) -> str:
630
641
  raise typer.Exit(1)
631
642
 
632
643
 
633
- def _config_openclaw(api_key: str, models: list[dict]) -> dict:
634
- """OpenClaw openclaw.json provider snippet."""
644
+ def _config_openclaw(api_key: str, models: list[dict], api_base: str = PROD_API_BASE) -> dict:
645
+ """OpenClaw openclaw.json provider snippet (LLM + embeddings)."""
635
646
  return {
636
647
  "models": {
637
648
  "mode": "merge",
638
649
  "providers": {
639
650
  "hyperclaw": {
640
- "baseUrl": "https://api.hyperclaw.app/v1",
651
+ "baseUrl": f"{api_base}/v1",
641
652
  "apiKey": api_key,
642
653
  "api": "openai-completions",
643
654
  "models": models,
@@ -648,6 +659,14 @@ def _config_openclaw(api_key: str, models: list[dict]) -> dict:
648
659
  "defaults": {
649
660
  "models": {
650
661
  **{f"hyperclaw/{m['id']}": {"alias": m['id'].split('-')[0]} for m in models}
662
+ },
663
+ "memorySearch": {
664
+ "provider": "openai",
665
+ "model": "qwen3-embedding-4b",
666
+ "remote": {
667
+ "baseUrl": f"{api_base}/v1/",
668
+ "apiKey": api_key,
669
+ }
651
670
  }
652
671
  }
653
672
  }
@@ -725,7 +744,7 @@ def config_cmd(
725
744
 
726
745
  for fmt in formats:
727
746
  if fmt == "openclaw":
728
- snippet = _config_openclaw(api_key, models)
747
+ snippet = _config_openclaw(api_key, models, api_base)
729
748
  _show_snippet("OpenClaw", "~/.openclaw/openclaw.json", snippet, apply, OPENCLAW_CONFIG_PATH)
730
749
  elif fmt == "opencode":
731
750
  snippet = _config_opencode(api_key, models)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "hypercli-cli"
7
- version = "1.0.3"
7
+ version = "1.0.4"
8
8
  description = "CLI for HyperCLI - GPU orchestration and LLM API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes