This was generated by AI during triage.
Parent
- Roadmap plan:
docs/plans/2026-06-22-rust-native-typescript-module-resolution-roadmap.md
- Package map condition plan:
docs/plans/2026-06-22-rust-native-package-map-condition-set-completion.md
- Roadmap node:
1-4-3. condition set handling for repo-local source
What to build
Unify Rust-native package exports and package imports condition selection behind one shared helper for repo-local package maps. The helper should cover exact keys, pattern keys, and nested condition objects, and should make the effective condition set plus matched condition available for diagnostics.
The initial condition order for this helper is TypeScript/source-sufficiency-first for repo-local graph use: types, then import-kind/runtime condition, then node, then configured custom conditions when available, then default. This issue may introduce the helper and route existing exact/pattern/nested package map resolution through it; customConditions and import-kind refinement can land in the follow-up issues.
Acceptance criteria
Blocked by
None - can start immediately.
Parent
docs/plans/2026-06-22-rust-native-typescript-module-resolution-roadmap.mddocs/plans/2026-06-22-rust-native-package-map-condition-set-completion.md1-4-3. condition set handling for repo-local sourceWhat to build
Unify Rust-native package
exportsand packageimportscondition selection behind one shared helper for repo-local package maps. The helper should cover exact keys, pattern keys, and nested condition objects, and should make the effective condition set plus matched condition available for diagnostics.The initial condition order for this helper is TypeScript/source-sufficiency-first for repo-local graph use:
types, then import-kind/runtime condition, thennode, then configured custom conditions when available, thendefault. This issue may introduce the helper and route existing exact/pattern/nested package map resolution through it; customConditions and import-kind refinement can land in the follow-up issues.Acceptance criteria
exportsexact keys use the shared condition selection helper.exportspattern keys and nested condition objects use the same helper.importsexact keys, pattern keys, and nested condition objects use the same helper.exportsandimports.Blocked by
None - can start immediately.