Skip to content
Draft
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/gen/** linguist-generated=true
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Unreleased

### Added

- Regenerate the host contract at `37b6003d`: source collection and placed-record
reads carry the viewer capability separately from the calling module proof.
Existing modules can use the authenticated module endpoint without presenting
a viewer as a module principal. Generation uses the existing pinned plugins.

Core main and module-saas-starter v0.0.103. No Core tag carries the Core this
needs, so the floor is a pseudo-version; it moves to the first tag that does.

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ The SDK surfaces are:

This call surface uses the four host RPCs from
[module-saas-starter#1052](https://github.com/codefly-dev/module-saas-starter/pull/1052).
`SOURCE.txt` records the released host tag `v0.0.103` used to regenerate
`SOURCE.txt` records the exact host commit `37b6003d` used to regenerate
the bindings. This regeneration does not publish an SDK release.
The host's runtime-scheduled `PruneSourceOperationReceipts` and
`LookupPruneSourceOperationReceipts` are included in the generated bindings
Expand Down Expand Up @@ -507,11 +507,11 @@ proto ref `gen/` was generated from.
## Regenerating `gen/`

The proto source of truth is `module-saas-starter/module/services/accounts/proto`.
To refresh from a released tag (in a checkout of that repo):
To reproduce the current development contract (in a checkout of that repo):

```bash
git fetch origin tag v0.0.103
git checkout --detach v0.0.103
git fetch origin 37b6003d4b21046916d53f8e94677a4b57beb2e3
git checkout --detach 37b6003d4b21046916d53f8e94677a4b57beb2e3
cd module/services/accounts/proto
buf generate --template <this-repo>/buf.gen.yaml -o <this-repo>
```
Expand All @@ -522,13 +522,13 @@ the correct module path. **Never hand-edit `gen/` or sed the module path** — t
protobuf file descriptors embed length-prefixed package strings and a text
rewrite corrupts them (panics at `init()`). Always regenerate.

The template generates the complete host-owned `saas/` schema tree. Its
The template generates the complete host-owned `saas/` schema tree and the
referenced host installation schema. Its
vendored `codefly/` import closure is compiled for Runnable annotations, with
imports resolved to `github.com/codefly-dev/core/generated/go`; Core owns
those Go descriptors. Emitting a second copy in this SDK would conflict at
protobuf initialization. The SDK requires Core at `b81d92e6feda`
(`v0.19.6-0.20261018051341-b81d92e6feda`), the Core the v0.0.103 gateway
requires: it supplies the Runnable package, and its `SealSource` has no
(`v0.19.6-0.20261018051341-b81d92e6feda`): it supplies the Runnable package, and its `SealSource` has no
approved build. No tagged Core carries that yet; v0.19.5 still requires
`SealSource.ApprovedBuild`, so it cannot build this SDK, and the floor moves to
the first Core tag that contains `b81d92e6feda`. The SDK need not adopt the
Expand Down
6 changes: 2 additions & 4 deletions SOURCE.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
gen/ generated from codefly-dev/module-saas-starter@v0.0.103
gen/ generated from codefly-dev/module-saas-starter@37b6003d4b21046916d53f8e94677a4b57beb2e3
(accounts public proto: module/services/accounts/proto)
(auth gateway: module/services/auth-gateway/code)

module version: 0.1.0 (module/module.package.codefly.yaml)
This SDK's release is matched to the saas-starter module version above.

Released upstream tag: v0.0.103 (2cb00737ed56c79c823bc82f4055681a51919e7c).
Its auth gateway requires codefly-dev/core at b81d92e6feda, the floor this
SDK's go.mod records.
Exact upstream host selected for the hosted-eastus2 shared-authority deployment.
Regeneration does not publish an SDK release.
5 changes: 3 additions & 2 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ version: v2
clean: true
inputs:
- directory: .
# Core's vendored import closure is compiled, but its Go bindings belong
# to the Core dependency. Generate every host-owned public schema.
# Core's vendored import closure stays with Core. Accounts now references
# host installation messages, so include that referenced schema too.
paths:
- saas
- host/installation/v1/installation.proto
managed:
enabled: true
disable:
Expand Down
Loading