Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
a1d57a4
Added the Stream service messages as experimental.
moetemp Oct 25, 2026
9adc059
Dropped the close status, and let a zero sequence take the next one.
moetemp Oct 30, 2026
81215a3
Added the Stream service WIT, generated with a pinned nexgen fork.
moetemp Oct 30, 2026
79e4291
Renamed Supersession to Superseded, and the StreamRef fields to ref.
moetemp Oct 31, 2026
963037e
Renamed StreamRef to StreamHandle, and its fields to handle.
moetemp Oct 31, 2026
05f898e
Renamed the handle of a create request to stream_handle.
moetemp Oct 31, 2026
c8ea8ba
Renamed Superseded to StreamSuperseded.
moetemp Oct 31, 2026
b18aaf1
Renamed the target key of the WIT directives to targets.
moetemp Oct 31, 2026
6e31a6a
Moved the nexgen pin, and added the owner source and enum fallbacks.
moetemp Oct 31, 2026
94baf11
Moved the nexgen pin to the fork chain on the current upstream.
moetemp Nov 3, 2026
b4a5286
Made create strict and Workflow Streams standalone, with no definitions.
moetemp Nov 5, 2026
1868800
Took the review of the Stream protos from temporalio/sdk-rust#1733.
moetemp Nov 5, 2026
7f59166
Made the epoch a oneof whose case is the Producer's kind.
moetemp Nov 5, 2026
8653179
Made the docs of the payload type and the enums plain comments.
moetemp Nov 5, 2026
d91a2f0
Stopped using name as a verb in the Stream comments.
moetemp Nov 5, 2026
976d67c
Reworded the comment on the create's handle field.
moetemp Nov 5, 2026
4dd6177
Split the storage reason, and made a close write no Record.
moetemp Nov 5, 2026
9c599a4
Renamed StreamHandle to StreamRef, and its fields to ref.
moetemp Nov 5, 2026
c6b0574
Moved the Producer and withdrawal fields of a write into StreamWriter.
moetemp Nov 5, 2026
11658e1
Dropped the resource's type parameter, which nexgen now infers.
moetemp Nov 5, 2026
b96d99c
Took the final nexgen directives, and dropped the WIT's error types.
moetemp Nov 6, 2026
41a0ffa
Renamed the Stream resource's publish method to append.
moetemp Nov 6, 2026
91e70ea
Added the Stream close read item and its status enum.
moetemp Nov 8, 2026
2f6891b
Removed the owner field and the withdrawal machinery from Streams.
moetemp Nov 8, 2026
21b2402
Synced the Stream service WIT with the owner and withdrawal removal.
moetemp Nov 9, 2026
ec9f0df
Made the Stream offset an opaque bytes value.
moetemp Nov 10, 2026
859f2ca
Pinned a nexgen that accepts the `stream-offset` alias.
moetemp Nov 10, 2026
037ddb6
Made `floor_from` bytes and fixed the offset and Retention comments.
moetemp Nov 10, 2026
f74a70d
Applied the review of the Stream messages.
moetemp Nov 10, 2026
9aa88a1
Said why the three read positions are fields and not a oneof.
moetemp Nov 10, 2026
658c8af
Put the read position in a oneof and removed `last`.
moetemp Nov 10, 2026
bab9525
Renamed the `next_offset` of a read to `last_offset`.
moetemp Nov 10, 2026
0fe23d8
Dropped the reserved fields from the Stream protos.
moetemp Nov 11, 2026
b645ed2
Fixed the stale comments of the Stream protos.
moetemp Nov 11, 2026
093503f
Removed create_wait from the Stream read.
moetemp Nov 11, 2026
66cb00d
Pinned temporalio/nexgen#374 and took its Stream WIT.
moetemp Nov 11, 2026
682d24b
Reshaped the Stream writes and items, and marked required fields.
moetemp Nov 11, 2026
84e41b1
Reworded the close offset and the request namespace comments.
moetemp Nov 11, 2026
85ae7f6
Moved the nexgen pin to the head of temporalio/nexgen#374.
moetemp Nov 11, 2026
18ab2c4
Stated one fence and supersede rule for every Producer kind.
moetemp Nov 11, 2026
f7deab6
Dropped the unknown writer reason and marked more required fields.
moetemp Nov 11, 2026
377c7a9
Said when a Workflow Producer writes and when it only closes.
moetemp Nov 11, 2026
37b3fd1
Dropped the fields with no design yet and the close item of a read.
moetemp Nov 12, 2026
407bf2f
Made done a plain bool in the read response of the Stream WIT.
moetemp Nov 12, 2026
3a6e63e
Moved the nexgen pin to the head of temporalio/nexgen#407.
moetemp Nov 12, 2026
145e99c
Gave the Stream's append and close an optional Producer in the WIT.
moetemp Nov 13, 2026
fcc460f
Renamed the backend of a Stream ref to store.
moetemp Nov 13, 2026
ca60746
Let a caller number an append in the Stream WIT.
moetemp Nov 13, 2026
bcf858d
Said how offsets compare, and what a Workflow writes with on a Store.
moetemp Nov 13, 2026
b230eb6
Left append, close and read out of the Workflow Stream in the WIT.
moetemp Nov 13, 2026
9e0a027
Put append and close back on the Workflow Stream in the WIT.
moetemp Nov 14, 2026
a435625
Pinned the nexgen fork commit that has `@nexus.helper`.
moetemp Nov 14, 2026
a2113c8
Added take, filter and reduce to the Stream in the WIT.
moetemp Nov 14, 2026
76b35d8
Pinned the nexgen fork commit that has `@nexus.guard`.
moetemp Nov 14, 2026
c15db58
Added the method guard to the Stream in the WIT.
moetemp Nov 14, 2026
bb92010
Pinned the nexgen fork commit that has the `sync` helper.
moetemp Nov 16, 2026
e285580
Replaced take, filter and reduce with `iter` in the Stream WIT.
moetemp Nov 16, 2026
e35acbd
Said in the `WorkflowProducer` comment who sets its epoch.
moetemp Nov 16, 2026
40a9e78
Removed the method guard from the Stream in the WIT.
moetemp Nov 16, 2026
fee93bb
Pinned the nexgen fork commit that has the helper method in one PR.
moetemp Nov 16, 2026
e2ffe97
Gave Workflow code the read of the client in the Stream WIT.
moetemp Nov 17, 2026
2876c59
Followed the new name of the idle TTL in the expired reason.
moetemp Nov 17, 2026
e4be454
Noted that Core makes the Workflow append, not a Local Activity.
moetemp Nov 18, 2026
66f3cad
Pin nexgen to the main of temporalio/nexgen
moetemp Nov 19, 2026
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
24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ PROTO_PATHS = paths=source_relative:$(PROTO_OUT)
OAPI_OUT := openapi
OAPI3_PATH := .components.schemas.Payload

NEX_GEN ?= nexgen
# The Stream WIT uses nexgen directives that no release has yet. Pin a nexgen commit that has them
# until a release does.
NEX_GEN_REPO := https://github.com/temporalio/nexgen
NEX_GEN_REV := c7939a91afe1a0aec5ab4a720cda942590cd5421
NEX_GEN_ROOT := $(CURDIR)/$(STAMPDIR)/nexgen-$(NEX_GEN_REV)
NEX_GEN ?= $(NEX_GEN_ROOT)/bin/nexgen

$(PROTO_OUT):
mkdir $(PROTO_OUT)
Expand Down Expand Up @@ -164,21 +169,32 @@ system-nexus-wit: system-nexus-wit-install nex-gen-install
--system-nexus-wit_opt=linked_input=nexus/deps \
--system-nexus-wit_out=. \
temporal/api/workflowservice/v1/service.proto \
temporal/api/notificationservice/v1/request_response.proto && \
temporal/api/notificationservice/v1/request_response.proto \
temporal/api/streamservice/v1/request_response.proto && \
$(NEX_GEN) add-message \
--descriptors "$$tmp/system.bin" \
--file temporal/api/notificationservice/v1/request_response.proto \
--input nexus/notification-service.wit \
--input nexus/deps \
--output nexus/notification-service.wit
--output nexus/notification-service.wit && \
$(NEX_GEN) add-message \
--descriptors "$$tmp/system.bin" \
--file temporal/api/streamservice/v1/request_response.proto \
--message temporal.api.stream.v1.StreamErrorDetails \
--input nexus/stream-service.wit \
--input nexus/deps \
--output nexus/stream-service.wit

system-nexus-wit-install:
printf $(COLOR) "Build and install protoc-gen-system-nexus-wit..."
@cd cmd/protoc-gen-system-nexus-wit && go install .

# The git CLI follows a local URL rewrite to SSH, which cargo's own git client can't authenticate.
nex-gen-install:
printf $(COLOR) "Install nexgen if missing..."
command -v $(NEX_GEN) >/dev/null || cargo install nexgen --version ^0.2 --features advanced
command -v $(NEX_GEN) >/dev/null || CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install \
--git $(NEX_GEN_REPO) --rev $(NEX_GEN_REV) --locked --features advanced \
--root $(NEX_GEN_ROOT) nexgen

##### Clean #####
clean:
Expand Down
Loading
Loading