@amxts/core 0.2.4 → 0.3.0
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 +5 -5
- package/README.ru.md +5 -5
- package/as/amxts.d.ts +13 -3
- package/as/entities.ts +571 -501
- package/as/events.ts +3323 -557
- package/as/facade.ts +3079 -718
- package/as/fetch.ts +2 -2
- package/as/fs.ts +352 -59
- package/as/hlds.ts +121 -120
- package/as/hooks.ts +10585 -5177
- package/as/lib/check.ts +3 -2
- package/as/natives.ts +856 -1272
- package/as/promise.ts +37 -27
- package/as/vector.ts +94 -14
- package/includes/order.txt +17 -19
- package/node_modules/assemblyscript/std/assembly/index.d.ts +1 -1
- package/package.json +9 -6
- package/runtime/deps/assemblyscript/dist/asc.js +136 -42
- package/runtime/deps/assemblyscript/dist/assemblyscript.js +141 -141
- package/runtime/licenses/README.md +9 -7
- package/runtime/licenses/ReGameDLL-LICENSE +21 -0
- package/runtime/licenses/ReHLDS-LICENSE +21 -0
- package/runtime/licenses/zlib-LICENSE +22 -0
- package/runtime/natives.txt +618 -523
- package/runtime/patches/README.md +87 -1
- package/runtime/patches/assemblyscript-0.28.20-amxts.patch +4838 -416
- package/runtime/patches/wamr-2.4.5-amxts.patch +417 -5
- package/scripts/auto-imports.ts +1 -1
- package/scripts/build-identity.ts +102 -65
- package/scripts/build-wasm.ts +12 -12
- package/scripts/check.ts +4 -1
- package/scripts/client-messages.ts +73 -1
- package/scripts/compile-cache.ts +11 -8
- package/scripts/compile-pool.ts +6 -3
- package/scripts/compile-worker.ts +23 -23
- package/scripts/compile.ts +142 -19
- package/scripts/docs/as/amxts.ts +10 -4
- package/scripts/docs/as/facade.ts +1779 -275
- package/scripts/docs/as/fetch.ts +2 -2
- package/scripts/docs/as/fs.ts +190 -6
- package/scripts/docs/as/vector.ts +81 -0
- package/scripts/docs/entities.ts +12 -0
- package/scripts/docs/events.ts +49 -13
- package/scripts/docs/game.ts +6 -0
- package/scripts/docs/messages.ts +10 -1
- package/scripts/hlds-events.ts +11 -11
- package/scripts/includes.ts +3 -4
- package/scripts/leaf-natives.ts +84 -0
- package/scripts/player-fields.ts +1 -1
- package/scripts/plugin-natives.ts +1 -1
- package/scripts/prebuilt.ts +41 -10
- package/scripts/project.ts +2 -3
- package/scripts/reapi-events.ts +9 -9
- package/scripts/server-env.ts +145 -0
- package/scripts/shared-modules.ts +23 -7
- package/scripts/system.ts +1 -1
- package/scripts/tracked-fs.ts +11 -2
- package/scripts/typed-commands.ts +153 -15
- package/scripts/upgrade-calls.ts +225 -0
- package/scripts/upgrade-names.ts +1 -4
- package/scripts/upgrade.ts +26 -11
- package/src/cli-api.mjs +3 -2
- package/src/system.mjs +21 -11
- package/src/testing/compile.ts +31 -8
- package/src/testing/coroutines.ts +0 -10
- package/src/testing/memory.ts +89 -2
- package/src/testing/natives.ts +67 -30
- package/src/testing/server.ts +1094 -155
- package/src/testing/tables.ts +23 -6
- package/src/typecheck.mjs +110 -0
- package/runtime/licenses/Bun-LICENSE.md +0 -84
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
# Licenses of what the server kit carries
|
|
2
2
|
|
|
3
3
|
The server kit (`bun run serverkit`) and the release ship programs built from
|
|
4
|
-
other projects. Their licenses go with them: `bun run serverkit` copies
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
other projects. Their licenses go with them: `bun run serverkit` copies those
|
|
5
|
+
of what the kit carries - the module and the example plugin, `hello.aot` -
|
|
6
|
+
into the kit as `addons/amxts/licenses/`, with amxts' own `LICENSE` beside
|
|
7
|
+
them as `amxts-LICENSE`.
|
|
7
8
|
|
|
8
9
|
| file | project | in |
|
|
9
10
|
| --- | --- | --- |
|
|
10
|
-
| `AssemblyScript-LICENSE`, `AssemblyScript-NOTICE` | [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) 0.28.20, **patched** (`runtime/patches/assemblyscript-0.28.20-amxts.patch`) - Apache-2.0 | `amxts
|
|
11
|
-
| `Binaryen-LICENSE` | [Binaryen](https://github.com/WebAssembly/binaryen), the version AssemblyScript 0.28.20 depends on - Apache-2.0 |
|
|
12
|
-
| `Bun-LICENSE.md` | [Bun](https://github.com/oven-sh/bun) 1.4.2, the runtime `bun build --compile` puts in - MIT, with the libraries it links statically | `amxts-compile` |
|
|
11
|
+
| `AssemblyScript-LICENSE`, `AssemblyScript-NOTICE` | [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) 0.28.20, **patched** (`runtime/patches/assemblyscript-0.28.20-amxts.patch`) - Apache-2.0: its runtime and standard library compile into every plugin | `hello.aot`, `@amxts/core` |
|
|
12
|
+
| `Binaryen-LICENSE` | [Binaryen](https://github.com/WebAssembly/binaryen), the version AssemblyScript 0.28.20 depends on - Apache-2.0 | `@amxts/core` |
|
|
13
13
|
| `WAMR-LICENSE` | [WAMR](https://github.com/bytecodealliance/wasm-micro-runtime) 2.4.5, **patched** (`runtime/patches/wamr-2.4.5-amxts.patch`) - Apache-2.0 with LLVM exceptions | `wamrc`, the `amxts_amxx` module |
|
|
14
|
-
| `AMXX-LICENSE.txt`, `GPL-3.0.txt` | [AMX Mod X](https://github.com/alliedmodders/amxmodx) - GPL-3.0-or-later with AMX Mod X's exceptions: its module SDK is linked into the module and its includes build the
|
|
14
|
+
| `AMXX-LICENSE.txt`, `GPL-3.0.txt` | [AMX Mod X](https://github.com/alliedmodders/amxmodx) - GPL-3.0-or-later with AMX Mod X's exceptions: its module SDK is linked into the module and its includes build the natives' image the module carries, so the module is distributed under GPL-3.0-or-later (its sources in this repository are MIT) | the `amxts_amxx` module |
|
|
15
|
+
| `ReGameDLL-LICENSE`, `ReHLDS-LICENSE` | [ReGameDLL_CS](https://github.com/rehlds/ReGameDLL_CS) and [ReHLDS](https://github.com/rehlds/ReHLDS) - MIT: the module's hooks of their hookchains are generated from their API headers (`runtime/vendor`) | the `amxts_amxx` module |
|
|
15
16
|
| `curl-COPYING` | [curl](https://curl.se) 8.22.0, linked into the module statically for `fetch` - the curl license (MIT-style) | the `amxts_amxx` module |
|
|
16
17
|
| `mbedTLS-LICENSE` | [Mbed TLS](https://github.com/Mbed-TLS/mbedtls) 3.6.7, linked into the module statically for HTTPS, FTPS and SFTP - Apache-2.0 (or GPL-2.0-or-later) | the `amxts_amxx` module |
|
|
17
18
|
| `libssh2-COPYING` | [libssh2](https://libssh2.org) 1.11.1, linked into the module statically for SFTP - BSD-3-Clause | the `amxts_amxx` module |
|
|
19
|
+
| `zlib-LICENSE` | [zlib](https://zlib.net) 1.2.11, the copy AMX Mod X's source carries, linked into the module statically for `extract`'s inflate - the zlib license | the `amxts_amxx` module |
|
|
18
20
|
| `MPL-2.0.txt` | Mozilla's list of certificate authorities, as [curl publishes it](https://curl.se/docs/caextract.html), carried inside the module for HTTPS - MPL-2.0 | the `amxts_amxx` module |
|
|
19
21
|
| `LLVM-LICENSE.TXT` | [LLVM](https://github.com/llvm/llvm-project) 18.1.8, linked into `wamrc` statically - Apache-2.0 with LLVM exceptions | `wamrc` |
|
|
20
22
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015–2025 ReGameDLL_CS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014–2025 ReHLDS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
zlib version 1.2.11, January 15th, 2017
|
|
2
|
+
|
|
3
|
+
Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
|
|
4
|
+
|
|
5
|
+
This software is provided 'as-is', without any express or implied
|
|
6
|
+
warranty. In no event will the authors be held liable for any damages
|
|
7
|
+
arising from the use of this software.
|
|
8
|
+
|
|
9
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
10
|
+
including commercial applications, and to alter it and redistribute it
|
|
11
|
+
freely, subject to the following restrictions:
|
|
12
|
+
|
|
13
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
14
|
+
claim that you wrote the original software. If you use this software
|
|
15
|
+
in a product, an acknowledgment in the product documentation would be
|
|
16
|
+
appreciated but is not required.
|
|
17
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
18
|
+
misrepresented as being the original software.
|
|
19
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
20
|
+
|
|
21
|
+
Jean-loup Gailly Mark Adler
|
|
22
|
+
jloup@gzip.org madler@alumni.caltech.edu
|