Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: add fx provider #7865

Closedt3-code-bot[bot](GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromfeat/fx-provideropened View on GitHub

Showing 29 changed files with 174 additions and 0 deletions (loading 27).

x
0 of 29 viewed, 29 left
11 additions and 0 deletionsapps/mobile/src/components/ProviderIcon.tsxModified
View file
@@ -23,6 +23,17 @@
);
​
+ if (props.provider === "fx") {
+ return (
+ <Svg width={size} height={size} viewBox="166.241 0 155.861 156" fill="none">
+ <Path
+ fill={mono}
+ d="M237.89 0C243.18 0 249.38 1.42 253.03 3.07L255.09 4.01L250.08 18.63L247.68 17.75C244.9 16.72 241.94 15.8 238.49 15.8C234.98 15.8 232.79 16.56 231.08 18.32C229.23 20.23 227.63 23.64 226.23 29.76L225.14 34.85H241.67L260.43 34.95L260.69 34.95L260.84 35.17L278.85 61.63L296.74 34.95H320.87L291.68 76.74L322.1 119.75H299.33L299.18 119.55L241.14 40.48L239.35 49.4H222.07L205.69 127.21C203.93 135.71 201.19 142.84 196.78 147.87C192.27 153.01 186.2 155.75 178.34 155.75C174.18 155.75 170.75 155.11 167.91 154.11L166.24 153.52V137.18L166.9 137.4L169.53 138.28C172.18 139.16 174.41 139.8 177.14 139.8C178.53 139.8 179.7 139.53 180.73 138.98C181.76 138.43 182.68 137.6 183.52 136.44C185.3 133.99 186.72 130.13 187.9 124.67L203.76 49.4H189.87L191.76 39.44L192.04 39.35L206.82 34.47L208.15 28.64C210.52 18.21 213.77 10.94 218.71 6.32C223.74 1.61 230.13 0 237.89 0ZM273.99 99.08L260.07 120.25H234.54L261 82.02L273.99 99.08Z"
+ />
+ </Svg>
+ );
+ }
+​
if (props.provider === "grok") {
const fill = isDarkMode ? "#F5F5F5" : "#0F0F0F";
return (
163 additions and 0 deletionsapps/server/src/provider/Drivers/FxDriver.tsAdded
View file
@@ -0,0 +1,163 @@
+import { FxSettings, ProviderDriverKind, type ServerProvider } from "@t3tools/contracts";
+import * as Crypto from "effect/Crypto";
+import * as Effect from "effect/Effect";
+import * as FileSystem from "effect/FileSystem";
+import * as Path from "effect/Path";
+import * as Schema from "effect/Schema";
+import { HttpClient } from "effect/unstable/http";
+import { ChildProcessSpawner } from "effect/unstable/process";