You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: add content transformers (readability, mdream) and cleanup pipelines (#3)
Add a content-transformers extension family for deterministic, in-process body
conversion and the pipelines that use it. Transformers run with no upstream
call and can decline unsuitable input. Two deterministic pipelines ship:
clean-deterministic (no LLM) and clean-combined (deterministic + LLM summarize).
Content transformers
- Add the ContentTransformer contract and the transform pipeline step (selects
a transformer by name and applies it to the current body).
- Add mdream transformer (HTML -> markdown via @mdream/js), shipped as
mdream-convert (post-readability conversion) and mdream-aggressive
(minimal-preset one-pass extraction).
- Add readability transformer: extracts main-article HTML via Mozilla
Readability, gated by isProbablyReaderable (minContentLength, minScore,
maxElements).
Transform outcomes
- ContentTransformResult is a discriminated union of transformed | declined;
transformers signal "not suitable" instead of forcing a transform.
- transform step supports onUnsupported and onDeclined (skip | fail).
Truthful Firecrawl media types
- rawHtml PDF output is labeled text/plain (not text/html) so HTML-gated
transformers skip it correctly.
- parsePdf:false returns the raw PDF as a binary body (application/pdf);
FIRECRAWL_PARSE_PDF makes this configurable.
Pipelines and config
- clean-deterministic: firecrawl-html -> readability -> mdream -> truncate.
- clean-combined: adds capture-urls -> llm summarize -> verify-urls.
- Add PROCESS_CONCURRENCY, READABILITY_*, FIRECRAWL_PARSE_PDF; SOURCE_PROVIDER
defaults to empty (use the active pipeline's fallback).
Breaking
- Rename the shipped docling source instance docling-default -> docling-ocr.
Update SOURCE_PROVIDER or custom YAML that referenced docling-default.
Docs, env examples, and Compose files updated to match.
Copy file name to clipboardExpand all lines: AGENTS.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,13 @@ Read the row that matches your task. Each focused doc is self-contained for its
37
37
- When changing behavior, keep the docs that describe it accurate in the same change.
38
38
- No gratuitous comments. Inline comments that narrate a change are prohibited ([coding-conventions](docs/agents/coding-conventions.md)). Before adding a comment, ask: will it still be useful after the transient context is gone?
39
39
- Don't over-document trivial changes. A new knob, helper, or internal refactor does not warrant updates to `ARCHITECTURE.md` or `extension-authoring.md`. Update only docs that directly describe the changed surface.
40
+
41
+
## Terminal Behavior on Windows
42
+
43
+
When using the terminal on Windows:
44
+
45
+
- Prefer single-line PowerShell commands.
46
+
- Avoid interactive commands, pagers, prompts, and commands that wait for input.
47
+
- Prefer `pwsh` or PowerShell with `-NoLogo -NoProfile`.
48
+
- For git commands, use non-interactive flags such as `--no-pager` and `--no-edit` when appropriate.
49
+
- If a command appears stuck after output is printed, do not blindly rerun it. First check whether the command already completed and inspect the visible terminal output.
0 commit comments