@elaraai/east-node-std 1.0.80 → 1.0.82

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
@@ -43,7 +43,7 @@ const processFile = East.function(
43
43
  );
44
44
 
45
45
  // Compile with Node.js platform and execute
46
- const compiled = East.compile(processFile.toIR(), NodePlatform);
46
+ const compiled = East.compile(processFile, NodePlatform);
47
47
  compiled("/path/to/input.txt");
48
48
  ```
49
49
 
@@ -64,13 +64,13 @@ East Node provides these platform modules:
64
64
  **Complete platform:**
65
65
  ```typescript
66
66
  import { NodePlatform } from "@elaraai/east-node-std";
67
- const compiled = East.compile(myFunction.toIR(), NodePlatform);
67
+ const compiled = East.compile(myFunction, NodePlatform);
68
68
  ```
69
69
 
70
70
  **Individual modules:**
71
71
  ```typescript
72
72
  import { Console, FileSystem } from "@elaraai/east-node-std";
73
- const compiled = East.compile(myFunction.toIR(), [...Console.Implementation, ...FileSystem.Implementation]);
73
+ const compiled = East.compile(myFunction, [...Console.Implementation, ...FileSystem.Implementation]);
74
74
  ```
75
75
 
76
76
  ## Documentation
@@ -93,7 +93,7 @@ declare const ConsoleImpl: PlatformFunction[];
93
93
  * $(Console.write("No newline here"));
94
94
  * });
95
95
  *
96
- * const compiled = East.compile(greet.toIR(), Console.Implementation);
96
+ * const compiled = East.compile(greet, Console.Implementation);
97
97
  * await compiled();
98
98
  * ```
99
99
  */
@@ -114,7 +114,7 @@ export declare const Console: {
114
114
  * $(Console.log("Hello, World!"));
115
115
  * });
116
116
  *
117
- * const compiled = East.compile(logMessage.toIR(), Console.Implementation);
117
+ * const compiled = East.compile(logMessage, Console.Implementation);
118
118
  * await compiled(); // Outputs: Hello, World!
119
119
  * ```
120
120
  */
@@ -135,7 +135,7 @@ export declare const Console: {
135
135
  * $(Console.error("Error: Invalid input"));
136
136
  * });
137
137
  *
138
- * const compiled = East.compile(logError.toIR(), Console.Implementation);
138
+ * const compiled = East.compile(logError, Console.Implementation);
139
139
  * await compiled(); // Outputs to stderr: Error: Invalid input
140
140
  * ```
141
141
  */
@@ -157,7 +157,7 @@ export declare const Console: {
157
157
  * $(Console.log("done!"));
158
158
  * });
159
159
  *
160
- * const compiled = East.compile(showProgress.toIR(), Console.Implementation);
160
+ * const compiled = East.compile(showProgress, Console.Implementation);
161
161
  * await compiled(); // Outputs: Processing... done!
162
162
  * ```
163
163
  */
@@ -128,7 +128,7 @@ const ConsoleImpl = [
128
128
  * $(Console.write("No newline here"));
129
129
  * });
130
130
  *
131
- * const compiled = East.compile(greet.toIR(), Console.Implementation);
131
+ * const compiled = East.compile(greet, Console.Implementation);
132
132
  * await compiled();
133
133
  * ```
134
134
  */
@@ -149,7 +149,7 @@ export const Console = {
149
149
  * $(Console.log("Hello, World!"));
150
150
  * });
151
151
  *
152
- * const compiled = East.compile(logMessage.toIR(), Console.Implementation);
152
+ * const compiled = East.compile(logMessage, Console.Implementation);
153
153
  * await compiled(); // Outputs: Hello, World!
154
154
  * ```
155
155
  */
@@ -170,7 +170,7 @@ export const Console = {
170
170
  * $(Console.error("Error: Invalid input"));
171
171
  * });
172
172
  *
173
- * const compiled = East.compile(logError.toIR(), Console.Implementation);
173
+ * const compiled = East.compile(logError, Console.Implementation);
174
174
  * await compiled(); // Outputs to stderr: Error: Invalid input
175
175
  * ```
176
176
  */
@@ -192,7 +192,7 @@ export const Console = {
192
192
  * $(Console.log("done!"));
193
193
  * });
194
194
  *
195
- * const compiled = East.compile(showProgress.toIR(), Console.Implementation);
195
+ * const compiled = East.compile(showProgress, Console.Implementation);
196
196
  * await compiled(); // Outputs: Processing... done!
197
197
  * ```
198
198
  */
@@ -115,7 +115,7 @@ declare const CryptoImpl: PlatformFunction[];
115
115
  * return Crypto.uuid();
116
116
  * });
117
117
  *
118
- * const compiled = East.compile(generateId.toIR(), Crypto.Implementation);
118
+ * const compiled = East.compile(generateId, Crypto.Implementation);
119
119
  * compiled(); // "550e8400-e29b-41d4-a716-446655440000"
120
120
  * ```
121
121
  */
@@ -136,7 +136,7 @@ export declare const Crypto: {
136
136
  * return Crypto.randomBytes(32n);
137
137
  * });
138
138
  *
139
- * const compiled = East.compile(generateToken.toIR(), Crypto.Implementation);
139
+ * const compiled = East.compile(generateToken, Crypto.Implementation);
140
140
  * compiled(); // Uint8Array(32) [...]
141
141
  * ```
142
142
  */
@@ -156,7 +156,7 @@ export declare const Crypto: {
156
156
  * return Crypto.hashSha256(password);
157
157
  * });
158
158
  *
159
- * const compiled = East.compile(hashPassword.toIR(), Crypto.Implementation);
159
+ * const compiled = East.compile(hashPassword, Crypto.Implementation);
160
160
  * compiled("password"); // "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"
161
161
  * ```
162
162
  */
@@ -176,7 +176,7 @@ export declare const Crypto: {
176
176
  * return Crypto.hashSha256Bytes(fileData);
177
177
  * });
178
178
  *
179
- * const compiled = East.compile(hashFile.toIR(), Crypto.Implementation);
179
+ * const compiled = East.compile(hashFile, Crypto.Implementation);
180
180
  * const fileData = new Uint8Array([1, 2, 3]);
181
181
  * compiled(fileData); // Uint8Array(32) [...]
182
182
  * ```
@@ -196,7 +196,7 @@ export declare const Crypto: {
196
196
  * return Crypto.uuid();
197
197
  * });
198
198
  *
199
- * const compiled = East.compile(createRecord.toIR(), Crypto.Implementation);
199
+ * const compiled = East.compile(createRecord, Crypto.Implementation);
200
200
  * compiled(); // "550e8400-e29b-41d4-a716-446655440000"
201
201
  * ```
202
202
  */
@@ -161,7 +161,7 @@ const CryptoImpl = [
161
161
  * return Crypto.uuid();
162
162
  * });
163
163
  *
164
- * const compiled = East.compile(generateId.toIR(), Crypto.Implementation);
164
+ * const compiled = East.compile(generateId, Crypto.Implementation);
165
165
  * compiled(); // "550e8400-e29b-41d4-a716-446655440000"
166
166
  * ```
167
167
  */
@@ -182,7 +182,7 @@ export const Crypto = {
182
182
  * return Crypto.randomBytes(32n);
183
183
  * });
184
184
  *
185
- * const compiled = East.compile(generateToken.toIR(), Crypto.Implementation);
185
+ * const compiled = East.compile(generateToken, Crypto.Implementation);
186
186
  * compiled(); // Uint8Array(32) [...]
187
187
  * ```
188
188
  */
@@ -202,7 +202,7 @@ export const Crypto = {
202
202
  * return Crypto.hashSha256(password);
203
203
  * });
204
204
  *
205
- * const compiled = East.compile(hashPassword.toIR(), Crypto.Implementation);
205
+ * const compiled = East.compile(hashPassword, Crypto.Implementation);
206
206
  * compiled("password"); // "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8"
207
207
  * ```
208
208
  */
@@ -222,7 +222,7 @@ export const Crypto = {
222
222
  * return Crypto.hashSha256Bytes(fileData);
223
223
  * });
224
224
  *
225
- * const compiled = East.compile(hashFile.toIR(), Crypto.Implementation);
225
+ * const compiled = East.compile(hashFile, Crypto.Implementation);
226
226
  * const fileData = new Uint8Array([1, 2, 3]);
227
227
  * compiled(fileData); // Uint8Array(32) [...]
228
228
  * ```
@@ -242,7 +242,7 @@ export const Crypto = {
242
242
  * return Crypto.uuid();
243
243
  * });
244
244
  *
245
- * const compiled = East.compile(createRecord.toIR(), Crypto.Implementation);
245
+ * const compiled = East.compile(createRecord, Crypto.Implementation);
246
246
  * compiled(); // "550e8400-e29b-41d4-a716-446655440000"
247
247
  * ```
248
248
  */
package/dist/src/env.d.ts CHANGED
@@ -61,7 +61,7 @@ declare const EnvImpl: PlatformFunction[];
61
61
  * return Env.get("ERP_DB_PASSWORD").unwrap();
62
62
  * });
63
63
  *
64
- * const compiled = East.compile(connectionPassword.toIR(), Env.Implementation);
64
+ * const compiled = East.compile(connectionPassword, Env.Implementation);
65
65
  * compiled();
66
66
  * ```
67
67
  */
@@ -87,7 +87,7 @@ export declare const Env: {
87
87
  * return Env.get("API_TOKEN");
88
88
  * });
89
89
  *
90
- * const compiled = East.compile(readToken.toIR(), Env.Implementation);
90
+ * const compiled = East.compile(readToken, Env.Implementation);
91
91
  * compiled(); // Returns: some("...") when API_TOKEN is set, none otherwise
92
92
  * ```
93
93
  */
package/dist/src/env.js CHANGED
@@ -74,7 +74,7 @@ const EnvImpl = [
74
74
  * return Env.get("ERP_DB_PASSWORD").unwrap();
75
75
  * });
76
76
  *
77
- * const compiled = East.compile(connectionPassword.toIR(), Env.Implementation);
77
+ * const compiled = East.compile(connectionPassword, Env.Implementation);
78
78
  * compiled();
79
79
  * ```
80
80
  */
@@ -100,7 +100,7 @@ export const Env = {
100
100
  * return Env.get("API_TOKEN");
101
101
  * });
102
102
  *
103
- * const compiled = East.compile(readToken.toIR(), Env.Implementation);
103
+ * const compiled = East.compile(readToken, Env.Implementation);
104
104
  * compiled(); // Returns: some("...") when API_TOKEN is set, none otherwise
105
105
  * ```
106
106
  */
package/dist/src/fs.d.ts CHANGED
@@ -339,7 +339,7 @@ declare const FileSystemImpl: PlatformFunction[];
339
339
  * $(FileSystem.writeFile("output.txt", content));
340
340
  * });
341
341
  *
342
- * const compiled = East.compile(processFile.toIR(), FileSystem.Implementation);
342
+ * const compiled = East.compile(processFile, FileSystem.Implementation);
343
343
  * await compiled();
344
344
  * ```
345
345
  */
@@ -361,7 +361,7 @@ export declare const FileSystem: {
361
361
  * return content;
362
362
  * });
363
363
  *
364
- * const compiled = East.compile(readConfig.toIR(), FileSystem.Implementation);
364
+ * const compiled = East.compile(readConfig, FileSystem.Implementation);
365
365
  * await compiled(); // Returns file content as string
366
366
  * ```
367
367
  */
@@ -383,7 +383,7 @@ export declare const FileSystem: {
383
383
  * $(FileSystem.writeFile("output.txt", "Hello, World!"));
384
384
  * });
385
385
  *
386
- * const compiled = East.compile(saveOutput.toIR(), FileSystem.Implementation);
386
+ * const compiled = East.compile(saveOutput, FileSystem.Implementation);
387
387
  * await compiled(); // File written successfully
388
388
  * ```
389
389
  */
@@ -547,7 +547,7 @@ export declare const FileSystem: {
547
547
  * $(FileSystem.writeFileBytes("output.bin", data));
548
548
  * });
549
549
  *
550
- * const compiled = East.compile(saveBinary.toIR(), FileSystem.Implementation);
550
+ * const compiled = East.compile(saveBinary, FileSystem.Implementation);
551
551
  * const binaryData = new Uint8Array([1, 2, 3, 4]);
552
552
  * await compiled(binaryData); // Binary data written to file
553
553
  * ```
package/dist/src/fs.js CHANGED
@@ -531,7 +531,7 @@ const FileSystemImpl = [
531
531
  * $(FileSystem.writeFile("output.txt", content));
532
532
  * });
533
533
  *
534
- * const compiled = East.compile(processFile.toIR(), FileSystem.Implementation);
534
+ * const compiled = East.compile(processFile, FileSystem.Implementation);
535
535
  * await compiled();
536
536
  * ```
537
537
  */
@@ -553,7 +553,7 @@ export const FileSystem = {
553
553
  * return content;
554
554
  * });
555
555
  *
556
- * const compiled = East.compile(readConfig.toIR(), FileSystem.Implementation);
556
+ * const compiled = East.compile(readConfig, FileSystem.Implementation);
557
557
  * await compiled(); // Returns file content as string
558
558
  * ```
559
559
  */
@@ -575,7 +575,7 @@ export const FileSystem = {
575
575
  * $(FileSystem.writeFile("output.txt", "Hello, World!"));
576
576
  * });
577
577
  *
578
- * const compiled = East.compile(saveOutput.toIR(), FileSystem.Implementation);
578
+ * const compiled = East.compile(saveOutput, FileSystem.Implementation);
579
579
  * await compiled(); // File written successfully
580
580
  * ```
581
581
  */
@@ -739,7 +739,7 @@ export const FileSystem = {
739
739
  * $(FileSystem.writeFileBytes("output.bin", data));
740
740
  * });
741
741
  *
742
- * const compiled = East.compile(saveBinary.toIR(), FileSystem.Implementation);
742
+ * const compiled = East.compile(saveBinary, FileSystem.Implementation);
743
743
  * const binaryData = new Uint8Array([1, 2, 3, 4]);
744
744
  * await compiled(binaryData); // Binary data written to file
745
745
  * ```
@@ -136,7 +136,7 @@ declare const PathImpl: PlatformFunction[];
136
136
  * return fullPath;
137
137
  * });
138
138
  *
139
- * const compiled = East.compile(buildPath.toIR(), Path.Implementation);
139
+ * const compiled = East.compile(buildPath, Path.Implementation);
140
140
  * await compiled(); // Returns: "dir/subdir/file.txt"
141
141
  * ```
142
142
  */
@@ -225,7 +225,7 @@ export declare const Path: {
225
225
  * return Path.extname("file.txt");
226
226
  * });
227
227
  *
228
- * const compiled = East.compile(getExtension.toIR(), Path.Implementation);
228
+ * const compiled = East.compile(getExtension, Path.Implementation);
229
229
  * await compiled(); // Returns: ".txt"
230
230
  * ```
231
231
  */
package/dist/src/path.js CHANGED
@@ -198,7 +198,7 @@ const PathImpl = [
198
198
  * return fullPath;
199
199
  * });
200
200
  *
201
- * const compiled = East.compile(buildPath.toIR(), Path.Implementation);
201
+ * const compiled = East.compile(buildPath, Path.Implementation);
202
202
  * await compiled(); // Returns: "dir/subdir/file.txt"
203
203
  * ```
204
204
  */
@@ -287,7 +287,7 @@ export const Path = {
287
287
  * return Path.extname("file.txt");
288
288
  * });
289
289
  *
290
- * const compiled = East.compile(getExtension.toIR(), Path.Implementation);
290
+ * const compiled = East.compile(getExtension, Path.Implementation);
291
291
  * await compiled(); // Returns: ".txt"
292
292
  * ```
293
293
  */
@@ -431,7 +431,7 @@ declare const RandomImpl: PlatformFunction[];
431
431
  * return Random.range(1n, 6n);
432
432
  * });
433
433
  *
434
- * const compiled = East.compile(rollDice.toIR(), Random.Implementation);
434
+ * const compiled = East.compile(rollDice, Random.Implementation);
435
435
  * const result = compiled(); // Random integer from 1 to 6
436
436
  * ```
437
437
  */
@@ -450,7 +450,7 @@ export declare const Random: {
450
450
  * return Random.uniform();
451
451
  * });
452
452
  *
453
- * const compiled = East.compile(generateRandom.toIR(), Random.Implementation);
453
+ * const compiled = East.compile(generateRandom, Random.Implementation);
454
454
  * const result = compiled(); // e.g., 0.7234891234
455
455
  * ```
456
456
  */
@@ -472,7 +472,7 @@ export declare const Random: {
472
472
  * return z.multiply(2.5).add(10.0); // N(10, 2.5)
473
473
  * });
474
474
  *
475
- * const compiled = East.compile(generateNormal.toIR(), Random.Implementation);
475
+ * const compiled = East.compile(generateNormal, Random.Implementation);
476
476
  * const result = compiled(); // e.g., 9.234 (from N(10, 2.5))
477
477
  * ```
478
478
  */
@@ -495,7 +495,7 @@ export declare const Random: {
495
495
  * return Random.range(1n, 6n); // 1-6 inclusive
496
496
  * });
497
497
  *
498
- * const compiled = East.compile(rollDice.toIR(), Random.Implementation);
498
+ * const compiled = East.compile(rollDice, Random.Implementation);
499
499
  * const result = compiled(); // e.g., 4n
500
500
  * ```
501
501
  */
@@ -519,7 +519,7 @@ export declare const Random: {
519
519
  * return Random.exponential(0.2);
520
520
  * });
521
521
  *
522
- * const compiled = East.compile(waitTime.toIR(), Random.Implementation);
522
+ * const compiled = East.compile(waitTime, Random.Implementation);
523
523
  * const result = compiled(); // e.g., 3.7 minutes
524
524
  * ```
525
525
  */
@@ -542,7 +542,7 @@ export declare const Random: {
542
542
  * return Random.weibull(2.0);
543
543
  * });
544
544
  *
545
- * const compiled = East.compile(lifetime.toIR(), Random.Implementation);
545
+ * const compiled = East.compile(lifetime, Random.Implementation);
546
546
  * const result = compiled(); // e.g., 1.23
547
547
  * ```
548
548
  */
@@ -565,7 +565,7 @@ export declare const Random: {
565
565
  * return Random.bernoulli(0.5);
566
566
  * });
567
567
  *
568
- * const compiled = East.compile(coinFlip.toIR(), Random.Implementation);
568
+ * const compiled = East.compile(coinFlip, Random.Implementation);
569
569
  * const result = compiled(); // e.g., 1n or 0n
570
570
  * ```
571
571
  */
@@ -589,7 +589,7 @@ export declare const Random: {
589
589
  * return Random.binomial(10n, 0.5);
590
590
  * });
591
591
  *
592
- * const compiled = East.compile(heads.toIR(), Random.Implementation);
592
+ * const compiled = East.compile(heads, Random.Implementation);
593
593
  * const result = compiled(); // e.g., 6n
594
594
  * ```
595
595
  */
@@ -613,7 +613,7 @@ export declare const Random: {
613
613
  * return Random.geometric(1.0 / 6.0);
614
614
  * });
615
615
  *
616
- * const compiled = East.compile(attempts.toIR(), Random.Implementation);
616
+ * const compiled = East.compile(attempts, Random.Implementation);
617
617
  * const result = compiled(); // e.g., 4n
618
618
  * ```
619
619
  */
@@ -637,7 +637,7 @@ export declare const Random: {
637
637
  * return Random.poisson(3.0);
638
638
  * });
639
639
  *
640
- * const compiled = East.compile(customers.toIR(), Random.Implementation);
640
+ * const compiled = East.compile(customers, Random.Implementation);
641
641
  * const result = compiled(); // e.g., 2n
642
642
  * ```
643
643
  */
@@ -661,7 +661,7 @@ export declare const Random: {
661
661
  * return Random.pareto(1.16);
662
662
  * });
663
663
  *
664
- * const compiled = East.compile(wealth.toIR(), Random.Implementation);
664
+ * const compiled = East.compile(wealth, Random.Implementation);
665
665
  * const result = compiled(); // e.g., 2.45
666
666
  * ```
667
667
  */
@@ -684,7 +684,7 @@ export declare const Random: {
684
684
  * return Random.logNormal(0.0, 0.2);
685
685
  * });
686
686
  *
687
- * const compiled = East.compile(stockPrice.toIR(), Random.Implementation);
687
+ * const compiled = East.compile(stockPrice, Random.Implementation);
688
688
  * const result = compiled(); // e.g., 1.15
689
689
  * ```
690
690
  */
@@ -708,7 +708,7 @@ export declare const Random: {
708
708
  * return Random.irwinHall(12n);
709
709
  * });
710
710
  *
711
- * const compiled = East.compile(irwinHall.toIR(), Random.Implementation);
711
+ * const compiled = East.compile(irwinHall, Random.Implementation);
712
712
  * const result = compiled(); // e.g., 6.234 (approximately N(6, 1))
713
713
  * ```
714
714
  */
@@ -732,7 +732,7 @@ export declare const Random: {
732
732
  * return Random.bates(12n);
733
733
  * });
734
734
  *
735
- * const compiled = East.compile(bates.toIR(), Random.Implementation);
735
+ * const compiled = East.compile(bates, Random.Implementation);
736
736
  * const result = compiled(); // e.g., 0.523 (approximately N(0.5, 1/144))
737
737
  * ```
738
738
  */
@@ -754,7 +754,7 @@ export declare const Random: {
754
754
  * return Random.uniform(); // Will be reproducible
755
755
  * });
756
756
  *
757
- * const compiled = East.compile(seedAndGenerate.toIR(), Random.Implementation);
757
+ * const compiled = East.compile(seedAndGenerate, Random.Implementation);
758
758
  * const result = compiled(); // Same result every time with same seed
759
759
  * ```
760
760
  *
@@ -590,7 +590,7 @@ const RandomImpl = [
590
590
  * return Random.range(1n, 6n);
591
591
  * });
592
592
  *
593
- * const compiled = East.compile(rollDice.toIR(), Random.Implementation);
593
+ * const compiled = East.compile(rollDice, Random.Implementation);
594
594
  * const result = compiled(); // Random integer from 1 to 6
595
595
  * ```
596
596
  */
@@ -609,7 +609,7 @@ export const Random = {
609
609
  * return Random.uniform();
610
610
  * });
611
611
  *
612
- * const compiled = East.compile(generateRandom.toIR(), Random.Implementation);
612
+ * const compiled = East.compile(generateRandom, Random.Implementation);
613
613
  * const result = compiled(); // e.g., 0.7234891234
614
614
  * ```
615
615
  */
@@ -631,7 +631,7 @@ export const Random = {
631
631
  * return z.multiply(2.5).add(10.0); // N(10, 2.5)
632
632
  * });
633
633
  *
634
- * const compiled = East.compile(generateNormal.toIR(), Random.Implementation);
634
+ * const compiled = East.compile(generateNormal, Random.Implementation);
635
635
  * const result = compiled(); // e.g., 9.234 (from N(10, 2.5))
636
636
  * ```
637
637
  */
@@ -654,7 +654,7 @@ export const Random = {
654
654
  * return Random.range(1n, 6n); // 1-6 inclusive
655
655
  * });
656
656
  *
657
- * const compiled = East.compile(rollDice.toIR(), Random.Implementation);
657
+ * const compiled = East.compile(rollDice, Random.Implementation);
658
658
  * const result = compiled(); // e.g., 4n
659
659
  * ```
660
660
  */
@@ -678,7 +678,7 @@ export const Random = {
678
678
  * return Random.exponential(0.2);
679
679
  * });
680
680
  *
681
- * const compiled = East.compile(waitTime.toIR(), Random.Implementation);
681
+ * const compiled = East.compile(waitTime, Random.Implementation);
682
682
  * const result = compiled(); // e.g., 3.7 minutes
683
683
  * ```
684
684
  */
@@ -701,7 +701,7 @@ export const Random = {
701
701
  * return Random.weibull(2.0);
702
702
  * });
703
703
  *
704
- * const compiled = East.compile(lifetime.toIR(), Random.Implementation);
704
+ * const compiled = East.compile(lifetime, Random.Implementation);
705
705
  * const result = compiled(); // e.g., 1.23
706
706
  * ```
707
707
  */
@@ -724,7 +724,7 @@ export const Random = {
724
724
  * return Random.bernoulli(0.5);
725
725
  * });
726
726
  *
727
- * const compiled = East.compile(coinFlip.toIR(), Random.Implementation);
727
+ * const compiled = East.compile(coinFlip, Random.Implementation);
728
728
  * const result = compiled(); // e.g., 1n or 0n
729
729
  * ```
730
730
  */
@@ -748,7 +748,7 @@ export const Random = {
748
748
  * return Random.binomial(10n, 0.5);
749
749
  * });
750
750
  *
751
- * const compiled = East.compile(heads.toIR(), Random.Implementation);
751
+ * const compiled = East.compile(heads, Random.Implementation);
752
752
  * const result = compiled(); // e.g., 6n
753
753
  * ```
754
754
  */
@@ -772,7 +772,7 @@ export const Random = {
772
772
  * return Random.geometric(1.0 / 6.0);
773
773
  * });
774
774
  *
775
- * const compiled = East.compile(attempts.toIR(), Random.Implementation);
775
+ * const compiled = East.compile(attempts, Random.Implementation);
776
776
  * const result = compiled(); // e.g., 4n
777
777
  * ```
778
778
  */
@@ -796,7 +796,7 @@ export const Random = {
796
796
  * return Random.poisson(3.0);
797
797
  * });
798
798
  *
799
- * const compiled = East.compile(customers.toIR(), Random.Implementation);
799
+ * const compiled = East.compile(customers, Random.Implementation);
800
800
  * const result = compiled(); // e.g., 2n
801
801
  * ```
802
802
  */
@@ -820,7 +820,7 @@ export const Random = {
820
820
  * return Random.pareto(1.16);
821
821
  * });
822
822
  *
823
- * const compiled = East.compile(wealth.toIR(), Random.Implementation);
823
+ * const compiled = East.compile(wealth, Random.Implementation);
824
824
  * const result = compiled(); // e.g., 2.45
825
825
  * ```
826
826
  */
@@ -843,7 +843,7 @@ export const Random = {
843
843
  * return Random.logNormal(0.0, 0.2);
844
844
  * });
845
845
  *
846
- * const compiled = East.compile(stockPrice.toIR(), Random.Implementation);
846
+ * const compiled = East.compile(stockPrice, Random.Implementation);
847
847
  * const result = compiled(); // e.g., 1.15
848
848
  * ```
849
849
  */
@@ -867,7 +867,7 @@ export const Random = {
867
867
  * return Random.irwinHall(12n);
868
868
  * });
869
869
  *
870
- * const compiled = East.compile(irwinHall.toIR(), Random.Implementation);
870
+ * const compiled = East.compile(irwinHall, Random.Implementation);
871
871
  * const result = compiled(); // e.g., 6.234 (approximately N(6, 1))
872
872
  * ```
873
873
  */
@@ -891,7 +891,7 @@ export const Random = {
891
891
  * return Random.bates(12n);
892
892
  * });
893
893
  *
894
- * const compiled = East.compile(bates.toIR(), Random.Implementation);
894
+ * const compiled = East.compile(bates, Random.Implementation);
895
895
  * const result = compiled(); // e.g., 0.523 (approximately N(0.5, 1/144))
896
896
  * ```
897
897
  */
@@ -913,7 +913,7 @@ export const Random = {
913
913
  * return Random.uniform(); // Will be reproducible
914
914
  * });
915
915
  *
916
- * const compiled = East.compile(seedAndGenerate.toIR(), Random.Implementation);
916
+ * const compiled = East.compile(seedAndGenerate, Random.Implementation);
917
917
  * const result = compiled(); // Same result every time with same seed
918
918
  * ```
919
919
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elaraai/east-node-std",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "East Node - Node.js platform integration for East language",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "typescript": "~5.9.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "@elaraai/east": "1.0.80"
53
+ "@elaraai/east": "1.0.82"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "rm -rf dist && tsc",