fork of guillaumearm/cc-libs github repo retransformed in a new "trapos" project (will move soon)
Go to file
2026-06-16 01:34:12 +02:00
.opencode chore: change opencode mcp name 2026-06-15 23:27:53 +02:00
.plans chore: save plans 2026-06-15 20:58:26 +02:00
apis feat(mcp): add run-file capture 2026-06-15 22:17:41 +02:00
docs refactor(env): rename TRAP_CCLIBS_* to TRAPOS_* 2026-06-15 23:46:15 +02:00
just refactor(env): rename TRAP_CCLIBS_* to TRAPOS_* 2026-06-15 23:46:15 +02:00
packages feat(mcp): add run-file capture 2026-06-15 22:17:41 +02:00
programs feat(installer): add TrapOS disk modes 2026-06-15 21:42:16 +02:00
servers feat(mcp): add run-file capture 2026-06-15 22:17:41 +02:00
startup fix(boot): clarify lifecycle orchestration 2026-06-15 20:06:45 +02:00
tests feat(mcp): add run-file capture 2026-06-15 22:17:41 +02:00
tools feat: mcp run-file tool available in tools/trap-sandbox 2026-06-15 23:07:09 +02:00
.env.test refactor(env): rename TRAP_CCLIBS_* to TRAPOS_* 2026-06-15 23:46:15 +02:00
.gitignore feat(mcp): add computercraft bridge tool 2026-06-10 20:49:29 +02:00
.luacheckrc feat: add goo v1 2026-05-31 01:37:19 +02:00
AGENTS.md chore: save AGENTS.md 2026-06-16 01:34:12 +02:00
ATM_EXPERT_AGENT_PLAN.md feat(ai): add atm10 expert agent 2026-06-11 18:34:32 +02:00
DEVELOPMENT.md chore(mcp): clean bridge build caches 2026-06-10 23:41:52 +02:00
install-trapos.lua feat(installer): add TrapOS disk modes 2026-06-15 21:42:16 +02:00
Justfile test(sandbox): add integration tooling 2026-06-14 17:17:28 +02:00
lychee.toml chore(dev): validate markdown links 2026-06-09 02:34:40 +02:00
manifest.json feat(mcp): add run-file capture 2026-06-15 22:17:41 +02:00
README.md chore(release): update TrapOS endpoint and versions 2026-06-15 21:00:15 +02:00

TrapOS

A small in-game operating system for ComputerCraft / CC:Tweaked, built around a single-threaded event loop and a routed networking layer.

Installation

One command installs everything — it bootstraps ccpm, syncs the default registry (guillaumearm/cc-libs), and installs the full TrapOS:

wget run https://os.trapcloud.fr/install

When it finishes, run sandbox --help to get started, or trapos-upgrade to update later.

Install only the package manager (no full OS) with --cpm-only, then cherry-pick packages yourself:

wget run https://os.trapcloud.fr/install --cpm-only
ccpm update
ccpm install trapos-net
ccpm install trapos-ui

After install, every boot shows a colored MOTD with the installed version.

Packages

TrapOS is split into packages, each described by a packages/<name>/ccpm.json:

  • trapos-core: the package manager (ccpm), event loop, trapos-upgrade, trapos-postinstall, events.
  • trapos-test: the test framework (libtest) and suite runner (runtest).
  • trapos-boot: the startup MOTD and autostart server launcher.
  • trapos-net: routed modem networking (net, router, ping, ping-server).
  • trapos-ui: the terminal UI toolkit (libtui, tuidemo).
  • trapos-ai: the AI client for opencode serve.
  • trapos: full TrapOS meta-package (trapos-boot, trapos-net, trapos-ui, trapos-test, trapos-ai, trapos-sandbox).

The trapos meta-package is the user-facing full install. Package descriptors list files and autostart servers; installed state is tracked under /trapos.

ccpm

ccpm is the TrapOS package manager. install-trapos.lua installs it by installing the required trapos-core package and configures the default registry (guillaumearm/cc-libs), then (unless --cpm-only) installs the full trapos meta-package.

ccpm install <package>     ccpm reinstall <package>   ccpm uninstall <package>
ccpm update                ccpm upgrade
ccpm ls                    ccpm available [term]      ccpm search [term]
ccpm info <package>
ccpm registry ls           ccpm registry add <name> [--branch <b>] [--type gitea|http]
ccpm registry rm <name>

ccpm update fetches registry package indexes into /trapos/ccpm.cache.json. ccpm available lists cached packages and marks installed packages as up-to-date or updatable. ccpm upgrade upgrades installed packages based on that cache.

Registries default to gitea (owner/repo resolved against git.trapcloud.fr/<owner>/<repo>); http/https base URLs are also supported. State lives in /trapos/ccpm.json (registries), /trapos/ccpm.lock.json (installed packages), and /trapos/ccpm.cache.json (available packages). See ADR-0010.

APIs

  • /apis/eventloop: a simple event loop API.
  • /apis/net: an API to simplify sending and receiving routed messages, based on the eventloop library.

Servers

Servers listed in manifest.autostart are launched at boot by startup/boot.lua.

  • /servers/ping-server: allows a machine to respond to a ping command.

Programs

  • router: routes messages. You need to set up a router to use all apis/net-based programs and libraries.
  • ping: pings machines using apis/net.
  • events: emits and logs computer events.
  • trapos-upgrade: runs ccpm update then ccpm upgrade; pass --reboot/-r to reboot after upgrading.
  • trapos-postinstall: prints the post-install welcome and next steps (run automatically by the installer).

Development

See DEVELOPMENT.md for local development installation.