clawdie-ai/setup
Clawdie AI 8456fcc526 test: expand coverage + fix setup/ TypeScript errors
New test files (83 tests):
- src/agent-identity.test.ts — resolveAgentIdentity across locales/genders
- src/env.test.ts — readEnvFile parsing, quoting, edge cases
- src/jail-registry.test.ts — getJailIp with/without env override
- src/local-hosts.test.ts — block markers, entries, render, upsert
- src/mount-security.test.ts — validateMount allowlist enforcement
- src/transcription.test.ts — initTranscription + transcribeAudio with mocked OpenAI

setup/ TypeScript audit (tsconfig.setup.json):
- agent-jails: JAILS value serialised to JSON string for emitStatus
- environment.test: use import type for pg.Pool type cast
- onboarding: wrap showProfileMenu in normalizePiTuiProfile
- preflight.test: fix process.exit mock type + typed call array casts
- sanoid: execSync → spawnSync for multi-arg zfs invocation
- skills-memory: bracket access for legacy chunking_version field
- upstream: pass process.cwd() to isGitRepo()
- verify: import StripeKeyMode type, annotate stripeKeyMode variable

Full suite: 69 files, 1162 tests passing; tsc --noEmit clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: pass — Tests  1162 passed (1162)

---
Build: pass | Tests: pass — Tests  1162 passed (1162)
2026-04-14 09:40:28 +00:00
..
agent-cli-check.ts feat(harness): replace Codex controlplane runner with Aider+Pi (Sam & Claude) 2026-04-12 08:26:20 +02:00
agent-jails.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00
bastille-helpers.ts refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude) 2026-04-14 01:16:13 +02:00
cms.ts fix(cms): make bootstrap site work on fresh installs 2026-04-14 07:36:59 +00:00
controlplane.ts Default controlplane dashboard output 2026-04-11 18:41:29 +00:00
db.ts refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude) 2026-04-14 01:16:13 +02:00
env-audit.ts Add host Postgres runtime option 2026-04-12 12:07:08 +00:00
environment.test.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00
environment.ts feat(db): migrate SQLite to Postgres OPS_DB (Sam & Claude) 2026-04-11 12:21:27 +02:00
forgejo.ts refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude) 2026-04-14 01:16:13 +02:00
freebsd-locales.test.ts Enforce UTF-8 locales and expand snapshot coverage 2026-04-04 14:17:04 +00:00
freebsd-locales.ts
freebsd-timezones.ts feat: add timezone menu selection to onboarding 2026-03-24 16:52:51 +00:00
git.ts refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude) 2026-04-14 01:16:13 +02:00
groups.ts feat(db): migrate SQLite to Postgres OPS_DB (Sam & Claude) 2026-04-11 12:21:27 +02:00
hostd.ts fix(hostd): emit rc.d literals correctly 2026-04-08 20:04:03 +00:00
hosts.ts
identity-restore.ts feat: identity-restore installer step + Supabase-backed identity files 2026-03-28 13:45:25 +00:00
index.ts feat(phase7a): per-specialist agent jail isolation — registry, provisioner, exec runner 2026-04-14 08:23:51 +02:00
install.ts feat(phase7a): per-specialist agent jail isolation — registry, provisioner, exec runner 2026-04-14 08:23:51 +02:00
jail-provision.ts feat(setup): add jail-provision.ts — single-jail provisioner from registry 2026-04-14 06:11:33 +00:00
jails.ts refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude) 2026-04-14 01:16:13 +02:00
llama-cpp.ts refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude) 2026-04-14 01:16:13 +02:00
mounts.ts fix(preflight): default mounts config and flag root-only steps 2026-03-15 00:37:43 +01:00
ollama.ts refactor(infra): Phase 1 — jail registry, shared provisioner, eliminate 7x duplication (Sam & Claude) 2026-04-14 01:16:13 +02:00
onboarding.test.ts
onboarding.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00
packages.ts feat(phase7a): per-specialist agent jail isolation — registry, provisioner, exec runner 2026-04-14 08:23:51 +02:00
pf.ts feat(setup): implement pf/db/jails/hostd + safer sudo flow (Sam & Codex) 2026-04-03 09:36:40 +00:00
pi-config.ts feat(setup): add full install orchestrator (install-all) 2026-03-15 11:44:29 +00:00
platform.test.ts Setup: reduce prompts (AUTO boot), add env-audit, drop headless/desktop split (Sam & Codex) 2026-04-03 08:49:07 +00:00
platform.ts Setup: reduce prompts (AUTO boot), add env-audit, drop headless/desktop split (Sam & Codex) 2026-04-03 08:49:07 +00:00
preflight.test.md docs(preflight): add test suite summary 2026-03-14 23:21:28 +00:00
preflight.test.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00
preflight.ts feat(install): rename install-all + add controlplane step 2026-04-08 19:22:46 +00:00
profile.test.ts
profile.ts feat(setup): implement pf/db/jails/hostd + safer sudo flow (Sam & Codex) 2026-04-03 09:36:40 +00:00
register.test.ts Fix mock pools for new Postgres ops 2026-04-11 10:38:55 +00:00
register.ts feat(db): migrate SQLite to Postgres OPS_DB (Sam & Claude) 2026-04-11 12:21:27 +02:00
sanoid.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00
secrets.test.ts Refactor harness extension safety model and add runner tests 2026-04-11 14:47:18 +00:00
secrets.ts feat(setup): provision ops database and fix logger build regression (Sam & Claude) 2026-04-11 20:37:15 +02:00
service.test.ts
service.ts feat(setup): implement pf/db/jails/hostd + safer sudo flow (Sam & Codex) 2026-04-03 09:36:40 +00:00
skills-init.ts Fix .nanoclaw ownership when skills-init runs as root 2026-04-05 14:12:33 +00:00
skills-memory.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00
status.ts
tailscale.ts Enable Tailscale jail auto-join (Sam & Codex) 2026-04-04 15:40:47 +00:00
telegram-auth.ts
upstream.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00
verify.ts test: expand coverage + fix setup/ TypeScript errors 2026-04-14 09:40:28 +00:00