@elaraai/east-node-io 1.0.79 → 1.0.81

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/README.md CHANGED
@@ -123,7 +123,7 @@ const countRows = East.function([BlobType], IntegerType, ($, xlsxBlob) => {
123
123
  return $.return(sheet.size());
124
124
  });
125
125
 
126
- const compiled = East.compile(countRows.toIR(), Format.XLSX.Implementation);
126
+ const compiled = East.compile(countRows, Format.XLSX.Implementation);
127
127
  const rowCount = compiled(xlsxBlob); // 100n
128
128
  ```
129
129
 
@@ -271,7 +271,7 @@ This project is licensed under the GNU Affero General Public License v3.0 - see
271
271
  - [@elaraai/e3](https://www.npmjs.com/package/@elaraai/e3): SDK for authoring e3 packages with typed tasks and pipelines
272
272
  - [@elaraai/e3-core](https://www.npmjs.com/package/@elaraai/e3-core): Object store, dataflow orchestrator, execution state
273
273
  - [@elaraai/e3-types](https://www.npmjs.com/package/@elaraai/e3-types): Shared type definitions for e3 packages
274
- - [@elaraai/e3-cli](https://www.npmjs.com/package/@elaraai/e3-cli): `e3 repo`, `e3 package`, `e3 workspace`, `e3 start`, `e3 watch`, `e3 logs` commands
274
+ - [@elaraai/e3-cli](https://www.npmjs.com/package/@elaraai/e3-cli): `e3 repo`, `e3 package`, `e3 workspace`, `e3 dataflow run`, `e3 watch`, `e3 task logs` commands
275
275
  - [@elaraai/e3-api-client](https://www.npmjs.com/package/@elaraai/e3-api-client): HTTP client for remote e3 repositories
276
276
  - [@elaraai/e3-api-server](https://www.npmjs.com/package/@elaraai/e3-api-server): REST API server for e3 repositories
277
277
  - [@elaraai/e3-api-tests](https://www.npmjs.com/package/@elaraai/e3-api-tests): Shared API compliance test suites
@@ -51,7 +51,7 @@ import type { PlatformFunction } from "@elaraai/east/internal";
51
51
  * return $.return(tarBlob);
52
52
  * });
53
53
  *
54
- * const compiled = East.compile(createTar.toIR(), Compression.Tar.Implementation);
54
+ * const compiled = East.compile(createTar, Compression.Tar.Implementation);
55
55
  * const result = compiled("Hello", "World"); // TAR archive blob
56
56
  * ```
57
57
  *
@@ -94,7 +94,7 @@ export declare const tar_create: import("@elaraai/east").AsyncPlatformDefinition
94
94
  * return $.return(files);
95
95
  * });
96
96
  *
97
- * const compiled = East.compile(extractTar.toIR(), Compression.Tar.Implementation);
97
+ * const compiled = East.compile(extractTar, Compression.Tar.Implementation);
98
98
  * const result = compiled(tarBlob);
99
99
  * // Map { "file1.txt" => Uint8Array, "file2.txt" => Uint8Array }
100
100
  * ```
@@ -54,7 +54,7 @@ import { TarEntriesType, TarExtractedType } from "./types.js";
54
54
  * return $.return(tarBlob);
55
55
  * });
56
56
  *
57
- * const compiled = East.compile(createTar.toIR(), Compression.Tar.Implementation);
57
+ * const compiled = East.compile(createTar, Compression.Tar.Implementation);
58
58
  * const result = compiled("Hello", "World"); // TAR archive blob
59
59
  * ```
60
60
  *
@@ -94,7 +94,7 @@ export const tar_create = East.asyncPlatform("tar_create", [TarEntriesType], Blo
94
94
  * return $.return(files);
95
95
  * });
96
96
  *
97
- * const compiled = East.compile(extractTar.toIR(), Compression.Tar.Implementation);
97
+ * const compiled = East.compile(extractTar, Compression.Tar.Implementation);
98
98
  * const result = compiled(tarBlob);
99
99
  * // Map { "file1.txt" => Uint8Array, "file2.txt" => Uint8Array }
100
100
  * ```
@@ -56,7 +56,7 @@ import type { PlatformFunction } from "@elaraai/east/internal";
56
56
  * return $.return(zipBlob);
57
57
  * });
58
58
  *
59
- * const compiled = East.compile(createZip.toIR(), Compression.Zip.Implementation);
59
+ * const compiled = East.compile(createZip, Compression.Zip.Implementation);
60
60
  * const result = compiled("Hello", "World"); // ZIP archive blob
61
61
  * ```
62
62
  *
@@ -101,7 +101,7 @@ export declare const zip_compress: import("@elaraai/east").PlatformDefinition<[i
101
101
  * return $.return(files);
102
102
  * });
103
103
  *
104
- * const compiled = East.compile(extractZip.toIR(), Compression.Zip.Implementation);
104
+ * const compiled = East.compile(extractZip, Compression.Zip.Implementation);
105
105
  * const result = compiled(zipBlob);
106
106
  * // Map { "file1.txt" => Uint8Array, "file2.txt" => Uint8Array }
107
107
  * ```
@@ -58,7 +58,7 @@ import { ZipOptionsType, ZipEntriesType, ZipExtractedType } from "./types.js";
58
58
  * return $.return(zipBlob);
59
59
  * });
60
60
  *
61
- * const compiled = East.compile(createZip.toIR(), Compression.Zip.Implementation);
61
+ * const compiled = East.compile(createZip, Compression.Zip.Implementation);
62
62
  * const result = compiled("Hello", "World"); // ZIP archive blob
63
63
  * ```
64
64
  *
@@ -98,7 +98,7 @@ export const zip_compress = East.platform("zip_compress", [ZipEntriesType, ZipOp
98
98
  * return $.return(files);
99
99
  * });
100
100
  *
101
- * const compiled = East.compile(extractZip.toIR(), Compression.Zip.Implementation);
101
+ * const compiled = East.compile(extractZip, Compression.Zip.Implementation);
102
102
  * const result = compiled(zipBlob);
103
103
  * // Map { "file1.txt" => Uint8Array, "file2.txt" => Uint8Array }
104
104
  * ```
@@ -22,7 +22,7 @@
22
22
  * return $.return(sheet.size());
23
23
  * });
24
24
  *
25
- * const compiled = East.compile(countRows.toIR(), Format.XLSX.Implementation);
25
+ * const compiled = East.compile(countRows, Format.XLSX.Implementation);
26
26
  * const xlsxBlob = new Uint8Array([]); // XLSX file bytes
27
27
  * compiled(xlsxBlob); // 100n
28
28
  * ```
@@ -58,7 +58,7 @@ export { xml_parse, xml_serialize, XmlImpl, XmlParseConfig, XmlSerializeConfig,
58
58
  * return $.return(blob);
59
59
  * });
60
60
  *
61
- * const compiled = East.compile(createExcel.toIR(), Format.XLSX.Implementation);
61
+ * const compiled = East.compile(createExcel, Format.XLSX.Implementation);
62
62
  * const xlsxBlob = compiled(); // Uint8Array with XLSX file bytes
63
63
  * ```
64
64
  */
@@ -89,7 +89,7 @@ export declare const Format: {
89
89
  * $.return(sheet.size());
90
90
  * });
91
91
  *
92
- * const compiled = East.compile(countRows.toIR(), Format.XLSX.Implementation);
92
+ * const compiled = East.compile(countRows, Format.XLSX.Implementation);
93
93
  * const blob = new Uint8Array([]);
94
94
  * compiled(blob); // 100n
95
95
  * ```
@@ -129,7 +129,7 @@ export declare const Format: {
129
129
  * $.return(blob);
130
130
  * });
131
131
  *
132
- * const compiled = East.compile(createExcel.toIR(), Format.XLSX.Implementation);
132
+ * const compiled = East.compile(createExcel, Format.XLSX.Implementation);
133
133
  * const xlsxBlob = compiled();
134
134
  * ```
135
135
  */
@@ -159,7 +159,7 @@ export declare const Format: {
159
159
  * $.return(info.sheets.size());
160
160
  * });
161
161
  *
162
- * const compiled = East.compile(countSheets.toIR(), Format.XLSX.Implementation);
162
+ * const compiled = East.compile(countSheets, Format.XLSX.Implementation);
163
163
  * const blob = new Uint8Array([]);
164
164
  * compiled(blob); // 3n
165
165
  * ```
@@ -189,7 +189,7 @@ export declare const Format: {
189
189
  * $.return(null);
190
190
  * });
191
191
  *
192
- * const compiled = East.compile(myFunction.toIR(), Format.XLSX.Implementation);
192
+ * const compiled = East.compile(myFunction, Format.XLSX.Implementation);
193
193
  * const blob = new Uint8Array([]);
194
194
  * compiled(blob);
195
195
  * ```
@@ -294,7 +294,7 @@ export declare const Format: {
294
294
  * return $.return(Format.XML.parse(xmlBlob, config));
295
295
  * });
296
296
  *
297
- * const compiled = East.compile(parseXML.toIR(), Format.XML.Implementation);
297
+ * const compiled = East.compile(parseXML, Format.XML.Implementation);
298
298
  * const xmlBlob = new TextEncoder().encode("<book id='123'><title>East Guide</title></book>");
299
299
  * compiled(xmlBlob); // Returns parsed XML tree
300
300
  * ```
@@ -332,7 +332,7 @@ export declare const Format: {
332
332
  * return $.return(Format.XML.serialize(doc, config));
333
333
  * });
334
334
  *
335
- * const compiled = East.compile(serializeXML.toIR(), Format.XML.Implementation);
335
+ * const compiled = East.compile(serializeXML, Format.XML.Implementation);
336
336
  * const xmlNode = { tag: "book", attributes: new Map([["id", "123"]]), children: [] };
337
337
  * compiled(xmlNode); // Returns XML blob
338
338
  * ```
@@ -378,7 +378,7 @@ export declare const Format: {
378
378
  * return $.return(Format.XML.serialize(doc, serializeConfig));
379
379
  * });
380
380
  *
381
- * const compiled = East.compile(myFunction.toIR(), Format.XML.Implementation);
381
+ * const compiled = East.compile(myFunction, Format.XML.Implementation);
382
382
  * const xmlBlob = new TextEncoder().encode("<book><title>East</title></book>");
383
383
  * compiled(xmlBlob);
384
384
  * ```
@@ -22,7 +22,7 @@
22
22
  * return $.return(sheet.size());
23
23
  * });
24
24
  *
25
- * const compiled = East.compile(countRows.toIR(), Format.XLSX.Implementation);
25
+ * const compiled = East.compile(countRows, Format.XLSX.Implementation);
26
26
  * const xlsxBlob = new Uint8Array([]); // XLSX file bytes
27
27
  * compiled(xlsxBlob); // 100n
28
28
  * ```
@@ -64,7 +64,7 @@ import { XlsxCellType, XlsxRowType, XlsxSheetType, XlsxReadOptionsType, XlsxWrit
64
64
  * return $.return(blob);
65
65
  * });
66
66
  *
67
- * const compiled = East.compile(createExcel.toIR(), Format.XLSX.Implementation);
67
+ * const compiled = East.compile(createExcel, Format.XLSX.Implementation);
68
68
  * const xlsxBlob = compiled(); // Uint8Array with XLSX file bytes
69
69
  * ```
70
70
  */
@@ -95,7 +95,7 @@ export const Format = {
95
95
  * $.return(sheet.size());
96
96
  * });
97
97
  *
98
- * const compiled = East.compile(countRows.toIR(), Format.XLSX.Implementation);
98
+ * const compiled = East.compile(countRows, Format.XLSX.Implementation);
99
99
  * const blob = new Uint8Array([]);
100
100
  * compiled(blob); // 100n
101
101
  * ```
@@ -125,7 +125,7 @@ export const Format = {
125
125
  * $.return(blob);
126
126
  * });
127
127
  *
128
- * const compiled = East.compile(createExcel.toIR(), Format.XLSX.Implementation);
128
+ * const compiled = East.compile(createExcel, Format.XLSX.Implementation);
129
129
  * const xlsxBlob = compiled();
130
130
  * ```
131
131
  */
@@ -145,7 +145,7 @@ export const Format = {
145
145
  * $.return(info.sheets.size());
146
146
  * });
147
147
  *
148
- * const compiled = East.compile(countSheets.toIR(), Format.XLSX.Implementation);
148
+ * const compiled = East.compile(countSheets, Format.XLSX.Implementation);
149
149
  * const blob = new Uint8Array([]);
150
150
  * compiled(blob); // 3n
151
151
  * ```
@@ -169,7 +169,7 @@ export const Format = {
169
169
  * $.return(null);
170
170
  * });
171
171
  *
172
- * const compiled = East.compile(myFunction.toIR(), Format.XLSX.Implementation);
172
+ * const compiled = East.compile(myFunction, Format.XLSX.Implementation);
173
173
  * const blob = new Uint8Array([]);
174
174
  * compiled(blob);
175
175
  * ```
@@ -236,7 +236,7 @@ export const Format = {
236
236
  * return $.return(Format.XML.parse(xmlBlob, config));
237
237
  * });
238
238
  *
239
- * const compiled = East.compile(parseXML.toIR(), Format.XML.Implementation);
239
+ * const compiled = East.compile(parseXML, Format.XML.Implementation);
240
240
  * const xmlBlob = new TextEncoder().encode("<book id='123'><title>East Guide</title></book>");
241
241
  * compiled(xmlBlob); // Returns parsed XML tree
242
242
  * ```
@@ -264,7 +264,7 @@ export const Format = {
264
264
  * return $.return(Format.XML.serialize(doc, config));
265
265
  * });
266
266
  *
267
- * const compiled = East.compile(serializeXML.toIR(), Format.XML.Implementation);
267
+ * const compiled = East.compile(serializeXML, Format.XML.Implementation);
268
268
  * const xmlNode = { tag: "book", attributes: new Map([["id", "123"]]), children: [] };
269
269
  * compiled(xmlNode); // Returns XML blob
270
270
  * ```
@@ -298,7 +298,7 @@ export const Format = {
298
298
  * return $.return(Format.XML.serialize(doc, serializeConfig));
299
299
  * });
300
300
  *
301
- * const compiled = East.compile(myFunction.toIR(), Format.XML.Implementation);
301
+ * const compiled = East.compile(myFunction, Format.XML.Implementation);
302
302
  * const xmlBlob = new TextEncoder().encode("<book><title>East</title></book>");
303
303
  * compiled(xmlBlob);
304
304
  * ```
@@ -49,7 +49,7 @@ import type { PlatformFunction } from "@elaraai/east/internal";
49
49
  * return $.return(dataRows.size());
50
50
  * });
51
51
  *
52
- * const compiled = East.compile(countRows.toIR(), Format.XLSX.Implementation);
52
+ * const compiled = East.compile(countRows, Format.XLSX.Implementation);
53
53
  * const xlsxBlob = new Uint8Array([]);
54
54
  * compiled(xlsxBlob); // 99n (row count after skipping header)
55
55
  * ```
@@ -109,7 +109,7 @@ export declare const xlsx_read: import("@elaraai/east").PlatformDefinition<[Blob
109
109
  * return $.return(Format.XLSX.write(data, options));
110
110
  * });
111
111
  *
112
- * const compiled = East.compile(createExcel.toIR(), Format.XLSX.Implementation);
112
+ * const compiled = East.compile(createExcel, Format.XLSX.Implementation);
113
113
  * const xlsxBlob = compiled();
114
114
  * ```
115
115
  *
@@ -156,7 +156,7 @@ export declare const xlsx_write: import("@elaraai/east").PlatformDefinition<[imp
156
156
  * return $.return(firstSheet.name);
157
157
  * });
158
158
  *
159
- * const compiled = East.compile(getFirstSheetName.toIR(), Format.XLSX.Implementation);
159
+ * const compiled = East.compile(getFirstSheetName, Format.XLSX.Implementation);
160
160
  * const xlsxBlob = new Uint8Array([]);
161
161
  * compiled(xlsxBlob); // "Sheet1"
162
162
  * ```
@@ -51,7 +51,7 @@ import { XlsxSheetType, XlsxReadOptionsType, XlsxWriteOptionsType, XlsxInfoType,
51
51
  * return $.return(dataRows.size());
52
52
  * });
53
53
  *
54
- * const compiled = East.compile(countRows.toIR(), Format.XLSX.Implementation);
54
+ * const compiled = East.compile(countRows, Format.XLSX.Implementation);
55
55
  * const xlsxBlob = new Uint8Array([]);
56
56
  * compiled(xlsxBlob); // 99n (row count after skipping header)
57
57
  * ```
@@ -101,7 +101,7 @@ export const xlsx_read = East.platform("xlsx_read", [BlobType, XlsxReadOptionsTy
101
101
  * return $.return(Format.XLSX.write(data, options));
102
102
  * });
103
103
  *
104
- * const compiled = East.compile(createExcel.toIR(), Format.XLSX.Implementation);
104
+ * const compiled = East.compile(createExcel, Format.XLSX.Implementation);
105
105
  * const xlsxBlob = compiled();
106
106
  * ```
107
107
  *
@@ -138,7 +138,7 @@ export const xlsx_write = East.platform("xlsx_write", [XlsxSheetType, XlsxWriteO
138
138
  * return $.return(firstSheet.name);
139
139
  * });
140
140
  *
141
- * const compiled = East.compile(getFirstSheetName.toIR(), Format.XLSX.Implementation);
141
+ * const compiled = East.compile(getFirstSheetName, Format.XLSX.Implementation);
142
142
  * const xlsxBlob = new Uint8Array([]);
143
143
  * compiled(xlsxBlob); // "Sheet1"
144
144
  * ```
@@ -174,7 +174,7 @@ declare const XmlImpl: PlatformFunction[];
174
174
  * return XML.parse(xmlBlob, config);
175
175
  * });
176
176
  *
177
- * const compiled = East.compile(parseXML.toIR(), XML.Implementation);
177
+ * const compiled = East.compile(parseXML, XML.Implementation);
178
178
  * const xmlData = new TextEncoder().encode("<book id='123'><title>East Guide</title></book>");
179
179
  * compiled(xmlData); // Returns parsed XML tree
180
180
  * ```
@@ -202,7 +202,7 @@ export declare const XML: {
202
202
  * return XML.parse(xmlBlob, config);
203
203
  * });
204
204
  *
205
- * const compiled = East.compile(parseXML.toIR(), XML.Implementation);
205
+ * const compiled = East.compile(parseXML, XML.Implementation);
206
206
  * const xmlData = new TextEncoder().encode("<book><title>East</title></book>");
207
207
  * compiled(xmlData); // Returns: { tag: "book", attributes: Map{}, children: [...] }
208
208
  * ```
@@ -241,7 +241,7 @@ export declare const XML: {
241
241
  * return XML.serialize(doc, config);
242
242
  * });
243
243
  *
244
- * const compiled = East.compile(serializeXML.toIR(), XML.Implementation);
244
+ * const compiled = East.compile(serializeXML, XML.Implementation);
245
245
  * const xmlNode = { tag: "book", attributes: new Map(), children: [] };
246
246
  * compiled(xmlNode); // Returns blob: "<?xml version=\"1.0\"?>\n<book/>"
247
247
  * ```
@@ -181,7 +181,7 @@ const XmlImpl = [
181
181
  * return XML.parse(xmlBlob, config);
182
182
  * });
183
183
  *
184
- * const compiled = East.compile(parseXML.toIR(), XML.Implementation);
184
+ * const compiled = East.compile(parseXML, XML.Implementation);
185
185
  * const xmlData = new TextEncoder().encode("<book id='123'><title>East Guide</title></book>");
186
186
  * compiled(xmlData); // Returns parsed XML tree
187
187
  * ```
@@ -209,7 +209,7 @@ export const XML = {
209
209
  * return XML.parse(xmlBlob, config);
210
210
  * });
211
211
  *
212
- * const compiled = East.compile(parseXML.toIR(), XML.Implementation);
212
+ * const compiled = East.compile(parseXML, XML.Implementation);
213
213
  * const xmlData = new TextEncoder().encode("<book><title>East</title></book>");
214
214
  * compiled(xmlData); // Returns: { tag: "book", attributes: Map{}, children: [...] }
215
215
  * ```
@@ -238,7 +238,7 @@ export const XML = {
238
238
  * return XML.serialize(doc, config);
239
239
  * });
240
240
  *
241
- * const compiled = East.compile(serializeXML.toIR(), XML.Implementation);
241
+ * const compiled = East.compile(serializeXML, XML.Implementation);
242
242
  * const xmlNode = { tag: "book", attributes: new Map(), children: [] };
243
243
  * compiled(xmlNode); // Returns blob: "<?xml version=\"1.0\"?>\n<book/>"
244
244
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elaraai/east-node-io",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "description": "I/O platform functions for the East language on Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -61,7 +61,7 @@
61
61
  "eslint": "^9.34.0",
62
62
  "eslint-plugin-headers": "^1.3.3",
63
63
  "typescript": "~5.9.2",
64
- "@elaraai/east-node-std": "1.0.79"
64
+ "@elaraai/east-node-std": "1.0.81"
65
65
  },
66
66
  "dependencies": {
67
67
  "@aws-sdk/client-s3": "^3.713.0",
@@ -79,8 +79,8 @@
79
79
  "xlsx": "^0.18.5"
80
80
  },
81
81
  "peerDependencies": {
82
- "@elaraai/east": "1.0.79",
83
- "@elaraai/east-node-std": "1.0.79"
82
+ "@elaraai/east": "1.0.81",
83
+ "@elaraai/east-node-std": "1.0.81"
84
84
  },
85
85
  "scripts": {
86
86
  "build": "tsc",