Skip to content

Commit 060b211

Browse files
committed
Merge branch 'main' of https://github.com/CopilotKit/OpenBot into claude/one-filled-add-button
# Conflicts: # app/src/components/skills/skills-settings-page.tsx # app/src/components/vault/vault-page.tsx
2 parents f356804 + bea1523 commit 060b211

312 files changed

Lines changed: 30244 additions & 5019 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/skills/openbot-copy/SKILL.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ because the admin is the one who sets them. A page anybody can open may not.
111111
"OK" when it does something specific.
112112
9. **Errors**: what failed, in the person's terms, and one next step. "Couldn't load your
113113
connections. Try again in a moment." No stack of reasons, no blame. Never "Reload the page": the
114-
same screens show in the OpenBot Desktop window, which has no reload button. While OpenBot
115-
Desktop can't reach the OpenBot it is connected to, one line says so and the screens wait
116-
(`lib/desktop/connection-lost.ts`), so a section's error is never the place to name that cause.
114+
same screens show in the OpenBot Desktop window, which has no reload button. While the person
115+
is offline or OpenBot isn't answering, in a browser or in OpenBot Desktop, one line says so and
116+
the screens wait (`lib/desktop/connection-lost.ts`): "You're offline, or {host} isn't
117+
answering. OpenBot will reconnect by itself." A section's error is never the place to name that
118+
cause, and a network failure is never told as being signed out.
117119
`tests/no-reload-the-page-in-user-copy.test.ts` reads every shown string.
118120
10. **Empty states** say what will appear and how: "No skills yet. Write one with New skill."
119121

‎.claude/skills/openbot-screen-layout/SKILL.md‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ PageShell the page: header (title, description, action, backButton) then
5454
`PageShell` takes a `width`: `prose` (`max-w-3xl`, 768px) is the default, and every
5555
configuration screen uses it so no screen is wider than another. Sentences inside it are held to
5656
`max-w-prose`, so the column has room for a label beside its control without stretching the text.
57-
`wide` (`max-w-5xl`) exists for one screen — `admin/audit.tsx`, because an audit log is a table to be
58-
scanned and prose width would wrap every row. It is not a licence for anything else to be wide.
57+
`wide` (`max-w-4xl`, 896px) is for a grid of cards picked out by how they look: the Artifacts
58+
gallery, three cards a row on a desktop window. `full` (no column) exists for one screen, the audit
59+
log (`manage/audit-page.tsx`), because it is a table to be scanned and prose width would wrap every
60+
row. Neither is a licence for rows or forms to be wide.
5961

6062
## The Rhythm
6163

@@ -72,7 +74,7 @@ components above; a screen that sets its own is drifting.
7274
| Section heading → description | 4px | `PageSection` |
7375
| Heading block → section content | 16px | `PageRows` / `PageEmpty` (`mt-4`) |
7476
| Controls stacked inside a section | 12px | the screen, with `gap-3` |
75-
| A row in `PageRows` | 65px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) |
77+
| A row in `PageRows` | 67px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) |
7678
| Divider between rows | inset 16px from both edges | `PageRows`, on every horizontal `Separator` inside it |
7779

7880
The 32px under the title is deliberately tighter than the 48px between sections: the title belongs
@@ -208,10 +210,8 @@ Only where the request asks for a dialog (Screens, Not Dialogs).
208210
## Units
209211

210212
The root is the browser's 16px, so Tailwind's spacing, sizes and widths are their documented values
211-
(`p-4` is 16px, `max-w-3xl` is 768px) and land on its 4px grid. Text is the exception: `styles.css`
212-
sets every `--text-*` to Tailwind's default times 15/16, so `text-sm` is 13.125px and body text is
213-
15px. That is the scale this app has always read at; do not size text in px or rem by hand to match
214-
the docs.
213+
(`p-4` is 16px, `max-w-3xl` is 768px) and land on its 4px grid. Text is on Tailwind's own scale
214+
too: `text-xs` is 12px, `text-sm` 14px and body text 16px. Do not size text in px or rem by hand.
215215

216216
Even so, never hardcode a pixel constant derived from a Tailwind token, and never compute a ratio
217217
from one. Measure the element — `offsetWidth`, `clientWidth`, a `ResizeObserver` — and scale from what
@@ -231,7 +231,8 @@ is actually on screen. The root was once 15px, and every constant taken from the
231231
- A width, ratio or scale needs a number in pixels → the Units section. Measure, do not assume.
232232
- Choosing a margin or gap between blocks → the Rhythm table. If the frame already gives it, set none.
233233
- The screen genuinely does not fit this shape → say so in the response and comment the reason in the
234-
code. There are two accepted precedents: a table (`admin/audit.tsx`, `width="wide"`), and the
234+
code. There are three accepted precedents: a table (the audit log, `width="full"`), the
235+
Artifacts gallery (`width="wide"`, a grid of cards), and the
235236
Connections tiles (`connections.index.tsx`), a grid of separate `variant="outline"` cards, 56px
236237
tall and 12px apart, because apps are picked out by their mark rather than read down as a list.
237238
- The question is which states the screen renders while loading or failing → not this skill;
@@ -243,7 +244,7 @@ is actually on screen. The root was once 15px, and every constant taken from the
243244
|--------|---------------|------------|
244245
| A hand-written `rounded-lg border border-border bg-card` div wrapping rows | `PageRows` re-implemented, and it will drift from the other seven screens | Use `PageRows` |
245246
| Rows separated by `gap-*` instead of `<Separator />` | A stack of cards rather than one card of rows | `<Separator />` between rows, none after the last |
246-
| `width="wide"` on anything that is not a table | Prose width is the default for a reason; wide was for the audit log | Leave `width` alone |
247+
| `width="wide"` or `"full"` on rows or a form | Prose width is the default for a reason; the others are for a grid of cards and a table | Leave `width` alone |
247248
| A `max-w-*`, `p-*` or text size invented for one screen | A fifth container width, which is what this layout exists to stop | Reach for the existing component |
248249
| Children on an element passed to `Item`'s `render` | They replace the row's own children; the row draws empty | Pass a childless element |
249250
| `bg-card` on a row inside a dialog | `--card` equals `--popover`; the row is invisible | `variant="muted"` |

‎.env.example‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ OPENAI_API_KEY=
333333
AGENT_COMPUTER_URL=http://localhost:4100
334334
# Secret every computer requires from its caller. `agent-computer` drives a browser holding real
335335
# logins, while policy, audit and sign-in live in the API server. The computer refuses to start
336-
# without this value and refuses every request that does not present it. Use a long random value;
337-
# `scripts/start.sh` sets a development one for you.
336+
# without this value and refuses every request that does not present it. Use a long random value
337+
# (`openssl rand -hex 32`); `scripts/start.sh` generates one and writes it here. There is no default.
338338
COMPUTER_TOKEN=
339339
# Local only, and commented out because this file gets copied. Uncommenting it lets a Bot browse this
340340
# machine's own services, which is what a laptop wants and what a deployment must never have: it
@@ -517,7 +517,8 @@ MANAGED_AGENT_TOKEN=
517517
# Bot's shell could read the person's logins off the disk.
518518
COMPUTER_SUPERVISOR_URL=
519519
# Shared with the supervisor. Not the security boundary, its four verbs are, but it keeps anything
520-
# else that can reach the port from cycling a Bot's computer.
520+
# else that can reach the port from cycling a Bot's computer. The supervisor refuses to start
521+
# without it; `scripts/start.sh` generates one and writes it here. There is no default.
521522
SUPERVISOR_TOKEN=
522523
# Set to runsc to run every computer under gVisor, if the host has it. Unset, a computer is an
523524
# ordinary container and shares the host kernel, which is worth knowing when the Bot is not ours.

0 commit comments

Comments
 (0)