Skip to content
Open
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Imported from `appthrust/platform` commit
- Shared frontend fixture paths point into `cmd/server/internal/domain/testdata`.
The old platform-only Dockerfile is replaced by the root standalone Dockerfile.

The public Go SDK is `github.com/appthrust/appserver-go v0.2.0`; no platform checkout,
The public Go SDK is `github.com/appthrust/appserver-go v0.3.0`; no platform checkout,
module replacement, or private Go credential is required. The launcher and i18n
packages use the published `^0.1.0` GitHub Packages versions rather than workspace
packages. Tailwind scans the installed launcher package for its classes.
Expand Down Expand Up @@ -90,8 +90,8 @@ or committed files.
`ApplicationStackDefinition/tool-builder` in `appthrust-ink-pmc001` on 2026-11-06,
excluding cluster-owned metadata. The served compatibility floor is `0.1.0`,
stream `0.1`, with its original immutable `ghcr.io/appthrust/platform/tool-builder`
image. The next release is **`0.2.0`**, stream **`0.2`**. No speculative new-version
image is committed.
image. The next release is **`0.3.0`**, stream **`0.3`**, using Project IAM access
from appserver-go v0.3.0. No speculative new-version image is committed.

After the release prerequisites are available, push a SemVer tag such as `v0.2.0`.
The tag workflow:
Expand Down
6 changes: 2 additions & 4 deletions cmd/server/internal/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ func newTestAPI(t *testing.T, db *store.Store, eng Engine, issuer *testutil.OIDC
}
w.Header().Set("Content-Type", "application/json")
switch r.URL.Path {
case "/api/v1/projects/pj-test":
_ = json.NewEncoder(w).Encode(map[string]any{"teamSlug": "test"})
case "/api/v1/teams":
case "/api/v1/projects/pj-test/access":
role := "Viewer"
if admin {
role = "Admin"
}
_ = json.NewEncoder(w).Encode(map[string]any{"items": []any{map[string]any{"id": "team", "slug": "test", "role": role}}})
_ = json.NewEncoder(w).Encode(map[string]any{"projectId": "pj-test", "member": true, "role": role, "platformRoles": []string{}})
case "/api/v1/projects/pj-test/app-installations/tool-builder":
_, _ = w.Write([]byte(`{"id":"tool-builder","stackId":"adopted-tool-stack","links":[{"definitionId":"knowledge","state":"Absent"},{"definitionId":"builder-console","state":"Installing"}]}`))
case "/api/v1/projects/pj-test/components/orders-db":
Expand Down
6 changes: 2 additions & 4 deletions cmd/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,8 @@ func TestServedOpenAPIEqualsCommittedContract(t *testing.T) {
platform := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
require.Equal(t, bearer, r.Header.Get("Authorization"))
switch r.URL.Path {
case "/api/v1/projects/pj-test":
_, _ = w.Write([]byte(`{"teamSlug":"test"}`))
case "/api/v1/teams":
_, _ = w.Write([]byte(`{"items":[{"id":"team","slug":"test","role":"Viewer"}]}`))
case "/api/v1/projects/pj-test/access":
_, _ = w.Write([]byte(`{"projectId":"pj-test","member":true,"role":"Viewer","platformRoles":[]}`))
default:
t.Errorf("unexpected platform route %s", r.URL.Path)
w.WriteHeader(http.StatusNotFound)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/appthrust/tool-builder
go 1.26.0

require (
github.com/appthrust/appserver-go v0.2.0
github.com/appthrust/appserver-go v0.3.0
github.com/lib/pq v1.12.3
github.com/oklog/ulid/v2 v2.1.1
github.com/stretchr/testify v1.11.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/appthrust/appserver-go v0.2.0 h1:TLb4pzbTXy3uMER5vQAXdzeeOTLxuNYEUXXvTAVzWm8=
github.com/appthrust/appserver-go v0.2.0/go.mod h1:0KSf9RQZ6OxBcE0lxYzzjKF37nfwbKps3wXUGlE0oFo=
github.com/appthrust/appserver-go v0.3.0 h1:zxOz0hkspZSXjLq3KWGDLkZIz42Jag6wqRujZ8lTru0=
github.com/appthrust/appserver-go v0.3.0/go.mod h1:0KSf9RQZ6OxBcE0lxYzzjKF37nfwbKps3wXUGlE0oFo=
github.com/coreos/go-oidc/v3 v3.20.0 h1:EtE0WIBHk03N+DqGkY4+UONzzZHk7amKt6IyNd7OsZE=
github.com/coreos/go-oidc/v3 v3.20.0/go.mod h1:DYCf24+ncYi+XkIH97GY1+dqoRlbaSI26KVTCI9SrY4=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
Expand Down