docs: document reducer context random APIs#5306
Closed
clockwork-labs-bot wants to merge 2 commits into
Closed
Conversation
3f8c50e to
019e3af
Compare
This was referenced Jun 15, 2026
This was referenced Jun 18, 2026
Contributor
Author
|
Closed in favor of the consolidated daily docs audit PR #5410 on branch |
pull Bot
pushed a commit
to age-rs/SpacetimeDB
that referenced
this pull request
Jun 22, 2026
# Description of Changes - Fix TypeScript connection examples to call `DbConnection.builder()` without `new` and include `.build()`. - Document reducer context random APIs across TypeScript, C#, Rust, and C++. - Align reducer skill determinism guidance with the documented context-provided RNG API. - Consolidates the work from clockworklabs#5403 and clockworklabs#5306 into the single daily docs audit branch `bot/docs-audit`. # API and ABI breaking changes None. Documentation and agent skill guidance only. # Expected complexity level and risk 1. This is a low-risk docs-only change plus one agent skill wording update. # Testing - [x] `pnpm --dir docs build` passed. Docusaurus emitted the existing `docusaurus-plugin-llms-txt` warning for `/docs/ask-ai/ask-ai`, then generated static files successfully. - [ ] Reviewer can check that the TypeScript connection snippets match the SDK builder API. - [ ] Reviewer can check that the reducer context RNG examples match the supported APIs for each SDK. --------- Co-authored-by: rain <rain@rain.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gen_range(min, max)behaviorValidation
pnpm --dir docs buildpassed./docs/ask-ai/ask-ai, then completed successfully.tscagainstsdks/typescript/src/server/rng.tsandsdks/typescript/src/server/sys.d.ts:ctx.random()ctx.random.integerInRange(1, 6)ctx.random.fill(new Uint8Array(16))cargo test -p spacetimedb --doc rng --features randclang++ -std=c++20 -Icrates/bindings-cpp/include -x c++ -fsyntax-only -dotnetis not installed on this host. The documentedctx.Rng.NextDouble()andctx.Rng.Next(1, 7)calls were checked against the generated/runtime context source whereReducerContext.Rngis aSystem.Random.Notes
solid-js/solid-js/store).