Releases: pipewrk/llm-core
v1.3.7
Automated release for v1.3.7
v1.3.2 - 2025-07-30
v1.3.2 — 2025-07-30
🚨 Breaking Changes
-
pipelinefactory signature changed
• Old:pipeline(logger)
• New:pipeline(context: PipelineContext<C,T>)
This gives you full control over your own fields (logger, counters, etc.) and built‑in slots (retries, timeout, cache, stopCondition, stream state). -
Removed
pipeline.addMultiStrategyStep(...)
Use the new helper functionwithMultiStrategy(...)instead.
New Types & Core API
-
PipelineContext<U,T>
Consolidates your user fields (U) with pipeline options and streaming state. -
PipelineOutcome<T>
Now models both “pause” (done: false) and early “done” (done: true) outcomes. -
PipelineStep<C,T>
Curried step signature:(ctx: C) => (doc: T) => T | PipelineOutcome<T> | Promise<…>. -
StreamEvent<C,T>
Three flavors:{ type: 'progress'; step; doc }{ type: 'pause'; step; doc; info: PipelineOutcome<T> }{ type: 'done' }
-
Functional Composition
pipe(...fns)— left‑to‑right sequencingcompose(...fns)— right‑to‑left composition
New Helper Functions
All shipped in src/core/helpers.ts and documented in PIPELINE_HELPERS.md:
- Error handling:
withErrorHandling(step) - Retries:
withRetry(step) - Timeouts:
withTimeout(step) - Caching:
withCache(step, keyFn) - Tap:
tap(sideEffect) - Multi‑strategy:
withMultiStrategy([stepA, stepB, …])
Tests & Coverage
-
Updated all existing tests to match the new
PipelineContextshape. -
Added new test suites for:
pipe&composetransformers- Each helper (
withErrorHandling,withRetry,withTimeout,withCache,tap,withMultiStrategy) in both.run()and.stream()modes
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
[1.0.0] - Initial Stable Release
- Achieved 100% test coverage across all core modules
- Refactored
logger,chunker,pipeline,markdown-splitter, andbatch-openai-servicefor maintainability - Added detailed test suites with fixtures and coverage reporter
- Finalised GitHub Actions testing setup
- Introduced OllamaService, improved error handling and logging
- Added coverage workflow and versioned release notes
v0.4.0
v0.3.0
docs: create comprehensive guides for core modules
- Added standalone documentation files for:
PIPELINE.md: Orchestration & step execution.OLLAMA_SERVICE.md: Embeddings & structured output.CHUNKER.md: Semantic chunking explained.
- All guides include Mermaid diagrams to visualise logic and flow.
README.mdimprovements:- New "Why Use This Library?" section
- Refactored examples
- Links to the detailed guides