HomePilot Deploy Bot commited on
Commit
f47e8fa
·
1 Parent(s): 0639cbc

chore: sync installer from monorepo

Browse files
Files changed (2) hide show
  1. server.py +13 -9
  2. static/index.html +1 -1
server.py CHANGED
@@ -61,9 +61,10 @@ async def install(request: Request):
61
  space_name = body.get("space_name", "HomePilot")
62
  private = body.get("private", True)
63
  model = body.get("model", "qwen2.5:1.5b")
64
- # Additive: default True preserves current behavior exactly.
65
- # Set to False to ship a clean HomePilot without the Chata
66
- # persona pack pre-installed.
 
67
  include_personas = bool(body.get("include_personas", True))
68
 
69
  if not token or not username:
@@ -176,12 +177,15 @@ async def install(request: Request):
176
  f"OLLAMA_MODEL=${{OLLAMA_MODEL:-{model}}}"))
177
  steps.append(f"Modelo: {model}")
178
 
179
- # Additive: honor include_personas toggle.
180
- # - include_personas=True (default): chata-personas bundle stays; the
181
- # in-container bootstrap auto-populates Projects on first boot.
182
- # - include_personas=False: we inject an explicit disable into start.sh
183
- # AND delete the bundled chata-personas directory so the user's
184
- # HomePilot boots completely clean.
 
 
 
185
  if not include_personas and start.exists():
186
  st = start.read_text()
187
  if "ENABLE_PROJECT_BOOTSTRAP" not in st:
 
61
  space_name = body.get("space_name", "HomePilot")
62
  private = body.get("private", True)
63
  model = body.get("model", "qwen2.5:1.5b")
64
+ # Default True mirrors the installer UI where the checkbox is
65
+ # pre-ticked. Callers that omit the field get the 14-persona
66
+ # Starter + Retro pack auto-imported on first boot. Set to
67
+ # False (or untick the checkbox) for a clean HomePilot.
68
  include_personas = bool(body.get("include_personas", True))
69
 
70
  if not token or not username:
 
177
  f"OLLAMA_MODEL=${{OLLAMA_MODEL:-{model}}}"))
178
  steps.append(f"Modelo: {model}")
179
 
180
+ # Honor include_personas toggle.
181
+ # - include_personas=True (default, UI checkbox pre-ticked):
182
+ # chata-personas bundle stays on disk and the in-container
183
+ # bootstrap auto-populates the 14-persona Starter + Retro
184
+ # pack as Projects on first boot.
185
+ # - include_personas=False (user unchecked the box): clean
186
+ # HomePilot. We inject ``export ENABLE_PROJECT_BOOTSTRAP=false``
187
+ # into start.sh AND delete the bundled chata-personas
188
+ # directory so no personas ship in the user's Space at all.
189
  if not include_personas and start.exists():
190
  st = start.read_text()
191
  if "ENABLE_PROJECT_BOOTSTRAP" not in st:
static/index.html CHANGED
@@ -278,7 +278,7 @@ a:hover{color:var(--cyan)}
278
  <div class="field">
279
  <label class="toggle" id="lbl-personas">
280
  <input type="checkbox" id="include-personas" checked>
281
- <span id="txt-personas">Include Chata personas (14 Starter + Retro pack)</span>
282
  </label>
283
  </div>
284
  </div>
 
278
  <div class="field">
279
  <label class="toggle" id="lbl-personas">
280
  <input type="checkbox" id="include-personas" checked>
281
+ <span id="txt-personas">Include Chata personas (14 Starter + Retro pack) — uncheck for a clean HomePilot</span>
282
  </label>
283
  </div>
284
  </div>