@hicaru/pi-rlm 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hicaru/pi-rlm",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"author": "hicaru",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@earendil-works/pi-agent-core": "^0.84.1",
|
|
56
|
-
"@firecrawl/anydoc": "^0.
|
|
56
|
+
"@firecrawl/anydoc": "^0.2.4"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -25,7 +25,8 @@ function skipReasonFromError(err: unknown): SkipReason {
|
|
|
25
25
|
const code: unknown = err.code;
|
|
26
26
|
// Preserve anydoc ConvertErrorCode values rather than collapsing to "convert-failed".
|
|
27
27
|
if (code === "unsupported" || code === "malformed" || code === "encrypted"
|
|
28
|
-
|| code === "resourceLimit" || code === "missingPart" || code === "io"
|
|
28
|
+
|| code === "resourceLimit" || code === "missingPart" || code === "io"
|
|
29
|
+
|| code === "needsOcr" || code === "hosted") {
|
|
29
30
|
return code;
|
|
30
31
|
}
|
|
31
32
|
}
|
package/src/context/types.ts
CHANGED
|
@@ -27,6 +27,10 @@ export type SkipReason =
|
|
|
27
27
|
| "unsupported"
|
|
28
28
|
| "malformed"
|
|
29
29
|
| "encrypted"
|
|
30
|
+
/** v0.2.4: scanned/image-only PDF pages that need OCR (anydoc doesn't do OCR). */
|
|
31
|
+
| "needsOcr"
|
|
32
|
+
/** v0.2.4: `ocr: 'hosted'` could not reach Firecrawl Parse. */
|
|
33
|
+
| "hosted"
|
|
30
34
|
| "resourceLimit"
|
|
31
35
|
| "missingPart"
|
|
32
36
|
| "io"
|