- Remove @executor/plugin-onepassword dependency and UI integration from cloud app - Guard against Config.all({}) crash in createEnv when shape has no keys - Add .tanstack/ to gitignore
Unified · Split
| @@ -48,4 +48,5 @@ apps/desktop/resources/ · 47 unmodified lines | |||
| 48 | .pglite | 48 | .pglite |
| 49 | .claude/ | 49 | .claude/ |
| 50 | .nitro/ | 50 | .nitro/ |
| 51 | .output/ | 51 | .output/ |
| 52 | .tanstack/ | ||
| @@ -13,7 +13,6 @@ · 12 unmodified lines | |||
| 13 | "@executor/plugin-google-discovery": "workspace:*", | 13 | "@executor/plugin-google-discovery": "workspace:*", |
| 14 | "@executor/plugin-graphql": "workspace:*", | 14 | "@executor/plugin-graphql": "workspace:*", |
| 15 | "@executor/plugin-mcp": "workspace:*", | 15 | "@executor/plugin-mcp": "workspace:*", |
| 16 | "@executor/plugin-onepassword": "workspace:*", | ||
| 17 | "@executor/plugin-openapi": "workspace:*", | 16 | "@executor/plugin-openapi": "workspace:*", |
| 18 | "@executor/react": "workspace:*", | 17 | "@executor/react": "workspace:*", |
| 19 | "@executor/sdk": "workspace:*", | 18 | "@executor/sdk": "workspace:*", |
| @@ -1,9 +1,6 @@ | |||
| 1 | import { createFileRoute } from "@tanstack/react-router"; | 1 | import { createFileRoute } from "@tanstack/react-router"; |
| 2 | import { SecretsPage } from "@executor/react/pages/secrets"; | 2 | import { SecretsPage } from "@executor/react/pages/secrets"; |
| 3 | import { onePasswordSecretProviderPlugin } from "@executor/plugin-onepassword/react"; | ||
| 4 | |||
| 5 | const secretProviderPlugins = [onePasswordSecretProviderPlugin]; | ||
| 6 | 3 | ||
| 7 | export const Route = createFileRoute("/secrets")({ | 4 | export const Route = createFileRoute("/secrets")({ |
| 8 | component: () => <SecretsPage secretProviderPlugins={secretProviderPlugins} />, | 5 | component: () => <SecretsPage secretProviderPlugins={[]} />, |
| 9 | }); | 6 | }); |
| @@ -271,9 +271,13 @@ export function createEnv< · 270 unmodified lines | |||
| 271 | 271 | ||
| 272 | const isServer = opts.isServer ?? (!("window" in globalThis) || "Deno" in globalThis); | 272 | const isServer = opts.isServer ?? (!("window" in globalThis) || "Deno" in globalThis); |
| 273 | 273 | ||
| 274 | const hasKeys = Object.keys(normalizedShape).length > 0; | ||
| 275 | |||
| 274 | const finalConfig = | 276 | const finalConfig = |
| 275 | opts.createFinalConfig?.(normalizedShape, isServer) ?? | 277 | opts.createFinalConfig?.(normalizedShape, isServer) ?? |
| 276 | (Config.all(normalizedShape) as unknown as TFinalConfig); | 278 | (hasKeys |
| 279 | ? (Config.all(normalizedShape) as unknown as TFinalConfig) | ||
| 280 | : (Config.succeed({}) as unknown as TFinalConfig)); | ||
| 277 | 281 | ||
| 278 | const parsed = Effect.runSync( | 282 | const parsed = Effect.runSync( |
| 279 | Effect.withConfigProvider(ConfigProvider.fromMap(toRuntimeMap(normalizedRuntimeEnv)))( | 283 | Effect.withConfigProvider(ConfigProvider.fromMap(toRuntimeMap(normalizedRuntimeEnv)))( |