Commit 268e1b9
feat(chat): inventory + create menu and new-agent wizard
Implements the chat-inventory-create-menu design (PR #404, merged onto
llm): a `+` create affordance at the TOP of the Chat inventory whose
pop-over menu lists the whole-cloth item types Chat can mint.
Live this phase:
- The `+` header-row button + keyboard-navigable pop-over menu.
- Filesystem mount — provideMount(hostPath, petName), end to end.
- Scratch space — provideScratchMount(petName), end to end.
- New-agent wizard: harness pane (Lal/Fae/Genie, discovered + annotated),
inference-source pane (Anthropic/OpenAI/Ollama/Ollama-Remote/OpenRouter,
provider-by-name with hidden URLs, auth by authShape, model picker),
and an endowment pane. Submit routes to the chosen harness's outstanding
manager form via listMessages/reverseLocate/submit — no new daemon API.
Documented placeholders (per the design's phasing):
- Passable value and Structured value surface the architectural direction
without a half-implemented control.
- Pane 3's endowment roster is a documentation-only checklist this phase.
No daemon-side changes: composes existing provideMount / provideScratchMount
/ listMessages / submit primitives only.
New component test (test/component/create-menu.test.js) exercises the
rendered DOM: menu opens with five items, mount calls provideMount, scratch
calls provideScratchMount, special-name rejection, the placeholder, and the
wizard's three panes + form-submit routing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5e3232c commit 268e1b9
8 files changed
Lines changed: 2138 additions & 0 deletions
File tree
- packages/chat
- test/component
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
| |||
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
| 114 | + | |
| 115 | + | |
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
| |||
247 | 258 | | |
248 | 259 | | |
249 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
250 | 264 | | |
251 | 265 | | |
252 | 266 | | |
| |||
425 | 439 | | |
426 | 440 | | |
427 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
428 | 464 | | |
429 | 465 | | |
430 | 466 | | |
| |||
1647 | 1683 | | |
1648 | 1684 | | |
1649 | 1685 | | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
1650 | 1690 | | |
1651 | 1691 | | |
1652 | 1692 | | |
| |||
0 commit comments