@staal/node 0.23.0 → 0.24.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.
@@ -7,7 +7,7 @@ verbatim. staalc's own licence is in LICENSE and NOTICE.
7
7
  SQLite, which rusqlite builds into staalc (through libsqlite3-sys), is in the public
8
8
  domain: https://www.sqlite.org/copyright.html
9
9
 
10
- 172 crates.
10
+ 175 crates.
11
11
 
12
12
  ================================================================================
13
13
  aho-corasick 1.1.5: Unlicense OR MIT <https://github.com/BurntSushi/aho-corasick>
@@ -10572,6 +10572,243 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
10572
10572
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
10573
10573
  DEALINGS IN THE SOFTWARE.
10574
10574
 
10575
+ ================================================================================
10576
+ mach2 0.4.3: BSD-2-Clause OR MIT OR Apache-2.0 <https://github.com/JohnTitor/mach2>
10577
+ ================================================================================
10578
+
10579
+ --- LICENSE-APACHE ---
10580
+
10581
+ Apache License
10582
+ Version 2.0, January 2004
10583
+ http://www.apache.org/licenses/
10584
+
10585
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10586
+
10587
+ 1. Definitions.
10588
+
10589
+ "License" shall mean the terms and conditions for use, reproduction,
10590
+ and distribution as defined by Sections 1 through 9 of this document.
10591
+
10592
+ "Licensor" shall mean the copyright owner or entity authorized by
10593
+ the copyright owner that is granting the License.
10594
+
10595
+ "Legal Entity" shall mean the union of the acting entity and all
10596
+ other entities that control, are controlled by, or are under common
10597
+ control with that entity. For the purposes of this definition,
10598
+ "control" means (i) the power, direct or indirect, to cause the
10599
+ direction or management of such entity, whether by contract or
10600
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
10601
+ outstanding shares, or (iii) beneficial ownership of such entity.
10602
+
10603
+ "You" (or "Your") shall mean an individual or Legal Entity
10604
+ exercising permissions granted by this License.
10605
+
10606
+ "Source" form shall mean the preferred form for making modifications,
10607
+ including but not limited to software source code, documentation
10608
+ source, and configuration files.
10609
+
10610
+ "Object" form shall mean any form resulting from mechanical
10611
+ transformation or translation of a Source form, including but
10612
+ not limited to compiled object code, generated documentation,
10613
+ and conversions to other media types.
10614
+
10615
+ "Work" shall mean the work of authorship, whether in Source or
10616
+ Object form, made available under the License, as indicated by a
10617
+ copyright notice that is included in or attached to the work
10618
+ (an example is provided in the Appendix below).
10619
+
10620
+ "Derivative Works" shall mean any work, whether in Source or Object
10621
+ form, that is based on (or derived from) the Work and for which the
10622
+ editorial revisions, annotations, elaborations, or other modifications
10623
+ represent, as a whole, an original work of authorship. For the purposes
10624
+ of this License, Derivative Works shall not include works that remain
10625
+ separable from, or merely link (or bind by name) to the interfaces of,
10626
+ the Work and Derivative Works thereof.
10627
+
10628
+ "Contribution" shall mean any work of authorship, including
10629
+ the original version of the Work and any modifications or additions
10630
+ to that Work or Derivative Works thereof, that is intentionally
10631
+ submitted to Licensor for inclusion in the Work by the copyright owner
10632
+ or by an individual or Legal Entity authorized to submit on behalf of
10633
+ the copyright owner. For the purposes of this definition, "submitted"
10634
+ means any form of electronic, verbal, or written communication sent
10635
+ to the Licensor or its representatives, including but not limited to
10636
+ communication on electronic mailing lists, source code control systems,
10637
+ and issue tracking systems that are managed by, or on behalf of, the
10638
+ Licensor for the purpose of discussing and improving the Work, but
10639
+ excluding communication that is conspicuously marked or otherwise
10640
+ designated in writing by the copyright owner as "Not a Contribution."
10641
+
10642
+ "Contributor" shall mean Licensor and any individual or Legal Entity
10643
+ on behalf of whom a Contribution has been received by Licensor and
10644
+ subsequently incorporated within the Work.
10645
+
10646
+ 2. Grant of Copyright License. Subject to the terms and conditions of
10647
+ this License, each Contributor hereby grants to You a perpetual,
10648
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
10649
+ copyright license to reproduce, prepare Derivative Works of,
10650
+ publicly display, publicly perform, sublicense, and distribute the
10651
+ Work and such Derivative Works in Source or Object form.
10652
+
10653
+ 3. Grant of Patent License. Subject to the terms and conditions of
10654
+ this License, each Contributor hereby grants to You a perpetual,
10655
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
10656
+ (except as stated in this section) patent license to make, have made,
10657
+ use, offer to sell, sell, import, and otherwise transfer the Work,
10658
+ where such license applies only to those patent claims licensable
10659
+ by such Contributor that are necessarily infringed by their
10660
+ Contribution(s) alone or by combination of their Contribution(s)
10661
+ with the Work to which such Contribution(s) was submitted. If You
10662
+ institute patent litigation against any entity (including a
10663
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
10664
+ or a Contribution incorporated within the Work constitutes direct
10665
+ or contributory patent infringement, then any patent licenses
10666
+ granted to You under this License for that Work shall terminate
10667
+ as of the date such litigation is filed.
10668
+
10669
+ 4. Redistribution. You may reproduce and distribute copies of the
10670
+ Work or Derivative Works thereof in any medium, with or without
10671
+ modifications, and in Source or Object form, provided that You
10672
+ meet the following conditions:
10673
+
10674
+ (a) You must give any other recipients of the Work or
10675
+ Derivative Works a copy of this License; and
10676
+
10677
+ (b) You must cause any modified files to carry prominent notices
10678
+ stating that You changed the files; and
10679
+
10680
+ (c) You must retain, in the Source form of any Derivative Works
10681
+ that You distribute, all copyright, patent, trademark, and
10682
+ attribution notices from the Source form of the Work,
10683
+ excluding those notices that do not pertain to any part of
10684
+ the Derivative Works; and
10685
+
10686
+ (d) If the Work includes a "NOTICE" text file as part of its
10687
+ distribution, then any Derivative Works that You distribute must
10688
+ include a readable copy of the attribution notices contained
10689
+ within such NOTICE file, excluding those notices that do not
10690
+ pertain to any part of the Derivative Works, in at least one
10691
+ of the following places: within a NOTICE text file distributed
10692
+ as part of the Derivative Works; within the Source form or
10693
+ documentation, if provided along with the Derivative Works; or,
10694
+ within a display generated by the Derivative Works, if and
10695
+ wherever such third-party notices normally appear. The contents
10696
+ of the NOTICE file are for informational purposes only and
10697
+ do not modify the License. You may add Your own attribution
10698
+ notices within Derivative Works that You distribute, alongside
10699
+ or as an addendum to the NOTICE text from the Work, provided
10700
+ that such additional attribution notices cannot be construed
10701
+ as modifying the License.
10702
+
10703
+ You may add Your own copyright statement to Your modifications and
10704
+ may provide additional or different license terms and conditions
10705
+ for use, reproduction, or distribution of Your modifications, or
10706
+ for any such Derivative Works as a whole, provided Your use,
10707
+ reproduction, and distribution of the Work otherwise complies with
10708
+ the conditions stated in this License.
10709
+
10710
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
10711
+ any Contribution intentionally submitted for inclusion in the Work
10712
+ by You to the Licensor shall be under the terms and conditions of
10713
+ this License, without any additional terms or conditions.
10714
+ Notwithstanding the above, nothing herein shall supersede or modify
10715
+ the terms of any separate license agreement you may have executed
10716
+ with Licensor regarding such Contributions.
10717
+
10718
+ 6. Trademarks. This License does not grant permission to use the trade
10719
+ names, trademarks, service marks, or product names of the Licensor,
10720
+ except as required for reasonable and customary use in describing the
10721
+ origin of the Work and reproducing the content of the NOTICE file.
10722
+
10723
+ 7. Disclaimer of Warranty. Unless required by applicable law or
10724
+ agreed to in writing, Licensor provides the Work (and each
10725
+ Contributor provides its Contributions) on an "AS IS" BASIS,
10726
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10727
+ implied, including, without limitation, any warranties or conditions
10728
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
10729
+ PARTICULAR PURPOSE. You are solely responsible for determining the
10730
+ appropriateness of using or redistributing the Work and assume any
10731
+ risks associated with Your exercise of permissions under this License.
10732
+
10733
+ 8. Limitation of Liability. In no event and under no legal theory,
10734
+ whether in tort (including negligence), contract, or otherwise,
10735
+ unless required by applicable law (such as deliberate and grossly
10736
+ negligent acts) or agreed to in writing, shall any Contributor be
10737
+ liable to You for damages, including any direct, indirect, special,
10738
+ incidental, or consequential damages of any character arising as a
10739
+ result of this License or out of the use or inability to use the
10740
+ Work (including but not limited to damages for loss of goodwill,
10741
+ work stoppage, computer failure or malfunction, or any and all
10742
+ other commercial damages or losses), even if such Contributor
10743
+ has been advised of the possibility of such damages.
10744
+
10745
+ 9. Accepting Warranty or Additional Liability. While redistributing
10746
+ the Work or Derivative Works thereof, You may choose to offer,
10747
+ and charge a fee for, acceptance of support, warranty, indemnity,
10748
+ or other liability obligations and/or rights consistent with this
10749
+ License. However, in accepting such obligations, You may act only
10750
+ on Your own behalf and on Your sole responsibility, not on behalf
10751
+ of any other Contributor, and only if You agree to indemnify,
10752
+ defend, and hold each Contributor harmless for any liability
10753
+ incurred by, or claims asserted against, such Contributor by reason
10754
+ of your accepting any such warranty or additional liability.
10755
+
10756
+ END OF TERMS AND CONDITIONS
10757
+
10758
+ --- LICENSE-BSD ---
10759
+
10760
+ Copyright (c) 2019 Nick Fitzgerald, 2021 Yuki Okushi
10761
+ All rights reserved.
10762
+
10763
+ Redistribution and use in source and binary forms, with or without modification,
10764
+ are permitted provided that the following conditions are met:
10765
+
10766
+ 1. Redistributions of source code must retain the above copyright notice, this
10767
+ list of conditions and the following disclaimer.
10768
+
10769
+ 2. Redistributions in binary form must reproduce the above copyright notice,
10770
+ this list of conditions and the following disclaimer in the documentation
10771
+ and/or other materials provided with the distribution.
10772
+
10773
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
10774
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10775
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
10776
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
10777
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
10778
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
10779
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
10780
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
10781
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
10782
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10783
+
10784
+ --- LICENSE-MIT ---
10785
+
10786
+ Copyright (c) 2019 Nick Fitzgerald, 2021 Yuki Okushi
10787
+
10788
+ Permission is hereby granted, free of charge, to any
10789
+ person obtaining a copy of this software and associated
10790
+ documentation files (the "Software"), to deal in the
10791
+ Software without restriction, including without
10792
+ limitation the rights to use, copy, modify, merge,
10793
+ publish, distribute, sublicense, and/or sell copies of
10794
+ the Software, and to permit persons to whom the Software
10795
+ is furnished to do so, subject to the following
10796
+ conditions:
10797
+
10798
+ The above copyright notice and this permission notice
10799
+ shall be included in all copies or substantial portions
10800
+ of the Software.
10801
+
10802
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
10803
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
10804
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
10805
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
10806
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
10807
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
10808
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
10809
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
10810
+ DEALINGS IN THE SOFTWARE.
10811
+
10575
10812
  ================================================================================
10576
10813
  md-5 0.11.0: MIT OR Apache-2.0 <https://github.com/RustCrypto/hashes>
10577
10814
  sha2 0.11.1: MIT OR Apache-2.0 <https://github.com/RustCrypto/hashes>
@@ -11128,6 +11365,48 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
11128
11365
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
11129
11366
  SOFTWARE.
11130
11367
 
11368
+ ================================================================================
11369
+ objc2-core-foundation 0.3.2: Zlib OR Apache-2.0 OR MIT <https://github.com/madsmtm/objc2>
11370
+ objc2-system-configuration 0.3.2: Zlib OR Apache-2.0 OR MIT <https://github.com/madsmtm/objc2>
11371
+ ================================================================================
11372
+
11373
+ --- LICENSE.md (github.com/madsmtm/objc2, tag frameworks-0.3.2), taken under the Zlib licence it offers ---
11374
+
11375
+ # License
11376
+
11377
+ The licensing of these crates is a bit complicated:
11378
+ - The crates `objc2`, `block2`, `objc2-foundation` and `objc2-encode` are
11379
+ [currently][#23] licensed under [the MIT license][MIT].
11380
+ - All other crates are trio-licensed under the [Zlib], [Apache-2.0] or [MIT]
11381
+ license, at your option.
11382
+
11383
+ Furthermore, the crates are (usually automatically) derived from Apple SDKs,
11384
+ and that may have implications for licensing, see below for details.
11385
+
11386
+ [#23]: https://github.com/madsmtm/objc2/issues/23
11387
+ [MIT]: https://opensource.org/license/MIT
11388
+ [Zlib]: https://zlib.net/zlib_license.html
11389
+ [Apache-2.0]: https://www.apache.org/licenses/LICENSE-2.0
11390
+
11391
+
11392
+ ## Apple SDKs
11393
+
11394
+ These crates are derived from Apple SDKs shipped with Xcode. You can obtain a
11395
+ copy of the Xcode license at:
11396
+
11397
+ https://www.apple.com/legal/sla/docs/xcode.pdf
11398
+
11399
+ Or by typing `xcodebuild -license` in your terminal.
11400
+
11401
+ From reading the license, it is unclear whether distributing derived works
11402
+ such as these crates are allowed?
11403
+
11404
+ But in any case, to practically use these crates, you will have to link, and
11405
+ that only works when you have the correct Xcode SDK available to provide the
11406
+ required `.tbd` files, which is why we choose to still use the normal SPDX
11407
+ identifiers in the crates (Xcode is required to use the crates, and when using
11408
+ Xcode you have already agreed to the Xcode license).
11409
+
11131
11410
  ================================================================================
11132
11411
  object 0.40.0: Apache-2.0 OR MIT <https://github.com/gimli-rs/object>
11133
11412
  ================================================================================
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @staal/node: Staal for Node.js
2
2
 
3
3
  Run [Staal](https://github.com/laurells/staal) programs from Node.js and TypeScript.
4
- Staal is a programming language for software where AI acts: its compiler refuses a
4
+ Staal is the programming language for agents: its compiler refuses a
5
5
  program that could act without permission, use a model's answer unchecked, or
6
6
  overspend, and its runtime never repeats an action after a crash.
7
7
 
@@ -31,8 +31,9 @@ in `index.d.ts`: `done` with a `result`, `failed` with a `failure`, `stopped` (a
31
31
  action in doubt: `resolve` it, then `resume`), `invalid` with located check errors,
32
32
  or `error`. Pass `{ engine: 'native' }` to run pure code as machine code.
33
33
 
34
- **Platforms.** Linux on x86_64 with glibc 2.28 or newer, Node 18 or newer. Other
35
- platforms come later; until then, build `node/` from the repository.
34
+ **Platforms.** Node 18 or newer, on Linux (x86_64 and arm64, glibc 2.28 or newer) and
35
+ macOS (Apple Silicon, macOS 11 or newer; Intel, macOS 10.12 or newer). Elsewhere,
36
+ build `node/` from the repository.
36
37
 
37
38
  **Licence.** Apache-2.0 WITH LLVM-exception. The addon contains staalc and its Rust
38
39
  dependencies, whose licences are in `LICENSE-THIRD-PARTY.txt`.
Binary file
Binary file
Binary file
Binary file
package/index.js CHANGED
@@ -27,7 +27,7 @@ function load() {
27
27
  if (!fs.existsSync(file)) {
28
28
  throw new Error(
29
29
  `staal: this package has no build for ${platformDir()} yet (looked for ${file}). ` +
30
- 'Builds exist for linux-x64-gnu; elsewhere, build node/ from https://github.com/laurells/staal',
30
+ 'Builds exist for linux-x64-gnu, linux-arm64-gnu, darwin-arm64 and darwin-x64; elsewhere, build node/ from https://github.com/laurells/staal',
31
31
  );
32
32
  }
33
33
  return require(file);
package/package.json CHANGED
@@ -1,7 +1,15 @@
1
1
  {
2
2
  "name": "@staal/node",
3
- "version": "0.23.0",
4
- "description": "Run Staal programs from Node.js: the staalc compiler and runtime, through its C interface",
3
+ "version": "0.24.1",
4
+ "description": "Staal, the programming language for agents, for Node.js: the staalc compiler and runtime, through its C interface",
5
+ "keywords": [
6
+ "staal",
7
+ "agents",
8
+ "ai-agents",
9
+ "programming-language",
10
+ "compiler",
11
+ "capabilities"
12
+ ],
5
13
  "license": "Apache-2.0 WITH LLVM-exception",
6
14
  "homepage": "https://laurells.github.io/staal/",
7
15
  "repository": {
@@ -28,13 +36,12 @@
28
36
  "node": ">=18"
29
37
  },
30
38
  "os": [
31
- "linux"
39
+ "linux",
40
+ "darwin"
32
41
  ],
33
42
  "cpu": [
34
- "x64"
35
- ],
36
- "libc": [
37
- "glibc"
43
+ "x64",
44
+ "arm64"
38
45
  ],
39
46
  "scripts": {
40
47
  "test": "node --test test/staal.test.mjs",