atris 3.82.26 → 3.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +10 -12
- package/README.md +77 -0
- package/bin/atris.js +95 -44
- package/commands/activate.js +39 -33
- package/commands/agent-home.js +403 -0
- package/commands/agent-signin.js +214 -0
- package/commands/agent-spawn.js +1 -0
- package/commands/autoland.js +173 -71
- package/commands/brain.js +211 -410
- package/commands/doctor.js +38 -26
- package/commands/init.js +4 -4
- package/commands/join.js +159 -0
- package/commands/memory.js +2 -2
- package/commands/morning.js +132 -0
- package/commands/night.js +178 -0
- package/commands/recap.js +4 -4
- package/commands/task.js +31 -2
- package/lib/agent-home.js +289 -0
- package/lib/agent-page.js +1257 -0
- package/lib/cleanup-summary.js +4 -2
- package/lib/first-minute.js +41 -20
- package/lib/gm-phone-page.js +8 -2
- package/lib/known-commands.js +1 -1
- package/lib/member-export.js +31 -0
- package/lib/memory-folder.js +122 -24
- package/lib/memory-live.js +2 -2
- package/lib/night-learned.js +171 -0
- package/lib/night-shift.js +123 -0
- package/lib/task-core.js +2 -1
- package/lib/task-db.js +32 -0
- package/package.json +1 -1
- package/templates/members/designer-1/MEMBER.md +34 -0
- package/templates/members/designer-1/MISSION.md +11 -0
- package/templates/members/designer-1/SOUL.md +11 -0
- package/templates/members/designer-1/context/why.md +5 -0
- package/templates/members/designer-1/goals.json +5 -0
- package/templates/members/designer-1/goals.md +3 -0
- package/templates/members/designer-1/skills/designer-1/SKILL.md +179 -0
- package/templates/members/designer-1/skills/designer-1/parts.md +55 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# The 19 parts
|
|
2
|
+
|
|
3
|
+
Reference for the designer-1 skill. Load it only when you place or build a part.
|
|
4
|
+
|
|
5
|
+
Source: the parts list in the atris-design catalog (`components/catalog.json`) and the props in `components/react/src/parts/*.tsx`. Package: `@atris/design-react`. Sheets: `styles.css`, then `parts-forms.css`, `parts-overlays.css`, `parts-navigation.css`.
|
|
6
|
+
|
|
7
|
+
Every part also takes `id`, `className`, `style`, `ref` and `data-*` marks.
|
|
8
|
+
|
|
9
|
+
## forms
|
|
10
|
+
|
|
11
|
+
| part | job | needs | props | callbacks |
|
|
12
|
+
|---|---|---|---|---|
|
|
13
|
+
| `Button` | Do one action, named by its label even when only an icon shows. | `label` | `label` `hideLabel` `icon` `tone` `size` `loading` `disabled` | `onClick` |
|
|
14
|
+
| `Field` | Give any control a name, a hint and an error that are read with it. | `label` `children` | `label` `hideLabel` `hint` `error` `required` `disabled` `labelAs` | `children(control, ids)` |
|
|
15
|
+
| `Input` | Take one line of text with its name, hint and error. | `label` | `label` `hideLabel` `hint` `error` `type` `size` `value` `defaultValue` `readOnly` `required` `disabled` | `onValueChange` |
|
|
16
|
+
| `Textarea` | Take several lines of text with its name, hint and error. | `label` | `label` `hideLabel` `hint` `error` `size` `value` `defaultValue` `readOnly` `required` `disabled` | `onValueChange` |
|
|
17
|
+
| `Checkbox` | Turn one choice on or off, with a mixed state for a parent box. | `label` | `label` `hideLabel` `hint` `error` `checked` `defaultChecked` `name` `value` `required` `readOnly` `disabled` | `onCheckedChange` |
|
|
18
|
+
| `Switch` | Turn a setting on or off at once. | `label` | `label` `hideLabel` `hint` `checked` `defaultChecked` `name` `value` `readOnly` `disabled` | `onCheckedChange` |
|
|
19
|
+
| `RadioGroup` | Pick one choice from a short list that stays in view. | `label` `options` | `label` `hideLabel` `options` `hint` `error` `value` `defaultValue` `name` `required` `readOnly` `disabled` `orientation` | `onValueChange` |
|
|
20
|
+
| `Select` | Pick one choice from a list that opens from a button. | `label` `options` | `label` `hideLabel` `options` `placeholder` `value` `defaultValue` `open` `defaultOpen` `name` `required` `readOnly` `disabled` `size` `hint` `error` | `onValueChange` `onOpenChange` |
|
|
21
|
+
|
|
22
|
+
## overlays
|
|
23
|
+
|
|
24
|
+
| part | job | needs | props | callbacks |
|
|
25
|
+
|---|---|---|---|---|
|
|
26
|
+
| `Dialog` | Hold one focused decision over the page until it is answered. | `label` | `label` `description` `trigger` `footer` `open` `defaultOpen` `dismissOnBackdrop` `size` `disabled` `closeLabel` `initialFocusRef` | `onOpenChange` |
|
|
27
|
+
| `Popover` | Show a small panel of controls tied to its button. | `label` `children` | `label` `trigger` `open` `defaultOpen` `side` `align` `disabled` | `onOpenChange` |
|
|
28
|
+
| `Menu` | List the actions behind one button. | `label` `items` | `label` `items` `open` `defaultOpen` `side` `align` `disabled` | `onSelect` `onOpenChange` |
|
|
29
|
+
| `Tooltip` | Add a short tip to one control on hover or focus. | `label` `children` | `label` `type` `open` `defaultOpen` `delay` `side` `align` `disabled` | `onOpenChange` |
|
|
30
|
+
| `Toast` | Tell the person what just happened, then step aside. | `label` | `label` `description` `tone` `open` `defaultOpen` `duration` `action` `dismissLabel` | `action.onSelect` `onOpenChange` |
|
|
31
|
+
|
|
32
|
+
## navigation
|
|
33
|
+
|
|
34
|
+
| part | job | needs | props | callbacks |
|
|
35
|
+
|---|---|---|---|---|
|
|
36
|
+
| `Tabs` | Switch between views of one thing without leaving the page. | `label` `items` | `label` `items` `value` `defaultValue` `activation` `orientation` `size` `disabled` | `onValueChange` |
|
|
37
|
+
| `Accordion` | Open one answer at a time from a list of questions. | `label` `items` | `label` `items` `type` `value` `defaultValue` `collapsible` `headingLevel` `disabled` | `onValueChange` |
|
|
38
|
+
| `SegmentedControl` | Pick one of a few views in a single pill. | `label` `options` | `label` `options` `value` `defaultValue` `name` `required` `readOnly` `disabled` `size` | `onValueChange` |
|
|
39
|
+
| `Combobox` | Type to find and pick one choice from a long list. | `label` `options` | `label` `hideLabel` `options` `placeholder` `value` `defaultValue` `open` `defaultOpen` `name` `required` `readOnly` `disabled` `size` `emptyMessage` | `onValueChange` `onOpenChange` |
|
|
40
|
+
| `Slider` | Set a number in a range by dragging or with the keys. | `label` | `label` `hideLabel` `min` `max` `step` `pageStep` `value` `defaultValue` `formatValue` `name` `readOnly` `disabled` `size` | `onValueChange` |
|
|
41
|
+
| `RowList` | Show people or records as rows with one column of controls, a status and actions. | `label` `items` | `label` `items` `emptyMessage` `disabled` | `onSelect` |
|
|
42
|
+
|
|
43
|
+
## companions
|
|
44
|
+
|
|
45
|
+
- `DialogClose` takes the `Button` props and closes the dialog it sits in. Put it in `footer`.
|
|
46
|
+
- `ToastRegion` takes `label`, `hotkey`, `placement` (`bottom-end`, `top-end`, `bottom-center`). Every `Toast` sits inside one.
|
|
47
|
+
- `Field` wraps a control the parts do not cover. Its `children` is a function that gets the control props (`id`, `aria-describedby`, `aria-invalid`, `aria-required`, `disabled`) to spread on the real element.
|
|
48
|
+
- `Checkbox` takes `"indeterminate"` for `checked` on a parent box.
|
|
49
|
+
|
|
50
|
+
## shared vocabulary
|
|
51
|
+
|
|
52
|
+
- `partSizes`: `small`, `default`, `large`.
|
|
53
|
+
- `partTones`: `default`, `primary`, `quiet`, `success`, `danger`.
|
|
54
|
+
- entry: `{ value, label, disabled?, data? }`. `Menu` items add `hint` and `tone`. `Select` and `RadioGroup` options add `hint`. `Tabs` and `Accordion` items add `content`. `RowList` items add `hint`, `status` (`{ label, tone? }`), `controls` and `actions`.
|
|
55
|
+
- empty choice: `null`.
|