Skip to content

core: flat parallel map ingestion#46

Open
y-71 wants to merge 1 commit intocomplex-document-sourcefrom
flat-map-ingestion
Open

core: flat parallel map ingestion#46
y-71 wants to merge 1 commit intocomplex-document-sourcefrom
flat-map-ingestion

Conversation

@y-71
Copy link
Collaborator

@y-71 y-71 commented Mar 1, 2026

Summary

  • Adds RawSection, MapFn, and FlatMapOptions types to core/types/ingest.ts
  • Implements flatMapSections engine that walks a section tree and generates metadata for every section independently, with optional concurrency bounding
  • Includes 6 tests covering flat leaves, nested sections, concurrency limits, empty input, and async map functions

Test plan

  • bun run typecheck passes
  • bun test — 6/6 tests pass

Add flatMapSections engine that walks a RawSection tree and generates
metadata for every section independently via a user-supplied map function.
All map calls run in parallel, bounded by an optional concurrency limit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant