@poe-platform/safe-bash 0.1.809 → 0.1.810
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/audio-ast/index.d.ts +1 -1
- package/dist/audio-ast/index.js +6 -0
- package/dist/audio-ast/wav-source.d.ts +7 -1
- package/dist/image-ast/index.js +1 -1
- package/dist/pdf-ast/cos/mutable-object-store.d.ts +3 -0
- package/dist/pdf-ast/cos/qpdf-json-document.d.ts +42 -0
- package/dist/pdf-ast/cos/qpdf-json-values.d.ts +7 -0
- package/dist/pdf-ast/index.d.ts +1 -0
- package/dist/pdf-ast/index.js +508 -37
- package/dist/pdf-ast/retained-document.d.ts +3 -1
- package/dist/safe-bash/chunks/{chunk-RQCK77SC.js → chunk-65TFMAZU.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-SOFBGDXG.js → chunk-HHSOUC3Z.js} +32 -0
- package/dist/safe-bash/chunks/{chunk-WAZEELYB.js → chunk-ZA5FQ34E.js} +10 -5
- package/dist/safe-bash/command-chunks/biff-ORSHM4YX-QYPGRDAZ.js +4937 -0
- package/dist/safe-bash/command-chunks/{chunk-62ZAHKFS.js → chunk-2VCKUNDZ.js} +130 -14
- package/dist/safe-bash/command-chunks/{chunk-GLVD3JJG.js → chunk-BYZUOF6X.js} +2858 -2816
- package/dist/safe-bash/command-chunks/{chunk-6OKH4X67.js → chunk-CAXJ4RLF.js} +264 -1
- package/dist/safe-bash/command-chunks/{chunk-YJJBGN7U.js → chunk-CHR2OD2U.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-D7XBUF76.js → chunk-D2ASPM7R.js} +109 -23
- package/dist/safe-bash/command-chunks/chunk-D5AYP2UM.js +816 -0
- package/dist/safe-bash/command-chunks/{chunk-WFDG3N5R.js → chunk-ECDEPKKW.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OQCJGUI6.js → chunk-HARUYHH7.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-NVBUC644.js → chunk-HKGNBH7Z.js} +2 -2
- package/dist/safe-bash/command-chunks/chunk-MGBHGZEX.js +12 -0
- package/dist/safe-bash/command-chunks/{chunk-4557HE3J.js → chunk-PMWW7KSB.js} +161 -42
- package/dist/safe-bash/command-chunks/{chunk-JW3KIZU6.js → chunk-RUXY7GN5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-KELMIFVV.js → chunk-TI52LKLL.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-JJQ72P3V.js → chunk-VCML4T5D.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-5HGEXQVD.js → chunk-WC2OCF4H.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-WH3TIOTS.js +326 -0
- package/dist/safe-bash/command-chunks/{chunk-45FI2IPY.js → chunk-WQ6ABTJU.js} +3 -6
- package/dist/safe-bash/command-chunks/{chunk-NB7JO7FE.js → chunk-YTFWPJ3F.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-GKYCV6BU.js → chunk-ZEPDT6I5.js} +482 -168
- package/dist/safe-bash/command-chunks/{command-engine-P5DFM4OU.js → command-engine-BEWABZ75.js} +10 -3
- package/dist/safe-bash/command-chunks/{engine-RU4OFLPO-CPLFYD67.js → engine-MEPOXIXT-WZMRHACG.js} +1 -1
- package/dist/safe-bash/command-chunks/pdf-LOZAXXS6-ERI57IAV.js +557 -0
- package/dist/safe-bash/commands/audio/index.browser.js +2 -14
- package/dist/safe-bash/commands/diff-patch/index.js +0 -2
- package/dist/safe-bash/commands/ffprobe/index.browser.js +2 -5
- package/dist/safe-bash/commands/pandoc/index.browser.js +3 -1
- package/dist/safe-bash/commands/text.js +10 -1
- package/dist/safe-bash/core.d.ts +2 -2
- package/dist/safe-bash/core.js +2 -2
- package/dist/safe-bash/full-core.browser.js +18 -22
- package/dist/safe-bash/lazy-optional.d.ts +9 -0
- package/dist/safe-bash/lazy-optional.js +24 -0
- package/dist/safe-bash/plugins/index.browser.js +5 -3
- package/dist/safe-bash/registry-entry.browser.js +1 -1
- package/dist/safe-bash-command-apply-patch/apply.js +2 -2
- package/dist/safe-bash-command-apply-patch/index.js +2 -2
- package/dist/safe-bash-command-apply-patch/parser.d.ts +20 -1
- package/dist/safe-bash-command-apply-patch/parser.js +1 -1
- package/dist/safe-bash-command-ffprobe/index.js +2 -1
- package/dist/safe-bash-command-ffprobe/media.js +2 -1
- package/dist/safe-bash-command-ffprobe/options.d.ts +15 -0
- package/dist/safe-bash-command-ffprobe/options.js +7 -0
- package/dist/safe-bash-command-media/index.js +2 -2
- package/dist/safe-bash-command-media/plugin.js +1 -1
- package/dist/safe-bash-command-media/remote.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +6 -6
- package/dist/safe-bash-command-pandoc/index.js +31 -31
- package/dist/safe-bash-command-patch/index.js +2 -2
- package/dist/safe-bash-command-patch/patch-publication.d.ts +2 -2
- package/dist/safe-bash-command-patch/patch-publication.js +1 -1
- package/dist/safe-bash-command-patch/patch.js +2 -2
- package/dist/safe-bash-command-pptx/engine.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +2 -2
- package/dist/safe-bash-command-xmllint/index.js +137 -30
- package/dist/safe-bash-compression-engine/bounded-codec.js +2 -2
- package/dist/safe-bash-compression-engine/codec-loader.js +1 -1
- package/dist/safe-bash-compression-engine/files.js +5 -5
- package/dist/safe-bash-compression-engine/index.js +4 -4
- package/dist/safe-bash-compression-engine/operand.js +5 -5
- package/dist/safe-bash-compression-engine/stream.js +4 -4
- package/dist/safe-bash-compression-engine/zstd-decode.js +3 -3
- package/dist/safe-bash-media-engine/imagemagick.d.ts +2 -0
- package/dist/safe-bash-media-engine/index.js +162 -72
- package/dist/safe-bash-network-engine/body.d.ts +1 -0
- package/dist/safe-bash-network-engine/body.js +1 -1
- package/dist/safe-bash-network-engine/transfer.js +11 -3
- package/dist/safe-bash-presentation-engine/command-placeholder.js +4 -3
- package/dist/safe-bash-presentation-engine/index.d.ts +1 -1
- package/dist/safe-bash-presentation-engine/index.js +9 -4
- package/dist/safe-bash-presentation-engine/presentation-model.js +3 -2
- package/dist/safe-bash-presentation-engine/retained-text.js +3 -3
- package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +26 -0
- package/dist/safe-bash-presentation-engine/xml-parts.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/xml-parts.js +7 -1
- package/dist/safe-bash-xml-engine/document.js +1 -1
- package/dist/safe-bash-xml-engine/index.js +1 -1
- package/dist/spreadsheet-engine/rendering/print/tab-layout.d.ts +11 -0
- package/dist/spreadsheet-engine/rendering/print/tab-layout.js +15 -0
- package/dist/spreadsheet-engine/rendering/print/text-lines.d.ts +2 -2
- package/dist/spreadsheet-engine/rendering/print/text-lines.js +3 -3
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +4 -0
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +137 -56
- package/dist/spreadsheet-format-xls/biff-encryption.d.ts +1 -1
- package/dist/spreadsheet-format-xls/biff-encryption.js +8 -3
- package/dist/spreadsheet-format-xls/biff-property-bytes.d.ts +1 -1
- package/dist/spreadsheet-format-xls/biff-property-bytes.js +2 -2
- package/dist/spreadsheet-format-xls/biff.js +11 -3
- package/package.json +3 -2
- package/dist/safe-bash/chunks/chunk-I2A5ZCPD.js +0 -17
- package/dist/safe-bash/chunks/chunk-PQTT2EZP.js +0 -8
- package/dist/safe-bash/command-chunks/biff-DS263V2K-2GP4GZT7.js +0 -4868
- package/dist/safe-bash/command-chunks/chunk-6ZFYWT3U.js +0 -581
- package/dist/safe-bash/command-chunks/chunk-S244SWDH.js +0 -153
- package/dist/safe-bash/command-chunks/pdf-T7AWYZGQ-KNAYJ7YF.js +0 -552
- /package/dist/safe-bash/command-chunks/{chunk-EMMSXKEJ.js → chunk-4Q4R3VZU.js} +0 -0
|
@@ -12,7 +12,7 @@ import { type PdfRetainedJavaScript } from "./extract/retained-javascript.js";
|
|
|
12
12
|
import { type PdfRetainedImage, type PdfImageSelection } from "./extract/retained-images.js";
|
|
13
13
|
import { type PdfRetainedFont, type PdfFontSelection } from "./extract/retained-fonts.js";
|
|
14
14
|
import { type PdfRetainedAttachment } from "./extract/retained-attachments.js";
|
|
15
|
-
import { type ByteSpan, type PdfCosDict, type PdfCosNode, type PdfCosRef, type PdfRect } from "./ast.js";
|
|
15
|
+
import { type ByteSpan, type PdfCosDict, type PdfCosNode, type PdfCosRef, type PdfRect, type PdfStoredItems } from "./ast.js";
|
|
16
16
|
import { type OpenPdfObjectReaderOptions, type PdfOpenedObjectReader } from "./cos/object-reader.js";
|
|
17
17
|
import type { PdfIndexStorage } from "./cos/object-index.js";
|
|
18
18
|
import type { PdfFileSource } from "./source.js";
|
|
@@ -64,6 +64,8 @@ export declare class PdfRetainedDocument {
|
|
|
64
64
|
private assertOpen;
|
|
65
65
|
/** Resolve a bounded reference chain, retaining the final stream's identity. */
|
|
66
66
|
lookup(node: PdfCosNode | undefined, arrays?: ValueArrayStorage, arrayPathPrefix?: readonly string[]): Promise<PdfRetainedValue | undefined>;
|
|
67
|
+
/** Read one caller-backed array record with document cancellation and ownership. */
|
|
68
|
+
readArrayItem(items: PdfStoredItems, position: number): Promise<import("./ast.js").PdfCosArray>;
|
|
67
69
|
info(): Promise<Readonly<Record<string, string>>>;
|
|
68
70
|
/** Resolve the one-based numbering used by annotation destinations. */
|
|
69
71
|
annotationPageNumber(reference: PdfCosRef): Promise<number | undefined>;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
composeAgentCommands,
|
|
6
6
|
createAgentCommandPlugin,
|
|
7
7
|
createRegexExecutors
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZA5FQ34E.js";
|
|
9
9
|
import {
|
|
10
10
|
createOpCommands
|
|
11
11
|
} from "./chunk-UKMP6ZT5.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createLazyCommands,
|
|
16
16
|
createOptionalCommands,
|
|
17
17
|
lazyCommandPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HHSOUC3Z.js";
|
|
19
19
|
import {
|
|
20
20
|
CommandRegistry
|
|
21
21
|
} from "./chunk-JQ3O3I4G.js";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createSoxCommand
|
|
3
|
+
} from "./chunk-4KYUJ3GC.js";
|
|
4
|
+
import {
|
|
5
|
+
createSoxiCommand
|
|
6
|
+
} from "./chunk-6E4SGHLU.js";
|
|
1
7
|
import {
|
|
2
8
|
CommandRegistry,
|
|
3
9
|
commandRuntimeIdentity,
|
|
@@ -97,6 +103,7 @@ var ghCommands = (options = {}) => lazyCommandPlugin("gh-commands", createGhComm
|
|
|
97
103
|
|
|
98
104
|
// packages/safe-bash/src/lazy-optional.ts
|
|
99
105
|
import { validatePandocOptions } from "../../safe-bash-command-pandoc/options.js";
|
|
106
|
+
import { resolveFfprobeLimits } from "../../safe-bash-command-ffprobe/options.js";
|
|
100
107
|
var loadffmpeg = /* @__PURE__ */ createLazyCommandLoader(() => import("./ffmpeg-5ST3W5IY.js"));
|
|
101
108
|
var ffmpegMetadata = [
|
|
102
109
|
{
|
|
@@ -137,6 +144,26 @@ var createFfmpegCommands = (...args) => {
|
|
|
137
144
|
);
|
|
138
145
|
};
|
|
139
146
|
var ffmpegCommands = (options = {}) => lazyCommandPlugin("ffmpeg-commands", createFfmpegCommands(options), options.replace ?? false);
|
|
147
|
+
var loadffprobe = /* @__PURE__ */ createLazyCommandLoader(() => import("../commands/ffprobe/index.browser.js"));
|
|
148
|
+
var createFfprobeCommands = (options = {}) => {
|
|
149
|
+
resolveFfprobeLimits(options.limits);
|
|
150
|
+
return createLazyCommands([ffmpegMetadata[1]], async () => {
|
|
151
|
+
const module = await loadffprobe();
|
|
152
|
+
return () => module.createFfprobeCommands(options);
|
|
153
|
+
}, options);
|
|
154
|
+
};
|
|
155
|
+
var ffprobeCommands = (options = {}) => lazyCommandPlugin("ffprobe-commands", createFfprobeCommands(options), options.replace ?? false);
|
|
156
|
+
var createAudioCommands = (options = {}) => [
|
|
157
|
+
...createFfprobeCommands(options.ffprobe),
|
|
158
|
+
createSoxCommand(options.sox),
|
|
159
|
+
createSoxiCommand(options.sox)
|
|
160
|
+
];
|
|
161
|
+
var createAudioCommand = (options = {}, name = "sox") => {
|
|
162
|
+
const command = createAudioCommands(options).find((entry) => entry.name === name);
|
|
163
|
+
if (!command) throw new TypeError(`Audio command not configured: ${name}`);
|
|
164
|
+
return command;
|
|
165
|
+
};
|
|
166
|
+
var audioCommands = (options = {}) => lazyCommandPlugin("audio-commands", createAudioCommands(options), options.replace ?? false);
|
|
140
167
|
var loadgit = /* @__PURE__ */ createLazyCommandLoader(() => import("./git-7GILP3SU.js"));
|
|
141
168
|
var gitMetadata = [
|
|
142
169
|
{
|
|
@@ -849,6 +876,11 @@ export {
|
|
|
849
876
|
createFfprobeCommand,
|
|
850
877
|
createFfmpegCommands,
|
|
851
878
|
ffmpegCommands,
|
|
879
|
+
createFfprobeCommands,
|
|
880
|
+
ffprobeCommands,
|
|
881
|
+
createAudioCommands,
|
|
882
|
+
createAudioCommand,
|
|
883
|
+
audioCommands,
|
|
852
884
|
gitCommands,
|
|
853
885
|
createGitCommands,
|
|
854
886
|
createGitCommand,
|
|
@@ -4059,13 +4059,11 @@ function byteCommands(options2 = {}) {
|
|
|
4059
4059
|
}
|
|
4060
4060
|
|
|
4061
4061
|
// packages/safe-bash/src/commands/diff-patch/index.ts
|
|
4062
|
-
import { evalSyncPatch } from "../../safe-bash-command-patch/index.js";
|
|
4063
4062
|
import { diffCommand } from "../../safe-bash-command-diff/index.js";
|
|
4064
4063
|
import { patchCommand } from "../../safe-bash-command-patch/index.js";
|
|
4065
4064
|
import { createDiffCommand, createDiffCommands, diffCommand as diffCommand2, diffCommands, evalSyncDiff } from "../../safe-bash-command-diff/index.js";
|
|
4066
|
-
import { createPatchCommand, createPatchCommands, evalSyncPatch
|
|
4065
|
+
import { createPatchCommand, createPatchCommands, evalSyncPatch, patchCommand as patchCommand2, patchCommands } from "../../safe-bash-command-patch/index.js";
|
|
4067
4066
|
import { evalSyncDiff as evalSyncDiff2 } from "../../safe-bash-command-diff/index.js";
|
|
4068
|
-
syncCommandEvaluators.evalSyncPatch = evalSyncPatch;
|
|
4069
4067
|
function createDiffPatchCommands(options2 = {}) {
|
|
4070
4068
|
return registerDefaultExecutors([diffCommand(options2), patchCommand(options2)], options2);
|
|
4071
4069
|
}
|
|
@@ -9364,7 +9362,14 @@ async function executeUniqGeneral(context, preReadSource) {
|
|
|
9364
9362
|
while (flushChunks.length) yield flushChunks.shift();
|
|
9365
9363
|
if (outUsed > 0) yield outBuf.subarray(0, outUsed);
|
|
9366
9364
|
})();
|
|
9367
|
-
|
|
9365
|
+
try {
|
|
9366
|
+
await emitRecords(context, records, parsed.operands[1]);
|
|
9367
|
+
} catch (error) {
|
|
9368
|
+
context.signal.throwIfAborted();
|
|
9369
|
+
const consumer = parsed.operands[1] === void 0 ? context.stdout.ownedOutput?.consumerClosed : void 0;
|
|
9370
|
+
if (consumer?.aborted && consumer.reason === error && error instanceof FsError && error.code === "EPIPE") return { exitCode: 141 };
|
|
9371
|
+
throw error;
|
|
9372
|
+
}
|
|
9368
9373
|
return { exitCode: 0 };
|
|
9369
9374
|
}
|
|
9370
9375
|
function textCommands() {
|
|
@@ -10136,7 +10141,7 @@ export {
|
|
|
10136
10141
|
evalSyncDiff,
|
|
10137
10142
|
createPatchCommand,
|
|
10138
10143
|
createPatchCommands,
|
|
10139
|
-
|
|
10144
|
+
evalSyncPatch,
|
|
10140
10145
|
patchCommand2 as patchCommand,
|
|
10141
10146
|
patchCommands,
|
|
10142
10147
|
createWhichCommand,
|