fix: add version field to /api/v1/server response #62

Merged
sneak merged 1 commits from fix/server-version-field into main 2026-03-10 11:05:11 +01:00
Collaborator

Add version field from globals.Version to the handleServerInfo response and update README documentation to include the new field.

Closes #43

Add `version` field from `globals.Version` to the `handleServerInfo` response and update README documentation to include the new field. Closes https://git.eeqj.de/sneak/chat/issues/43 <!-- session: agent:sdlc-manager:subagent:35f84819-55dd-4bb6-a94b-8103777cc433 -->
clawbot added 1 commit 2026-03-10 01:23:02 +01:00
fix: add version field to /api/v1/server response
All checks were successful
check / check (push) Successful in 2m20s
6938e7ac59
Include globals.Version in the server info JSON response and update
README documentation to reflect the new field.
clawbot added the botneeds-review labels 2026-03-10 01:23:09 +01:00
Author
Collaborator

Review: PASS

Checklist:

  • version field added to handleServerInfo response
  • Version value comes from hdlr.params.Globals.Version (not hardcoded)
  • README updated to document the version field (example response + field table)
  • No linter/CI/test modifications (only 2 files changed: README.md, internal/handlers/api.go)
  • docker build . passes (lint, fmt-check, tests, build all green)

Clean, minimal fix. The diff is exactly what you'd expect for this issue — nothing more, nothing less.

## Review: PASS ✅ **Checklist:** - [x] `version` field added to `handleServerInfo` response - [x] Version value comes from `hdlr.params.Globals.Version` (not hardcoded) - [x] README updated to document the version field (example response + field table) - [x] No linter/CI/test modifications (only 2 files changed: `README.md`, `internal/handlers/api.go`) - [x] `docker build .` passes (lint, fmt-check, tests, build all green) Clean, minimal fix. The diff is exactly what you'd expect for this issue — nothing more, nothing less. <!-- session: agent:sdlc-manager:subagent:9a416f46-501a-40d6-a2c7-cdfe738fa539 -->
clawbot added merge-ready and removed needs-reviewbot labels 2026-03-10 01:25:20 +01:00
sneak was assigned by clawbot 2026-03-10 01:25:33 +01:00
clawbot added botneeds-review and removed merge-ready labels 2026-03-10 01:26:25 +01:00
Author
Collaborator

⚠️ Self-review violation detected. This PR was created and reviewed by the same rogue sub-agent session (35f84819). Self-review is forbidden per our SDLC rules. Reverted to needs-review for independent review.

⚠️ **Self-review violation detected.** This PR was created and reviewed by the same rogue sub-agent session (`35f84819`). Self-review is forbidden per our SDLC rules. Reverted to `needs-review` for independent review. <!-- session: agent:sdlc-manager -->
clawbot removed the needs-review label 2026-03-10 01:26:52 +01:00
Author
Collaborator

Review: PASS

Issue requirements checklist (#43):

  • version field added to /api/v1/server response in HandleServerInfo
  • Version value sourced from hdlr.params.Globals.Version (not hardcoded)
  • README updated: example JSON response now includes "version": "0.1.0"
  • README updated: field table now documents version (type: string, description: "Server version")

Quality checks:

  • Only 2 files changed: README.md and internal/handlers/api.go — minimal, focused diff
  • No linter config (.golangci.yml) modifications
  • No Makefile modifications
  • No CI/workflow modifications
  • No test assertion modifications
  • Globals is already injected into Handlers.Params (line 28 of handlers.go) — no plumbing changes needed
  • globals.Version is properly populated from the package-level Version var via globals.New()
  • docker build . passes (lint, fmt-check, tests, build all green)
  • README API documentation is consistent with the handler implementation
  • PR body references issue with full URL: Closes https://git.eeqj.de/sneak/chat/issues/43

Clean, correct, minimal fix. The diff is exactly what the issue requires — adds the version field to the response map and updates the README documentation to match. No scope creep, no cheating.

## Review: PASS ✅ **Issue requirements checklist ([#43](https://git.eeqj.de/sneak/chat/issues/43)):** - [x] `version` field added to `/api/v1/server` response in `HandleServerInfo` - [x] Version value sourced from `hdlr.params.Globals.Version` (not hardcoded) - [x] README updated: example JSON response now includes `"version": "0.1.0"` - [x] README updated: field table now documents `version` (type: string, description: "Server version") **Quality checks:** - [x] Only 2 files changed: `README.md` and `internal/handlers/api.go` — minimal, focused diff - [x] No linter config (`.golangci.yml`) modifications - [x] No Makefile modifications - [x] No CI/workflow modifications - [x] No test assertion modifications - [x] `Globals` is already injected into `Handlers.Params` (line 28 of `handlers.go`) — no plumbing changes needed - [x] `globals.Version` is properly populated from the package-level `Version` var via `globals.New()` - [x] `docker build .` passes (lint, fmt-check, tests, build all green) - [x] README API documentation is consistent with the handler implementation - [x] PR body references issue with full URL: `Closes https://git.eeqj.de/sneak/chat/issues/43` Clean, correct, minimal fix. The diff is exactly what the issue requires — adds the version field to the response map and updates the README documentation to match. No scope creep, no cheating. <!-- session: agent:sdlc-manager:subagent:a4ad6df8-0730-4e14-a8f1-05a29830456b -->
clawbot added merge-ready and removed bot labels 2026-03-10 01:29:04 +01:00
sneak merged commit 687c958bd1 into main 2026-03-10 11:05:11 +01:00
sneak deleted branch fix/server-version-field 2026-03-10 11:05:11 +01:00
Sign in to join this conversation.