Commit 2cf3c2b
Development environment setup (#1)
* feat: implement mcpplibs.capi.lua — C++23 module binding for Lua C API
- Add src/capi/lua.cppm (module interface) and src/capi/lua.cpp (implementation)
- Wrap lua.h, lauxlib.h, lualib.h in mcpplibs::capi::lua namespace
- Types: State, Number, Integer, CFunction, L_Reg, L_Buffer, etc.
- Constants: status codes, type tags, operators, GC options, hook masks
- Functions: 100+ bindings covering state, stack, push/access, tables,
globals, calls, coroutines, GC, debug, auxiliary library, standard libs
- Use extern C wrapper header to fix GCC C++ modules linkage issue
- 97 comprehensive Google Test cases covering all API categories
- 4 examples: basic, table, function, eval
- Update xmake.lua, CMakeLists.txt, CI workflow, README, architecture docs
- Design docs and task breakdown in docs/pr/
- Remove old templates.cppm placeholder module
Co-authored-by: SPeak <sunrisepeak@d2learn.org>
* docs: add mcpplibs-capi-lua agent skill
- SKILL.md: quick start, naming map, core API cheat sheet, common patterns,
build config, caveats (callback signatures, extern C, inline limitation)
- reference.md: complete API reference with all 15 types, 50+ constants,
100+ functions organized by category with C API correspondence
- Update skills README to list both available skills
Co-authored-by: SPeak <sunrisepeak@d2learn.org>
* fix(ci): build library first to avoid C++ modules race condition
GCC C++ modules require std.gcm to exist before dependent targets
compile. Build mcpplibs-capi-lua first (serialized) then build
remaining targets in parallel.
Co-authored-by: SPeak <sunrisepeak@d2learn.org>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent f558c67 commit 2cf3c2b
File tree
23 files changed
+3477
-229
lines changed- .agents/skills
- mcpplibs-capi-lua
- .github/workflows
- docs
- pr
- examples
- src
- capi
- tests
23 files changed
+3477
-229
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
0 commit comments