Skip to content

[M0.1] Repository bootstrap - #7

Merged
samuelmbabhazi merged 12 commits into
mainfrom
feat/m0.1-repository-bootstrap
Nov 3, 2026
Merged

samuelmbabhazi merged 12 commits into
mainfrom
feat/m0.1-repository-bootstrap

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

Task

[M0.1] Repository bootstrap. Closes #1

What changed

  • Nx 24 workspace with pnpm 11 (packageManager pinned), TypeScript 6 project references, Prettier, EditorConfig, .nvmrc, .tool-versions.
  • apps/api: NestJS 11 application with a GET /api/v1/health endpoint and Jest tests.
  • apps/web: Angular 22 standalone shell (OnPush, sk prefix) with vitest tests.
  • packages/domain, packages/config-schema, packages/api-client, packages/proto-ts: buildable TypeScript libraries, tagged so @nx/enforce-module-boundaries keeps domain code pure.
  • Strict, type-aware ESLint (strictTypeChecked, no any, no non-null assertions, explicit module boundary types).
  • go.work with the agent/, cli/ and lib/ modules under github.com/samuelmbabhazi/shipkeep/...; shipkeep-agent and shipkeep binaries with a --version flag and tests; lib/buildinfo; .golangci.yml (config version 2).
  • lefthook pre-commit hooks: gitleaks on staged files, block files over 1 MB unless marked shipkeep-large-ok in .gitattributes, Prettier and gofmt on staged files; commit-msg hook enforcing Conventional Commits.
  • .env.example with fake values only.
  • CI: Go job uses golangci-lint-action@v8 with golangci-lint v2.15 (v6 does not support config version 2); TypeScript job also runs typecheck.
  • Docs: CLAUDE.md records the real owner (samuelmbabhazi, the shipkeephq organization does not exist), pnpm 11 and the hook details; README gets a development section; M0.1 ticked in the plan.

Why

First task of the plan: every later task needs the workspace, the Go modules, the linters and the commit guards.

How it was tested

Locally on Node 22.23.2, pnpm 11.28.6, Go 1.27.3:

  • pnpm install && pnpm nx run-many -t lint typecheck test build: 25 tasks succeeded.
  • go test -race ./agent/... ./cli/... ./lib/...: all packages pass.
  • golangci-lint run in each module: 0 issues.
  • prettier --check ., gitleaks dir ., actionlint: clean.
  • The hooks ran on every commit of this branch.

Security considerations

No agent logic, authentication, secrets or actions yet. Guards added: gitleaks pre-commit, large file block, strict TypeScript lint, gosec and other security linters enabled in .golangci.yml. The Semgrep job still fails on the pre-existing finding "third-party action not pinned to a commit SHA"; pinning is the scope of M0.2 (#2), merged right after this PR as the plan prescribes.

Checklist

  • Acceptance criteria from docs/PLAN.md are met and the task is ticked
  • Lint, TS tests, Go tests pass (buf lint arrives with M0.3)
  • Tests added (api, web, packages, Go binaries)
  • No new shell invocation and no new secret exposure path
  • Audit events: not applicable, no state changes yet
  • CLAUDE.md and README updated

@samuelmbabhazi
samuelmbabhazi merged commit 0875a1a into main Nov 3, 2026
8 of 9 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the feat/m0.1-repository-bootstrap branch November 3, 2026 10:30
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.

[M0.1] Repository bootstrap

1 participant