Skip to content

Import Effect from its submodules and lint that shape - #285

Merged
cursor[bot] merged 1 commit into
masterfrom
cursor/prefer-effect-submodule-imports-ccbf
Nov 27, 2026
Merged

cursor[bot] merged 1 commit into
masterfrom
cursor/prefer-effect-submodule-imports-ccbf

Conversation

@jonbeckman

Copy link
Copy Markdown
Collaborator

Summary

The CLI was the only application file that imported named values from the effect package barrel. It now imports effect/Console, effect/Effect, and effect/Option, which matches the rest of the tree and the Effect plugin's no-barrel-imports rule.

These Effect rules already pass, so they are errors:

  • effect/no-barrel-imports
  • effect/avoid-data-tagged-error
  • effect/avoid-option-getorthrow
  • effect/avoid-yield-ref
  • effect/no-effect-ignore-then-as
  • effect/avoid-platform-coupling
  • effect/context-tag-extends
  • effect/avoid-schema-suffix
  • effect/no-opaque-instance-fields
  • effect/prefer-array-fromoption-over-option-match-empty
  • effect/effect-promise-vs-trypromise
  • effect/effect-catchall-default
  • effect/avoid-expect-in-if

effect/effect-run-in-body stays off. It rejects Effect.runPromise in runApi, and that function is the client boundary.

release:none: no deployment behavior changes and no package publish. nub src/index.ts --help still prints the same command help.

Validation

  • nub run typecheck
  • nub run lint
  • nub run format
  • nub src/index.ts --help
  • nub run test:e2e:cache-strict (9 passed, 6 skipped on the other target), including the CLI help test

Checklist

  • I added or updated tests for behavior changes, or explained why tests are not needed.
  • I updated documentation and config examples when behavior or configuration changed.
  • I added a .tegami/ release entry, or explained why this pull request uses release:none.
  • I ran nub run typecheck, nub run lint, nub run format, and nub run test.
  • I did not include credentials, private data, internal URLs, or organization-specific defaults.
  • I did not change production deploys, registry publish, or paid spend.

The existing CLI help test covers the import change. No new test is needed.

Open in Web Open in Cursor 

The CLI was the only file that imported named values from the effect package barrel. The other Effect rules enabled here already pass on this tree. effect/effect-run-in-body stays off because runApi is the client boundary.

Co-authored-by: Jonathan Beckman <jonathantbeckman@gmail.com>
@jonbeckman jonbeckman added the release:none No version bump / Tegami changelog for this PR label Nov 27, 2026 — with Cursor
@jonbeckman
jonbeckman marked this pull request as ready for review November 27, 2026 09:14
@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e solstatus-core: 2 passed, 6 skipped, 7 left out by filters

Change 2 files changed since 6f6b20f
Filter decision kept 2 of 9 tests, left out 7 (1 call, 3.9k tokens)

7 tests left out by filters
Test Filter Reason
tests/api.e2e.ts (chromium) › app API › anonymous monitor and infra requests are rejected decision 3% likely affected
tests/api.e2e.ts (chromium) › app API › better-auth routes respond without a session decision 7% likely affected
tests/dashboard.e2e.ts (chromium) › dashboard › dashboard shows endpoint monitors heading and create action decision 4% likely affected
tests/dashboard.e2e.ts (chromium) › dashboard › sidebar exposes Monitors navigation decision 3% likely affected
tests/library.e2e.ts (cli) › createId prefixes endpoint monitor ids and keeps them distinct decision 4% likely affected
tests/library.e2e.ts (cli) › UpdateEndpointMonitor validates url and drops id decision 9% likely affected
tests/monitors.e2e.ts (chromium) › endpoint monitors › create an endpoint monitor through the dashboard form decision 16% likely affected
All 8 tests in 4 files
Test Time
⏭️ tests/api.e2e.ts (cli) · 3 skipped 0ms
⏭️ app API › anonymous monitor and infra requests are rejected (skipped: engine lacks required capabilities: browser)
⏭️ app API › better-auth routes respond without a session (skipped: engine lacks required capabilities: browser)
⏭️ app API › a signed-in caller can read infra metadata and reject a duplicate quoted URL (skipped: engine lacks required capabilities: browser)
⏭️ tests/dashboard.e2e.ts (cli) · 2 skipped 0ms
⏭️ dashboard › dashboard shows endpoint monitors heading and create action (skipped: engine lacks required capabilities: browser)
⏭️ dashboard › sidebar exposes Monitors navigation (skipped: engine lacks required capabilities: browser)
⏭️ tests/monitors.e2e.ts (cli) · 1 skipped 0ms
⏭️ endpoint monitors › create an endpoint monitor through the dashboard form (skipped: engine lacks required capabilities: browser)
🟢 tests/api.e2e.ts (chromium) · 1 passed 720ms
🟢 app API › a signed-in caller can read infra metadata and reject a duplicate quoted URL 720ms
🟢 tests/cli.e2e.ts (cli) · 1 passed 906ms
🟢 prints Effect 4 CLI help without an Effect 3 @effect/cli peer 906ms

Tested by e2e 0.23.1 · 22.7s · 2 targets (chromium, cli) · run artifacts

@cursor
cursor Bot merged commit 01d903a into master Nov 27, 2026
12 checks passed
@cursor
cursor Bot deleted the cursor/prefer-effect-submodule-imports-ccbf branch November 27, 2026 09:16
@github-actions

Copy link
Copy Markdown
Contributor

Tegami

This repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under .tegami/ before merging.

Create a changelog → · Changelog format

No changelogs yet

This PR has no pending changelog files. If your changes require a release, add a changelog before merging.

Run nub run tegami locally to create a changelog interactively.

Managed by Tegami.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:none No version bump / Tegami changelog for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants