Skip to content

Commit 970cc26

Browse files
committed
Squashed '.context/effect/' changes from 571447da6..1be29cd36
1be29cd36 Version Packages (beta) (#2084) 8e110c5f0 ensure each sql client gets a unique transaction service (#2088) 979b56b5c fix idb entries transaction (#2086) a971f5cbd add Effect.abortSignal (#2085) 5045e625b add @effect/sql-pglite package (#2073) 9c652d71a Version Packages (beta) (#2082) c5a732746 Fix OpenAi MCP tool integration (#1933) 950607993 Version Packages (beta) (#2079) 42cc74457 Export the `Schema.encodeKeys` interface, closes #2070 (#2081) 6a45e5289 chore: update tstyche to v7.1.0 (#2080) 04855ceec fix: fix `isNullish()` type predicate (#2067) df9dc6b14 Version Packages (beta) (#2076) e4b74f9c0 add Socket.make (#2078) 47d61a555 isolate workflow suspension in DurableDeferred.into (#2077) 4c7280818 ensure workflow failures are not squashed by suspension interrupts (#2075) 64a80557c Version Packages (beta) (#2061) 4be6a7cf3 fix: floor TestClock nanoseconds before BigInt conversion (#2069) 07685094e AtomHttpApi include middleware errors in queries and mutations (#2068) 62bcf3222 fix: comment typo (#2071) 4f79c542e fix Latch.release (#2074) 691388dfe Schema: improve TemplateLiteralParser example (#2066) 476aede69 fix http schemaBodyJson parseOptions annotation (#2062) 88927ebb8 add Effectable module (#2065) aef2b1c01 add back openai reasoning types (#2060) e5156e1e9 Version Packages (beta) (#2056) 6f73f9229 Update openai schema strategy (#2059) 131fdd5b1 mcp http request with no session header is 404 response (#2058) 8e04bfc95 make HttpApi schema errors defects unless transformed (#2057) cf3a311d8 ensure tagged enum _tag is correctly set (#2055) c3130453a Schema: remove unnecessary internal module (#2054) f69df22a5 Version Packages (beta) (#2045) 90f7fd524 remove use of bigint literals (#2053) 4b1c0150e Schema: expand FilterOutput to support multiple failures and full Issues at paths (#2052) 6754a0cd1 disable sql traces for EventLog, RunnerStorage (#2051) 778d2afe9 add makeMsgPack for configurable msgpackr options (#2049) 1009667c7 iterateEager cleanup (#2050) 4e24dcf75 process schema properties / elements concurrently (#2010) 454f8adad fix SchemaAST.isJson rejecting DAGs as cycles, closes #2021 (#2047) d7e151974 remove `options` parameter from `OpenApi.fromApi` (#2046) 72a81228e ensure envelope payloads are correctly encoded for notify path (#2044) 2957a5e66 Version Packages (beta) (#2039) ae0243310 require a option to make AtomRpc.query atoms serializable (#2040) 07be59482 add support for deferred responses in rpc (#2038) 2428f43d3 Version Packages (beta) (#2031) c2f6f901b add RpcGroup.omit (#2036) 7d8787340 EFF-782 Support common string literals in HttpApiSchema.status (#2035) 216f13c1f Fix issue with exported cli completion types (#2034) 253efe6f5 Idb persistence (#2030) 2f07ca90a clean up AGENTS.md 626d6fbe2 Version Packages (beta) (#2024) a5e6f774b omit scope from HttpApi handlers (#2029) 4da56ecff update deps (#2025) f1ba5b858 EventLog Identity string encodes to base 64 (#2023) 28203647c Remove duplicate type-level tests section from AGENTS.md (#2019) b67952fba Version Packages (beta) (#2014) 131caf952 Schema: allow `Class` constructors to accept `void` when all fields are optional, closes #2015 (#2018) c58472674 Schema: add `annotateEncoded` function for annotating the encoded side of a schema (#2017) c3615c883 Schema: rename "~rebuild.out" to "Rebuild" (#2016) 86a91a4f0 Schema: add withDecodingDefaultTypeKey / withDecodingDefaultType, closes #2012 (#2013) 23de64354 Version Packages (beta) (#2009) a48d439ef don't remove SIGINT listener until fiber exit 3a30b9e2e fix eventlog skipping entries (#2008) be88ab11d Version Packages (beta) (#2007) 5c3af6d55 Eventlog unencrypted (#1883) 0fc8e58bc Version Packages (beta) (#1926) b3f535d9a Fix `Stream.splitLines` to correctly handle standalone `\r` as a line terminator and flush the final unterminated line when the stream ends, closes #2002 (#2005) c1af1b756 Add effectful support to CLI fallback prompts (#1971) 25e7fac3d docs(schema): add string encoding section to SCHEMA.md and cross-link SchemaTransformation (#2006) 7846792ad EFF-781 Fix types of Stream.toQueue (#2004) 0dd117340 Guard transaction acquire failures in PgClient.fromPool (#2001) 237041062 fix cache constructor inference by moving the lookup option (#2000) 87e1fc8b6 use NoInfer in Layer constructors to prevent type erasure (#1999) 57c75b455 docs(schema): fix missing and incorrect `@category` JSDoc tags (#1997) 5b476abc0 Schema: add `StringFromBase64`, `StringFromBase64Url`, `StringFromHex`, and `StringFromUriComponent` schemas for decoding encoded strings into UTF-8 strings, closes #1995 (#1996) 187429d69 chore: update type tests (#1994) 718ff6fe3 fixes type inference when times option has provided in Effect.retry (#1984) acc7fffca improve idb transaction api (#1993) 8c74d0353 Add rebuild api to idb databases (#1992) 9155d1c78 docs(HTTPAPI): add section on customizing schema error responses (#1991) 22d627c11 docs(Redactable): improve jsdocs (#1990) 7bb5dce60 refactor: rename ServiceMap module to Context (#1961) 1556a2476 [codex] Fix unstable CLI boolean flags (#1974) 3cc091de7 use encoded types for idb queries (#1989) c8a877b53 Underline active labels in CLI multi-select prompts (#1973) 698296f91 fix(openapi-generator): support form-urlencoded in httpclient format (#1910) f244e7141 add .reverse() to idb select (#1985) cda800451 add rpc ConnectionHooks (#1981) 7c11bc292 fix Entity.keepAlive (#1980) 4f58e309d add idb stream and offset (#1977) 7a35a8338 improve idb support for compound indexes (#1976) 3b09fb31c catch defects when building Entity handlers (#1975) 7a1a82365 fix(schema): add more missing ~rebuild.out types (#1970) d54be0258 fix(schema): add missing ~rebuild.out (#1969) 6e243d9e8 Improve Schema.encodeKeys typing (#1968) 7da961ae4 clean up ShardId (#1967) 0853afaeb fix(schema): reuse existing references when duplicate identifiers have the same representation, closes #1927 (#1966) 8335477a8 return resolvers directly from SqlModel.makeResolvers (#1965) 1ee454345 allow customizing idb durability (#1964) 82dd0f26c feat(schema): add MissingSelfGeneric compile-time error for Class APIs (#1958) dfff04c4c EFF-779 Add KeyValueStore.layerSql (#1962) 9baed9e17 EFF-780 Unify.unify should work with the Layer module (#1963) 8c836f99a feat(process): add child process unref (#1960) 03ae41e73 refactor(schema): remove `~annotate.in` type from `Bottom` interface (#1957) b80c46247 feat(schema): add `Schema.resolveAnnotationsKey`, closes #1947 (#1956) 4677a0a58 refactor(schema): rename `makeUnsafe` back to `make` (#1951) fbbdaec5e add defaults to indexeddb reactivity keys (#1953) 6b40e5a4a Effect.repeat now uses effect return value when using options (#1952) 08b63c3df EFF-778 Only log the path in the HttpMiddleware logger (#1949) 1ea5d3e09 refactor(schema): merge ExtendableClass into Class (#1950) f40d67c17 chore: rename `dtslint` directories to `typetest` (#1948) e3f062145 Add missing `*FromString` schemas, closes #1941 (#1943) ac845f3ab fix(schema): Fix `ErrorClass` and `TaggedErrorClass` `toString` to match native `Error` output format, closes #1940 (#1942) d95b39b08 docs(schema): document how to annotate the encoded side of a transformation (#1939) 4ec5a7a48 improve solid useAtomResource 23bbaace8 allow atoms to be computed in solid bindings (#1938) 96cb77829 add .reactive to indexeddb .first queries (#1937) 7eed84fc3 Add Stream service accessors (#1930) dabc27244 EFF-777 Add makeEffect alongside makeUnsafe on Schema.Bottom (#1928) 6fe2e93cc Fix Stream.groupedWithin partial batch flushing (#1936) 9c975bb84 Remove `rulesync` and cleanup patterns (#1934) 5df46fe2f feat(schema): add `asClass` API to turn any schema into a class with static method support (#1935) 18a325db0 fix Schema.Opaque JSDoc example to use a struct (#1932) 1d99d3b37 Simplify Schema rebuild.out declarations (#1931) b5ea5913e Simplify and align Schema default-value APIs to accept Effect<T>, closes #1917 (#1929) 716fe2488 allow Model.Class for indexeddb schemas (#1924) 575d2f8f5 Version Packages (beta) (#1901) 1d046fe48 add Layer.suspend constructor (#1903) 583ea002f Added modules for IndexedDb (#1240) 2ae33d050 Refactor id checks for null and empty string (#1904) eb7dbeffa Fix stream requests in Entity.toLayerQueue (#1908) fc1444df6 openai ws tweaks (#1905) cf50eb49c add WorkflowEngine interruptUnsafe (#1907) 734e4860d chore: update TSTyche to v7 (#1896) c8fb40f50 docs(schema): clarify that declareConstructor is not for transformations (#1906) 979811a4c EFF-776 Fix class schema refs in ai generateObject JSON schema (#1900) d799b18f3 Version Packages (beta) (#1892) 66d1c0603 fix(SchemaRepresentation): support anyOf/oneOf with sibling keywords in fromJsonSchemaMultiDocument (#1899) 8930441de refine composable Effect tx transactions (#1898) 924e216ca Improve CLI help for choice flags (#1897) a4809db80 fix: add dynamic tooling for OpenAILanguageModel (#1859) f8328bf03 EFF-775 Consider all web socket close codes an error by default (#1895) bee800bf2 fix(Number): handle scientific notation in `remainder` (#1893) 80e7f0cd9 Fix MutableList.appendAll with empty arrays (#1894) f49229f91 remove retries from SqlMessageStorage.withTransaction 0e9bd09fd move tracker.clearUnsafe() 454917547 reset openai websocket on error (#1890) 3f53e5619 test(schema): expand encodeKeys tstyche coverage for extra encoded key mappings (#1891) 414ae0235 fix: enable Tool.EmptyParams with OpenAiLanguageModel (#1858) 97eff0c5c docs(schema): explain Schema.encodeKeys as encoded key remapping (#1889) 90065e282 Version Packages (beta) (#1870) f2913443d make defects a retryable network error in websocket mode (#1887) 2111963f1 add ClusterSchema.WithTransaction annotation (#1886) 3bc1efb53 EFF-771 Empty http responses should fail RpcClient requests (#1884) 70e724e60 Fix AI `Toolkit` type inference (#1875) 26c50e72b fix changeset (#1882) 36f5c2174 Added `BigDecimal.sumAll` and `BigDecimal.multiplyAll` for feature parity with `Number` and `BigInt`, closes #1880 (#1881) 54769ed9a Httpapi gen (#1852) 11aab4c6d Prompt.select / multiSelect highlight text color (#1879) 198a553d9 allow ServiceMap.Key to be covariant (#1877) 738dee7ed Track ManagedRuntime fibers in a scope (#1876) b55869a9b improve bundle visualize 7fab59720 Schema: fix compactEnums to support multi-value enum branches in JSONSchema output (#1872) 977386da5 Fix OpenRouter client http referer header name (#1871) d8ce75866 Schema: collapse same-type literal branches in JSON Schema output into a single `enum` array, closes #1868 (#1869) 07fb967a4 Version Packages (beta) (#1864) 973f28125 add Stream.timeoutOrElse (#1866) f62860f0e fix issues with metro bundler (#1863) 6df20c566 Version Packages (beta) (#1845) b47db0bd5 Fix `Struct` utility return types (for example `pick`) to preserve the previous simplified shape instead of exposing raw utility types like `Pick<T, K>`, closes #1855 (#1856) fb5db8ef6 docs(schema): add general recursive schemas section and clarify recursive codec annotations (#1854) fb8d29c21 clean up sql-pg constructors and layers (#1853) edaae9d65 re-export core references in effect/References (#1851) 7c22b315d EFF-757 Fix incorrect documentation for Schedule.compose (#1848) a4a1ec966 Revert "EFF-755 Re-export core ServiceMap references in effect/References" (#1850) 2ef9a9e6d Re-export core ServiceMap references in effect/References (#1846) 82d3c8e4f Fix Queue.takeN example (#1849) f91fd3db3 EFF-754 Use HttpApi.Any for HttpApiClient.urlBuilder (#1844) 9c560d9e7 refine agent-instructions 5b5c3198d Version Packages (beta) (#1836) f4dbe5b26 Schema: rename `MakeOptions.disableValidation` to `disableChecks`. Apply constructor defaults when `disableChecks` is true, closes #1841 (#1842) 66a0494ed Change HttpApiClient withResponse option to responseMode (#1840) c77d8eba9 Update HTTPAPI docs for automatic HttpApiEndpoint codec coercion (#1839) 472d26065 add `disableCodecs` option to HttpClientEndpoint constructors (#1700) 5ef7218fc EFF-751 HttpApiClient.urlBuilder should use schemas and client-shaped API (#1838) a71a607c8 Fix HttpApiBuilder security middleware cache reuse (#1837) 3a5b0ca75 Use pg_notify instead of NOTIFY in PgClient (#1835) 9a3d8a7dc Version Packages (beta) (#1817) 8f4c1f97e fix: flush devtools queued messages on teardown (#1825) b6b81a940 Fix Unify.unify for Effect unions (#1833) 89ed5d6c1 EFF-748 Create dedicated PG connection for LISTEN (#1834) 8c7cf89f7 EFF-746 Fix Schedule.fixed immediate catch-up for long-running iterations (#1831) 53740f47a EFF-744 Fix sqlite migrator lock errors being silently swallowed (#1829) f7a0b711d improve sql errors (#1812) f2479f9d3 EFF-743 Fix Ctrl-L rendering artifacts in CLI Prompt (#1824) f3be18569 improve runSync error when executing async effects (#1822) 7af90c2e3 Schema: relax `asserts` and `is` constraints (#1821) c9199217f Backport Fix HttpServerResponse.fromWeb losing Content-Type header (#1819) 1e223c30c EFF-742 Add HttpClientRequest.toWeb and fromWeb (#1816) d61d1d845 Version Packages (beta) (#1790) f8f445644 EFF-737 Support dynamic idleTimeToLive in LayerMap (#1810) 126db2e38 EFF-740 Fix ai missing summaryParts error (#1809) 1bbd4d9d6 EFF-739 Fix OpenAI websocket no tool output error (#1807) 334b6e4f7 Backport Cron.prev api (#1808) 969d24fdf PubSub.publish returns false on shutdown instead of interrupting (#1802) 8059c1c3e fix PubSub shutdown regression (#1806) 6f8329546 EFF-735 Handle Ctrl-A and Ctrl-E in CLI text prompts (#1797) 49164d2c2 EFF-736 Fix cachedWithTTL expiry to start at value creation (#1805) e7fabd226 Schema: allow using `Struct` type helpers directly (#1798) 851eda053 EFF-734 Prompt.file should filter as you type (#1796) 65f7f5737 Add Schema Result decode and encode helpers (#1633) 0a6083713 allow HttpApi middleware error arrays (#1762) 954e6d655 EFF-728: Anthropic provider support for dynamic tools (#1775) 53794ab7a add missing Equivalence.Date (#1785) 89c3e9854 EFF-733 Fix missing finish parts in LanguageModel streaming (#1794) 60fcbcc43 EFF-732 Fix missing tool output persistence in streamed chat history (#1793) 5700695f7 Fix Stream.scanEffect hanging behavior (#1789) 6d8b4a3bf Add withDecodingDefault/withDecodingDefaultKey examples to schema migration guide (#1787) fb7bc2840 Version Packages (beta) (#1773) 7daf3870a Add `Config.Success` type utility, closes #1783 (#1784) 9252b4356 Add `Schema.ArrayEnsure` (#1782) 764d1501b Fix `DateTime.makeUnsafe` incorrectly appending "Z" to date strings containing "GMT" (#1781) c667dad07 EFF-730 Fix ai LanguageModel incremental prompt fallback (#1780) 3015c2dc2 fix(platform-node): bump undici minimum to ^7.24.0 for CVE fixes (#1779) f5e553d13 improve openai socket errors (#1776) e1664a38b EFF-729: support release dependencies in Effect.acquireRelease (#1778) fdaa6e0a4 EFF-698 Remove unreachable array branch in decodeJsonRpcRaw (#1777) 19aa47ef7 EFF-727 Align CLI help description columns for long flags (#1774) 3c27098b5 make Layer.mock work with Stream and Channel (#1772) a2c1e0187 Version Packages (beta) (#1757) 2fa940d07 remove duplicate `ToolApprovalResponsePartOptions` (#1763) 00add69b5 EFF-726 Add ModelDimensions service to Embeddings module (#1771) 9c1a9603a Add Schema.declare and Schema.declareConstructor docs to SCHEMA.md (#1770) 58217d318 Add `isMutableHashMap` and `isMutableHashSet` (#1767) 5d704ee10 EFF-725 Fix JSDoc wording for Effect.catch (#1766) f4e2aba01 retry incremental prompt on invalid request (#1765) 342fc4b05 Embeddings (#1764) e1472b752 port Url from v3 (#1732) 47d97ea48 add Embeddings todo 7686320cd Fix `Tool.make` type and runtime behavior when `parameters` is not provided (#1761) 273f4c651 handle openai ws error events (#1760) e7efc87a2 improve OpenAiSocket interrupts 8feecd241 EFF-717 OpenAiSocket should cancel the request on interrupt (#1759) f2f75ee56 EFF-716: ResponseIdTracker use Map and clear on reset (#1758) e3b44b6a2 add HttpApiMiddleware.layerSchemaErrorTransform (#1756) a00bc4a84 Version Packages (beta) (#1755) 9fc6357ec reset ResponseIdTracker on divergence e198fea76 ai incremental prompt tracking (#1638) git-subtree-dir: .context/effect git-subtree-split: 1be29cd3687aa52a79a4053109d613d5b751462d
1 parent dab3bf6 commit 970cc26

913 files changed

Lines changed: 62400 additions & 41070 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions

.changeset/add-make-msgpack.md

Lines changed: 5 additions & 0 deletions

.changeset/add-missing-tx-modules.md

Lines changed: 2 additions & 2 deletions
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions

.changeset/add-sql-pglite.md

Lines changed: 5 additions & 0 deletions

.changeset/better-apples-nail.md

Lines changed: 5 additions & 0 deletions

.changeset/better-rocks-arrive.md

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)