@poe-platform/safe-bash 0.1.782 → 0.1.784

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 (116) hide show
  1. package/README.md +40 -0
  2. package/dist/office-package/zip-sync.d.ts +2 -0
  3. package/dist/office-package/zip-sync.js +111 -0
  4. package/dist/safe-bash/chunks/chunk-4FDQJUFW.js +3464 -0
  5. package/dist/safe-bash/chunks/csvkit-K55OYAQC.js +1564 -0
  6. package/dist/safe-bash/chunks/ffmpeg-BEFTQ6DZ.js +60 -0
  7. package/dist/safe-bash/chunks/gh-HQWOWLWE.js +41 -0
  8. package/dist/safe-bash/chunks/git-UFNPAOYZ.js +52 -0
  9. package/dist/safe-bash/chunks/imagemagick-53BMHH6D.js +134 -0
  10. package/dist/safe-bash/chunks/implementation-QUTAAYMT.js +105 -0
  11. package/dist/safe-bash/chunks/pdfimages-4OYI6FLG.js +73 -0
  12. package/dist/safe-bash/chunks/pdfinfo-I7U6TQPP.js +153 -0
  13. package/dist/safe-bash/chunks/pdftk-SUA6FMHI.js +79 -0
  14. package/dist/safe-bash/chunks/pdftoppm-4C5DGEWX.js +139 -0
  15. package/dist/safe-bash/chunks/pdftotext-Y4WI225Y.js +118 -0
  16. package/dist/safe-bash/chunks/qpdf-IORB4RV5.js +68 -0
  17. package/dist/safe-bash/chunks/sips-WHAMJFEU.js +77 -0
  18. package/dist/safe-bash/chunks/soffice-SYEK6WJS.js +89 -0
  19. package/dist/safe-bash/chunks/wkhtmltopdf-ZIICWJLF.js +85 -0
  20. package/dist/safe-bash/command-chunks/chunk-2LP3VMPA.js +58 -0
  21. package/dist/safe-bash/command-chunks/{chunk-CG4JSOK2.js → chunk-3HDIDEUJ.js} +1 -1
  22. package/dist/safe-bash/command-chunks/chunk-4DSJDVBM.js +2897 -0
  23. package/dist/safe-bash/command-chunks/{chunk-GBHSE6ZO.js → chunk-5GRLAARV.js} +1 -1
  24. package/dist/safe-bash/command-chunks/chunk-7OKDCM5U.js +112 -0
  25. package/dist/safe-bash/command-chunks/{chunk-FH3D75FC.js → chunk-ADCGH6A7.js} +1 -1
  26. package/dist/safe-bash/command-chunks/{chunk-MTKXVRXL.js → chunk-DREUDEQG.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-ADBFNLLK.js → chunk-FXYWQ6S4.js} +16 -14
  28. package/dist/safe-bash/command-chunks/{chunk-Y2KHC6TZ.js → chunk-IDKD76KR.js} +5 -3
  29. package/dist/safe-bash/command-chunks/{chunk-K6KBYLQC.js → chunk-JUDOV5MJ.js} +1 -1
  30. package/dist/safe-bash/command-chunks/{chunk-3ZK5F23O.js → chunk-L3MLMXL4.js} +1 -1
  31. package/dist/safe-bash/command-chunks/{chunk-E5TEVROY.js → chunk-PFBJR2PY.js} +4 -4
  32. package/dist/safe-bash/command-chunks/{chunk-YGYOVXTO.js → chunk-UUR2S7AD.js} +9 -5
  33. package/dist/safe-bash/command-chunks/chunk-VIVYKW7Q.js +101 -0
  34. package/dist/safe-bash/command-chunks/{chunk-I5GLTNVH.js → chunk-X4P42NYK.js} +2 -27
  35. package/dist/safe-bash/command-chunks/{chunk-XF6TXYLD.js → chunk-Z57TV6TC.js} +4 -54
  36. package/dist/safe-bash/command-chunks/{chunk-QDPRSPHQ.js → chunk-Z64BW7CG.js} +1 -1
  37. package/dist/safe-bash/command-chunks/{chunk-X3IVPNC3.js → chunk-Z7TYZG3A.js} +5 -3
  38. package/dist/safe-bash/command-chunks/{chunk-GZXLPWT5.js → chunk-ZF3ZVGQC.js} +259 -258
  39. package/dist/safe-bash/command-chunks/{pptx-ZL6L7KP2-QVZEYFUV.js → pptx-KY2OJWZW-76LBHCHD.js} +4 -3
  40. package/dist/safe-bash/commands/csvkit/index.d.ts +1 -8
  41. package/dist/safe-bash/commands/csvkit/index.js +5 -1639
  42. package/dist/safe-bash/commands/csvkit/sync.d.ts +9 -0
  43. package/dist/safe-bash/commands/csvkit/sync.js +1639 -0
  44. package/dist/safe-bash/commands/pandoc/implementation.d.ts +8 -0
  45. package/dist/safe-bash/commands/pandoc/implementation.js +92 -0
  46. package/dist/safe-bash/commands/pandoc/index.d.ts +2 -6
  47. package/dist/safe-bash/commands/pandoc/index.js +2 -90
  48. package/dist/safe-bash/core.browser.js +808 -6271
  49. package/dist/safe-bash/core.d.ts +17 -16
  50. package/dist/safe-bash/core.js +17 -16
  51. package/dist/safe-bash/lazy-gh.d.ts +10 -0
  52. package/dist/safe-bash/lazy-gh.js +30 -0
  53. package/dist/safe-bash/lazy-optional.d.ts +499 -0
  54. package/dist/safe-bash/lazy-optional.js +609 -0
  55. package/dist/safe-bash/plugins/composition.d.ts +1 -1
  56. package/dist/safe-bash/plugins/composition.js +1 -1
  57. package/dist/safe-bash/plugins/lazy-command.d.ts +9 -0
  58. package/dist/safe-bash/plugins/lazy-command.js +57 -0
  59. package/dist/safe-bash/shell/runtime.js +24 -25
  60. package/dist/safe-bash-command-csvkit/cli/lexical.d.ts +3 -0
  61. package/dist/safe-bash-command-csvkit/cli/parser.d.ts +1 -2
  62. package/dist/safe-bash-command-csvkit/codecs/python.js +3 -2
  63. package/dist/safe-bash-command-csvkit/codecs/utf8.js +2 -1
  64. package/dist/safe-bash-command-csvkit/index.js +453 -3270
  65. package/dist/safe-bash-command-csvkit/sync-support.d.ts +7 -0
  66. package/dist/safe-bash-command-csvkit/sync-support.js +31 -0
  67. package/dist/safe-bash-command-gh/index.js +25 -17
  68. package/dist/safe-bash-command-git/index.js +6 -10
  69. package/dist/safe-bash-command-imagemagick/index.js +2 -2
  70. package/dist/safe-bash-command-pandoc/citeproc-filters.js +4 -2
  71. package/dist/safe-bash-command-pandoc/command.js +8 -6
  72. package/dist/safe-bash-command-pandoc/index.js +8 -6
  73. package/dist/safe-bash-command-pandoc/lua-filters.js +3 -2
  74. package/dist/safe-bash-command-pandoc/options.d.ts +5 -0
  75. package/dist/safe-bash-command-pandoc/options.js +93 -0
  76. package/dist/safe-bash-command-sips/index.js +2 -2
  77. package/dist/safe-bash-command-soffice/index.d.ts +1 -2
  78. package/dist/safe-bash-command-soffice/index.js +22 -18
  79. package/dist/safe-bash-command-ssconvert/commands.js +2 -2
  80. package/dist/safe-bash-command-ssconvert/core.js +2 -2
  81. package/dist/safe-bash-command-ssconvert/formats/csv.js +2 -2
  82. package/dist/safe-bash-command-ssconvert/formats/xls.js +3 -3
  83. package/dist/safe-bash-command-ssconvert/formats/xlsx.js +3 -3
  84. package/dist/safe-bash-command-timeout/index.js +3 -3
  85. package/dist/safe-bash-command-yq/index.js +5 -5
  86. package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
  87. package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
  88. package/dist/safe-bash-compression-engine/files.js +7 -7
  89. package/dist/safe-bash-compression-engine/index.js +6 -6
  90. package/dist/safe-bash-compression-engine/operand.js +7 -7
  91. package/dist/safe-bash-compression-engine/stream.js +6 -6
  92. package/dist/safe-bash-compression-engine/zstd-decode.js +5 -5
  93. package/dist/safe-bash-contracts/diagnostics.js +3 -3
  94. package/dist/safe-bash-contracts/escaping.js +9 -9
  95. package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
  96. package/dist/safe-bash-contracts/filesystem-output.js +10 -10
  97. package/dist/safe-bash-contracts/index.js +40 -40
  98. package/dist/safe-bash-io-engine/commands/search/requirements.js +4 -4
  99. package/dist/safe-bash-io-engine/commands/text-programs/shared.js +4 -4
  100. package/dist/safe-bash-io-engine/internal.d.ts +9 -0
  101. package/dist/safe-bash-io-engine/internal.js +3 -3
  102. package/dist/safe-bash-query-engine/index.js +6 -6
  103. package/dist/safe-bash-query-engine/interpreter.js +5 -5
  104. package/dist/safe-bash-query-engine/query-core.js +6 -6
  105. package/dist/safe-bash-regex-engine/execution/bounded-provider.js +3 -3
  106. package/dist/safe-bash-regex-engine/index.js +2 -2
  107. package/dist/safe-bash-regex-engine/text/regex.js +2 -2
  108. package/dist/safe-bash-xml-engine/index.js +3 -3
  109. package/package.json +4 -4
  110. package/dist/safe-bash/command-chunks/{chunk-DC52GWRK.js → chunk-BUKYQBXO.js} +13 -13
  111. package/dist/safe-bash/command-chunks/{chunk-QJ3ONEBI.js → chunk-DEH3CMGL.js} +3 -3
  112. package/dist/safe-bash/command-chunks/{chunk-Y64PA6IA.js → chunk-KHZZ4V3L.js} +3 -3
  113. package/dist/safe-bash/command-chunks/{chunk-I7PKIGII.js → chunk-QIRUOY2W.js} +3 -3
  114. package/dist/safe-bash/command-chunks/{chunk-HQG2IBZL.js → chunk-TOSM3T3A.js} +6 -6
  115. package/dist/safe-bash/command-chunks/{chunk-F4IQCXZG.js → chunk-VBZMCL23.js} +4 -4
  116. package/dist/safe-bash/command-chunks/{chunk-J2NPH7DO.js → chunk-W2T7JWT3.js} +3 -3
@@ -0,0 +1,7 @@
1
+ export { defaultHeaders } from "./table/headers.js";
2
+ export { inferTable, type InferenceOptions, type TableValue } from "./table/index.js";
3
+ export { readCsv, writeCsvRow, pythonValueText, type CsvDialect } from "./csv.js";
4
+ export { sniff, POSSIBLE_DELIMITERS } from "./csv/sniffer.js";
5
+ export { Decimal } from "./types/decimal.js";
6
+ export { parseColumnIdentifiers, match as matchColumnIdentifier } from "./table/selectors.js";
7
+ //# sourceMappingURL=sync-support.d.ts.map
@@ -0,0 +1,31 @@
1
+ import {
2
+ Decimal,
3
+ POSSIBLE_DELIMITERS,
4
+ defaultHeaders,
5
+ inferTable,
6
+ match,
7
+ parseColumnIdentifiers,
8
+ pythonValueText,
9
+ readCsv,
10
+ sniff,
11
+ writeCsvRow
12
+ } from "../safe-bash/command-chunks/chunk-4DSJDVBM.js";
13
+ import "../safe-bash/command-chunks/chunk-2LP3VMPA.js";
14
+ import {
15
+ init_buffer
16
+ } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
17
+
18
+ // packages/safe-bash-command-csvkit/dist/sync-support.js
19
+ init_buffer();
20
+ export {
21
+ Decimal,
22
+ POSSIBLE_DELIMITERS,
23
+ defaultHeaders,
24
+ inferTable,
25
+ match as matchColumnIdentifier,
26
+ parseColumnIdentifiers,
27
+ pythonValueText,
28
+ readCsv,
29
+ sniff,
30
+ writeCsvRow
31
+ };
@@ -1216,8 +1216,7 @@ var GitHubBackend = class {
1216
1216
  defaultHost;
1217
1217
  now;
1218
1218
  #nextId = 1e3;
1219
- #httpRequests = 0;
1220
- #httpBytes = 0;
1219
+ #httpUsage = /* @__PURE__ */ new WeakMap();
1221
1220
  constructor(options = {}) {
1222
1221
  this.currentUser = options.defaultUser ?? "octocat";
1223
1222
  this.defaultHost = options.defaultHost ?? "github.com";
@@ -1269,16 +1268,24 @@ var GitHubBackend = class {
1269
1268
  return this.now().toISOString().replace(/\.\d{3}Z$/u, "Z");
1270
1269
  }
1271
1270
  resetUsage() {
1272
- this.#httpRequests = 0;
1273
- this.#httpBytes = 0;
1271
+ this.#httpUsage = /* @__PURE__ */ new WeakMap();
1272
+ }
1273
+ #usage(limits) {
1274
+ let usage = this.#httpUsage.get(limits);
1275
+ if (!usage) {
1276
+ usage = { requests: 0, bytes: 0 };
1277
+ this.#httpUsage.set(limits, usage);
1278
+ }
1279
+ return usage;
1274
1280
  }
1275
1281
  recordHttpCall(requestBytes, responseBytes, limits) {
1276
- this.#httpRequests += 1;
1277
- if (this.#httpRequests > limits.maxHttpRequests) {
1282
+ const usage = this.#usage(limits);
1283
+ usage.requests += 1;
1284
+ if (usage.requests > limits.maxHttpRequests) {
1278
1285
  throw new Error("gh HTTP request limit exceeded");
1279
1286
  }
1280
- this.#httpBytes += requestBytes + responseBytes;
1281
- if (this.#httpBytes > limits.maxHttpBytes) {
1287
+ usage.bytes += requestBytes + responseBytes;
1288
+ if (usage.bytes > limits.maxHttpBytes) {
1282
1289
  throw new Error("gh HTTP byte limit exceeded");
1283
1290
  }
1284
1291
  }
@@ -1649,18 +1656,19 @@ ${params.body ?? ""}
1649
1656
  return issue;
1650
1657
  }
1651
1658
  async dispatchHttp(request, customHttp, limits) {
1652
- if (this.#httpRequests >= limits.maxHttpRequests) {
1659
+ const usage = this.#usage(limits);
1660
+ if (usage.requests >= limits.maxHttpRequests) {
1653
1661
  throw new Error("gh HTTP request limit exceeded");
1654
1662
  }
1655
- if (this.#httpBytes + request.body.length > limits.maxHttpBytes) {
1663
+ if (usage.bytes + request.body.length > limits.maxHttpBytes) {
1656
1664
  throw new Error("gh HTTP byte limit exceeded");
1657
1665
  }
1658
1666
  if (customHttp) {
1659
- this.#httpRequests += 1;
1660
- this.#httpBytes += request.body.length;
1667
+ usage.requests += 1;
1668
+ usage.bytes += request.body.length;
1661
1669
  const response2 = await customHttp(request);
1662
- this.#httpBytes += response2.body.length;
1663
- if (this.#httpBytes > limits.maxHttpBytes) {
1670
+ usage.bytes += response2.body.length;
1671
+ if (usage.bytes > limits.maxHttpBytes) {
1664
1672
  throw new Error("gh HTTP byte limit exceeded");
1665
1673
  }
1666
1674
  return response2;
@@ -8246,7 +8254,7 @@ function settings(options = {}) {
8246
8254
  return limits;
8247
8255
  }
8248
8256
  function createGhCommand(options = {}) {
8249
- const limits = settings(options);
8257
+ const configuredLimits = settings(options);
8250
8258
  const backends = /* @__PURE__ */ new WeakMap();
8251
8259
  const openssl = createDefaultOpenSslProvider(options.openssl);
8252
8260
  const def = {
@@ -8265,7 +8273,7 @@ function createGhCommand(options = {}) {
8265
8273
  });
8266
8274
  backends.set(context.fs, backend);
8267
8275
  }
8268
- backend.resetUsage();
8276
+ const limits = { ...configuredLimits };
8269
8277
  const ssh = createDefaultSshProvider(options.ssh, backend.getActiveUser());
8270
8278
  const input = createGhInput(context, limits);
8271
8279
  context = { ...context, fs: input.fs };
@@ -8472,7 +8480,7 @@ complete -W "pr repo issue api auth release run workflow gist search label secre
8472
8480
  backend: options.backend,
8473
8481
  hasCustomHttp: Boolean(options.http),
8474
8482
  hasCustomBrowser: Boolean(options.openBrowser),
8475
- limits
8483
+ limits: configuredLimits
8476
8484
  });
8477
8485
  return def;
8478
8486
  }
@@ -21,14 +21,10 @@ function decode(hex) {
21
21
  return out;
22
22
  }
23
23
  var gitCommandMeta = /* @__PURE__ */ new WeakMap();
24
- var sharedDefaultExports;
25
- function getDefaultGitExports() {
26
- if (!sharedDefaultExports) {
27
- const mod = gitModule();
28
- const wasm = globalThis.WebAssembly;
29
- sharedDefaultExports = new wasm.Instance(mod).exports;
30
- }
31
- return sharedDefaultExports;
24
+ function createDefaultGitExports() {
25
+ const module = gitModule();
26
+ const wasm = globalThis.WebAssembly;
27
+ return new wasm.Instance(module).exports;
32
28
  }
33
29
  async function snapshot(fs, limits, signal) {
34
30
  const entries = [];
@@ -116,7 +112,7 @@ function createGitCommand(options = {}) {
116
112
  try {
117
113
  let stdin;
118
114
  const before = await snapshot(context.fs, limits, context.signal);
119
- const exports = options.wasmModule ? new globalThis.WebAssembly.Instance(options.wasmModule).exports : getDefaultGitExports();
115
+ const exports = options.wasmModule ? new globalThis.WebAssembly.Instance(options.wasmModule).exports : createDefaultGitExports();
120
116
  const responses = [];
121
117
  let httpBytes = 0;
122
118
  let result;
@@ -359,7 +355,7 @@ function evalSyncGit(stdinBytes, args, cwd, inspectNode, readFile, executeFn, wr
359
355
  if (cached !== void 0)
360
356
  return cached;
361
357
  try {
362
- const exports = getDefaultGitExports();
358
+ const exports = createDefaultGitExports();
363
359
  const input = encoder.encode(inputJson);
364
360
  const ptr = exports.git_alloc(input.length);
365
361
  let result;
@@ -28,8 +28,8 @@ import {
28
28
  thresholdImage,
29
29
  tintImage,
30
30
  trimImage
31
- } from "../safe-bash/command-chunks/chunk-GBHSE6ZO.js";
32
- import "../safe-bash/command-chunks/chunk-GZXLPWT5.js";
31
+ } from "../safe-bash/command-chunks/chunk-5GRLAARV.js";
32
+ import "../safe-bash/command-chunks/chunk-ZF3ZVGQC.js";
33
33
  import {
34
34
  init_buffer
35
35
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -1,7 +1,9 @@
1
1
  import {
2
2
  createCiteprocFilterCapability
3
- } from "../safe-bash/command-chunks/chunk-YGYOVXTO.js";
4
- import "../safe-bash/command-chunks/chunk-I5GLTNVH.js";
3
+ } from "../safe-bash/command-chunks/chunk-UUR2S7AD.js";
4
+ import "../safe-bash/command-chunks/chunk-7OKDCM5U.js";
5
+ import "../safe-bash/command-chunks/chunk-VIVYKW7Q.js";
6
+ import "../safe-bash/command-chunks/chunk-X4P42NYK.js";
5
7
  import {
6
8
  init_buffer
7
9
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -2,14 +2,16 @@ import {
2
2
  createPandocCommand,
3
3
  createPandocCommands,
4
4
  pandocCommands
5
- } from "../safe-bash/command-chunks/chunk-ADBFNLLK.js";
5
+ } from "../safe-bash/command-chunks/chunk-FXYWQ6S4.js";
6
6
  import "../safe-bash/command-chunks/chunk-MKQVQMXO.js";
7
7
  import "../safe-bash/command-chunks/chunk-RDV7UCYZ.js";
8
- import "../safe-bash/command-chunks/chunk-GBHSE6ZO.js";
9
- import "../safe-bash/command-chunks/chunk-GZXLPWT5.js";
10
- import "../safe-bash/command-chunks/chunk-Y2KHC6TZ.js";
11
- import "../safe-bash/command-chunks/chunk-YGYOVXTO.js";
12
- import "../safe-bash/command-chunks/chunk-I5GLTNVH.js";
8
+ import "../safe-bash/command-chunks/chunk-5GRLAARV.js";
9
+ import "../safe-bash/command-chunks/chunk-ZF3ZVGQC.js";
10
+ import "../safe-bash/command-chunks/chunk-IDKD76KR.js";
11
+ import "../safe-bash/command-chunks/chunk-UUR2S7AD.js";
12
+ import "../safe-bash/command-chunks/chunk-7OKDCM5U.js";
13
+ import "../safe-bash/command-chunks/chunk-VIVYKW7Q.js";
14
+ import "../safe-bash/command-chunks/chunk-X4P42NYK.js";
13
15
  import {
14
16
  init_buffer
15
17
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -21,21 +21,23 @@ import {
21
21
  readDocument,
22
22
  resolveConversionArgs,
23
23
  writeDocument
24
- } from "../safe-bash/command-chunks/chunk-ADBFNLLK.js";
24
+ } from "../safe-bash/command-chunks/chunk-FXYWQ6S4.js";
25
25
  import "../safe-bash/command-chunks/chunk-MKQVQMXO.js";
26
26
  import "../safe-bash/command-chunks/chunk-RDV7UCYZ.js";
27
- import "../safe-bash/command-chunks/chunk-GBHSE6ZO.js";
28
- import "../safe-bash/command-chunks/chunk-GZXLPWT5.js";
27
+ import "../safe-bash/command-chunks/chunk-5GRLAARV.js";
28
+ import "../safe-bash/command-chunks/chunk-ZF3ZVGQC.js";
29
29
  import {
30
30
  createLuaFilterCapability
31
- } from "../safe-bash/command-chunks/chunk-Y2KHC6TZ.js";
31
+ } from "../safe-bash/command-chunks/chunk-IDKD76KR.js";
32
32
  import {
33
33
  createCiteprocFilterCapability
34
- } from "../safe-bash/command-chunks/chunk-YGYOVXTO.js";
34
+ } from "../safe-bash/command-chunks/chunk-UUR2S7AD.js";
35
35
  import {
36
36
  AstError,
37
37
  PandocError
38
- } from "../safe-bash/command-chunks/chunk-I5GLTNVH.js";
38
+ } from "../safe-bash/command-chunks/chunk-7OKDCM5U.js";
39
+ import "../safe-bash/command-chunks/chunk-VIVYKW7Q.js";
40
+ import "../safe-bash/command-chunks/chunk-X4P42NYK.js";
39
41
  import {
40
42
  init_buffer
41
43
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  createLuaFilterCapability
3
- } from "../safe-bash/command-chunks/chunk-Y2KHC6TZ.js";
4
- import "../safe-bash/command-chunks/chunk-I5GLTNVH.js";
3
+ } from "../safe-bash/command-chunks/chunk-IDKD76KR.js";
4
+ import "../safe-bash/command-chunks/chunk-7OKDCM5U.js";
5
+ import "../safe-bash/command-chunks/chunk-X4P42NYK.js";
5
6
  import {
6
7
  init_buffer
7
8
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -0,0 +1,5 @@
1
+ import type { CiteprocFilterOptions } from "./citeproc-filters.js";
2
+ import type { PandocCommandsOptions } from "./command.js";
3
+ /** Validate registration without evaluating the document engines. */
4
+ export declare function validatePandocOptions(options: PandocCommandsOptions): void;
5
+ export declare function validateCiteprocOptions(options: CiteprocFilterOptions): void;
@@ -0,0 +1,93 @@
1
+ import {
2
+ validateCiteprocOptions,
3
+ validatePandocOptions
4
+ } from "../safe-bash/command-chunks/chunk-VIVYKW7Q.js";
5
+ import "../safe-bash/command-chunks/chunk-X4P42NYK.js";
6
+ import {
7
+ init_buffer
8
+ } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
9
+
10
+ // packages/safe-bash-command-pandoc/dist/options.js
11
+ init_buffer();
12
+ export {
13
+ validateCiteprocOptions,
14
+ validatePandocOptions
15
+ };
16
+ /*!
17
+ MIT License
18
+
19
+ Copyright © 2017-2019 Benoit Giannangeli
20
+ Copyright © 2017-2025 Daurnimator
21
+ Copyright © 1994–2017 Lua.org, PUC-Rio.
22
+
23
+ Permission is hereby granted, free of charge, to any person obtaining a copy
24
+ of this software and associated documentation files (the "Software"), to deal
25
+ in the Software without restriction, including without limitation the rights
26
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
27
+ copies of the Software, and to permit persons to whom the Software is
28
+ furnished to do so, subject to the following conditions:
29
+
30
+ The above copyright notice and this permission notice shall be included in all
31
+ copies or substantial portions of the Software.
32
+
33
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
36
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
38
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
+ SOFTWARE.
40
+
41
+ */
42
+ /*!
43
+ Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
44
+ All rights reserved.
45
+
46
+ Redistribution and use in source and binary forms, with or without
47
+ modification, are permitted provided that the following conditions are met:
48
+ * Redistributions of source code must retain the above copyright
49
+ notice, this list of conditions and the following disclaimer.
50
+ * Redistributions in binary form must reproduce the above copyright
51
+ notice, this list of conditions and the following disclaimer in the
52
+ documentation and/or other materials provided with the distribution.
53
+ * Neither the name of this software nor the names of its contributors may be
54
+ used to endorse or promote products derived from this software without
55
+ specific prior written permission.
56
+
57
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
58
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
59
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
60
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
61
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
62
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
63
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
64
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
65
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
66
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
67
+
68
+ */
69
+ /*!
70
+ Copyright (c) 2009-2019 Frank Bennett
71
+
72
+ This program is free software: you can redistribute it and/or
73
+ modify it under EITHER
74
+
75
+ * the terms of the Common Public Attribution License (CPAL) as
76
+ published by the Open Source Initiative, either version 1 of
77
+ the CPAL, or (at your option) any later version; OR
78
+
79
+ * the terms of the GNU Affero General Public License (AGPL)
80
+ as published by the Free Software Foundation, either version
81
+ 3 of the AGPL, or (at your option) any later version.
82
+
83
+ This program is distributed in the hope that it will be useful,
84
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
85
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
86
+ Affero General Public License for more details.
87
+
88
+ You should have received copies of the Common Public Attribution
89
+ License and of the GNU Affero General Public License along with
90
+ this program. If not, see <https://opensource.org/licenses/> or
91
+ <http://www.gnu.org/licenses/> respectively.
92
+
93
+ */
@@ -11,8 +11,8 @@ import {
11
11
  readImageMetadata,
12
12
  resizeImage,
13
13
  rotateImage
14
- } from "../safe-bash/command-chunks/chunk-GBHSE6ZO.js";
15
- import "../safe-bash/command-chunks/chunk-GZXLPWT5.js";
14
+ } from "../safe-bash/command-chunks/chunk-5GRLAARV.js";
15
+ import "../safe-bash/command-chunks/chunk-ZF3ZVGQC.js";
16
16
  import {
17
17
  init_buffer
18
18
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -8,8 +8,7 @@ export interface SofficeCliResult {
8
8
  readonly stdout: string;
9
9
  readonly stderr: string;
10
10
  }
11
- export declare function createStoredZipArchive(entries: Readonly<Record<string, Uint8Array>>): Uint8Array;
12
- export declare function readZipArchiveEntries(zipBytes: Uint8Array): Map<string, Uint8Array>;
11
+ export { createStoredZipArchive, readZipArchiveEntries } from "../office-package/zip-sync.js";
13
12
  export declare function runSofficeCliSync(argv: readonly string[], files: Map<string, Uint8Array>, cwd?: string): SofficeCliResult;
14
13
  export declare function runSofficeCli(argv: readonly string[], files: Map<string, Uint8Array>, cwd?: string, options?: {
15
14
  readonly signal?: AbortSignal;
@@ -1,26 +1,26 @@
1
- import {
2
- createEngine
3
- } from "../safe-bash/command-chunks/chunk-J2NPH7DO.js";
4
- import {
5
- xlsxFormat
6
- } from "../safe-bash/command-chunks/chunk-QDPRSPHQ.js";
7
1
  import {
8
2
  csvFormat
9
- } from "../safe-bash/command-chunks/chunk-Y64PA6IA.js";
10
- import "../safe-bash/command-chunks/chunk-UIIT4ULR.js";
11
- import "../safe-bash/command-chunks/chunk-IDR3WWKI.js";
12
- import "../safe-bash/command-chunks/chunk-CE6Z2ULX.js";
13
- import "../safe-bash/command-chunks/chunk-OZSWW23M.js";
3
+ } from "../safe-bash/command-chunks/chunk-KHZZ4V3L.js";
14
4
  import {
15
5
  odsFormat
16
6
  } from "../safe-bash/command-chunks/chunk-ZP5KDHB4.js";
7
+ import "../safe-bash/command-chunks/chunk-UIIT4ULR.js";
8
+ import "../safe-bash/command-chunks/chunk-IDR3WWKI.js";
9
+ import {
10
+ createEngine
11
+ } from "../safe-bash/command-chunks/chunk-W2T7JWT3.js";
12
+ import "../safe-bash/command-chunks/chunk-CE6Z2ULX.js";
17
13
  import "../safe-bash/command-chunks/chunk-444OTXM7.js";
14
+ import "../safe-bash/command-chunks/chunk-OZSWW23M.js";
18
15
  import "../safe-bash/command-chunks/chunk-TT2DMDBY.js";
19
- import "../safe-bash/command-chunks/chunk-F4IQCXZG.js";
20
- import "../safe-bash/command-chunks/chunk-FLMLM7Y4.js";
16
+ import {
17
+ xlsxFormat
18
+ } from "../safe-bash/command-chunks/chunk-Z64BW7CG.js";
21
19
  import "../safe-bash/command-chunks/chunk-KOM3FNCE.js";
20
+ import "../safe-bash/command-chunks/chunk-VBZMCL23.js";
22
21
  import "../safe-bash/command-chunks/chunk-J7UMKBRK.js";
23
22
  import "../safe-bash/command-chunks/chunk-6X2OX6IJ.js";
23
+ import "../safe-bash/command-chunks/chunk-FLMLM7Y4.js";
24
24
  import "../safe-bash/command-chunks/chunk-RID3B5RE.js";
25
25
  import "../safe-bash/command-chunks/chunk-WKPOGTZY.js";
26
26
  import "../safe-bash/command-chunks/chunk-MED2BOOW.js";
@@ -29,9 +29,8 @@ import "../safe-bash/command-chunks/chunk-MKQVQMXO.js";
29
29
  import "../safe-bash/command-chunks/chunk-RDV7UCYZ.js";
30
30
  import {
31
31
  PdfDocument,
32
- decodeFlate,
33
32
  rgb
34
- } from "../safe-bash/command-chunks/chunk-GZXLPWT5.js";
33
+ } from "../safe-bash/command-chunks/chunk-ZF3ZVGQC.js";
35
34
  import {
36
35
  init_buffer
37
36
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -91,6 +90,10 @@ import { writeFileOutput } from "../safe-bash-contracts/filesystem-output-budget
91
90
  import { commandRuntimeIdentity, getCommandArguments } from "../safe-bash-contracts/command.js";
92
91
  import { writeBytes } from "../safe-bash-contracts/io.js";
93
92
  import { createOutputOperation } from "../safe-bash-contracts/output.js";
93
+
94
+ // packages/office-package/src/zip-sync.ts
95
+ init_buffer();
96
+ import { inflateRaw } from "pako";
94
97
  function crc32Bytes(data) {
95
98
  let c = 4294967295;
96
99
  for (let i = 0; i < data.length; i++) {
@@ -164,8 +167,7 @@ function readZipArchiveEntries(zipBytes) {
164
167
  break;
165
168
  }
166
169
  }
167
- if (eocdPos < 0)
168
- throw new Error("Invalid ZIP: missing end of central directory");
170
+ if (eocdPos < 0) throw new Error("Invalid ZIP: missing end of central directory");
169
171
  const count = view.getUint16(eocdPos + 10, true);
170
172
  let cdPos = view.getUint32(eocdPos + 16, true);
171
173
  for (let i = 0; i < count; i++) {
@@ -192,12 +194,14 @@ function readZipArchiveEntries(zipBytes) {
192
194
  if (method === 0) {
193
195
  map.set(name, new Uint8Array(rawData));
194
196
  } else if (method === 8) {
195
- map.set(name, decodeFlate(rawData));
197
+ map.set(name, inflateRaw(rawData));
196
198
  }
197
199
  cdPos += 46 + nameLen + extraLen + commentLen;
198
200
  }
199
201
  return map;
200
202
  }
203
+
204
+ // packages/safe-bash-command-soffice/dist/index.js
201
205
  function unescapeXml(str) {
202
206
  return str.replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCodePoint(Number.parseInt(hex, 16))).replace(/&#(\d+);/g, (_, dec) => String.fromCodePoint(Number.parseInt(dec, 10))).replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&amp;/g, "&");
203
207
  }
@@ -6,12 +6,12 @@ import {
6
6
  defaultSsconvertLimits,
7
7
  imageFormats,
8
8
  ioFailure
9
- } from "../safe-bash/command-chunks/chunk-J2NPH7DO.js";
9
+ } from "../safe-bash/command-chunks/chunk-W2T7JWT3.js";
10
10
  import {
11
11
  resourceUri
12
12
  } from "../safe-bash/command-chunks/chunk-CE6Z2ULX.js";
13
- import "../safe-bash/command-chunks/chunk-OZSWW23M.js";
14
13
  import "../safe-bash/command-chunks/chunk-444OTXM7.js";
14
+ import "../safe-bash/command-chunks/chunk-OZSWW23M.js";
15
15
  import "../safe-bash/command-chunks/chunk-TT2DMDBY.js";
16
16
  import {
17
17
  snapshotRuntimeFunctions
@@ -3,10 +3,10 @@ import {
3
3
  createRegistry,
4
4
  createResourceIO,
5
5
  defaultSsconvertLimits
6
- } from "../safe-bash/command-chunks/chunk-J2NPH7DO.js";
6
+ } from "../safe-bash/command-chunks/chunk-W2T7JWT3.js";
7
7
  import "../safe-bash/command-chunks/chunk-CE6Z2ULX.js";
8
- import "../safe-bash/command-chunks/chunk-OZSWW23M.js";
9
8
  import "../safe-bash/command-chunks/chunk-444OTXM7.js";
9
+ import "../safe-bash/command-chunks/chunk-OZSWW23M.js";
10
10
  import "../safe-bash/command-chunks/chunk-TT2DMDBY.js";
11
11
  import "../safe-bash/command-chunks/chunk-WKPOGTZY.js";
12
12
  import "../safe-bash/command-chunks/chunk-MED2BOOW.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  csvFormat
3
- } from "../../safe-bash/command-chunks/chunk-Y64PA6IA.js";
3
+ } from "../../safe-bash/command-chunks/chunk-KHZZ4V3L.js";
4
4
  import "../../safe-bash/command-chunks/chunk-UIIT4ULR.js";
5
5
  import "../../safe-bash/command-chunks/chunk-IDR3WWKI.js";
6
6
  import "../../safe-bash/command-chunks/chunk-CE6Z2ULX.js";
7
- import "../../safe-bash/command-chunks/chunk-OZSWW23M.js";
8
7
  import "../../safe-bash/command-chunks/chunk-444OTXM7.js";
8
+ import "../../safe-bash/command-chunks/chunk-OZSWW23M.js";
9
9
  import "../../safe-bash/command-chunks/chunk-TT2DMDBY.js";
10
10
  import "../../safe-bash/command-chunks/chunk-KOM3FNCE.js";
11
11
  import "../../safe-bash/command-chunks/chunk-WKPOGTZY.js";
@@ -17,13 +17,13 @@ import {
17
17
  readBiffRecords,
18
18
  readCfb
19
19
  } from "../../safe-bash/command-chunks/chunk-KKJCKPTA.js";
20
+ import {
21
+ singleByteTables
22
+ } from "../../safe-bash/command-chunks/chunk-KOM3FNCE.js";
20
23
  import {
21
24
  expandIndexSheetAreas,
22
25
  metadataNode
23
26
  } from "../../safe-bash/command-chunks/chunk-FLMLM7Y4.js";
24
- import {
25
- singleByteTables
26
- } from "../../safe-bash/command-chunks/chunk-KOM3FNCE.js";
27
27
  import "../../safe-bash/command-chunks/chunk-RID3B5RE.js";
28
28
  import {
29
29
  cellValueFormat,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  xlsxFormat
3
- } from "../../safe-bash/command-chunks/chunk-QDPRSPHQ.js";
4
- import "../../safe-bash/command-chunks/chunk-F4IQCXZG.js";
5
- import "../../safe-bash/command-chunks/chunk-FLMLM7Y4.js";
3
+ } from "../../safe-bash/command-chunks/chunk-Z64BW7CG.js";
4
+ import "../../safe-bash/command-chunks/chunk-VBZMCL23.js";
6
5
  import "../../safe-bash/command-chunks/chunk-J7UMKBRK.js";
7
6
  import "../../safe-bash/command-chunks/chunk-6X2OX6IJ.js";
7
+ import "../../safe-bash/command-chunks/chunk-FLMLM7Y4.js";
8
8
  import "../../safe-bash/command-chunks/chunk-RID3B5RE.js";
9
9
  import "../../safe-bash/command-chunks/chunk-WKPOGTZY.js";
10
10
  import "../../safe-bash/command-chunks/chunk-MED2BOOW.js";
@@ -1,6 +1,3 @@
1
- import {
2
- parseDuration
3
- } from "../safe-bash/command-chunks/chunk-WVWMUYST.js";
4
1
  import {
5
2
  createDeadline,
6
3
  defaultSchedulerBinding
@@ -9,6 +6,9 @@ import {
9
6
  parseSignal,
10
7
  signalName
11
8
  } from "../safe-bash/command-chunks/chunk-TITSHNXQ.js";
9
+ import {
10
+ parseDuration
11
+ } from "../safe-bash/command-chunks/chunk-WVWMUYST.js";
12
12
  import {
13
13
  init_buffer
14
14
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -1,3 +1,8 @@
1
+ import {
2
+ encodeJson,
3
+ encodeRaw,
4
+ encodeYaml
5
+ } from "../safe-bash/command-chunks/chunk-7DEZJSBF.js";
1
6
  import {
2
7
  parseYamlDocuments
3
8
  } from "../safe-bash/command-chunks/chunk-XKVVWKKT.js";
@@ -13,11 +18,6 @@ import {
13
18
  YqError,
14
19
  fromJqLimit
15
20
  } from "../safe-bash/command-chunks/chunk-HACCCNFF.js";
16
- import {
17
- encodeJson,
18
- encodeRaw,
19
- encodeYaml
20
- } from "../safe-bash/command-chunks/chunk-7DEZJSBF.js";
21
21
  import {
22
22
  init_buffer
23
23
  } from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  boundedCodec
3
- } from "../safe-bash/command-chunks/chunk-FH3D75FC.js";
4
- import "../safe-bash/command-chunks/chunk-QJ3ONEBI.js";
3
+ } from "../safe-bash/command-chunks/chunk-ADCGH6A7.js";
4
+ import "../safe-bash/command-chunks/chunk-DEH3CMGL.js";
5
+ import "../safe-bash/command-chunks/chunk-Z6SFT6OC.js";
5
6
  import "../safe-bash/command-chunks/chunk-KHGQDFQ7.js";
6
7
  import "../safe-bash/command-chunks/chunk-A7L65T2H.js";
7
- import "../safe-bash/command-chunks/chunk-Z6SFT6OC.js";
8
8
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
9
9
  export {
10
10
  boundedCodec
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createCodec
3
- } from "../safe-bash/command-chunks/chunk-QJ3ONEBI.js";
3
+ } from "../safe-bash/command-chunks/chunk-DEH3CMGL.js";
4
+ import "../safe-bash/command-chunks/chunk-Z6SFT6OC.js";
4
5
  import "../safe-bash/command-chunks/chunk-KHGQDFQ7.js";
5
6
  import "../safe-bash/command-chunks/chunk-A7L65T2H.js";
6
- import "../safe-bash/command-chunks/chunk-Z6SFT6OC.js";
7
7
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
8
8
  export {
9
9
  createCodec
@@ -4,17 +4,17 @@ import {
4
4
  unchangedSource,
5
5
  verifyOperandDestinations,
6
6
  writeFileOperand
7
- } from "../safe-bash/command-chunks/chunk-CG4JSOK2.js";
7
+ } from "../safe-bash/command-chunks/chunk-3HDIDEUJ.js";
8
8
  import "../safe-bash/command-chunks/chunk-LVEHHFOV.js";
9
- import "../safe-bash/command-chunks/chunk-E5TEVROY.js";
10
- import "../safe-bash/command-chunks/chunk-3ZK5F23O.js";
9
+ import "../safe-bash/command-chunks/chunk-PFBJR2PY.js";
10
+ import "../safe-bash/command-chunks/chunk-L3MLMXL4.js";
11
11
  import "../safe-bash/command-chunks/chunk-6NTY42E5.js";
12
- import "../safe-bash/command-chunks/chunk-FH3D75FC.js";
13
- import "../safe-bash/command-chunks/chunk-QJ3ONEBI.js";
14
- import "../safe-bash/command-chunks/chunk-KHGQDFQ7.js";
15
- import "../safe-bash/command-chunks/chunk-A7L65T2H.js";
16
12
  import "../safe-bash/command-chunks/chunk-2MFNTNK7.js";
13
+ import "../safe-bash/command-chunks/chunk-ADCGH6A7.js";
14
+ import "../safe-bash/command-chunks/chunk-DEH3CMGL.js";
17
15
  import "../safe-bash/command-chunks/chunk-Z6SFT6OC.js";
16
+ import "../safe-bash/command-chunks/chunk-KHGQDFQ7.js";
17
+ import "../safe-bash/command-chunks/chunk-A7L65T2H.js";
18
18
  import "../safe-bash/command-chunks/chunk-RDV7UCYZ.js";
19
19
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
20
20
  export {