Commit Graph
20 Commits
Author SHA1 Message Date
Zef Hemel b62cef6d92 Add tag definition and registration to ScriptEnvironment
- Introduced a new `TagDef` type to define tags with optional schema and metatable.
- Added `registerTag` method in `ScriptEnvironment` to register tags.
- Updated `indexSyscalls` to handle tag registration and enrich query results with tag metadata.
- Modified `queryLua` and `DataStore` to support an optional enricher function for enhanced data processing.
2025-04-04 16:56:27 +02:00
Zef Hemel e6a45f213a Remove temporal 2025-03-25 18:55:27 +01:00
Zef Hemel fa8f07a123 Kinda working 2025-03-21 16:12:10 +01:00
Zef Hemel f4de6a4b85 Migrating core use of queryObjects to queryLuaObjects 2025-03-18 18:22:17 +01:00
Zef Hemel fce78a22f8 More Lua template work 2025-01-22 20:26:37 +01:00
Zef Hemel 6078452a6c Breaking Lua API changes:
* tpl -> template.new
* define_command -> command.define
* define_event_listener -> event.listen
* tag -> index.tag

Updated in the docs
2025-01-19 14:32:11 +01:00
Zef Hemel 899c2556cb Lua: more fixes and work on stdlib 2024-10-08 19:53:09 +02:00
Zef Hemel 2c08cb1821 More lua features (some metatable support) and tests 2024-10-04 17:15:50 +02:00
Zef Hemel 3cf7b72ebb First integration of Lua into the core (via space-lua code blocks) 2024-10-03 17:55:51 +02:00
Zef Hemel e29352556b Expose syscalls in space script via globals (no more syscall calls) 2024-08-07 11:09:56 +02:00
Zef Hemel c111f72e09 Lint error removal 2024-07-30 17:33:33 +02:00
Daniel MichelandGitHub 5798a39289 Add the Intl DateTimeFormat polyfill for space scripts without overwriting other Intl classes (#836) 2024-04-02 19:26:06 +02:00
MaksandGitHub 8a3782e946 improve dependency management (#770)
* use import_map.json instead of per-file import

* remove test_deps.ts in favor of import_map

* remove common/deps.ts in favor of import_map

* use import_map instead of server/deps.ts

* make all plug-api files usable without an import_map

* make all lib files usable without an import_map

* remove web/deps.ts in favor of import_map

* fix plug build

* remove plug-api/deps.ts in favor of lib/deps.ts

* fix server deps bundled in client deps
2024-03-16 15:29:24 +01:00
Zef Hemel e919aa82e9 0.7.4 2024-02-29 15:23:05 +01:00
Zef Hemel ff9b39cb5e Emit warning when double registering a space script function 2024-02-28 10:54:47 +01:00
Zef HemelandGitHub de2d1089d4 New space script APIs (#761)
New space script APIs: registerEventListener and registerAttributeExtractor
2024-02-27 20:05:12 +01:00
Zef Hemel cdefe7351a Change to registerFunction space script API (backwards compatibility added) 2024-02-23 14:06:55 +01:00
Zef HemelandGitHub 60d3199d64 Giant code reorganization (#690)
Code restructure
2024-02-08 21:00:45 +01:00
Zef Hemel 05efbc8741 Refactoring and adding ability to create custom commands from space functions 2024-02-07 14:50:01 +01:00
Zef HemelandGitHub 0ddbd877f9 Space script MVP (#685)
* Space Script MVP
* New `command` and `syscall` query sources
2024-02-06 16:51:04 +01:00