@deepseek-ai/libreoffice-kit 0.2.3 → 0.2.4

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 (31) hide show
  1. package/README.md +18 -10
  2. package/README.zh.md +18 -10
  3. package/frame-forwarding/README.md +4 -2
  4. package/frame-forwarding/README.zh.md +4 -2
  5. package/frame-forwarding/include/dsh_frame_forwarding.h +1 -1
  6. package/frame-forwarding/prebuilds/darwin-arm64/frame-forwarding.node +0 -0
  7. package/frame-forwarding/prebuilds/darwin-arm64/libdsh_frame_forwarding_sdk.a +0 -0
  8. package/frame-forwarding/prebuilds/darwin-arm64/manifest.json +11 -11
  9. package/frame-forwarding/prebuilds/darwin-x64/frame-forwarding.node +0 -0
  10. package/frame-forwarding/prebuilds/darwin-x64/libdsh_frame_forwarding_sdk.a +0 -0
  11. package/frame-forwarding/prebuilds/darwin-x64/manifest.json +11 -11
  12. package/frame-forwarding/prebuilds/win32-arm64/dsh_frame_forwarding_sdk.lib +0 -0
  13. package/frame-forwarding/prebuilds/win32-arm64/frame-forwarding.node +0 -0
  14. package/frame-forwarding/prebuilds/win32-arm64/manifest.json +11 -11
  15. package/frame-forwarding/prebuilds/win32-x64/dsh_frame_forwarding_sdk.lib +0 -0
  16. package/frame-forwarding/prebuilds/win32-x64/frame-forwarding.node +0 -0
  17. package/frame-forwarding/prebuilds/win32-x64/manifest.json +11 -11
  18. package/frame-forwarding/receipt.json +7 -7
  19. package/frame-forwarding/scripts/metadata.mjs +2 -2
  20. package/frame-forwarding/sdk.json +2 -2
  21. package/frame-forwarding/src/receiver.cc +33 -8
  22. package/frame-forwarding/src/transport.cc +259 -73
  23. package/frame-forwarding/src/transport.h +15 -0
  24. package/frame-forwarding/verify.mjs +1 -1
  25. package/lib/cli.js +69 -58
  26. package/lib/editor.js +66 -23
  27. package/lib/index.js +69 -58
  28. package/lib/types/engine.d.ts +3 -4
  29. package/lib/types/native.d.ts +8 -19
  30. package/lib/types/runtime.d.ts +4 -1
  31. package/package.json +7 -6
package/lib/index.js CHANGED
@@ -726,24 +726,41 @@ function fontSearchName(value) {
726
726
  const name = value.replaceAll(/[\uff00-\uff5e]/g, (character) => String.fromCharCode(character.charCodeAt(0) - 65248)).replaceAll(/[A-Z]/g, (character) => character.toLowerCase()).replaceAll(/[^a-z0-9;()\u0080-\uffff]/g, "");
727
727
  return LOCALIZED_FONT_SEARCH_NAMES.get(name) ?? name;
728
728
  }
729
+ function xmlText(value) {
730
+ return value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&apos;");
731
+ }
732
+ /**
733
+ * Fontconfig rules for helpers that resolve fonts through Fontconfig. On Linux, VCL asks Fontconfig's pre-match
734
+ * substitution before its own substitution table, so each missing document family accepts its selected substitute
735
+ * with the requested family's binding; a closer language match therefore cannot replace it. The rules declare no
736
+ * font directories: the helper registers the imported files, which keeps host fonts excluded.
737
+ */
738
+ function nativeFontConfig(substitutions) {
739
+ return `<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig>${substitutions.map(({ family, substitute }) => `<alias binding="same"><family>${xmlText(family)}</family><accept><family>${xmlText(substitute)}</family></accept></alias>`).join("")}</fontconfig>\n`;
740
+ }
729
741
  /**
730
- * Write missing-family choices into the private profile's VCL substitution table.
742
+ * Write missing-family choices into the private profile's VCL substitution table, and on Linux into the profile's
743
+ * Fontconfig rules, which the helper selects in place of the host configuration.
731
744
  * Installed originals and metric-compatible fonts are resolved before this table by LibreOffice.
732
745
  * @param profile - Existing, conversion-owned profile directory.
733
746
  * @param substitutions - Missing document families and the selected installed family.
734
- * @returns Resolves after the exclusive profile file is written; empty choices still disable the interactive CSV warning.
747
+ * @param platform - Host operating system.
748
+ * @returns Resolves after the exclusive profile files are written; empty choices still disable the interactive CSV warning.
735
749
  */
736
- async function prepareNativeFontProfile(profile, substitutions) {
750
+ async function prepareNativeFontProfile(profile, substitutions, platform = process.platform) {
737
751
  const families = new Map(substitutions.map(({ family, substitute }) => [fontSearchName(family), substitute]));
738
752
  for (const [family, substitute] of [...families]) for (let alias = METRIC_SEARCH_NAMES.get(family); alias; alias = METRIC_SEARCH_NAMES.get(alias)) if (!families.has(alias)) families.set(alias, substitute);
739
- const escape = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&apos;");
740
- const xml = profileXml([...families].map(([family, substitute]) => `<node oor:name="${escape(family)}" oor:op="replace"><prop oor:name="SubstFonts" oor:op="fuse"><value>${escape(substitute)}</value></prop></node>`).join(""));
753
+ const xml = profileXml([...families].map(([family, substitute]) => `<node oor:name="${xmlText(family)}" oor:op="replace"><prop oor:name="SubstFonts" oor:op="fuse"><value>${xmlText(substitute)}</value></prop></node>`).join(""));
741
754
  const user = join(profile, "user");
742
755
  await mkdir(user, { mode: 448 });
743
756
  await writeFile(join(user, "registrymodifications.xcu"), xml, {
744
757
  flag: "wx",
745
758
  mode: 384
746
759
  });
760
+ if (platform === "linux") await writeFile(join(profile, "fonts.conf"), nativeFontConfig(substitutions), {
761
+ flag: "wx",
762
+ mode: 384
763
+ });
747
764
  }
748
765
  /**
749
766
  * Native conversion and rendering disable printer discovery to avoid driver UI and network waits.
@@ -816,40 +833,20 @@ async function withNativeEngine(engine, profile, run) {
816
833
  await prepared.release();
817
834
  }
818
835
  }
819
- /**
820
- * Prepare the document transport accepted by the pinned helper.
821
- * @param engine - Resolved helper and input protocol.
822
- * @param input - Owned document bytes and validated format.
823
- * @param profile - Private directory retained until the helper exits and removed by the operation owner.
824
- * @param signal - Cancellation of input preparation.
825
- * @returns Helper arguments and an optional binary stdin prefix.
826
- */
827
- async function prepareNativeInput(engine, input, profile, signal) {
828
- signal.throwIfAborted();
829
- if (engine.legacyInputPath) {
830
- const path = join(profile, `source.${input.format}`);
831
- await writeFile(path, input.bytes, {
832
- flag: "wx",
833
- mode: 384,
834
- signal
835
- });
836
- return { args: ["--input-path", path] };
837
- }
838
- return {
839
- args: [
840
- "--input-bytes",
841
- String(input.bytes.byteLength),
842
- "--input-format",
843
- input.format
844
- ],
845
- bytes: input.bytes
846
- };
836
+ /** The native helper reads the declared byte count from stdin before any operation frames. */
837
+ function nativeInputArgs(bytes, format) {
838
+ return [
839
+ "--input-bytes",
840
+ String(bytes.byteLength),
841
+ "--input-format",
842
+ format
843
+ ];
847
844
  }
848
845
  /**
849
846
  * Run one native conversion and await bounded result transport.
850
847
  * @param engine - Resolved native engine installation.
851
848
  * @param options - Validated conversion limits.
852
- * @param input - Owned source bytes and format; older pinned helpers receive a private input file.
849
+ * @param input - Owned source bytes and format.
853
850
  * @param output - Private PDF path inside the conversion scratch directory.
854
851
  * @param profile - Conversion-owned profile directory.
855
852
  * @param fonts - Installed font files the helper may load.
@@ -868,12 +865,10 @@ async function runNative(engine, options, input, output, profile, fonts, substit
868
865
  return withNativeEngine(engine, profile, async (engine) => {
869
866
  signal.throwIfAborted();
870
867
  const env = nativeEnvironment(profile, engine.programDirectory);
871
- const transport = await prepareNativeInput(engine, input, profile, signal);
872
- signal.throwIfAborted();
873
868
  const child = spawnNative(engine.executable, [
874
869
  "--program-directory",
875
870
  engine.programDirectory,
876
- ...transport.args,
871
+ ...nativeInputArgs(input.bytes, input.format),
877
872
  "--output-path",
878
873
  output,
879
874
  "--profile-directory",
@@ -913,7 +908,7 @@ async function runNative(engine, options, input, output, profile, fonts, substit
913
908
  failure ??= error;
914
909
  child.kill("SIGKILL");
915
910
  });
916
- child.stdin.end(transport.bytes);
911
+ child.stdin.end(input.bytes);
917
912
  try {
918
913
  const code = await new Promise((resolve, reject) => {
919
914
  child.once("error", (error) => {
@@ -1074,17 +1069,13 @@ async function renderImagesWithNative(request) {
1074
1069
  await mkdir(profile, { mode: 448 });
1075
1070
  await prepareNativeFontProfile(profile, substitutions);
1076
1071
  return withNativeEngine(engine, profile, async (engine) => {
1077
- const transport = await prepareNativeInput(engine, {
1078
- bytes: source,
1079
- format: operation.extension
1080
- }, profile, signal);
1081
1072
  signal.throwIfAborted();
1082
1073
  const child = spawnNative(engine.executable, [
1083
1074
  "--operation",
1084
1075
  "render-images",
1085
1076
  "--program-directory",
1086
1077
  engine.programDirectory,
1087
- ...transport.args,
1078
+ ...nativeInputArgs(source, operation.extension),
1088
1079
  "--scratch-directory",
1089
1080
  scratch,
1090
1081
  "--profile-directory",
@@ -1128,7 +1119,7 @@ async function renderImagesWithNative(request) {
1128
1119
  stopped ??= error;
1129
1120
  child.kill("SIGKILL");
1130
1121
  });
1131
- if (transport.bytes) child.stdin.write(transport.bytes);
1122
+ child.stdin.write(source);
1132
1123
  const next = async () => {
1133
1124
  signal.throwIfAborted();
1134
1125
  if (lines.length > 0) return lines.shift();
@@ -1554,16 +1545,16 @@ function resolveOptions(input = {}) {
1554
1545
  /** Resolve installed, version-matched engine packages without downloads or compilation. */
1555
1546
  const require = createRequire(import.meta.url);
1556
1547
  /** Node API release version returned by runtime discovery. */
1557
- const ENGINE_VERSION = "0.2.3";
1548
+ const ENGINE_VERSION = "0.2.4";
1558
1549
  /** Exact compatible engine versions; unchanged platforms retain their published packages. */
1559
1550
  const ENGINE_VERSIONS = Object.freeze({
1560
- "darwin-arm64": "0.2.3",
1561
- "darwin-x64": "0.2.3",
1562
- "linux-arm64-glibc": "0.1.1",
1563
- "linux-x64-glibc": "0.1.1",
1564
- "win32-arm64": "0.2.3",
1565
- "win32-x64": "0.2.3",
1566
- wasm: "0.2.3"
1551
+ "darwin-arm64": "0.2.4",
1552
+ "darwin-x64": "0.2.4",
1553
+ "linux-arm64-glibc": "0.2.4",
1554
+ "linux-x64-glibc": "0.2.4",
1555
+ "win32-arm64": "0.2.4",
1556
+ "win32-x64": "0.2.4",
1557
+ wasm: "0.2.4"
1567
1558
  });
1568
1559
  /** npm scope and name prefix shared by the engine packages this adapter installs. */
1569
1560
  const ENGINE_PREFIX = "@deepseek-ai/libreoffice-kit";
@@ -1625,36 +1616,56 @@ function resolvedManifest(packageFile, name) {
1625
1616
  return packageFile;
1626
1617
  }
1627
1618
  /**
1628
- * Prefer the installed compatible native engine; hosts without one use the shared WASM package.
1619
+ * Whether a resolver failure reports the named package as absent rather than broken.
1620
+ * Node resolution also raises MODULE_NOT_FOUND for other modules, so the default resolver must name this package; a
1621
+ * caller resolver's code alone reports absence.
1622
+ */
1623
+ function packageAbsent(error, name, resolvePackage) {
1624
+ const failure = error;
1625
+ return failure?.code === "MODULE_NOT_FOUND" && (resolvePackage !== installedEnginePackage || typeof failure.message === "string" && failure.message.includes(`${name}/package.json`));
1626
+ }
1627
+ /**
1628
+ * Prefer the installed compatible native engine; hosts without one use the WASM package when the consumer installed it.
1629
1629
  * @param resolvePackage - Engine package manifest resolver; defaults to Node resolution from this module.
1630
1630
  * @param packageExists - Whether a native package that resolved as `MODULE_NOT_FOUND` is nevertheless installed (and
1631
1631
  * therefore incomplete). Only the default resolver probes this module's installation; a caller resolver is the sole
1632
1632
  * authority on whether its packages exist.
1633
1633
  * @param host - Process identification and diagnostic report.
1634
1634
  * @returns the installed native engine, or the installed WASM engine.
1635
+ * @throws Error naming the exact WASM package to install when no native engine is usable and WASM is absent.
1635
1636
  */
1636
1637
  async function resolveEngine(resolvePackage = installedEnginePackage, packageExists = resolvePackage === installedEnginePackage ? installedPackageExists : () => false, { platform = process.platform, arch = process.arch, report = hostReport } = {}) {
1637
1638
  const details = platform === "linux" ? report() : {};
1638
1639
  const target = platformTarget(platform, arch, () => details);
1640
+ let reason = `no native engine is built for ${platform}-${arch}${platform === "linux" && ["arm64", "x64"].includes(arch) ? " without glibc" : ""}`;
1639
1641
  if (target !== void 0) {
1640
1642
  const name = `${ENGINE_PREFIX}-${target}`;
1641
1643
  let packageFile;
1642
1644
  try {
1643
1645
  packageFile = resolvedManifest(resolvePackage(name), name);
1644
1646
  } catch (error) {
1645
- const failure = error;
1646
- if (!(failure?.code === "MODULE_NOT_FOUND" && (resolvePackage !== installedEnginePackage || typeof failure.message === "string" && failure.message.includes(`${name}/package.json`)))) throw error;
1647
+ if (!packageAbsent(error, name, resolvePackage)) throw error;
1647
1648
  if (packageExists(name)) throw new Error(`Installed LibreOfficeKit package is incomplete: ${name}`, { cause: error });
1649
+ reason = `${name} is not installed`;
1648
1650
  }
1649
1651
  if (packageFile !== void 0) {
1650
1652
  const engine = await readEngine(packageFile, "native", target);
1651
1653
  const minimum = glibcVersion(engine.glibcMinimum);
1652
1654
  const host = glibcVersion(details.header?.glibcVersionRuntime);
1653
1655
  if (!(minimum && host && minimum.some((part, index) => part > (host[index] ?? 0) && minimum.slice(0, index).every((prior, priorIndex) => prior === host[priorIndex])))) return engine;
1656
+ reason = `${name} requires glibc ${engine.glibcMinimum} or newer; this host has glibc ${details.header?.glibcVersionRuntime}`;
1654
1657
  }
1655
1658
  }
1656
1659
  const wasm = `${ENGINE_PREFIX}-wasm`;
1657
- return readEngine(resolvedManifest(resolvePackage(wasm), wasm), "wasm", "wasm");
1660
+ let wasmFile;
1661
+ try {
1662
+ wasmFile = resolvePackage(wasm);
1663
+ } catch (error) {
1664
+ if (!packageAbsent(error, wasm, resolvePackage)) throw error;
1665
+ if (packageExists(wasm)) throw new Error(`Installed LibreOfficeKit package is incomplete: ${wasm}`, { cause: error });
1666
+ throw new Error(`No usable native LibreOfficeKit engine is available on this host (${reason}), and the portable WASM engine is not installed. Install it with: npm install ${wasm}@${ENGINE_VERSIONS.wasm}`, { cause: error });
1667
+ }
1668
+ return readEngine(resolvedManifest(wasmFile, wasm), "wasm", "wasm");
1658
1669
  }
1659
1670
  async function engineAsset(root, value, name, kind) {
1660
1671
  const path = asset(root, value);
@@ -1678,7 +1689,6 @@ async function readEngine(packageFile, backend, target) {
1678
1689
  root,
1679
1690
  programDirectory: await engineAsset(root, engine.programDirectory, "programDirectory", "directory"),
1680
1691
  executable,
1681
- ...["0.1.1", "0.1.5"].includes(String(pkg.version)) ? { legacyInputPath: true } : {},
1682
1692
  ...glibcFloor
1683
1693
  };
1684
1694
  }
@@ -1865,10 +1875,11 @@ async function discoverRuntime(options) {
1865
1875
  resolveOptions(options);
1866
1876
  try {
1867
1877
  const engine = await resolveEngine(options?.resolveEnginePackage);
1878
+ const nativePreview = engine.backend === "native" && !platformTarget()?.startsWith("linux-");
1868
1879
  return {
1869
1880
  version: ENGINE_VERSION,
1870
1881
  backend: engine.backend,
1871
- nativePreview: engine.backend === "native" && !engine.legacyInputPath,
1882
+ nativePreview,
1872
1883
  cliPath: fileURLToPath(new URL("./cli.js", import.meta.url)),
1873
1884
  nodeApiPath: fileURLToPath(new URL("./index.js", import.meta.url))
1874
1885
  };
@@ -1,5 +1,5 @@
1
1
  /** Node API release version returned by runtime discovery. */
2
- export declare const ENGINE_VERSION = "0.2.3";
2
+ export declare const ENGINE_VERSION = "0.2.4";
3
3
  /** Exact compatible engine versions; unchanged platforms retain their published packages. */
4
4
  export declare const ENGINE_VERSIONS: Readonly<Record<string, string>>;
5
5
  /** Host diagnostic fields used to identify the runtime glibc version. */
@@ -27,8 +27,6 @@ interface EngineInstallation {
27
27
  export interface NativeEngine extends EngineInstallation {
28
28
  readonly backend: 'native';
29
29
  readonly executable: string;
30
- /** Older pinned helpers load private files and do not implement the native preview protocol. */
31
- readonly legacyInputPath?: true;
32
30
  }
33
31
  /** A resolved shared Node WebAssembly engine. */
34
32
  export interface WasmEngine extends EngineInstallation {
@@ -66,13 +64,14 @@ export declare function platformTarget(platform?: string, arch?: string, report?
66
64
  */
67
65
  export type EnginePackageResolver = (name: string) => string;
68
66
  /**
69
- * Prefer the installed compatible native engine; hosts without one use the shared WASM package.
67
+ * Prefer the installed compatible native engine; hosts without one use the WASM package when the consumer installed it.
70
68
  * @param resolvePackage - Engine package manifest resolver; defaults to Node resolution from this module.
71
69
  * @param packageExists - Whether a native package that resolved as `MODULE_NOT_FOUND` is nevertheless installed (and
72
70
  * therefore incomplete). Only the default resolver probes this module's installation; a caller resolver is the sole
73
71
  * authority on whether its packages exist.
74
72
  * @param host - Process identification and diagnostic report.
75
73
  * @returns the installed native engine, or the installed WASM engine.
74
+ * @throws Error naming the exact WASM package to install when no native engine is usable and WASM is absent.
76
75
  */
77
76
  export declare function resolveEngine(resolvePackage?: EnginePackageResolver, packageExists?: (name: string) => boolean, { platform, arch, report }?: EngineResolutionHost): Promise<Engine>;
78
77
  export {};
@@ -3,13 +3,15 @@ import type { ConversionSpec } from './operations.ts';
3
3
  import type { NativeEngine } from './engine.ts';
4
4
  import type { ResolvedOptions } from './options.ts';
5
5
  /**
6
- * Write missing-family choices into the private profile's VCL substitution table.
6
+ * Write missing-family choices into the private profile's VCL substitution table, and on Linux into the profile's
7
+ * Fontconfig rules, which the helper selects in place of the host configuration.
7
8
  * Installed originals and metric-compatible fonts are resolved before this table by LibreOffice.
8
9
  * @param profile - Existing, conversion-owned profile directory.
9
10
  * @param substitutions - Missing document families and the selected installed family.
10
- * @returns Resolves after the exclusive profile file is written; empty choices still disable the interactive CSV warning.
11
+ * @param platform - Host operating system.
12
+ * @returns Resolves after the exclusive profile files are written; empty choices still disable the interactive CSV warning.
11
13
  */
12
- export declare function prepareNativeFontProfile(profile: string, substitutions: readonly FontSubstitution[]): Promise<void>;
14
+ export declare function prepareNativeFontProfile(profile: string, substitutions: readonly FontSubstitution[], platform?: string): Promise<void>;
13
15
  /**
14
16
  * Native conversion and rendering disable printer discovery to avoid driver UI and network waits.
15
17
  * Linux searches the verified program directory; ambient loader overrides and credentials are excluded.
@@ -38,26 +40,13 @@ export declare function prepareNativeEngine(engine: NativeEngine, profile: strin
38
40
  * @returns The operation result after removing the resource junction.
39
41
  */
40
42
  export declare function withNativeEngine<T>(engine: NativeEngine, profile: string, run: (engine: NativeEngine) => Promise<T>): Promise<T>;
41
- /**
42
- * Prepare the document transport accepted by the pinned helper.
43
- * @param engine - Resolved helper and input protocol.
44
- * @param input - Owned document bytes and validated format.
45
- * @param profile - Private directory retained until the helper exits and removed by the operation owner.
46
- * @param signal - Cancellation of input preparation.
47
- * @returns Helper arguments and an optional binary stdin prefix.
48
- */
49
- export declare function prepareNativeInput(engine: NativeEngine, input: {
50
- bytes: Uint8Array;
51
- format: string;
52
- }, profile: string, signal: AbortSignal): Promise<{
53
- args: string[];
54
- bytes?: Uint8Array;
55
- }>;
43
+ /** The native helper reads the declared byte count from stdin before any operation frames. */
44
+ export declare function nativeInputArgs(bytes: Uint8Array, format: string): string[];
56
45
  /**
57
46
  * Run one native conversion and await bounded result transport.
58
47
  * @param engine - Resolved native engine installation.
59
48
  * @param options - Validated conversion limits.
60
- * @param input - Owned source bytes and format; older pinned helpers receive a private input file.
49
+ * @param input - Owned source bytes and format.
61
50
  * @param output - Private PDF path inside the conversion scratch directory.
62
51
  * @param profile - Conversion-owned profile directory.
63
52
  * @param fonts - Installed font files the helper may load.
@@ -3,7 +3,10 @@ import type { ConverterOptions } from './index.ts';
3
3
  export interface RuntimeInfo {
4
4
  readonly version: string;
5
5
  readonly backend: 'native' | 'wasm';
6
- /** Whether the selected engine implements the native preview protocol; independent of GPU availability. */
6
+ /**
7
+ * Whether the selected engine offers native preview through openDocument; independent of GPU availability.
8
+ * Linux engines convert and render only.
9
+ */
7
10
  readonly nativePreview: boolean;
8
11
  readonly cliPath: string;
9
12
  readonly nodeApiPath: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/libreoffice-kit",
3
3
  "description": "Convert, recalculate, and render Office documents with prebuilt LibreOffice",
4
- "version": "0.2.3",
4
+ "version": "0.2.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -124,11 +124,12 @@
124
124
  },
125
125
  "optionalDependencies": {
126
126
  "koffi": "3.1.1",
127
- "@deepseek-ai/libreoffice-kit-darwin-arm64": "0.2.3",
128
- "@deepseek-ai/libreoffice-kit-darwin-x64": "0.2.3",
129
- "@deepseek-ai/libreoffice-kit-wasm": "0.2.3",
130
- "@deepseek-ai/libreoffice-kit-win32-arm64": "0.2.3",
131
- "@deepseek-ai/libreoffice-kit-win32-x64": "0.2.3"
127
+ "@deepseek-ai/libreoffice-kit-darwin-arm64": "0.2.4",
128
+ "@deepseek-ai/libreoffice-kit-darwin-x64": "0.2.4",
129
+ "@deepseek-ai/libreoffice-kit-linux-x64-glibc": "0.2.4",
130
+ "@deepseek-ai/libreoffice-kit-win32-arm64": "0.2.4",
131
+ "@deepseek-ai/libreoffice-kit-win32-x64": "0.2.4",
132
+ "@deepseek-ai/libreoffice-kit-linux-arm64-glibc": "0.2.4"
132
133
  },
133
134
  "bin": {
134
135
  "dsoffice": "./lib/cli.js"