Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(setup): scaffold capability + NPU slots (pick-free), guide models interactively#1091

Merged
thinmintdev merged 3 commits into
mainfrom
feat/setup-capability-npu-slots
Jul 6, 2026
Merged

feat(setup): scaffold capability + NPU slots (pick-free), guide models interactively#1091
thinmintdev merged 3 commits into
mainfrom
feat/setup-capability-npu-slots

Conversation

@thinmintdev

Copy link
Copy Markdown
Contributor

Closes #1090.

Builds on the pick-free installer (d2c2101): we still never choose a model for the operator, but setup now provisions the capability + NPU slot structure so a fresh box has the scaffolding, not just chat/coder.

What changes

Core — modelless scaffold slots (install/orchestrate.py)

  • SlotSelection.model_id is now str | None. When falsy, apply_setup creates an empty scaffold slot (device/profile/port wired, model.default unset) and plans no pull. Modelless slots are already a supported runtime state (slot.modelless_ready_blocked).

--auto scaffolds empty capability slots (cli/setup_command.py)

  • --auto now scaffolds chat/embed/rerank/stt/tts/vision (+coder when an agent extension is on) as empty slots — pick-free: slots yes, models no.
  • _SETUP_SLOTS extended with embed/stt/tts (mirroring _SLOT_META ports) + rerank/vision. --no-slots still seeds truly zero slots.

Interactive hal0 setup guides, doesn't decide (cli/setup_ui.py, setup_copy.py)

  • Each capability offers: pick a fitting model, scaffold empty, or skip. Never auto-selects. New capabilities step + pane copy; review table shows (scaffold — choose later).

Suggestions (install/suggest.py)

  • Add rerank; fix stt capability string ("asr""stt" — no curated model uses asr, so speech suggestions returned nothing); vision matches chat+mmproj models.

Installer (installer/install.sh)

  • First-run --auto drops --no-slots so a fresh box gets the empty capability-slot scaffold; "Next steps" reworded.

img / NPU notes

  • img stays on the ComfyUI comfyui_defaults sidecar (not a llama-server slot) — unchanged.
  • NPU is expressed via npu_opt_in routing (stt/agent/utilitynpu device); dormant passengers (stt-npu/embed-npu) still derive_device → None by design. stt is only offered interactively when the NPU trio is on.

Tests

  • test_orchestrate: modelless apply_setup creates empty slot, no pull.
  • test_setup_command: --auto scaffold set + all model_id is None; --no-slots seeds nothing.
  • test_suggest: rerank/stt/embed suggestions return.
  • test_setup_ui: interactive pick / scaffold / skip; capabilities step planned + pane copy.
  • ruff check + ruff format --check clean; affected pytest green (316 passed in tests/install + tests/cli; the 3 failing test_agent_* hermes-shim tests are pre-existing/environmental and import none of these modules).

Left open for review — touches the just-refactored install path.

🤖 Generated with Claude Code

…s interactively

Closes #1090. Builds on the pick-free installer (#d2c2101e): we still never
choose a model for the operator, but setup now provisions the capability +
NPU slot *structure*.

- orchestrate: SlotSelection.model_id is now Optional; apply_setup creates an
  empty scaffold slot (device/profile/port wired, model.default unset, no pull)
  when model_id is falsy. Modelless slots are already a supported runtime state.
- setup_command: `--auto` scaffolds the capability set (chat/embed/rerank/stt/
  tts/vision, +coder when an agent ext is on) as empty slots — no model picks.
  `_SETUP_SLOTS` extended with embed/stt/tts/rerank/vision ports; `--no-slots`
  still seeds truly zero slots.
- setup_ui: interactive `hal0 setup` guides each capability — pick a fitting
  model, scaffold empty, or skip (never auto-selects). New "capabilities" step
  + pane copy; review table shows "(scaffold)".
- suggest: add rerank; fix stt capability string ("asr" -> "stt", which matched
  no curated model); vision matches chat+mmproj models.
- install.sh: first-run `--auto` drops `--no-slots` so a fresh box gets the
  empty capability-slot scaffold (models chosen later); "Next steps" reworded.

Tests: modelless apply_setup, --auto scaffold set + --no-slots, rerank/stt/embed
suggestions, interactive pick/scaffold/skip. ruff + affected pytest green
(pre-existing unrelated hermes-shim env failures excluded).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@thinmintdev thinmintdev merged commit 3f32c39 into main Jul 6, 2026
3 checks passed
@thinmintdev thinmintdev deleted the feat/setup-capability-npu-slots branch July 6, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(setup): provision capability + NPU + img slots (scaffold in --auto, guided in interactive)

1 participant