Skip to content

Commit 9db7998

Browse files
improvement(setup): audience-first run-mode hints
Each run mode now names who it's for — compose for self-hosting/evaluating, dev for contributing to Sim, k8s for rehearsing a production deploy — with the live detection state (Docker/kube/VM) appended.
1 parent 08d13fa commit 9db7998

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

scripts/setup/wizard.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,32 @@ async function selectMode(detection: Detection, flags: WizardFlags): Promise<Wiz
5353
if (flags.mode) return flags.mode
5454
const { dockerMemGb } = detection.specs
5555
const vm = dockerMemGb !== null ? ` · VM ${dockerMemGb}GB` : ''
56+
const composeState = detection.dockerRunning ? `Docker ready${vm}` : 'Docker is NOT running'
57+
const k8sState = detection.kubeContext
58+
? `context: ${detection.kubeContext}${vm}`
59+
: detection.binaries.kind
60+
? `kind available${vm}`
61+
: 'needs kind or Docker Desktop k8s'
5662
return p.select({
5763
message: 'How do you want to run Sim?',
5864
options: [
5965
{
6066
value: 'compose',
6167
label: 'Docker Compose',
62-
hint: detection.dockerRunning
63-
? `Docker running ✓${vm} — simplest, everything bundled`
64-
: 'Docker is NOT running',
68+
// Self-host or just try Sim without touching the code.
69+
hint: `Run a bundled Sim — self-hosting or evaluating · ${composeState}`,
6570
},
6671
{
6772
value: 'dev',
6873
label: 'Local dev (bun run dev:full)',
69-
hint: 'for working on Sim itself — app :3000 + realtime :3002',
74+
// Iterate on the source with hot reload.
75+
hint: 'Work on Sim itself — contributing · app :3000 + realtime :3002',
7076
},
7177
{
7278
value: 'k8s',
7379
label: 'Kubernetes (helm)',
74-
hint: detection.kubeContext
75-
? `context: ${detection.kubeContext}${vm}`
76-
: detection.binaries.kind
77-
? `kind available${vm}`
78-
: 'needs kind or Docker Desktop k8s',
80+
// Rehearse a real cluster deploy on kind / Docker Desktop.
81+
hint: `Test a production-style deploy — self-hosting on k8s · ${k8sState}`,
7982
},
8083
],
8184
initialValue: detection.dockerRunning ? 'compose' : 'dev',

0 commit comments

Comments
 (0)