Add crimata-agent and redesign agentic OS UI
- crimata-agent (TypeScript, port 7702): WebSocket server + HTTP /events
endpoint, Claude tool-use loop (render/remove/call_api/show_cursor_response),
session.start fires on first browser connection to seed the canvas
- OS UI redesigned: light grey canvas (#e8e8e8), no dock bar, cursor dot,
Cmd+Space input bubble above cursor, elements placed by agent
- Canvas elements: app_icon (floating icons with running dot), window (no-chrome
content cards), cursor_response (text + action pills)
- Component system: HTML fragments fetched from /components/{app}/{name}.html,
inline scripts re-executed after injection
- contacts/crimata.json: added icon, defaultComponent, components[], api[]
- dock: apps.h/c/main.c extended to parse and serve components + api from
crimata.json; BUF_SIZE increased for richer JSON output
- ui/components/contacts/list.html + card.html: first component pair
- provision.sh: installs crimata-agent, adds WebSocket + /events + /components
nginx locations, fixes /auth/ prefix stripping
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
44f3192b78
commit
31b5e321a1
19 changed files with 1030 additions and 305 deletions
|
|
@ -1,7 +1,54 @@
|
|||
{
|
||||
"id": "contacts",
|
||||
"name": "Contacts",
|
||||
"icon": "👤",
|
||||
"port": 3001,
|
||||
"defaultComponent": "contacts.list",
|
||||
"components": ["contacts.list", "contacts.card"],
|
||||
"db": true,
|
||||
"migrate": "npm run migrate"
|
||||
"migrate": "npm run migrate",
|
||||
"api": [
|
||||
{
|
||||
"name": "list_contacts",
|
||||
"description": "Get all contacts ordered by name",
|
||||
"method": "GET",
|
||||
"endpoint": "/contacts"
|
||||
},
|
||||
{
|
||||
"name": "get_contact",
|
||||
"description": "Get a single contact by ID",
|
||||
"method": "GET",
|
||||
"endpoint": "/contacts/:id"
|
||||
},
|
||||
{
|
||||
"name": "create_contact",
|
||||
"description": "Create a new contact (name and domain required)",
|
||||
"method": "POST",
|
||||
"endpoint": "/contacts",
|
||||
"body": {
|
||||
"name": "string",
|
||||
"domain": "string",
|
||||
"avatar_url": "string?",
|
||||
"notes": "string?"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "update_contact",
|
||||
"description": "Partially update a contact by ID",
|
||||
"method": "PATCH",
|
||||
"endpoint": "/contacts/:id",
|
||||
"body": {
|
||||
"name": "string?",
|
||||
"domain": "string?",
|
||||
"avatar_url": "string?",
|
||||
"notes": "string?"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "delete_contact",
|
||||
"description": "Delete a contact by ID",
|
||||
"method": "DELETE",
|
||||
"endpoint": "/contacts/:id"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue