refactor(setup): drop timezone step from setup:auto chain

The timezone step blocked the scripted flow on headless servers where
the resolved TZ was UTC (interactive /setup confirms, setup:auto had
to bail). Drop it from the chain — host TZ defaults to whatever the
OS reports. Users who need an explicit override run the step on
demand: `pnpm exec tsx setup/index.ts --step timezone -- --tz <zone>`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-04-21 22:18:08 +03:00
parent be6cec59ad
commit 1c748f1f2b
2 changed files with 7 additions and 17 deletions

View File

@@ -3,14 +3,13 @@
# NanoClaw — scripted end-to-end install.
#
# Runs `bash setup.sh` (bootstrap: Node check, pnpm install, native module
# verify), then `pnpm run setup:auto` (environment → timezone → container
# onecli → auth → mounts → service → verify).
# verify), then `pnpm run setup:auto` (environment → container → onecli
# auth → mounts → service → cli-agent → verify).
#
# Everything that can be scripted runs unattended; the one interactive pause
# is the auth step (browser sign-in or paste token/API key).
#
# Config via env — passed through unchanged:
# NANOCLAW_TZ IANA zone override
# NANOCLAW_SKIP comma-separated setup:auto step names to skip
# SECRET_NAME OneCLI secret name (default: Anthropic)
# HOST_PATTERN OneCLI host pattern (default: api.anthropic.com)