oracle-gaps: support oracles in a package other than the one they own (--source outside --package)

Offen
#64 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@KyleAMathews arbeitet bereits daran.

Seit 13.11.2026.

  • #70 von @KyleAMathews — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
28/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, node.js, vite
Bereich
cli, testing-qa, tooling

Rechercherichtung

Start in oracle-gaps/args.mjs near line 251, where --source is required to sit inside --package, and in oracle-gaps/check.mjs around lines 254, 396 and 600, where vite and vitest are resolved from --package. Decide how the package boundary is defined for a separate oracle package, and resolve Vitest from the oracle config directory. Done means a layout with oracles in tests/realtime-oracles importing packages/realtime/src runs the gap check, with keys and paths stable across OSes.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Reported from an adopter's first session (a pnpm 10 workspace, Vitest 4.1, Node 26), at c58b0c2. Not yet reproduced here.

Problem. --source must be inside --package (oracle-gaps/args.mjs:251), and the CLI resolves vite and vitest from --package (oracle-gaps/check.mjs:254, :396, :600). Some workspaces keep their oracles in a separate package. For example, tests/realtime-oracles has its own Vitest 4.1 and imports packages/realtime/src. Neither choice of --package works there:

  • the oracle package doesn't contain the source;
  • the repo root has no Vitest.

Proposal.

  • Add a separate --root, or allow --source outside --package, still within one workspace.
  • Resolve Vitest from the directory of the oracle config.

Constraints. P6 says ownership stops at the package boundary, so define the boundary explicitly for this layout. Keys and paths must stay stable across OSes (see the Windows work in #58).

This issue was written by Isaac.

Vorherrschende Sprache
JavaScript
Sterne
5
Forks
1
Ø Merge
6 Std.
Gemergte PRs (30 T.)
56

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus TanStack/oracles

Alle Issues in TanStack/oracles

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.