@poe-platform/safe-bash 0.1.758 → 0.1.760
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/dist/image-ast/index.browser.js +41 -16
- package/dist/image-ast/index.js +41 -16
- package/dist/pdf-ast/ast.d.ts +8 -3
- package/dist/pdf-ast/index.js +45 -19
- package/dist/safe-bash/chunks/{chunk-WNWIBBJZ.js → chunk-CRQDMBQA.js} +130 -9
- package/dist/safe-bash/command-chunks/{chunk-L2C5TIII.js → chunk-MC4XXPQJ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-TCAGGM44.js → chunk-S3SCPBHC.js} +41 -17
- package/dist/safe-bash/command-chunks/{chunk-XYCWDGOG.js → chunk-UCI6ZQFB.js} +1 -1
- package/dist/safe-bash/commands/python/index.browser.js +1 -1
- package/dist/safe-bash/commands/python/index.d.ts +1 -1
- package/dist/safe-bash/commands/python/llm-capability.d.ts +7 -3
- package/dist/safe-bash/commands/python/llm-capability.js +149 -10
- package/dist/safe-bash/commands/python/shell-capability.js +10 -2
- package/dist/safe-bash/core.browser.js +1 -1
- package/dist/safe-bash-command-ffmpeg/index.js +3513 -3500
- package/dist/safe-bash-command-gh/index.js +128 -27
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.js +3 -3
- package/dist/safe-bash-command-pdfimages/index.js +41 -16
- package/dist/safe-bash-command-pdfinfo/index.js +45 -19
- package/dist/safe-bash-command-pdftk/index.js +41 -16
- package/dist/safe-bash-command-pdftoppm/index.js +45 -19
- package/dist/safe-bash-command-pdftotext/index.js +41 -16
- package/dist/safe-bash-command-qpdf/index.js +41 -16
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +63 -38
- package/dist/safe-bash-command-wkhtmltopdf/index.js +42 -16
- package/dist/safe-bash-io-engine/internal.d.ts +2 -2
- package/dist/safe-bash-mcp/index.d.ts +1 -1
- package/package.json +2 -2
- package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +22 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Readable, Writable } from 'node:stream';
|
|
2
2
|
import http from 'node:http';
|
|
3
|
-
import { CommandDefinition, VirtualShellPlugin } from
|
|
3
|
+
import { CommandDefinition, VirtualShellPlugin } from '@poe-platform/safe-bash/contracts';
|
|
4
4
|
|
|
5
5
|
type JsonSchemaRegistry = Record<string, unknown>;
|
|
6
6
|
interface CompileJsonSchemaOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-bash",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.760",
|
|
4
4
|
"description": "Extensible virtual shell with pluggable filesystems and streaming commands",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -841,7 +841,7 @@
|
|
|
841
841
|
"access": "public"
|
|
842
842
|
},
|
|
843
843
|
"dependencies": {
|
|
844
|
-
"@poe-platform/safe-fs": "0.1.
|
|
844
|
+
"@poe-platform/safe-fs": "0.1.760",
|
|
845
845
|
"pdf-lib": "1.17.1",
|
|
846
846
|
"@noble/hashes": "2.4.0",
|
|
847
847
|
"pako": "3.0.1",
|
|
@@ -179,6 +179,20 @@ Word-spacing classification follows PDF.js `Font.charsToGlyphs`
|
|
|
179
179
|
receives Tw, regardless of its Unicode label. The internal CMap reader preserves
|
|
180
180
|
that classification without changing the public ToUnicode result shape.
|
|
181
181
|
|
|
182
|
+
Simple-font character segmentation also follows `Font.charsToGlyphs`: Type1,
|
|
183
|
+
TrueType, and Type3 strings use single-byte codes even when ToUnicode declares
|
|
184
|
+
a wider codespace. `src/fonts/simple-font-codespace.test.ts` checks that behavior
|
|
185
|
+
and the original upstream issue17069 equality fixture, including TJ fragments,
|
|
186
|
+
word spacing, Unicode labels spanning multiple characters, and save/reopen.
|
|
187
|
+
|
|
188
|
+
Ordinary clipping follows PDF.js `CanvasGraphics.consumePath`: install pending
|
|
189
|
+
`W`/`W*` intersections after painting the current path, retaining nonzero/even-odd
|
|
190
|
+
winding and implicit closure. `src/render/path-clipping.test.ts` ports the normal
|
|
191
|
+
rendering assertions from `test/unit/api_spec.js`'s `should render with
|
|
192
|
+
operationsFilter` case (7200 black and 12800 white pixels) and the unchanged
|
|
193
|
+
`clippath.pdf` fixture. Other local cases cover curves, reversed rectangles,
|
|
194
|
+
transforms, save/restore, text/image intersections, and issue17069's signature.
|
|
195
|
+
|
|
182
196
|
|
|
183
197
|
# SVG labels
|
|
184
198
|
|
|
@@ -223,6 +237,14 @@ additional regressions use the extracted upstream streams listed in
|
|
|
223
237
|
1996–2003 Glyph & Cog, LLC, Apache-2.0. The upstream Flate implementation is a
|
|
224
238
|
JavaScript port of XPDF's implementation.
|
|
225
239
|
|
|
240
|
+
`src/cos/pypdf-flate-recovery.test.ts` adapts the printable-byte example from
|
|
241
|
+
pypdf 6.19.0 `tests/test_filters.py::test_decompress`, with truncation results
|
|
242
|
+
checked against `pypdf.filters.decompress`. The bounded pako fallback in
|
|
243
|
+
`src/cos/filters.ts` retains partial zlib/gzip output on incomplete input,
|
|
244
|
+
following pypdf's recovery behavior without its byte-at-a-time decoding loop.
|
|
245
|
+
The original PDF.js issue11549 fixture additionally checks the recovered
|
|
246
|
+
Unicode map against pypdf's decoded bytes. pypdf attribution/license is below.
|
|
247
|
+
|
|
226
248
|
# PDF standard security handler
|
|
227
249
|
|
|
228
250
|
`src/vendor/pdfjs-fonts.mjs` also includes `src/core/crypto.js`,
|