@elaraai/east-node-io 0.0.1-beta.9 → 1.0.1

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 (180) hide show
  1. package/CLA.md +1 -1
  2. package/CONTRIBUTING.md +3 -3
  3. package/LICENSE.md +31 -0
  4. package/README.md +56 -19
  5. package/dist/{compression → src/compression}/gzip.d.ts +1 -1
  6. package/dist/src/compression/gzip.d.ts.map +1 -0
  7. package/dist/{compression → src/compression}/gzip.js +3 -3
  8. package/dist/src/compression/gzip.js.map +1 -0
  9. package/dist/{compression → src/compression}/index.d.ts +16 -16
  10. package/dist/src/compression/index.d.ts.map +1 -0
  11. package/dist/src/compression/index.js.map +1 -0
  12. package/dist/{compression → src/compression}/tar.d.ts +2 -2
  13. package/dist/src/compression/tar.d.ts.map +1 -0
  14. package/dist/{compression → src/compression}/tar.js +7 -7
  15. package/dist/src/compression/tar.js.map +1 -0
  16. package/dist/{compression → src/compression}/types.d.ts +10 -10
  17. package/dist/src/compression/types.d.ts.map +1 -0
  18. package/dist/src/compression/types.js.map +1 -0
  19. package/dist/{compression → src/compression}/zip.d.ts +3 -3
  20. package/dist/src/compression/zip.d.ts.map +1 -0
  21. package/dist/{compression → src/compression}/zip.js +4 -4
  22. package/dist/src/compression/zip.js.map +1 -0
  23. package/dist/src/connection/index.d.ts.map +1 -0
  24. package/dist/{connection → src/connection}/index.js +2 -2
  25. package/dist/src/connection/index.js.map +1 -0
  26. package/dist/{format → src/format}/index.d.ts +77 -77
  27. package/dist/src/format/index.d.ts.map +1 -0
  28. package/dist/src/format/index.js.map +1 -0
  29. package/dist/{format → src/format}/types.d.ts +53 -53
  30. package/dist/src/format/types.d.ts.map +1 -0
  31. package/dist/src/format/types.js.map +1 -0
  32. package/dist/{format → src/format}/xlsx.d.ts +20 -20
  33. package/dist/src/format/xlsx.d.ts.map +1 -0
  34. package/dist/{format → src/format}/xlsx.js +6 -6
  35. package/dist/src/format/xlsx.js.map +1 -0
  36. package/dist/{format → src/format}/xml.d.ts +54 -54
  37. package/dist/src/format/xml.d.ts.map +1 -0
  38. package/dist/{format → src/format}/xml.js +14 -14
  39. package/dist/src/format/xml.js.map +1 -0
  40. package/dist/src/index.d.ts.map +1 -0
  41. package/dist/src/index.js.map +1 -0
  42. package/dist/{nosql → src/nosql}/index.d.ts +20 -20
  43. package/dist/src/nosql/index.d.ts.map +1 -0
  44. package/dist/src/nosql/index.js.map +1 -0
  45. package/dist/{nosql → src/nosql}/mongodb.d.ts +5 -5
  46. package/dist/src/nosql/mongodb.d.ts.map +1 -0
  47. package/dist/{nosql → src/nosql}/mongodb.js +8 -8
  48. package/dist/src/nosql/mongodb.js.map +1 -0
  49. package/dist/{nosql → src/nosql}/redis.d.ts +5 -5
  50. package/dist/src/nosql/redis.d.ts.map +1 -0
  51. package/dist/{nosql → src/nosql}/redis.js +6 -6
  52. package/dist/src/nosql/redis.js.map +1 -0
  53. package/dist/{nosql → src/nosql}/types.d.ts +10 -10
  54. package/dist/src/nosql/types.d.ts.map +1 -0
  55. package/dist/src/nosql/types.js.map +1 -0
  56. package/dist/src/platform.d.ts.map +1 -0
  57. package/dist/{platform.js → src/platform.js} +2 -0
  58. package/dist/src/platform.js.map +1 -0
  59. package/dist/src/sql/access.d.ts +243 -0
  60. package/dist/src/sql/access.d.ts.map +1 -0
  61. package/dist/src/sql/access.js +427 -0
  62. package/dist/src/sql/access.js.map +1 -0
  63. package/dist/src/sql/index.d.ts +1112 -0
  64. package/dist/src/sql/index.d.ts.map +1 -0
  65. package/dist/{sql → src/sql}/index.js +296 -4
  66. package/dist/src/sql/index.js.map +1 -0
  67. package/dist/{sql → src/sql}/mysql.d.ts +110 -32
  68. package/dist/src/sql/mysql.d.ts.map +1 -0
  69. package/dist/{sql → src/sql}/mysql.js +207 -6
  70. package/dist/src/sql/mysql.js.map +1 -0
  71. package/dist/{sql → src/sql}/postgres.d.ts +110 -32
  72. package/dist/src/sql/postgres.d.ts.map +1 -0
  73. package/dist/{sql → src/sql}/postgres.js +199 -6
  74. package/dist/src/sql/postgres.js.map +1 -0
  75. package/dist/{sql → src/sql}/sqlite.d.ts +108 -30
  76. package/dist/src/sql/sqlite.d.ts.map +1 -0
  77. package/dist/{sql → src/sql}/sqlite.js +209 -6
  78. package/dist/src/sql/sqlite.js.map +1 -0
  79. package/dist/src/sql/types.d.ts +269 -0
  80. package/dist/src/sql/types.d.ts.map +1 -0
  81. package/dist/{sql → src/sql}/types.js +65 -1
  82. package/dist/src/sql/types.js.map +1 -0
  83. package/dist/{storage → src/storage}/index.d.ts +63 -63
  84. package/dist/src/storage/index.d.ts.map +1 -0
  85. package/dist/{storage → src/storage}/index.js +1 -1
  86. package/dist/src/storage/index.js.map +1 -0
  87. package/dist/{storage → src/storage}/s3.d.ts +56 -49
  88. package/dist/src/storage/s3.d.ts.map +1 -0
  89. package/dist/{storage → src/storage}/s3.js +24 -15
  90. package/dist/src/storage/s3.js.map +1 -0
  91. package/dist/{storage → src/storage}/types.d.ts +18 -18
  92. package/dist/src/storage/types.d.ts.map +1 -0
  93. package/dist/src/storage/types.js.map +1 -0
  94. package/dist/{transfer → src/transfer}/ftp.d.ts +10 -10
  95. package/dist/src/transfer/ftp.d.ts.map +1 -0
  96. package/dist/{transfer → src/transfer}/ftp.js +6 -6
  97. package/dist/src/transfer/ftp.js.map +1 -0
  98. package/dist/{transfer → src/transfer}/index.d.ts +40 -40
  99. package/dist/src/transfer/index.d.ts.map +1 -0
  100. package/dist/src/transfer/index.js.map +1 -0
  101. package/dist/{transfer → src/transfer}/sftp.d.ts +10 -10
  102. package/dist/src/transfer/sftp.d.ts.map +1 -0
  103. package/dist/{transfer → src/transfer}/sftp.js +6 -6
  104. package/dist/src/transfer/sftp.js.map +1 -0
  105. package/dist/{transfer → src/transfer}/types.d.ts +15 -15
  106. package/dist/src/transfer/types.d.ts.map +1 -0
  107. package/dist/src/transfer/types.js.map +1 -0
  108. package/package.json +35 -54
  109. package/dist/compression/gzip.d.ts.map +0 -1
  110. package/dist/compression/gzip.js.map +0 -1
  111. package/dist/compression/index.d.ts.map +0 -1
  112. package/dist/compression/index.js.map +0 -1
  113. package/dist/compression/tar.d.ts.map +0 -1
  114. package/dist/compression/tar.js.map +0 -1
  115. package/dist/compression/types.d.ts.map +0 -1
  116. package/dist/compression/types.js.map +0 -1
  117. package/dist/compression/zip.d.ts.map +0 -1
  118. package/dist/compression/zip.js.map +0 -1
  119. package/dist/connection/index.d.ts.map +0 -1
  120. package/dist/connection/index.js.map +0 -1
  121. package/dist/format/index.d.ts.map +0 -1
  122. package/dist/format/index.js.map +0 -1
  123. package/dist/format/types.d.ts.map +0 -1
  124. package/dist/format/types.js.map +0 -1
  125. package/dist/format/xlsx.d.ts.map +0 -1
  126. package/dist/format/xlsx.js.map +0 -1
  127. package/dist/format/xml.d.ts.map +0 -1
  128. package/dist/format/xml.js.map +0 -1
  129. package/dist/index.d.ts.map +0 -1
  130. package/dist/index.js.map +0 -1
  131. package/dist/nosql/index.d.ts.map +0 -1
  132. package/dist/nosql/index.js.map +0 -1
  133. package/dist/nosql/mongodb.d.ts.map +0 -1
  134. package/dist/nosql/mongodb.js.map +0 -1
  135. package/dist/nosql/redis.d.ts.map +0 -1
  136. package/dist/nosql/redis.js.map +0 -1
  137. package/dist/nosql/types.d.ts.map +0 -1
  138. package/dist/nosql/types.js.map +0 -1
  139. package/dist/platform.d.ts.map +0 -1
  140. package/dist/platform.js.map +0 -1
  141. package/dist/sql/index.d.ts +0 -777
  142. package/dist/sql/index.d.ts.map +0 -1
  143. package/dist/sql/index.js.map +0 -1
  144. package/dist/sql/mysql.d.ts.map +0 -1
  145. package/dist/sql/mysql.js.map +0 -1
  146. package/dist/sql/postgres.d.ts.map +0 -1
  147. package/dist/sql/postgres.js.map +0 -1
  148. package/dist/sql/sqlite.d.ts.map +0 -1
  149. package/dist/sql/sqlite.js.map +0 -1
  150. package/dist/sql/types.d.ts +0 -205
  151. package/dist/sql/types.d.ts.map +0 -1
  152. package/dist/sql/types.js.map +0 -1
  153. package/dist/storage/index.d.ts.map +0 -1
  154. package/dist/storage/index.js.map +0 -1
  155. package/dist/storage/s3.d.ts.map +0 -1
  156. package/dist/storage/s3.js.map +0 -1
  157. package/dist/storage/types.d.ts.map +0 -1
  158. package/dist/storage/types.js.map +0 -1
  159. package/dist/transfer/ftp.d.ts.map +0 -1
  160. package/dist/transfer/ftp.js.map +0 -1
  161. package/dist/transfer/index.d.ts.map +0 -1
  162. package/dist/transfer/index.js.map +0 -1
  163. package/dist/transfer/sftp.d.ts.map +0 -1
  164. package/dist/transfer/sftp.js.map +0 -1
  165. package/dist/transfer/types.d.ts.map +0 -1
  166. package/dist/transfer/types.js.map +0 -1
  167. package/dist/tsconfig.tsbuildinfo +0 -1
  168. /package/dist/{compression → src/compression}/index.js +0 -0
  169. /package/dist/{compression → src/compression}/types.js +0 -0
  170. /package/dist/{connection → src/connection}/index.d.ts +0 -0
  171. /package/dist/{format → src/format}/index.js +0 -0
  172. /package/dist/{format → src/format}/types.js +0 -0
  173. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  174. /package/dist/{index.js → src/index.js} +0 -0
  175. /package/dist/{nosql → src/nosql}/index.js +0 -0
  176. /package/dist/{nosql → src/nosql}/types.js +0 -0
  177. /package/dist/{platform.d.ts → src/platform.d.ts} +0 -0
  178. /package/dist/{storage → src/storage}/types.js +0 -0
  179. /package/dist/{transfer → src/transfer}/index.js +0 -0
  180. /package/dist/{transfer → src/transfer}/types.js +0 -0
package/CLA.md CHANGED
@@ -23,4 +23,4 @@ You represent that:
23
23
 
24
24
  ## Agreement
25
25
 
26
- By signing this Agreement through CLA Assistant or by submitting a Contribution, you accept and agree to the terms of this Agreement.
26
+ By signing this Agreement through CLA Assistant or by submitting a Contribution, you accept and agree to the terms of this Agreement.
package/CONTRIBUTING.md CHANGED
@@ -1,4 +1,4 @@
1
- # Contributing to East
1
+ # Contributing to east-node-io
2
2
 
3
3
  Thank you for your interest in contributing! We welcome contributions from the community.
4
4
 
@@ -15,7 +15,7 @@ When you submit your first pull request, the CLA Assistant bot will automaticall
15
15
 
16
16
  ## Contributing Process
17
17
 
18
- 1. Fork the repository
18
+ 1. Fork the [east-workspace monorepo](https://github.com/elaraai/east-workspace)
19
19
  2. Create a feature branch (`git checkout -b feature/amazing-feature`)
20
20
  3. Make your changes
21
21
  4. Commit your changes (`git commit -m 'Add amazing feature'`)
@@ -25,4 +25,4 @@ When you submit your first pull request, the CLA Assistant bot will automaticall
25
25
 
26
26
  ## Questions?
27
27
 
28
- Contact us at support@elara.ai
28
+ Contact us at support@elara.ai
package/LICENSE.md ADDED
@@ -0,0 +1,31 @@
1
+ Copyright (c) 2025 Elara AI Pty Ltd
2
+
3
+ # Dual License — AGPL-3.0 / Commercial
4
+
5
+ This software is available under two licenses. You may choose which license applies to your use:
6
+
7
+ ## Option 1: AGPL-3.0 (Open Source)
8
+
9
+ You may use, modify, and distribute this software under the terms of the GNU Affero General Public License v3.0.
10
+
11
+ This requires that if you use this software in a network service, you must make your complete source code available under AGPL-3.0.
12
+
13
+ Full text: https://www.gnu.org/licenses/agpl-3.0.html
14
+
15
+ ## Option 2: Commercial License
16
+
17
+ If you wish to use this software without the source code disclosure requirements of AGPL-3.0, you must obtain a commercial license from Elara AI Pty Ltd.
18
+
19
+ Contact: support@elara.ai
20
+
21
+ ## Contributions
22
+
23
+ Contributions are welcome. By submitting a pull request, you agree to license your contribution under both AGPL-3.0 and our commercial license terms.
24
+
25
+ ## Governing Law
26
+
27
+ This license is governed by the laws of New South Wales, Australia.
28
+
29
+ ---
30
+
31
+ *Elara AI Pty Ltd*
package/README.md CHANGED
@@ -5,11 +5,11 @@
5
5
  [![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](LICENSE.md)
6
6
  [![Node Version](https://img.shields.io/badge/node-%3E%3D22.0.0-brightgreen.svg)](https://nodejs.org)
7
7
 
8
- East Node IO provides type-safe I/O platform functions for [East](https://github.com/elaraai/east) programs running on Node.js, enabling database operations, cloud storage, file transfer, NoSQL operations, file format processing, and compression.
8
+ East Node IO provides type-safe I/O platform functions for [East](https://github.com/elaraai/east-workspace/tree/main/libs/east) programs running on Node.js, enabling database operations, cloud storage, file transfer, NoSQL operations, file format processing, and compression.
9
9
 
10
10
  ## Features
11
11
 
12
- - **SQL Databases**: SQLite, PostgreSQL, MySQL with connection pooling
12
+ - **SQL Databases**: SQLite, PostgreSQL, MySQL with connection pooling, Microsoft Access (read-only)
13
13
  - **Cloud Storage**: S3 and S3-compatible object storage (MinIO, etc.)
14
14
  - **File Transfer**: FTP and SFTP for legacy system integration
15
15
  - **NoSQL**: Redis caching and MongoDB document storage
@@ -131,9 +131,10 @@ const rowCount = compiled(xlsxBlob); // 100n
131
131
 
132
132
  ### SQL
133
133
 
134
- - **SQLite**: `connect`, `query`, `close`
135
- - **PostgreSQL**: `connect`, `query`, `close`
136
- - **MySQL**: `connect`, `query`, `close`
134
+ - **SQLite**: `connect`, `query`, `select`, `close`
135
+ - **PostgreSQL**: `connect`, `query`, `select`, `close`
136
+ - **MySQL**: `connect`, `query`, `select`, `close`
137
+ - **Access**: `open`, `tables`, `query`, `close` (read-only, .mdb/.accdb)
137
138
 
138
139
  ### Storage
139
140
 
@@ -205,6 +206,22 @@ npm run dev:services:down
205
206
  - [Contributing Guidelines](CONTRIBUTING.md)
206
207
  - [License](LICENSE.md)
207
208
 
209
+ ## Claude Code plugin
210
+
211
+ The East ecosystem also ships a [Claude Code](https://claude.com/claude-code) plugin — East language skills, example search, and preemptive diagnostics for East code — installed separately from the `elaraai` marketplace:
212
+
213
+ ```text
214
+ # Inside Claude Code
215
+ /plugin marketplace add elaraai/east-workspace
216
+ /plugin install east@elaraai
217
+ ```
218
+
219
+ ```bash
220
+ # From a terminal
221
+ claude plugin marketplace add elaraai/east-workspace
222
+ claude plugin install east@elaraai
223
+ ```
224
+
208
225
  ## License
209
226
 
210
227
  Copyright (c) 2025 Elara AI Pty Ltd
@@ -213,7 +230,7 @@ This project is licensed under the GNU Affero General Public License v3.0 - see
213
230
 
214
231
  ## Dependencies
215
232
 
216
- - **SQL**: `better-sqlite3`, `pg`, `mysql2`
233
+ - **SQL**: `better-sqlite3`, `pg`, `mysql2`, `mdb-reader`
217
234
  - **Storage**: `@aws-sdk/client-s3`, `@aws-sdk/s3-request-presigner`
218
235
  - **Transfer**: `basic-ftp`, `ssh2-sftp-client`
219
236
  - **NoSQL**: `ioredis`, `mongodb`
@@ -222,31 +239,47 @@ This project is licensed under the GNU Affero General Public License v3.0 - see
222
239
 
223
240
  ### Ecosystem
224
241
 
225
- - **[East Node](https://github.com/elaraai/east-node)**: Node.js platform functions for I/O, databases, and system operations. Connect East programs to filesystems, SQL/NoSQL databases, cloud storage, and network services.
226
- - [@elaraai/east-node-std](https://www.npmjs.com/package/@elaraai/east-node-std): Filesystem, console, HTTP fetch, crypto, random distributions, timestamps
227
- - [@elaraai/east-node-io](https://www.npmjs.com/package/@elaraai/east-node-io): SQLite, PostgreSQL, MySQL, MongoDB, S3, FTP, SFTP
242
+ - **[East](https://github.com/elaraai/east-workspace/tree/main/libs/east)**: Statically typed, expression-based language with serializable IR. Run portable logic across TypeScript, Python, C, and other runtimes.
243
+ - [@elaraai/east](https://www.npmjs.com/package/@elaraai/east): Core language SDK with type system, expressions, and reference JS compiler
244
+
245
+ - **[East Node](https://github.com/elaraai/east-workspace/tree/main/libs/east-node)**: Node.js platform functions for I/O, databases, and system operations.
246
+ - [@elaraai/east-node-std](https://www.npmjs.com/package/@elaraai/east-node-std): Console, FileSystem, Fetch, Crypto, Time, Path, Random
247
+ - [@elaraai/east-node-io](https://www.npmjs.com/package/@elaraai/east-node-io): SQLite, PostgreSQL, MySQL, MongoDB, Redis, S3, FTP, SFTP, XLSX, XML, compression
228
248
  - [@elaraai/east-node-cli](https://www.npmjs.com/package/@elaraai/east-node-cli): CLI for running East IR programs in Node.js
229
249
 
230
- - **[East Python](https://github.com/elaraai/east-py)**: Python runtime and platform functions for data science and machine learning. Execute East programs with access to optimization solvers, gradient boosting, neural networks, and model explainability.
231
- - [@elaraai/east-py-datascience](https://www.npmjs.com/package/@elaraai/east-py-datascience): TypeScript types for optimization, gradient boosting, neural networks, explainability
250
+ - **[East C](https://github.com/elaraai/east-workspace/tree/main/libs/east-c)**: C11 native runtime for executing East IR. Tarballed for `linux-x64` and `linux-arm64`, attached to each GitHub Release.
251
+ - `east-c`: Core runtime type system, IR interpreter, 200+ builtins, serialization (Beast2, JSON, CSV, East text)
252
+ - `east-c-std`: Console, FileSystem, Fetch, Crypto, Time, Path, Random
253
+ - `east-c-cli`: CLI for running East IR programs natively
254
+
255
+ - **[East Python](https://github.com/elaraai/east-workspace/tree/main/libs/east-py)**: Python runtime, standard platform, I/O, and data-science platform functions. Published to PyPI.
256
+ - [east-py](https://pypi.org/project/east-py/): Core Python runtime — type system, IR compiler, 212+ builtins, Cython-accelerated hot paths
257
+ - [east-py-std](https://pypi.org/project/east-py-std/): Console, FileSystem, Fetch, Crypto, Time, Path, Random
258
+ - [east-py-io](https://pypi.org/project/east-py-io/): SQLite, PostgreSQL, MySQL, MongoDB, Redis, S3, FTP, SFTP, XLSX, XML, compression
259
+ - [east-py-cli](https://pypi.org/project/east-py-cli/): CLI for running East IR programs in Python
260
+ - [east-py-datascience](https://pypi.org/project/east-py-datascience/) (PyPI) + [@elaraai/east-py-datascience](https://www.npmjs.com/package/@elaraai/east-py-datascience) (npm): Optimization (MADS, Optuna, ALNS, GoogleOR), ML (XGBoost, LightGBM, NGBoost, PyTorch, Lightning, GP), Bayesian inference (PyMC), explainability (SHAP), conformal prediction (MAPIE)
232
261
 
233
- - **[East UI](https://github.com/elaraai/east-ui)**: East types and expressions for building dashboards and interactive layouts. Define UIs as data structures that render consistently across React, web, and other environments.
262
+ - **[East UI](https://github.com/elaraai/east-workspace/tree/main/libs/east-ui)**: Typed UI component definitions and React renderer, plus VS Code preview.
234
263
  - [@elaraai/east-ui](https://www.npmjs.com/package/@elaraai/east-ui): 50+ typed UI components for layouts, forms, charts, tables, dialogs
235
- - [@elaraai/east-ui-components](https://www.npmjs.com/package/@elaraai/east-ui-components): React renderer with Chakra UI styling
264
+ - [@elaraai/east-ui-components](https://www.npmjs.com/package/@elaraai/east-ui-components): React renderer with Chakra UI v3 styling
265
+ - [@elaraai/e3-ui](https://www.npmjs.com/package/@elaraai/e3-ui): e3 + UI bridge — Data bindings, `e3.ui()` task, manifest
266
+ - [@elaraai/e3-ui-components](https://www.npmjs.com/package/@elaraai/e3-ui-components): React Query hooks and preview components for the e3 API
267
+ - [east-ui-preview](https://marketplace.visualstudio.com/items?itemName=ElaraAI.east-ui-preview): VS Code extension for live East UI component preview
236
268
 
237
- - **[e3 - East Execution Engine](https://github.com/elaraai/e3)**: Durable execution engine for running East pipelines at scale. Features Git-like content-addressable storage, automatic memoization, task queuing, and real-time monitoring.
269
+ - **[e3 East Execution Engine](https://github.com/elaraai/east-workspace/tree/main/libs/e3)**: Durable execution engine for running East pipelines at scale. Git-like content-addressable storage, automatic memoization, reactive dataflow, real-time monitoring.
238
270
  - [@elaraai/e3](https://www.npmjs.com/package/@elaraai/e3): SDK for authoring e3 packages with typed tasks and pipelines
239
- - [@elaraai/e3-core](https://www.npmjs.com/package/@elaraai/e3-core): Git-like object store, task queue, result caching
271
+ - [@elaraai/e3-core](https://www.npmjs.com/package/@elaraai/e3-core): Object store, dataflow orchestrator, execution state
240
272
  - [@elaraai/e3-types](https://www.npmjs.com/package/@elaraai/e3-types): Shared type definitions for e3 packages
241
- - [@elaraai/e3-cli](https://www.npmjs.com/package/@elaraai/e3-cli): `e3 init`, `e3 run`, `e3 logs` commands for managing and monitoring tasks
242
- - [@elaraai/e3-api-client](https://www.npmjs.com/package/@elaraai/e3-api-client): HTTP client for remote e3 servers
273
+ - [@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-api-client](https://www.npmjs.com/package/@elaraai/e3-api-client): HTTP client for remote e3 repositories
243
275
  - [@elaraai/e3-api-server](https://www.npmjs.com/package/@elaraai/e3-api-server): REST API server for e3 repositories
276
+ - [@elaraai/e3-api-tests](https://www.npmjs.com/package/@elaraai/e3-api-tests): Shared API compliance test suites
244
277
 
245
278
  ## Links
246
279
 
247
280
  - **Website**: [https://elaraai.com/](https://elaraai.com/)
248
- - **East Repository**: [https://github.com/elaraai/East](https://github.com/elaraai/East)
249
- - **Issues**: [https://github.com/elaraai/east-node/issues](https://github.com/elaraai/east-node/issues)
281
+ - **East Repository**: [https://github.com/elaraai/east-workspace/tree/main/libs/east](https://github.com/elaraai/east-workspace/tree/main/libs/east)
282
+ - **Issues**: [https://github.com/elaraai/east-workspace/issues](https://github.com/elaraai/east-workspace/issues)
250
283
  - **Email**: support@elara.ai
251
284
 
252
285
  ## About Elara
@@ -255,4 +288,8 @@ East is developed by [Elara AI Pty Ltd](https://elaraai.com/), an AI-powered pla
255
288
 
256
289
  ---
257
290
 
291
+ *Developed by [Elara AI Pty Ltd](https://elaraai.com/).*
292
+
293
+ ---
294
+
258
295
  *Developed by [Elara AI Pty Ltd](https://elaraai.com/)*
@@ -58,7 +58,7 @@ import type { PlatformFunction } from "@elaraai/east/internal";
58
58
  * - All operations are asynchronous (use East.compileAsync)
59
59
  */
60
60
  export declare const gzip_compress: import("@elaraai/east").AsyncPlatformDefinition<[BlobType, import("@elaraai/east").StructType<{
61
- level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
61
+ readonly level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
62
62
  }>], BlobType>;
63
63
  /**
64
64
  * Decompresses gzip-compressed data.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gzip.d.ts","sourceRoot":"","sources":["../../../src/compression/gzip.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAQ,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAU/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,aAAa;;cAA6E,CAAC;AAExG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,eAAe,uEAA8D,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,gBAAgB,EA6CtC,CAAC"}
@@ -118,7 +118,7 @@ export const GzipImpl = [
118
118
  // Validate level
119
119
  if (level < 0 || level > 9) {
120
120
  throw new EastError(`Invalid compression level: ${level}. Must be 0-9.`, {
121
- location: { filename: "gzip_compress", line: 0n, column: 0n }
121
+ location: [{ filename: "gzip_compress", line: 0n, column: 0n }]
122
122
  });
123
123
  }
124
124
  // Compress using zlib
@@ -129,7 +129,7 @@ export const GzipImpl = [
129
129
  if (err instanceof EastError)
130
130
  throw err;
131
131
  throw new EastError(`Gzip compression failed: ${err.message}`, {
132
- location: { filename: "gzip_compress", line: 0n, column: 0n },
132
+ location: [{ filename: "gzip_compress", line: 0n, column: 0n }],
133
133
  cause: err
134
134
  });
135
135
  }
@@ -144,7 +144,7 @@ export const GzipImpl = [
144
144
  if (err instanceof EastError)
145
145
  throw err;
146
146
  throw new EastError(`Gzip decompression failed: ${err.message}`, {
147
- location: { filename: "gzip_decompress", line: 0n, column: 0n },
147
+ location: [{ filename: "gzip_decompress", line: 0n, column: 0n }],
148
148
  cause: err
149
149
  });
150
150
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gzip.js","sourceRoot":"","sources":["../../../src/compression/gzip.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,IAAI,IAAI,QAAQ,E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AC;YACP,CAAC;YAED,sBAAsB;YACtB,MAAM,UAAU,GAAG,MAAM,SAAS,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YACpD,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAChB,IAAI,GAAG,YAAY,SAAS;gBAAE,MAAM,GAAG,CAAC;YACxC,MAAM,IAAI,SAAS,CAAC,4BAA4B,GAAG,CAAC,OAAO,EAAE,EAAE;gBAC3D,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBAC/D,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,eAAe,CAAC,SAAS,CAAC,KAAK,EAC3B,UAAwC,EAC1C,EAAE;QACA,IAAI,CAAC;YACD,wBAAwB;YACxB,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC,UAAU,CAAC,CAAC;YACnD,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,CAAC;QACxC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAChB,IAAI,GAAG,YAAY,SAAS;gBAAE,MAAM,GAAG,CAAC;YACxC,MAAM,IAAI,SAAS,CAAC,8BAA8B,GAAG,CAAC,OAAO,EAAE,EAAE;gBAC7D,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBACjE,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;CACL,CAAC"}
@@ -88,7 +88,7 @@ export declare const Compression: {
88
88
  * ```
89
89
  */
90
90
  readonly compress: import("@elaraai/east").AsyncPlatformDefinition<[import("@elaraai/east").BlobType, import("@elaraai/east").StructType<{
91
- level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
91
+ readonly level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
92
92
  }>], import("@elaraai/east").BlobType>;
93
93
  /**
94
94
  * Decompresses gzip-compressed data.
@@ -127,7 +127,7 @@ export declare const Compression: {
127
127
  * Gzip compression options.
128
128
  */
129
129
  readonly Options: import("@elaraai/east").StructType<{
130
- level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
130
+ readonly level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
131
131
  }>;
132
132
  };
133
133
  };
@@ -162,10 +162,10 @@ export declare const Compression: {
162
162
  * ```
163
163
  */
164
164
  readonly compress: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
165
- name: import("@elaraai/east").StringType;
166
- data: import("@elaraai/east").BlobType;
165
+ readonly name: import("@elaraai/east").StringType;
166
+ readonly data: import("@elaraai/east").BlobType;
167
167
  }>>, import("@elaraai/east").StructType<{
168
- level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
168
+ readonly level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
169
169
  }>], import("@elaraai/east").BlobType>;
170
170
  /**
171
171
  * Extracts files from a ZIP archive.
@@ -203,21 +203,21 @@ export declare const Compression: {
203
203
  * ZIP compression options.
204
204
  */
205
205
  readonly Options: import("@elaraai/east").StructType<{
206
- level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
206
+ readonly level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
207
207
  }>;
208
208
  /**
209
209
  * Entry in a ZIP archive.
210
210
  */
211
211
  readonly Entry: import("@elaraai/east").StructType<{
212
- name: import("@elaraai/east").StringType;
213
- data: import("@elaraai/east").BlobType;
212
+ readonly name: import("@elaraai/east").StringType;
213
+ readonly data: import("@elaraai/east").BlobType;
214
214
  }>;
215
215
  /**
216
216
  * List of entries for creating a ZIP archive.
217
217
  */
218
218
  readonly Entries: import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
219
- name: import("@elaraai/east").StringType;
220
- data: import("@elaraai/east").BlobType;
219
+ readonly name: import("@elaraai/east").StringType;
220
+ readonly data: import("@elaraai/east").BlobType;
221
221
  }>>;
222
222
  /**
223
223
  * Extracted files from a ZIP archive.
@@ -253,8 +253,8 @@ export declare const Compression: {
253
253
  * ```
254
254
  */
255
255
  readonly create: import("@elaraai/east").AsyncPlatformDefinition<[import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
256
- name: import("@elaraai/east").StringType;
257
- data: import("@elaraai/east").BlobType;
256
+ readonly name: import("@elaraai/east").StringType;
257
+ readonly data: import("@elaraai/east").BlobType;
258
258
  }>>], import("@elaraai/east").BlobType>;
259
259
  /**
260
260
  * Extracts files from a TAR archive.
@@ -288,15 +288,15 @@ export declare const Compression: {
288
288
  * Entry in a TAR archive.
289
289
  */
290
290
  readonly Entry: import("@elaraai/east").StructType<{
291
- name: import("@elaraai/east").StringType;
292
- data: import("@elaraai/east").BlobType;
291
+ readonly name: import("@elaraai/east").StringType;
292
+ readonly data: import("@elaraai/east").BlobType;
293
293
  }>;
294
294
  /**
295
295
  * List of entries for creating a TAR archive.
296
296
  */
297
297
  readonly Entries: import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
298
- name: import("@elaraai/east").StringType;
299
- data: import("@elaraai/east").BlobType;
298
+ readonly name: import("@elaraai/east").StringType;
299
+ readonly data: import("@elaraai/east").BlobType;
300
300
  }>>;
301
301
  /**
302
302
  * Extracted files from a TAR archive.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/compression/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,c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H,OAAO,EAAE,WAAW;QAEpB;;;;WAIG;QACH,cAAc,EAAE,OAAO;QAEvB;;WAEG;QACH,KAAK,EAAE;YACH;;eAEG;YACH,KAAK,EAAE,YAAY;YAEnB;;eAEG;YACH,OAAO,EAAE,cAAc;YAEvB;;eAEG;YACH,SAAS,EAAE,gBAAgB;SAC9B;KACJ;CACK,CAAC"}
@@ -63,8 +63,8 @@ import type { PlatformFunction } from "@elaraai/east/internal";
63
63
  * - Operations are asynchronous (use East.compileAsync)
64
64
  */
65
65
  export declare const tar_create: import("@elaraai/east").AsyncPlatformDefinition<[import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
66
- name: import("@elaraai/east").StringType;
67
- data: BlobType;
66
+ readonly name: import("@elaraai/east").StringType;
67
+ readonly data: BlobType;
68
68
  }>>], BlobType>;
69
69
  /**
70
70
  * Extracts files from a TAR archive.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tar.d.ts","sourceRoot":"","sources":["../../../src/compression/tar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAQ,QAAQ,EAAa,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,UAAU;;;eAA+D,CAAC;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,WAAW,6IAAkE,CAAC;AAyI3F;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,gBAAgB,EAwBrC,CAAC"}
@@ -132,7 +132,7 @@ async function createTar(entries) {
132
132
  });
133
133
  tarPack.on('error', (err) => {
134
134
  reject(new EastError(`TAR creation failed: ${err.message}`, {
135
- location: { filename: "tar_create", line: 0n, column: 0n },
135
+ location: [{ filename: "tar_create", line: 0n, column: 0n }],
136
136
  cause: err
137
137
  }));
138
138
  });
@@ -142,7 +142,7 @@ async function createTar(entries) {
142
142
  const data = entry.data;
143
143
  if (!name || name.length === 0) {
144
144
  reject(new EastError("File name cannot be empty", {
145
- location: { filename: "tar_create", line: 0n, column: 0n }
145
+ location: [{ filename: "tar_create", line: 0n, column: 0n }]
146
146
  }));
147
147
  return;
148
148
  }
@@ -155,7 +155,7 @@ async function createTar(entries) {
155
155
  }, (err) => {
156
156
  if (err) {
157
157
  reject(new EastError(`Failed to add entry ${name}: ${err.message}`, {
158
- location: { filename: "tar_create", line: 0n, column: 0n },
158
+ location: [{ filename: "tar_create", line: 0n, column: 0n }],
159
159
  cause: err
160
160
  }));
161
161
  }
@@ -198,7 +198,7 @@ async function extractTar(tarData) {
198
198
  });
199
199
  stream.on('error', (err) => {
200
200
  reject(new EastError(`Failed to extract entry ${header.name}: ${err.message}`, {
201
- location: { filename: "tar_extract", line: 0n, column: 0n },
201
+ location: [{ filename: "tar_extract", line: 0n, column: 0n }],
202
202
  cause: err
203
203
  }));
204
204
  });
@@ -209,7 +209,7 @@ async function extractTar(tarData) {
209
209
  });
210
210
  tarExtract.on('error', (err) => {
211
211
  reject(new EastError(`TAR extraction failed: ${err.message}`, {
212
- location: { filename: "tar_extract", line: 0n, column: 0n },
212
+ location: [{ filename: "tar_extract", line: 0n, column: 0n }],
213
213
  cause: err
214
214
  }));
215
215
  });
@@ -232,7 +232,7 @@ export const TarImpl = [
232
232
  if (err instanceof EastError)
233
233
  throw err;
234
234
  throw new EastError(`TAR creation failed: ${err.message}`, {
235
- location: { filename: "tar_create", line: 0n, column: 0n },
235
+ location: [{ filename: "tar_create", line: 0n, column: 0n }],
236
236
  cause: err
237
237
  });
238
238
  }
@@ -245,7 +245,7 @@ export const TarImpl = [
245
245
  if (err instanceof EastError)
246
246
  throw err;
247
247
  throw new EastError(`TAR extraction failed: ${err.message}`, {
248
- location: { filename: "tar_extract", line: 0n, column: 0n },
248
+ location: [{ filename: "tar_extract", line: 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,EAAE,CAAC;YAChB,IAAI,GAAG,YAAY,SAAS;gBAAE,MAAM,GAAG,CAAC;YACxC,MAAM,IAAI,SAAS,CAAC,0BAA0B,GAAG,CAAC,OAAO,EAAE,EAAE;gBACzD,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBAC7D,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;CACL,CAAC"}
@@ -30,7 +30,7 @@ export declare const GzipOptionsType: StructType<{
30
30
  * Compression level (0-9).
31
31
  * If not specified, defaults to 6.
32
32
  */
33
- level: OptionType<IntegerType>;
33
+ readonly level: OptionType<IntegerType>;
34
34
  }>;
35
35
  /**
36
36
  * Compression level for zip operations (0-9).
@@ -51,7 +51,7 @@ export declare const ZipOptionsType: StructType<{
51
51
  * Compression level (0-9).
52
52
  * If not specified, defaults to 6.
53
53
  */
54
- level: OptionType<IntegerType>;
54
+ readonly level: OptionType<IntegerType>;
55
55
  }>;
56
56
  /**
57
57
  * Entry in a ZIP archive.
@@ -62,11 +62,11 @@ export declare const ZipEntryType: StructType<{
62
62
  /**
63
63
  * Name/path of the file within the archive.
64
64
  */
65
- name: StringType;
65
+ readonly name: StringType;
66
66
  /**
67
67
  * Uncompressed file data as bytes.
68
68
  */
69
- data: BlobType;
69
+ readonly data: BlobType;
70
70
  }>;
71
71
  /**
72
72
  * List of entries for creating a ZIP archive.
@@ -75,11 +75,11 @@ export declare const ZipEntriesType: ArrayType<StructType<{
75
75
  /**
76
76
  * Name/path of the file within the archive.
77
77
  */
78
- name: StringType;
78
+ readonly name: StringType;
79
79
  /**
80
80
  * Uncompressed file data as bytes.
81
81
  */
82
- data: BlobType;
82
+ readonly data: BlobType;
83
83
  }>>;
84
84
  /**
85
85
  * Entry in a TAR archive.
@@ -90,11 +90,11 @@ export declare const TarEntryType: StructType<{
90
90
  /**
91
91
  * Name/path of the file within the archive.
92
92
  */
93
- name: StringType;
93
+ readonly name: StringType;
94
94
  /**
95
95
  * File data as bytes.
96
96
  */
97
- data: BlobType;
97
+ readonly data: BlobType;
98
98
  }>;
99
99
  /**
100
100
  * List of entries for creating a TAR archive.
@@ -103,11 +103,11 @@ export declare const TarEntriesType: ArrayType<StructType<{
103
103
  /**
104
104
  * Name/path of the file within the archive.
105
105
  */
106
- name: StringType;
106
+ readonly name: StringType;
107
107
  /**
108
108
  * File data as bytes.
109
109
  */
110
- data: BlobType;
110
+ readonly data: BlobType;
111
111
  }>>;
112
112
  /**
113
113
  * Extracted files from a ZIP archive as a dictionary.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/compression/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EACH,UAAU,EACV,UAAU,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,WAAW,EACX,QAAQ,EACX,MAAM,eAAe,CAAC;AAEvB;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,aAAc,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,eAAe;IACxB;;;OAGG;;EAEL,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,cAAc;IACvB;;;OAGG;;EAEL,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAGH;;OAEG;;EAEL,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;IAdvB;;OAEG;;IAGH;;OAEG;;GAO8C,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,YAAY;IACrB;;OAEG;;IAGH;;OAEG;;EAEL,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;IAdvB;;OAEG;;IAGH;;OAEG;;GAO8C,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,gB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,GAAG,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC"}
@@ -68,10 +68,10 @@ import type { PlatformFunction } from "@elaraai/east/internal";
68
68
  * - File names can include directory paths (e.g., "dir/file.txt")
69
69
  */
70
70
  export declare const zip_compress: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
71
- name: import("@elaraai/east").StringType;
72
- data: BlobType;
71
+ readonly name: import("@elaraai/east").StringType;
72
+ readonly data: BlobType;
73
73
  }>>, import("@elaraai/east").StructType<{
74
- level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
74
+ readonly level: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
75
75
  }>], BlobType>;
76
76
  /**
77
77
  * Extracts files from a ZIP archive.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../src/compression/zip.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAQ,QAAQ,EAAa,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAK/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,eAAO,MAAM,YAAY;;;;;cAA4E,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,cAAc,wIAAgE,CAAC;AAmE5F;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,gBAAgB,EAkCrC,CAAC"}
@@ -120,7 +120,7 @@ function compressZip(entries, level) {
120
120
  // Validate level
121
121
  if (level < 0 || level > 9) {
122
122
  throw new EastError(`Invalid compression level: ${level}. Must be 0-9.`, {
123
- location: { filename: "zip_compress", line: 0n, column: 0n }
123
+ location: [{ filename: "zip_compress", line: 0n, column: 0n }]
124
124
  });
125
125
  }
126
126
  const zip = new AdmZip();
@@ -129,7 +129,7 @@ function compressZip(entries, level) {
129
129
  const data = entry.data;
130
130
  if (!name || name.length === 0) {
131
131
  throw new EastError("File name cannot be empty", {
132
- location: { filename: "zip_compress", line: 0n, column: 0n }
132
+ location: [{ filename: "zip_compress", line: 0n, column: 0n }]
133
133
  });
134
134
  }
135
135
  // Add file to ZIP archive
@@ -178,7 +178,7 @@ export const ZipImpl = [
178
178
  if (err instanceof EastError)
179
179
  throw err;
180
180
  throw new EastError(`ZIP compression failed: ${err.message}`, {
181
- location: { filename: "zip_compress", line: 0n, column: 0n },
181
+ location: [{ filename: "zip_compress", line: 0n, column: 0n }],
182
182
  cause: err
183
183
  });
184
184
  }
@@ -191,7 +191,7 @@ export const ZipImpl = [
191
191
  if (err instanceof EastError)
192
192
  throw err;
193
193
  throw new EastError(`ZIP decompression failed: ${err.message}`, {
194
- location: { filename: "zip_decompress", line: 0n, column: 0n },
194
+ location: [{ filename: "zip_decompress", line: 0n, column: 0n }],
195
195
  cause: err
196
196
  });
197
197
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../src/compression/zip.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ,C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EAAE,cAAc,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBAC9D,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;IAEF,cAAc,CAAC,SAAS,CAAC,CACrB,OAAqC,EACvC,EAAE;QACA,IAAI,CAAC;YACD,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC;QAClC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAChB,IAAI,GAAG,YAAY,SAAS;gBAAE,MAAM,GAAG,CAAC;YACxC,MAAM,IAAI,SAAS,CAAC,6BAA6B,GAAG,CAAC,OAAO,EAAE,EAAE;gBAC5D,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;gBAChE,KAAK,EAAE,GAAG;aACb,CAAC,CAAC;QACP,CAAC;IACL,CAAC,CAAC;CACL,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connection/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,CAQnF;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAQlD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAQhD;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAYrD"}
@@ -66,7 +66,7 @@ export function getConnection(handle) {
66
66
  const entry = connectionHandles.get(handle);
67
67
  if (!entry) {
68
68
  throw new EastError(`Invalid connection handle: ${handle}`, {
69
- location: { filename: "connection_handle", line: 0n, column: 0n }
69
+ location: [{ filename: "connection_handle", line: 0n, column: 0n }]
70
70
  });
71
71
  }
72
72
  return entry.connection;
@@ -92,7 +92,7 @@ export function closeHandle(handle) {
92
92
  const entry = connectionHandles.get(handle);
93
93
  if (!entry) {
94
94
  throw new EastError(`Cannot close invalid handle: ${handle}`, {
95
- location: { filename: "connection_close", line: 0n, column: 0n }
95
+ location: [{ filename: "connection_close", line: 0n, column: 0n }]
96
96
  });
97
97
  }
98
98
  connectionHandles.delete(handle);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/connection/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAA8D,CAAC;AAEhG;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,YAAY,CAAC,UAAe,EAAE,OAA6B;IACvE,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,MAAM,KAAK,GAAuD,EAAE,UAAU,EAAE,CAAC;IACjF,IAAI,OAAO,EAAE,CAAC;QACV,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;IAC5B,CAAC;IACD,iBAAiB,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,aAAa,CAAI,MAAc;IAC3C,MAAM,KAAK,GAAG,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK,EAAE,CAAC;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