The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import * as Config from "effect/Config"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import { ai } from "./ai/index.ts"; |
| 4 | import Events from "./Events.ts"; |
| 5 | import { forms } from "./forms/index.ts"; |
| 6 | |
| 7 | export const features = Effect.gen(function* () { |
| 8 | yield* Events; |
| 9 | const enableAI = yield* Config.String("NEON_EXAMPLE_AI").pipe(Config.withDefault("false")); |
| 10 | const enableForms = yield* Config.String("NEON_EXAMPLE_FORMS").pipe(Config.withDefault("false")); |
| 11 | return { |
| 12 | ai: enableAI === "true" ? yield* ai : undefined, |
| 13 | forms: enableForms === "true" ? yield* forms : undefined, |
| 14 | }; |
| 15 | }); |