- fetchFromClient: async function -> Effect.tryPromise + Effect.map - collectFromConnected: compose directly with Effect fetchFromClient - closeClient: Effect.promise(.catch) -> Effect.tryPromise + Effect.ignore - Bus.publish calls: .catch() -> busPublish helper with Effect.tryPromise + Effect.ignore - startAuth: Effect.promise(async try/catch) -> Effect.tryPromise + Effect.catch - finishAuth: simplify inner async/await - create(): eliminate mutable let vars, extract connectRemote/connectLocal - Extract sanitize helper, CreateResult interface, busPublish helper - watch callback: use busPublish via Effect.runPromise - getConfig helper function for repeated Config.get() pattern |
||
|---|---|---|
| .. | ||
| bin | ||
| migration | ||
| script | ||
| specs | ||
| src | ||
| test | ||
| .gitignore | ||
| AGENTS.md | ||
| BUN_SHELL_MIGRATION_PLAN.md | ||
| bunfig.toml | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| git | ||
| package.json | ||
| parsers-config.ts | ||
| README.md | ||
| sst-env.d.ts | ||
| tsconfig.json | ||