Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .claude/context/api-server-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ Migration rules:
- `AMBIENT_ENV=integration_testing` spins up ephemeral Postgres via testcontainers-go
- Requires podman socket: `systemctl --user start podman.socket`
- `DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock`
- **Always set `TESTCONTAINERS_RYUK_DISABLED=true`** — ryuk tries to connect to `/var/run/docker.sock` which is unavailable; without this flag tests abort before running
- Mock DAOs (`mock_dao.go`) for unit tests without DB
- Presenter nil safety: nil-guard each nullable field independently — `UpdatedAt` and `CreatedAt` can be nil independently; treating them as a pair causes panics

Expand All @@ -208,6 +209,7 @@ cd components/ambient-api-server
make generate # Regenerate OpenAPI Go client from openapi/*.yaml
make binary # Compile the ambient-api-server binary
make test # Integration tests — spins up testcontainer PostgreSQL
# Full invocation: DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock TESTCONTAINERS_RYUK_DISABLED=true AMBIENT_ENV=integration_testing go test -p 1 -v ./...
make test-integration # Run only ./test/integration/... package
make proto # Regenerate gRPC stubs from proto/
make proto-lint # Lint proto definitions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

// Backend-compatible plugins only
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/agents"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/credentials"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/inbox"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/projectSettings"
_ "github.com/ambient-code/platform/components/ambient-api-server/plugins/projects"
Expand Down
Loading
Loading