feat(ai): package hello world client

This commit is contained in:
Guillaume ARM 2026-06-09 00:10:10 +02:00
parent 8ae947ac3d
commit 66124153af
3 changed files with 23 additions and 0 deletions

View File

@ -12,6 +12,17 @@ CC Turtle
└─ POST /session/:id/message → opencode serve
```
## 0. Install TrapOS and the AI package
On a fresh CC computer (beta branch):
```
wget run https://raw.githubusercontent.com/guillaumearm/cc-libs/next/install-ccpm.lua --beta
ccpm update
ccpm install trapos
ccpm install tos-ai
```
## 1. Start `opencode serve`
```bash

View File

@ -5,6 +5,7 @@
"tos-boot": "0.1.0",
"tos-net": "0.1.0",
"tos-ui": "0.1.0",
"tos-ai": "0.1.0",
"trapos": "0.4.0"
}
}

11
packages/tos-ai/ccpm.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "tos-ai",
"version": "0.1.0",
"description": "TrapOS AI hello-world client (opencode proxy)",
"dependencies": ["tos-core"],
"files": [
"apis/libaihelloworld.lua",
"programs/ai-helloworld.lua"
],
"autostart": []
}