@punica/editor 1.3.2 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punica/editor",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Punica Editor",
5
5
  "private": false,
6
6
  "type": "module",
@@ -15,6 +15,8 @@ declare module 'punica' {
15
15
  * provider has not declared).
16
16
  *
17
17
  * - 'streaming' : opt-in chunked read/write for large files
18
+ * - 'binary' : ranged binary reads via `readBytes` (e.g.
19
+ * Parquet); text-only providers omit this
18
20
  * - 'watch' : path-scoped change notifications
19
21
  * - 'versioning' : per-path history + time-travel reads
20
22
  * - 'encrypted-at-rest' : payloads stored encrypted by the host
@@ -22,6 +24,7 @@ declare module 'punica' {
22
24
  */
23
25
  export type FileSystemProviderCapability =
24
26
  | 'streaming'
27
+ | 'binary'
25
28
  | 'watch'
26
29
  | 'versioning'
27
30
  | 'encrypted-at-rest'
@@ -214,6 +217,18 @@ declare module 'punica' {
214
217
  */
215
218
  readFile(path: string): Promise<string>;
216
219
 
220
+ /**
221
+ * Read a raw byte range of a workspace file. Optional/capability-gated:
222
+ * present on hosts with a binary bridge (Electron), absent in the browser.
223
+ * Returns fewer bytes than `length` only at EOF. Use for binary workspace
224
+ * files (e.g. Parquet) that `readFile` (text-only) cannot handle.
225
+ */
226
+ readBytes?(
227
+ path: string,
228
+ offset: number,
229
+ length: number
230
+ ): Promise<ArrayBuffer>;
231
+
217
232
  /**
218
233
  * Create a new file with the given textual content.
219
234
  */