@elaraai/e3 1.0.22 → 1.0.24
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/dist/src/browser.d.ts +30 -0
- package/dist/src/browser.d.ts.map +1 -0
- package/dist/src/browser.js +14 -0
- package/dist/src/browser.js.map +1 -0
- package/package.json +8 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* `@elaraai/e3/browser` — the browser-safe authoring core.
|
|
7
|
+
*
|
|
8
|
+
* Re-exports every e3 authoring builder + type that is free of Node-only
|
|
9
|
+
* dependencies (no `node:fs` / `node:crypto` / `yazl`) — i.e. everything on the
|
|
10
|
+
* main `@elaraai/e3` entry EXCEPT the file/zip IO (`e3.export` / `export_`,
|
|
11
|
+
* `sha256File`, `sha256Bytes`, `hashToPath`, `addObject`) and the default `e3`
|
|
12
|
+
* object (which references `export_`).
|
|
13
|
+
*
|
|
14
|
+
* This exists so UI libraries (e.g. `@elaraai/e3-ui`) can import the `task`
|
|
15
|
+
* builder for `ui()` without dragging `node:fs` into a browser bundle (issue
|
|
16
|
+
* #99). App authors keep using the main `@elaraai/e3` entry exactly as before —
|
|
17
|
+
* this is an additive, internal entry, not a replacement.
|
|
18
|
+
*
|
|
19
|
+
* @packageDocumentation
|
|
20
|
+
*/
|
|
21
|
+
export type { DataTreeDef, DatasetDef, DatasetsOf, FunctionDef, MutationDef, RecordDef, TaskDef, PackageDef, PackageItem, MergeDatasets, } from './types.js';
|
|
22
|
+
export type { Runner, FunctionRunner, Platform, EastPyPlatform, EastNodePlatform, EastCPlatform, } from './runner.js';
|
|
23
|
+
export { runnerToCommand, runnerToVariant, DEFAULT_RUNNER } from './runner.js';
|
|
24
|
+
export { input, inputsTree } from './input.js';
|
|
25
|
+
export { record, recordsTree } from './record.js';
|
|
26
|
+
export { mutation } from './mutation.js';
|
|
27
|
+
export { task, customTask, tasksTree } from './task.js';
|
|
28
|
+
export { function_ } from './function.js';
|
|
29
|
+
export { package_ as package } from './package.js';
|
|
30
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,YAAY,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,OAAO,EACP,UAAU,EACV,WAAW,EACX,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,YAAY,EACV,MAAM,EACN,cAAc,EACd,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI/E,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
export { runnerToCommand, runnerToVariant, DEFAULT_RUNNER } from './runner.js';
|
|
6
|
+
// Authoring builders + their singleton trees — all browser-safe (they build
|
|
7
|
+
// in-memory East IR; only `export_`/`sha256` touch node:fs, and are omitted).
|
|
8
|
+
export { input, inputsTree } from './input.js';
|
|
9
|
+
export { record, recordsTree } from './record.js';
|
|
10
|
+
export { mutation } from './mutation.js';
|
|
11
|
+
export { task, customTask, tasksTree } from './task.js';
|
|
12
|
+
export { function_ } from './function.js';
|
|
13
|
+
export { package_ as package } from './package.js';
|
|
14
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE/E,4EAA4E;AAC5E,8EAA8E;AAC9E,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "TypeScript SDK for authoring e3 packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"types": "dist/src/index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"types": "./dist/src/index.d.ts",
|
|
11
12
|
"default": "./dist/src/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./browser": {
|
|
15
|
+
"types": "./dist/src/browser.d.ts",
|
|
16
|
+
"default": "./dist/src/browser.js"
|
|
12
17
|
}
|
|
13
18
|
},
|
|
14
19
|
"dependencies": {
|
|
15
20
|
"yazl": "^2.5.1",
|
|
16
|
-
"@elaraai/e3-types": "1.0.
|
|
21
|
+
"@elaraai/e3-types": "1.0.24"
|
|
17
22
|
},
|
|
18
23
|
"peerDependencies": {
|
|
19
|
-
"@elaraai/east": "1.0.
|
|
24
|
+
"@elaraai/east": "1.0.24"
|
|
20
25
|
},
|
|
21
26
|
"devDependencies": {
|
|
22
27
|
"@types/node": "^22.10.1",
|