History

Merge remote-tracking branch 'origin/codex/batch21-local-app-boundaries' into codex/effect-lint-integration

Rhys Sullivan committed 6 months ago

Commit ad94c1d2 parents 1875c13 e393aed3 files · +4 −0Browse files

Unified · Split

3 files
  1. apps/local/src/routes/plugins.$pluginId.$.tsx +2 −0
  2. apps/local/src/serve.ts +1 −0
  3. apps/local/src/server/observability.ts +1 −0
apps/local/src/routes/plugins.$pluginId.$.tsx+2−0
@@ -30,10 +30,12 @@ function PluginRouteComponent() { · 29 unmodified lines
3030 const { pluginId, _splat: rest } = Route.useParams();
3131 const plugins = useClientPlugins();
3232 const plugin = plugins.find((p) => p.id === pluginId);
33+ // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: TanStack Router represents not-found from components by throwing notFound()
3334 if (!plugin) throw notFound();
3435
3536 const target = normalizePath(rest ?? "/");
3637 const page = plugin.pages?.find((p) => normalizePath(p.path) === target);
38+ // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: TanStack Router represents not-found from components by throwing notFound()
3739 if (!page) throw notFound();
3840
3941 const Component = page.component;
apps/local/src/serve.ts+1−0
@@ -37,6 +37,7 @@ const hasFileExtension = (pathname: string): boolean => { · 36 unmodified lines
3737
3838 function collectStaticRoutes(dir: string, prefix = ""): Record<string, StaticHandler> {
3939 const routes: Record<string, StaticHandler> = {};
40+ // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: filesystem route discovery is best-effort for optional built assets
4041 try {
4142 for (const entry of readdirSync(dir, { withFileTypes: true })) {
4243 const fullPath = join(dir, entry.name);
apps/local/src/server/observability.ts+1−0
@@ -23,6 +23,7 @@ export const ErrorCaptureLive: Layer.Layer<ErrorCapture> = Layer.succeed( · 22 unmodified lines
2323 const squashed = Cause.squash(cause);
2424 console.error(
2525 `[executor ${traceId}]`,
26+ // oxlint-disable-next-line executor/no-instanceof-error -- boundary: console logger preserves native Error stack output
2627 squashed instanceof Error ? squashed.stack ?? squashed : squashed,
2728 );
2829 console.error(`[executor ${traceId}] cause:`, Cause.pretty(cause));