@deepseek-ai/libreoffice-kit-wasm 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.
Binary file
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/assets/dsoffice.wasm
3
3
  size: 127846009 bytes
4
- sha256: bb7d1121c7200020f0b6219e37655719cde0c63f905f9826c43c40bf5a7c17c8
4
+ sha256: 81cc5af68ba6b8a69fc74bfd072aa2e1d00df188610317371b7feb453269cdd5
@@ -8,11 +8,11 @@
8
8
  "programPath": "/instdir/program",
9
9
  "version": "26.8.0.3",
10
10
  "sourceCommit": "bce0998afefdbc355585ca324285661a2170ba77",
11
- "buildId": "b2da01f6c8cb9b85d98e9cb977326135dc73b76606c9480ce6e00e68d742c791",
11
+ "buildId": "9c8e37ffff5b90a29fc022483e939bd0ce0d6cf35195f1a3ddbd962047afe9f3",
12
12
  "files": {
13
13
  "dsoffice.cjs": "c9248ef54385015475b15ae2baca41d9f7a8bd0b8538904da6a1fcd16c5305a1",
14
- "dsoffice.wasm": "bb7d1121c7200020f0b6219e37655719cde0c63f905f9826c43c40bf5a7c17c8",
15
- "dsoffice.data": "0bea03629341de18dc90bdfc1e67a2f3b791e31ef9fe22888c288226e8bd5b15",
14
+ "dsoffice.wasm": "81cc5af68ba6b8a69fc74bfd072aa2e1d00df188610317371b7feb453269cdd5",
15
+ "dsoffice.data": "5f5cf84d738229bc69c8bcf97f65afb2de9244907c2911054b293086ce478a3e",
16
16
  "dsoffice.data.js.metadata": "ffab1d431c3ecdac3f2438f5e229b2e9a83364fed02b1732e5c327ab43d6b04d"
17
17
  },
18
18
  "inputs": {
@@ -86,8 +86,8 @@
86
86
  },
87
87
  "compiledFiles": {
88
88
  "soffice.cjs": "e3b801fe19153e5b26daa6a601c9114348478206204914fb22edcdae4a1edb37",
89
- "soffice.wasm": "bb7d1121c7200020f0b6219e37655719cde0c63f905f9826c43c40bf5a7c17c8",
90
- "soffice.data": "e41d0917f22969c6a8813da2f58a431ce91e67903e49e4a46ecb6d17bfe6b32e",
89
+ "soffice.wasm": "81cc5af68ba6b8a69fc74bfd072aa2e1d00df188610317371b7feb453269cdd5",
90
+ "soffice.data": "62437fcfc0329ff6152e76bea40930da2f9a41f40b5bb5380ab6ae75311dac59",
91
91
  "soffice.data.js.metadata": "6baffa996f1895927f9a4058762c13dae5b9c5c3c08b97c5721fedf5745d4399"
92
92
  }
93
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepseek-ai/libreoffice-kit-wasm",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "license": "MPL-2.0",
6
6
  "engines": {
package/prebuilds.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "platform": "wasm",
5
5
  "status": "built",
6
6
  "engine": {
@@ -13,10 +13,10 @@
13
13
  },
14
14
  "files": {
15
15
  "assets/dsoffice.cjs": "c9248ef54385015475b15ae2baca41d9f7a8bd0b8538904da6a1fcd16c5305a1",
16
- "assets/dsoffice.data": "0bea03629341de18dc90bdfc1e67a2f3b791e31ef9fe22888c288226e8bd5b15",
16
+ "assets/dsoffice.data": "5f5cf84d738229bc69c8bcf97f65afb2de9244907c2911054b293086ce478a3e",
17
17
  "assets/dsoffice.data.js.metadata": "ffab1d431c3ecdac3f2438f5e229b2e9a83364fed02b1732e5c327ab43d6b04d",
18
- "assets/dsoffice.wasm": "bb7d1121c7200020f0b6219e37655719cde0c63f905f9826c43c40bf5a7c17c8",
19
- "assets/manifest.json": "3be04821d18b6a9bd8e5c570173ddc124abb72af3c6df6561492bff4d95a9af9",
18
+ "assets/dsoffice.wasm": "81cc5af68ba6b8a69fc74bfd072aa2e1d00df188610317371b7feb453269cdd5",
19
+ "assets/manifest.json": "c03e8733b97ddee0ac4ab444fac7404175ac23ba8e117e7102ef8a1e41b60b69",
20
20
  "sources/build-autogen.input": "faca029e22789782244ec291b83f33f7c8f540f4f79e6e0d87b3ca66dbd016eb",
21
21
  "sources/core-source.json": "39340edab26fd8f702380a0b9fedcfcc6a181793b46dd6d7dee01fa80a2458f0",
22
22
  "sources/docs/ui-resources.md": "9610e6ca8919d0b6638d8d445172c5a1679bdae4bbbeeec35be8b3d7faad36e6",
@@ -54,8 +54,8 @@
54
54
  "sources/scripts/core-checkout.mjs": "12dc726a3fe712b77aea1a4ddf2b8a482b984774e2a88f3576fe3eac58effff4",
55
55
  "sources/scripts/minimize-ui-resources.py": "91f5f21b8ea240c2dfddd0811e52135526d4542d2375be05f5d2ab2046ebf502",
56
56
  "sources/scripts/pack-utils.mjs": "aa5368e0dd38d90459f0ef14e1d4b27740aef2f4e46617aca6d6fafed0577a44",
57
- "sources/scripts/platform-matrix.mjs": "7e55ab51759e3be7ca4333ff7f10620ef89c9548843ddf690f90fe18a8ed3b29",
58
- "sources/scripts/verify-artifacts.mjs": "09a7c2803108922060437ef331c291c6db0b23805497356b7ff71cd0fd2d4911",
57
+ "sources/scripts/platform-matrix.mjs": "69f608fb5d4dfe0a0bcff53971090a4fcb7aadac80ff70f57a1b2c50c3f6954d",
58
+ "sources/scripts/verify-artifacts.mjs": "820b55d450e85b70f2154437d59ea02d50d0de833dc687f2b3bea38d7e0ba94b",
59
59
  "sources/source-changes.patch": "8f94553fe894d02f783f441c21a92b2d0751be15269dd9cd3f2a4d930a7913a4",
60
60
  "licenses/DeepSeek-Harness-MIT.txt": "637f43ba3b0193253cd80de6ce6ed4ed4d8a34eac84f6aaa7cc14f532e36318f",
61
61
  "licenses/LICENSE": "31c915ae5b7eafe51f06fc2537d2e7fefdee08e40d6b0d761d03d9f0fd58d660",
@@ -60,9 +60,13 @@ export function matchesReleaseTag(tag, version) {
60
60
  && tag.startsWith(`${base}+candidate.`) && /^[1-9]\d*$/.test(tag.slice(`${base}+candidate.`.length)));
61
61
  }
62
62
 
63
- /** Retained 0.1.x helpers provide conversion and raster output without the native preview protocol. */
63
+ /**
64
+ * Engines offering native preview, matching the adapter's discoverRuntime().nativePreview. Retained 0.1.x helpers
65
+ * provide conversion and raster output without the native preview protocol, and Linux engines are qualified for
66
+ * conversion and rendering only, so host qualification records preview evidence for macOS and Windows engines alone.
67
+ */
64
68
  export function supportsNativePreview(record) {
65
- return record.platform !== 'wasm' && !['0.1.1', '0.1.5'].includes(record.version);
69
+ return record.platform !== 'wasm' && targets[record.platform]?.os !== 'linux' && !['0.1.1', '0.1.5'].includes(record.version);
66
70
  }
67
71
 
68
72
  /**
@@ -88,7 +88,9 @@ export function verifyEngineMetadata(manifest, prebuild) {
88
88
  }
89
89
  const exact = (actual, expected) => JSON.stringify(actual) === JSON.stringify(expected);
90
90
  if (prebuild.platform === 'wasm') {
91
- assert(manifest.os === undefined && manifest.cpu === undefined && manifest.libc === undefined, 'WASM package must install on every OS, CPU and libc');
91
+ // WASM is never an adapter dependency; consumers add it explicitly, on any host, without --force.
92
+ assert(manifest.os === undefined && manifest.cpu === undefined && manifest.libc === undefined,
93
+ 'WASM package must not restrict os, cpu, or libc');
92
94
  assert(engine?.kind === 'wasm' && engine.loader === 'assets/dsoffice.cjs' && engine.wasm === 'assets/dsoffice.wasm'
93
95
  && engine.data === 'assets/dsoffice.data' && engine.metadata === 'assets/dsoffice.data.js.metadata'
94
96
  && engine.programDirectory === '/instdir/program', 'Unsupported WASM engine paths');