askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
dbbasic-package.json · 2.3 KB · 69 lines
| 1 | { |
| 2 | "id": "app-shell", |
| 3 | "name": "Shell", |
| 4 | "version": "0.4.0", |
| 5 | "description": "The talk-to-everything terminal: prefix commands create records, bare text goes to AI chat with the user's model and MCP tool subset. Talk is the same conversation projected as a voice-first stage. This version makes the AI turn record SERVER-AUTHORITATIVE: /api/ai/chat writes every turn to shell_commands itself -- stamped created_at, session_id (minted by the page per load), source surface, model, duration_ms, and the tool calls actually made -- before the reply is even sent, so history survives whatever the page does next. The client-side fire-and-forget write it replaces lost a real turn when the page died first, carried no timestamp, and grouped nothing; an evening of live debugging against those rows is what forced the change. Non-AI command turns (note/link/search) stay client-written: they never touch the chat endpoint, and the server cannot record what it never sees. This is the substrate for q9-style session listing and resume -- sessions become a fold over turns, not a second table.", |
| 6 | "compatibility": { |
| 7 | "dbbasic_object_server": ">=0.1.0" |
| 8 | }, |
| 9 | "objects": [ |
| 10 | { |
| 11 | "id": "site_shell", |
| 12 | "path": "objects/site/shell.py" |
| 13 | }, |
| 14 | { |
| 15 | "id": "site_talk", |
| 16 | "path": "objects/site/talk.py" |
| 17 | } |
| 18 | ], |
| 19 | "schemas": [ |
| 20 | { |
| 21 | "collection": "shell_preferences", |
| 22 | "path": "schemas/shell_preferences.json" |
| 23 | }, |
| 24 | { |
| 25 | "collection": "shell_commands", |
| 26 | "path": "schemas/shell_commands.json" |
| 27 | }, |
| 28 | { |
| 29 | "collection": "ai_usage", |
| 30 | "path": "schemas/ai_usage.json" |
| 31 | } |
| 32 | ], |
| 33 | "permissions": [ |
| 34 | { |
| 35 | "path": "permissions/rules.json" |
| 36 | } |
| 37 | ], |
| 38 | "seed": [ |
| 39 | { |
| 40 | "collection": "shell_preferences", |
| 41 | "path": "seed/shell_preferences.tsv" |
| 42 | }, |
| 43 | { |
| 44 | "collection": "shell_commands", |
| 45 | "path": "seed/shell_commands.tsv" |
| 46 | } |
| 47 | ], |
| 48 | "migrations": [], |
| 49 | "nav": [ |
| 50 | { |
| 51 | "id": "shell", |
| 52 | "label": "Shell", |
| 53 | "path": "/shell", |
| 54 | "blurb": "Type a command or talk to the AI with your tools attached", |
| 55 | "surface": "member", |
| 56 | "group": "Work", |
| 57 | "order": 10 |
| 58 | }, |
| 59 | { |
| 60 | "id": "talk", |
| 61 | "label": "Talk", |
| 62 | "path": "/talk", |
| 63 | "blurb": "The same conversation as the shell, voice first", |
| 64 | "surface": "member", |
| 65 | "group": "Work", |
| 66 | "order": 20 |
| 67 | } |
| 68 | ] |
| 69 | } |