Commit Graph

303 Commits

Author SHA1 Message Date
Phoebe Goldman 8cc46d00e2 insta 2025-02-03 09:47:19 -05:00
Phoebe Goldman 6645c45dfa Reorg sdk::Error to hide non-recoverable errors
Per out-of-band suggestion from @jsdt, rework the `Error` type
so that many former variants are now under `Error::Internal(InternalError)`,
with `InternalError` not exposing its contents except via `std::error::Error`.
2025-02-03 09:28:04 -05:00
Phoebe Goldman f809422ba8 Rust SDK: remove anyhow, use thiserror w/ structured error types
Our use of `anyhow` in the Rust SDK was originally due to my being lazy.
I figured I'd kick the can on writing actual error types as long as possible,
and it turns out now's the time that's no longer possible,
because while working on a follow-up I needed to `clone` an error,
and `anyhow::Error: !Clone`.

This commit removes the Rust SDK's use of `anyhow`,
replacing it with a `thiserror`-annotated `enum Error`.

This resulted in essentially simple mechanical changes to  a lot of the SDK code,
and also to the codegen, resulting in a truly enormous diff.
2025-02-03 09:27:59 -05:00
Jeffrey Dallatezza e2ffc07997 Implement incremental subscriptions on the client (#2111)
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2025-01-31 18:02:50 +00:00
Zeke Foppa 382db47f9b CLI - Just-in-time login flow (#2158)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-31 17:45:44 +00:00
Noa 293aebaef9 Bump to Rust 1.84 (#2001) 2025-01-28 23:11:29 +00:00
Zeke Foppa 20ab595b29 Bump version to 1.0.0-rc4 (#2177)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-27 22:54:36 +00:00
Kim Altintop 73fe4ef2f7 Set tracing static level for binaries only (#2144) 2025-01-22 20:13:52 +00:00
Noa cf6ac18eaf Lookup lifecycle reducers by lifecycle flag, not by name (#2132) 2025-01-17 23:21:52 +00:00
Zeke Foppa a54ea3a391 CLI - Replace clippy with a manual check (#1928)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-17 00:03:11 +00:00
Noa c24042609e Split binaries (#2011) 2025-01-15 18:45:14 +00:00
Phoebe Goldman 44d7b76d29 Fix defining multiple tables on the same struct in Rust modules (#2103) 2025-01-10 01:58:20 +00:00
Tyler Cloutier 6f807e273c Updated version to 1.0.0-rc3 (#2059)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-08 18:17:10 +00:00
Zeke Foppa c71b93cfc1 CLI - dns subcommand becomes rename (#1694)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-07 21:23:27 +00:00
Ingvar Stepanyan 763ba5ef5c Enforce .NET 8 SDK for new C# modules (#2046) 2025-01-07 20:40:56 +00:00
Noa 2b227fe535 Use a spinner to show that wasm is compiling in spacetime generate (#2057) 2025-01-07 18:42:51 +00:00
Zeke Foppa 2967e3b893 CLI - Fix spacetime energy balance not working (#2087)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-06 19:04:46 +00:00
Zeke Foppa 74d191f465 CLI - Confirm before publishing to non-local servers (#2086)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-03 21:40:03 +00:00
Mario Montoya df58e84eba Preserve the comments of the "cli.toml" on changes (#2002)
Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2025-01-03 20:52:15 +00:00
Phoebe Goldman a4b46c5ddb Implement the identity host call and ctx.identity() in Rust (#2085) 2025-01-03 19:09:34 +00:00
Zeke Foppa 43ad8be2b0 CLI - Remove deprecated use of the --project-path flag (#915)
Co-authored-by: Zeke Foppa <github.com/bfops>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-12-30 18:41:44 +00:00
Noa cdfa7aaf13 Fix spacetime server clear (#2055) 2024-12-12 18:54:09 +00:00
Phoebe Goldman d9de1e3943 Rust SDK: no more reducer args structs (#2036) 2024-12-04 17:00:27 +00:00
Ingvar Stepanyan 3902f7562e Migrate C# client-side reducer enum to the new syntax (#2033) 2024-12-04 16:41:16 +00:00
Phoebe Goldman 80dff96723 Rust SDK: Actual client-side indices for unique constraints (#1909) 2024-11-29 18:29:08 +00:00
Mario Montoya 7f22d88694 CLI should not depend on rustup (#1996) 2024-11-26 16:05:05 +00:00
Noa 94c66c97da Don't autogen schedule fields (#1894)
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2024-11-22 18:39:39 +00:00
james gilles c657b4f088 Rip useless names out of RawDef (#1918) 2024-11-20 21:02:00 +00:00
Jeffrey Dallatezza cccadd10ee Clean up auth related code with traits, and reuse existing key generation code. (#1988) 2024-11-12 21:22:20 +00:00
Noa f136670420 Directory structure impl (#1879)
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
2024-11-12 04:24:43 +00:00
Zeke Foppa a432c62e53 CLI - Fix stale helptext instructing users to use spacetime identity (#1954)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-11-09 03:58:01 +00:00
Zeke Foppa 7f9903dcae CLI - Remove unused default_identity stuff (#1969)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-11-09 03:37:12 +00:00
Zeke Foppa fdb1a7115d CLI - Tell users if they're already logged in (#1955)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-11-09 03:37:09 +00:00
Zeke Foppa d51b5ac850 Bump version to 1.0.0-rc2 (#1962)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-11-08 17:06:30 +00:00
Jeffrey Dallatezza 0b1beec8f3 Decode identity correctly (#1952) 2024-11-06 19:13:11 +00:00
Mazdak Farrokhzad ac0053caab Websocket API: Light transaction updates & NoSuccessNotify (#1812)
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2024-11-04 15:59:11 +00:00
Zeke Foppa 3afa1e00ad CLI - Add login show and logout (#1911)
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-31 18:10:07 +00:00
Jeremie Pelletier 1328b5d6a0 C# codegen making state relative to a DbConnection (#1869) 2024-10-30 20:55:30 +00:00
Puru Vijay 556858e007 Companion to spacetime-web#470 (#1912)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-30 19:23:58 +00:00
Zeke Foppa 61360387be CLI - Login flow (#1878)
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-29 20:28:45 +00:00
Zeke Foppa 7de743d44d Bump C# bindings to 1.0.0 (#1913)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-29 00:23:49 +00:00
Zeke Foppa c667c51762 CLI - Fix helptext after #1845 (#1889)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-23 04:35:27 +00:00
Tyler Cloutier 83fc5c33d4 The banishment of Address (#1880)
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
2024-10-23 01:56:20 +00:00
Phoebe Goldman 437eed7760 Rust modules: Revise BTreeIndexBounds (#1815) 2024-10-22 14:49:32 +00:00
Mazdak Farrokhzad 263511e15b Redefine Address as U128 + Identity and Hash as U256 (#1616)
Co-authored-by: James Gilles <jameshgilles@gmail.com>
2024-10-18 20:00:21 +00:00
Zeke Foppa 70ab143596 CLI - Stabilize spacetime server subcommands (#1845)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-17 22:00:48 +00:00
Zeke Foppa c98fe9725e CLI - Fix spacetime server edit failing on renames (#1877)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-17 21:14:48 +00:00
Zeke Foppa 576b12e593 CLI - Add helptext for --build-options (#1853)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-16 16:23:08 +00:00
Mazdak Farrokhzad 06cc688885 No Maps for you! (#1770) 2024-10-15 22:34:13 +00:00
Jeffrey Dallatezza 83310eb6a7 Remove email and recovery related identity endpoints (#1833) 2024-10-15 00:13:18 +00:00