@poe-platform/safe-bash 0.1.838 → 0.1.840

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.
Files changed (61) hide show
  1. package/dist/mp4-ast/types.d.ts +4 -2
  2. package/dist/pdf-ast/cos/security.d.ts +10 -0
  3. package/dist/pdf-ast/edit/retained-attachment-edits.d.ts +4 -0
  4. package/dist/pdf-ast/edit/retained-graph.d.ts +1 -1
  5. package/dist/pdf-ast/image.js +1 -1
  6. package/dist/pdf-ast/index.d.ts +2 -1
  7. package/dist/pdf-ast/index.js +7 -1
  8. package/dist/pdf-ast/vendor/pdfjs-fonts.d.mts +8 -0
  9. package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +28 -0
  10. package/dist/safe-bash/command-chunks/{chunk-SG2KOOD4.js → chunk-3SAYZFMD.js} +2 -2
  11. package/dist/safe-bash/command-chunks/{chunk-FH5VMAPS.js → chunk-45ZH6CNF.js} +20 -4
  12. package/dist/safe-bash/command-chunks/{chunk-T6OXG7QQ.js → chunk-AAOPVEPF.js} +66 -1
  13. package/dist/safe-bash/command-chunks/{chunk-46GA576V.js → chunk-CPKVUB7S.js} +2 -2
  14. package/dist/safe-bash/command-chunks/{chunk-MBXNG6C3.js → chunk-DLLN3C3Q.js} +1 -1
  15. package/dist/safe-bash/command-chunks/{chunk-ZSQCROFE.js → chunk-DM5T5D2K.js} +5 -1
  16. package/dist/safe-bash/command-chunks/{chunk-3EAZRKI4.js → chunk-G7HQYFIU.js} +10 -1
  17. package/dist/safe-bash/command-chunks/{chunk-GYKQ3IOV.js → chunk-LMYQMJYY.js} +94 -18
  18. package/dist/safe-bash/command-chunks/{chunk-DX7KU6YU.js → chunk-N52AHO6S.js} +1 -1
  19. package/dist/safe-bash/command-chunks/{chunk-4BSD2RGK.js → chunk-QPKL5GWH.js} +102 -42
  20. package/dist/safe-bash/command-chunks/{chunk-Z2T7E4ID.js → chunk-R7QLP5RH.js} +1212 -1119
  21. package/dist/safe-bash/command-chunks/{chunk-RSFKQE2U.js → chunk-T5WFJ44Z.js} +1 -1
  22. package/dist/safe-bash/command-chunks/{chunk-77ROD2TR.js → chunk-X3WNWRVT.js} +11 -5
  23. package/dist/safe-bash/command-chunks/{chunk-TCXM7BSZ.js → chunk-YFMNXPLP.js} +4 -4
  24. package/dist/safe-bash/command-chunks/{chunk-DQVOBGI2.js → chunk-YVFQ5I36.js} +7335 -7162
  25. package/dist/safe-bash-command-exiftool/index.js +25 -1
  26. package/dist/safe-bash-command-ffmpeg/index.js +174 -41
  27. package/dist/safe-bash-command-ffprobe/index.js +2 -2
  28. package/dist/safe-bash-command-ffprobe/media.js +2 -2
  29. package/dist/safe-bash-command-imagemagick/index.js +504 -111
  30. package/dist/safe-bash-command-mdq/index.js +2 -0
  31. package/dist/safe-bash-command-pandoc/citeproc-filters.js +7 -7
  32. package/dist/safe-bash-command-pandoc/command.js +8 -8
  33. package/dist/safe-bash-command-pandoc/index.js +51 -51
  34. package/dist/safe-bash-command-qpdf/index.js +1037 -654
  35. package/dist/safe-bash-command-qpdf/page-range.d.ts +2 -0
  36. package/dist/safe-bash-command-soffice/index.js +28 -8
  37. package/dist/safe-bash-command-sqlite3/btree.d.ts +2 -1
  38. package/dist/safe-bash-command-sqlite3/engine.d.ts +15 -1
  39. package/dist/safe-bash-command-sqlite3/index.js +294 -68
  40. package/dist/safe-bash-command-tar/create.js +2 -2
  41. package/dist/safe-bash-command-tar/extract.js +2 -2
  42. package/dist/safe-bash-command-tar/format.js +1 -1
  43. package/dist/safe-bash-command-tar/index.js +4 -4
  44. package/dist/safe-bash-command-tar/modes.js +4 -4
  45. package/dist/safe-bash-command-unzip/index.js +1 -1
  46. package/dist/safe-bash-command-unzip/unzip.js +1 -1
  47. package/dist/safe-bash-markdown-engine/commonmark-blocks.d.ts +17 -1
  48. package/dist/safe-bash-markdown-engine/commonmark-blocks.js +3 -3
  49. package/dist/safe-bash-markdown-engine/commonmark-inlines.d.ts +1 -1
  50. package/dist/safe-bash-markdown-engine/commonmark-inlines.js +3 -3
  51. package/dist/safe-bash-markdown-engine/commonmark-syntax.d.ts +5 -0
  52. package/dist/safe-bash-markdown-engine/commonmark-syntax.js +5 -1
  53. package/dist/safe-bash-markdown-engine/gfm-syntax.js +2 -2
  54. package/dist/safe-bash-markdown-engine/index.js +4 -4
  55. package/dist/safe-bash-zip-engine/index.js +1 -1
  56. package/dist/safe-bash-zip-engine/zip/repair.js +1 -1
  57. package/dist/safe-bash-zip-engine/zip/sfx.js +1 -1
  58. package/dist/safe-bash-zip-engine/zip-format.d.ts +2 -0
  59. package/dist/safe-bash-zip-engine/zip-format.js +1 -1
  60. package/package.json +2 -2
  61. package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +2 -0
@@ -409,6 +409,8 @@ found multiple definitions for link/image/footnote: ${b.label}
409
409
  n = node("table", { rows, alignments: b.alignments.map((a) => a === "AlignDefault" ? "none" : a.slice(5).toLowerCase()) });
410
410
  break;
411
411
  }
412
+ default:
413
+ throw new Error(`Unexpected CommonMark block ${b.kind}`);
412
414
  }
413
415
  (sections.at(-1)?.children ?? result).push(n);
414
416
  }
@@ -1,16 +1,16 @@
1
1
  import {
2
- Ce,
3
- We,
4
- yr
5
- } from "../safe-bash/command-chunks/chunk-Z2T7E4ID.js";
2
+ Xe,
3
+ ge,
4
+ jr
5
+ } from "../safe-bash/command-chunks/chunk-R7QLP5RH.js";
6
6
  import "../safe-bash/command-chunks/chunk-MO4CWGBR.js";
7
7
  import "../safe-bash/command-chunks/chunk-5NKZJEUI.js";
8
8
  import "../safe-bash/command-chunks/chunk-QIFS4QHZ.js";
9
9
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
10
10
  export {
11
- yr as createCiteprocFilterCapability,
12
- Ce as upgradeBracketedCitationsInBlocks,
13
- We as upgradeBracketedCitationsInInlines
11
+ jr as createCiteprocFilterCapability,
12
+ ge as upgradeBracketedCitationsInBlocks,
13
+ Xe as upgradeBracketedCitationsInInlines
14
14
  };
15
15
  /*!
16
16
  MIT License
@@ -1,13 +1,13 @@
1
1
  import {
2
- lO,
3
- oO,
4
- op
5
- } from "../safe-bash/command-chunks/chunk-DQVOBGI2.js";
2
+ fO,
3
+ lp,
4
+ uO
5
+ } from "../safe-bash/command-chunks/chunk-YVFQ5I36.js";
6
6
  import "../safe-bash/command-chunks/chunk-7QRIAJEQ.js";
7
7
  import "../safe-bash/command-chunks/chunk-VJQ5OWS5.js";
8
8
  import "../safe-bash/command-chunks/chunk-IOEUZ4EA.js";
9
9
  import "../safe-bash/command-chunks/chunk-E6SK3OU2.js";
10
- import "../safe-bash/command-chunks/chunk-Z2T7E4ID.js";
10
+ import "../safe-bash/command-chunks/chunk-R7QLP5RH.js";
11
11
  import "../safe-bash/command-chunks/chunk-MO4CWGBR.js";
12
12
  import "../safe-bash/command-chunks/chunk-IC5XC4TO.js";
13
13
  import "../safe-bash/command-chunks/chunk-NUGQQDGE.js";
@@ -15,9 +15,9 @@ import "../safe-bash/command-chunks/chunk-5NKZJEUI.js";
15
15
  import "../safe-bash/command-chunks/chunk-QIFS4QHZ.js";
16
16
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
17
17
  export {
18
- op as createPandocCommand,
19
- oO as createPandocCommands,
20
- lO as pandocCommands
18
+ lp as createPandocCommand,
19
+ fO as createPandocCommands,
20
+ uO as pandocCommands
21
21
  };
22
22
  /*!
23
23
  MIT License
@@ -1,37 +1,37 @@
1
1
  import {
2
- $l,
3
- Ar,
4
- BI,
5
- Bh,
6
- CN,
2
+ $u,
3
+ Cr,
4
+ Dl,
7
5
  En,
8
- Fe,
9
- IN,
10
- Ir,
11
- Kf,
12
- Ll,
13
- Lu,
14
- PN,
15
- XT,
6
+ Fl,
7
+ LI,
8
+ LN,
9
+ NN,
10
+ Nh,
11
+ ON,
12
+ Re,
13
+ Rr,
14
+ ZT,
15
+ Zf,
16
16
  as,
17
17
  ep,
18
- hc,
18
+ fO,
19
19
  ip,
20
- lO,
21
- nA,
22
- oO,
23
- op,
24
- pc,
25
- tp,
26
- un
27
- } from "../safe-bash/command-chunks/chunk-DQVOBGI2.js";
20
+ lp,
21
+ mc,
22
+ np,
23
+ rA,
24
+ uO,
25
+ un,
26
+ wc
27
+ } from "../safe-bash/command-chunks/chunk-YVFQ5I36.js";
28
28
  import "../safe-bash/command-chunks/chunk-7QRIAJEQ.js";
29
29
  import "../safe-bash/command-chunks/chunk-VJQ5OWS5.js";
30
30
  import "../safe-bash/command-chunks/chunk-IOEUZ4EA.js";
31
31
  import "../safe-bash/command-chunks/chunk-E6SK3OU2.js";
32
32
  import {
33
- yr
34
- } from "../safe-bash/command-chunks/chunk-Z2T7E4ID.js";
33
+ jr
34
+ } from "../safe-bash/command-chunks/chunk-R7QLP5RH.js";
35
35
  import "../safe-bash/command-chunks/chunk-MO4CWGBR.js";
36
36
  import {
37
37
  _r
@@ -53,7 +53,7 @@ function K(u = {}) {
53
53
  e2.signal.throwIfAborted();
54
54
  let a = new TextEncoder(), f, C;
55
55
  try {
56
- let o = $l(e2.args, i);
56
+ let o = Dl(e2.args, i);
57
57
  if (o !== void 0) f = a.encode(o);
58
58
  else {
59
59
  let s = e2.fs ? { ...e2.cwd === void 0 ? {} : { cwd: e2.cwd }, stdin: e2.stdin, ...e2.createOutput ? { createOutput: e2.createOutput.bind(e2) } : {}, ...e2.fs.readStream ? { readStream: async function* (t2, r, n) {
@@ -64,7 +64,7 @@ function K(u = {}) {
64
64
  if (typeof m != "object" || m === null || !("code" in m) || m.code !== "ENOTSUP" && m.code !== "EOPNOTSUPP") throw m;
65
65
  }
66
66
  yield await s.readFile(t2, r, n);
67
- } } : {}, readFile: (t2, r, n) => e2.fs.readFile(O(e2.cwd ?? "/", t2), { signal: r, ...n === void 0 || n === 1 / 0 ? {} : { maxBytes: n } }), writeFile: (t2, r, n) => e2.fs.writeFile(O(e2.cwd ?? "/", t2), r, { signal: n }) } : e2, { options: S, operands: R, destination: d, limits: P } = await ip(e2.args, s, e2.signal, i), A = (R ?? [{ chunks: e2.stdin }]).map((t2) => ({ ...t2, ...t2.base === void 0 && e2.cwd !== void 0 ? { base: e2.cwd } : {} })), F = { ...i, limits: P, signal: e2.signal, ...e2.fs === void 0 ? {} : { resourceFiles: e2.fs, resources: { resolve: async (t2, r, n) => e2.fs.readFile(`${r ?? e2.cwd ?? "/"}/${t2}`, { ...n === void 0 ? {} : { signal: n } }) } }, ...e2.cwd === void 0 ? {} : { resourceCwd: e2.cwd } }, p, v = d !== void 0 && s.createOutput ? { async write(t2, r) {
67
+ } } : {}, readFile: (t2, r, n) => e2.fs.readFile(O(e2.cwd ?? "/", t2), { signal: r, ...n === void 0 || n === 1 / 0 ? {} : { maxBytes: n } }), writeFile: (t2, r, n) => e2.fs.writeFile(O(e2.cwd ?? "/", t2), r, { signal: n }) } : e2, { options: S, operands: R, destination: d, limits: P } = await np(e2.args, s, e2.signal, i), A = (R ?? [{ chunks: e2.stdin }]).map((t2) => ({ ...t2, ...t2.base === void 0 && e2.cwd !== void 0 ? { base: e2.cwd } : {} })), F = { ...i, limits: P, signal: e2.signal, ...e2.fs === void 0 ? {} : { resourceFiles: e2.fs, resources: { resolve: async (t2, r, n) => e2.fs.readFile(`${r ?? e2.cwd ?? "/"}/${t2}`, { ...n === void 0 ? {} : { signal: n } }) } }, ...e2.cwd === void 0 ? {} : { resourceCwd: e2.cwd } }, p, v = d !== void 0 && s.createOutput ? { async write(t2, r) {
68
68
  p ??= s.createOutput(d, r ?? e2.signal), (r ?? e2.signal).throwIfAborted(), await p.write(t2, r);
69
69
  }, async close(t2) {
70
70
  p ??= s.createOutput(d, t2 ?? e2.signal), (t2 ?? e2.signal).throwIfAborted(), await p.close(t2);
@@ -78,7 +78,7 @@ function K(u = {}) {
78
78
  }
79
79
  }, async close() {
80
80
  }, async abort() {
81
- } }, c = d === void 0 || s.createOutput ? await tp(A, S, { ...F, output: v }) : await hc(A, S, { ...F, output: { publish: async (t2, r) => s.writeFile(d, t2, r) } });
81
+ } }, c = d === void 0 || s.createOutput ? await ep(A, S, { ...F, output: v }) : await mc(A, S, { ...F, output: { publish: async (t2, r) => s.writeFile(d, t2, r) } });
82
82
  for (let t2 of c.diagnostics) await e2.stderr.write(a.encode(`${t2.code}: ${t2.location ? `${t2.location}: ` : ""}${t2.message}
83
83
  `)), e2.signal.throwIfAborted();
84
84
  if (c.kind === "output") return { exitCode: 0 };
@@ -99,7 +99,7 @@ function Z(u = {}) {
99
99
  i.signal.throwIfAborted();
100
100
  let e2;
101
101
  try {
102
- e2 = Ar(i.args, u);
102
+ e2 = Rr(i.args, u);
103
103
  } catch (a) {
104
104
  if (!(a instanceof t)) throw a;
105
105
  return await i.stderr.write(new TextEncoder().encode(`${a.code}: ${a.message}
@@ -114,33 +114,33 @@ export {
114
114
  En as ExecutionContext,
115
115
  t as PandocError,
116
116
  export_assertNever as assertNever,
117
- hc as convert,
118
- CN as convertSync,
119
- tp as convertToOutput,
120
- Ll as coreFormats,
121
- yr as createCiteprocFilterCapability,
122
- BI as createExecutionContext,
123
- pc as createFileOutput,
117
+ mc as convert,
118
+ LN as convertSync,
119
+ ep as convertToOutput,
120
+ Fl as coreFormats,
121
+ jr as createCiteprocFilterCapability,
122
+ LI as createExecutionContext,
123
+ wc as createFileOutput,
124
124
  Z as createFormatInspectionCommand,
125
- Fe as createFormatRegistry,
126
- Bh as createJsonFilterCapability,
125
+ Re as createFormatRegistry,
126
+ Nh as createJsonFilterCapability,
127
127
  _r as createLuaFilterCapability,
128
- op as createPandocCommand,
129
- oO as createPandocCommands,
128
+ lp as createPandocCommand,
129
+ fO as createPandocCommands,
130
130
  K as createStandalonePandocCommand,
131
131
  as as defaultLimits,
132
- ep as evalSyncPandoc,
133
- XT as formatCapabilities,
134
- $l as inspectCommand,
135
- Ar as inspectFormats,
136
- nA as normalizeDocument,
137
- Lu as normalizeDocumentCooperatively,
138
- lO as pandocCommands,
139
- Ir as parseConversionArgs,
140
- Kf as pdfReader,
141
- PN as readDocument,
142
- ip as resolveConversionArgs,
143
- IN as writeDocument
132
+ ip as evalSyncPandoc,
133
+ ZT as formatCapabilities,
134
+ Dl as inspectCommand,
135
+ Rr as inspectFormats,
136
+ rA as normalizeDocument,
137
+ $u as normalizeDocumentCooperatively,
138
+ uO as pandocCommands,
139
+ Cr as parseConversionArgs,
140
+ Zf as pdfReader,
141
+ NN as readDocument,
142
+ np as resolveConversionArgs,
143
+ ON as writeDocument
144
144
  };
145
145
  /*!
146
146
  MIT License