Skip to content

Commit 7c7ea1b

Browse files
markturanskyAmbient Code Botclaude
authored
refactor(api+sdk+cli+mcp): remove ProjectAgent, ProjectDocument, Ignite RHOAIENG-55826 (#1094)
## Summary - Remove deprecated `ProjectAgent`, `ProjectDocument`, and `Ignite` API surface across ambient-api-server, ambient-sdk (Go/Python/TypeScript), ambient-cli, and ambient-mcp - Rename `ignite` → `start`, `ProjectAgent` → `Agent` throughout - Remove `e_openshift_dev` environment and `openapi.projectAgents.yaml` spec ## Components Changed < /dev/null | Component | Changes | |-----------|---------| | ambient-api-server | Remove ProjectAgent* models, IgniteRequest/Response, projectAgents OpenAPI spec; update agents/inbox/projects/roles/sessions plugins; remove e_openshift_dev | | ambient-sdk (Go) | Delete ProjectAgentAPI, ProjectDocumentAPI, ignite types; update AgentAPI, client, inbox, session_messages | | ambient-sdk (Python) | Delete _project_agent_api, _project_document_api, _session_check_in_api, _a_g_u_i_event_api, _agent_message_api | | ambient-sdk (TypeScript) | Delete project_agent, project_document, session_check_in, a_g_u_i_event, agent_message modules | | ambient-cli | Remove probe command, ag_ui.go; update agent/create/get/project/session/start | | ambient-mcp | Update server.go | ## Jira [RHOAIENG-55826](https://redhat.atlassian.net/browse/RHOAIENG-55826) ## Test plan - [ ] ambient-api-server: `make test` passes - [ ] ambient-sdk Go: `go build ./...` passes - [ ] ambient-sdk TypeScript: `npm run build` passes - [ ] ambient-cli: `go build ./...` passes 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Ambient Code Bot <bot@ambient-code.local> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9e046c2 commit 7c7ea1b

105 files changed

Lines changed: 2411 additions & 5964 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
secrets/
2-
/ambient-api-server
2+
ambient-api-server
33
.claude/settings.local.json
44
db.password
55
example

components/ambient-api-server/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
BINARY_NAME=ambient-api-server
22
CONTAINER_ENGINE?=$(shell command -v podman 2>/dev/null || echo docker)
33

4+
PODMAN_SOCK=unix:///run/user/$(shell id -u)/podman/podman.sock
5+
DOCKER_HOST?=$(shell [ -S /run/user/$(shell id -u)/podman/podman.sock ] && echo $(PODMAN_SOCK) || echo "")
6+
47
# Version information for ldflags
58
git_sha:=$(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
69
git_dirty:=$(shell git diff --quiet 2>/dev/null || echo "-modified")
@@ -29,11 +32,11 @@ run-no-auth: binary
2932

3033
.PHONY: test
3134
test: install
32-
DOCKER_HOST=unix:///run/user/$(shell id -u)/podman/podman.sock TESTCONTAINERS_RYUK_DISABLED=true AMBIENT_ENV=integration_testing go test -p 1 -v ./...
35+
DOCKER_HOST=$(DOCKER_HOST) TESTCONTAINERS_RYUK_DISABLED=true AMBIENT_ENV=integration_testing go test -p 1 -v ./...
3336

3437
.PHONY: test-integration
3538
test-integration: install
36-
DOCKER_HOST=unix:///run/user/$(shell id -u)/podman/podman.sock TESTCONTAINERS_RYUK_DISABLED=true AMBIENT_ENV=integration_testing go test -p 1 -v ./test/integration/...
39+
DOCKER_HOST=$(DOCKER_HOST) TESTCONTAINERS_RYUK_DISABLED=true AMBIENT_ENV=integration_testing go test -p 1 -v ./test/integration/...
3740

3841
.PHONY: proto
3942
proto:

components/ambient-api-server/cmd/ambient-api-server/environments/e_development.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (e *DevEnvImpl) OverrideDatabase(c *pkgenv.Database) error {
2020
func (e *DevEnvImpl) OverrideConfig(c *config.ApplicationConfig) error {
2121
c.Server.CORSAllowedHeaders = []string{"X-Ambient-Project"}
2222
c.Auth.JwkCertFile = "secrets/kind-jwks.json"
23-
c.Auth.JwkCertURLs = []string{}
23+
c.Auth.JwkCertURL = ""
2424
c.Auth.EnableJWT = false
2525
return nil
2626
}

components/ambient-api-server/cmd/ambient-api-server/environments/e_openshift_dev.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

components/ambient-api-server/cmd/ambient-api-server/environments/e_production.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (e *ProductionEnvImpl) OverrideDatabase(c *pkgenv.Database) error {
1919

2020
func (e *ProductionEnvImpl) OverrideConfig(c *config.ApplicationConfig) error {
2121
c.Server.CORSAllowedHeaders = []string{"X-Ambient-Project"}
22-
c.Auth.JwkCertURLs = []string{"https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/certs"}
22+
c.Auth.JwkCertURL = "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/certs"
2323
c.Auth.JwkCertFile = ""
2424
return nil
2525
}

components/ambient-api-server/cmd/ambient-api-server/environments/environments.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ func EnvironmentImpls(env *pkgenv.Env) map[string]pkgenv.EnvironmentImpl {
3737
pkgenv.UnitTestingEnv: &UnitTestingEnvImpl{Env: env},
3838
pkgenv.IntegrationTestingEnv: &IntegrationTestingEnvImpl{Env: env},
3939
pkgenv.ProductionEnv: &ProductionEnvImpl{Env: env},
40-
OpenShiftDevEnv: &OpenShiftDevEnvImpl{Env: env},
4140
}
4241
}
4342

components/ambient-api-server/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/gorilla/mux v1.7.3
1111
github.com/onsi/gomega v1.27.1
1212
github.com/openshift-online/ocm-sdk-go v0.1.334
13-
github.com/openshift-online/rh-trex-ai v0.0.27
13+
github.com/openshift-online/rh-trex-ai v0.0.25
1414
github.com/spf13/pflag v1.0.6
1515
google.golang.org/grpc v1.75.1
1616
google.golang.org/protobuf v1.36.11

components/ambient-api-server/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJw
431431
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
432432
github.com/openshift-online/ocm-sdk-go v0.1.334 h1:45WSkXEsmpGekMa9kO6NpEG8PW5/gfmMekr7kL+1KvQ=
433433
github.com/openshift-online/ocm-sdk-go v0.1.334/go.mod h1:KYOw8kAKAHyPrJcQoVR82CneQ4ofC02Na4cXXaTq4Nw=
434-
github.com/openshift-online/rh-trex-ai v0.0.27 h1:444fT0LAV1dvwK1gHYGBhpN8SSlXEw4Q88IH01DKRZU=
435-
github.com/openshift-online/rh-trex-ai v0.0.27/go.mod h1:5NVw/etu4mOCO1N8A8656vE6yvt0N2tjO1yT6gjHblc=
434+
github.com/openshift-online/rh-trex-ai v0.0.25 h1:1fHF/nUWsDeCBuytoyYq96T/Mqb/DiScwbpjY3VGBjk=
435+
github.com/openshift-online/rh-trex-ai v0.0.25/go.mod h1:5NVw/etu4mOCO1N8A8656vE6yvt0N2tjO1yT6gjHblc=
436436
github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw=
437437
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
438438
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

0 commit comments

Comments
 (0)