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

オープン
#64 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@KyleAMathews がすでに取り組んでいます。

2026年11月13日 から。

  • #70 @KyleAMathews による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, node.js, vite

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
5
フォーク
1
平均マージ
8時間 31分
マージ済み PR(30日)
60

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/oracles のほかの issue

TanStack/oracles の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。