feat(api/public-exports): wire up selective public API surface in src/index.ts

Replace wildcard  barrel with selective named re-exports,
ensuring no internal implementation details (TaskGraphInner, Nullable,
SerializedGraph, standalone mutation/query/validation functions,
computeEffectiveP, splitFrontmatter) leak through the public API.

All 590 tests pass, TypeScript declarations compile cleanly.
This commit is contained in:
glm-5.1 committed 2026-04-27 14:22:39 +00:00
1 parent ff7b19bc2c
commit aea08a5428
4 files changed
+113 -18

No files matched your search

+2 -8
View File
@@ -369,14 +369,8 @@ describe('Type alias correctness — TaskInput and DependencyEdge (compile-time)
});
});
// Re-export Nullable from task.ts to verify the re-export works
import { Nullable as NullableFromTask } from '../src/schema/task.js';
describe('Nullable re-export from task.ts', () => {
it('is the same function as from enums.ts', () => {
expect(NullableFromTask).toBe(Nullable);
});
});
// Nullable is no longer re-exported from task.ts — it's an internal helper
// and excluded from the public API surface per src/index.ts
// Intentionally import type aliases to verify they exist at compile time
type TaskScope = import('../src/schema/enums.js').TaskScope;