@agent-native/core 0.203.0-nightly-20261007064822 → 0.203.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.
Files changed (63) hide show
  1. package/dist/agent/engine/builder-engine.d.ts +1 -1
  2. package/dist/agent/model-config.d.ts +2 -2
  3. package/dist/agent/model-config.js +0 -2
  4. package/dist/agent/thread-data-builder.d.ts +6 -0
  5. package/dist/agent/thread-data-builder.js +747 -25
  6. package/dist/agent/thread-message-projection.d.ts +20 -0
  7. package/dist/agent/thread-message-projection.js +300 -0
  8. package/dist/automation/index.d.ts +1 -1
  9. package/dist/chat-threads/store.d.ts +4 -1
  10. package/dist/chat-threads/store.js +92 -17
  11. package/dist/cli/skills-content/turn-into-app-skill.d.ts +10 -4
  12. package/dist/cli/skills-content/turn-into-app-skill.js +2454 -705
  13. package/dist/cli/skills.d.ts +6 -0
  14. package/dist/cli/skills.js +8 -2
  15. package/dist/client/chat/agentkit-agent-native.js +839 -89
  16. package/dist/client/chat/agentkit-protocol.js +67 -17
  17. package/dist/collab/routes.d.ts +2 -2
  18. package/dist/jobs/actions/manage-recurring-job.d.ts +1 -1
  19. package/dist/mcp/build-server.d.ts +5 -1
  20. package/dist/mcp/build-server.js +56 -13
  21. package/dist/mcp/embed-app.js +6 -1
  22. package/dist/notifications/routes.d.ts +1 -1
  23. package/dist/observability/routes.d.ts +3 -3
  24. package/dist/org/index.d.ts +2 -2
  25. package/dist/provider-api/actions/provider-api.d.ts +4 -4
  26. package/dist/resources/handlers.d.ts +1 -1
  27. package/dist/server/agent-chat/mcp-options.d.ts +4 -0
  28. package/dist/server/agent-chat-plugin.js +97 -22
  29. package/dist/server/agent-engine-default-model-route.d.ts +2 -2
  30. package/dist/server/onboarding-html.js +1 -1
  31. package/dist/server/realtime-token.d.ts +1 -1
  32. package/dist/server/transcribe-voice.d.ts +1 -1
  33. package/dist/shared/embed-auth.js +5 -4
  34. package/dist/sharing/actions/list-resource-shares.d.ts +1 -1
  35. package/dist/templates/factory/.agents/skills/review-latest-feedback/SKILL.md +26 -24
  36. package/dist/templates/factory/.agents/skills/review-latest-feedback/references/deployment-recovery.md +53 -0
  37. package/dist/templates/factory/.agents/skills/review-latest-feedback/references/documentation-proof.md +7 -0
  38. package/dist/templates/workspace-core/.agents/skills/turn-into-app/SKILL.md +284 -461
  39. package/dist/templates/workspace-core/.agents/skills/turn-into-app/agents/openai.yaml +2 -2
  40. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/fresh-project.md +65 -90
  41. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/local-run-and-deploy.md +161 -0
  42. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/review-loop.md +384 -0
  43. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/source-brief.md +116 -0
  44. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/spreadsheet-source.md +206 -190
  45. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/ui-archetypes.md +381 -0
  46. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/ui-direction.md +323 -0
  47. package/dist/templates/workspace-core/.agents/skills/turn-into-app/references/ui-palettes.md +564 -0
  48. package/dist/triggers/actions/manage-automation.d.ts +7 -7
  49. package/docs/content/observability.mdx +136 -0
  50. package/package.json +4 -4
  51. package/src/templates/factory/.agents/skills/review-latest-feedback/SKILL.md +26 -24
  52. package/src/templates/factory/.agents/skills/review-latest-feedback/references/deployment-recovery.md +53 -0
  53. package/src/templates/factory/.agents/skills/review-latest-feedback/references/documentation-proof.md +7 -0
  54. package/src/templates/workspace-core/.agents/skills/turn-into-app/SKILL.md +284 -461
  55. package/src/templates/workspace-core/.agents/skills/turn-into-app/agents/openai.yaml +2 -2
  56. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/fresh-project.md +65 -90
  57. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/local-run-and-deploy.md +161 -0
  58. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/review-loop.md +384 -0
  59. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/source-brief.md +116 -0
  60. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/spreadsheet-source.md +206 -190
  61. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/ui-archetypes.md +381 -0
  62. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/ui-direction.md +323 -0
  63. package/src/templates/workspace-core/.agents/skills/turn-into-app/references/ui-palettes.md +564 -0
@@ -0,0 +1,381 @@
1
+ # UI archetypes
2
+
3
+ ## Contents
4
+
5
+ - Shared by every archetype
6
+ - A1 Triage queue
7
+ - A2 Pipeline board
8
+ - A3 Live workbench
9
+ - A4 Schedule grid
10
+ - A5 Gallery and stage
11
+ - A6 Review diff
12
+ - A7 Research brief
13
+ - A8 Monitor
14
+ - A9 Runbook
15
+ - A10 Directory
16
+ - A11 Transform pane
17
+ - A12 Entry form
18
+ - A13 Conversation and artifact
19
+ - No fit
20
+
21
+ Thirteen layouts keyed by the shape of the source workflow, and a rule for
22
+ when none fits. Read only the section you picked in
23
+ [ui-direction.md](ui-direction.md). Sketches show the 1440x900 first viewport
24
+ with the agent sidebar closed; with it open the domain surface is about 780px
25
+ (1440 minus the 276px nav rail and the 380px sidebar), so rails collapse into
26
+ popovers first and panes reflow second.
27
+
28
+ ## Shared by every archetype
29
+
30
+ - A left navigation with domain destinations; chat stays its own destination.
31
+ - The scaffold header carries the view switcher or object name
32
+ (`useSetPageTitle`) and the one primary agent verb (`useSetHeaderActions`).
33
+ - Panes scroll themselves; sample data is present on arrival; each object has
34
+ its own agent verb with a visible working state.
35
+ - At 390px a list-to-detail layout opens on the list, and the way into the
36
+ detail is obvious: each row is a 44px target with a chevron, the detail
37
+ opens full screen with Back, and a sticky bottom bar holds that object's
38
+ agent verb.
39
+ - Components named below come from `@/components/ui/*`, re-exported from
40
+ `@agent-native/toolkit/ui/<name>` when the scaffold lacks them.
41
+
42
+ ## A1 Triage queue
43
+
44
+ Pick when: items arrive and a person sorts, replies, approves, or escalates
45
+ (inbox, support, applications, invoices, reviews, requests).
46
+
47
+ ```
48
+ +----+-----------------------+---------------------------------------------+
49
+ |nav | [All][Needs you][Done]| Renewal terms, Acme Co (Needs review)|
50
+ | | o Acme renewal 2m |---------------------------------------------|
51
+ | | o Invoice 4821 9m | Original message, collapsed to 6 lines |
52
+ | | * Contract redo 14m | +- Agent draft ---------------------------+|
53
+ | | o Refund ask 1h | | Hi Dana, thanks for flagging the... ||
54
+ | | ... 16-24 rows ... | | [Accept] [Edit] [Retry] Agent, 4s ||
55
+ | | | +-----------------------------------------+|
56
+ +----+-----------------------+---------------------------------------------+
57
+ ```
58
+
59
+ - Build with: resizable, scroll-area, toggle-group (filters), badge, avatar,
60
+ textarea (draft editor), kbd, skeleton. `j`/`k` moves, `e` accepts.
61
+ - Agent verbs: row and detail "Draft reply" (the slot shimmers at once, the
62
+ draft lands in the Agent draft block); header "Triage all" with the visible
63
+ ids.
64
+ - Pairs with A7 when the selected item opens as a one-page document: the queue
65
+ is ordered by urgency, each row shows its state and the reason for it.
66
+ - Seed: 16-24 items, 3 statuses, 2 with drafts, 1 overdue, 1 long subject.
67
+ - Mobile: the list is the page, rows with chevrons; detail pushes over it with
68
+ Back and a sticky bar for "Draft reply".
69
+
70
+ ## A2 Pipeline board
71
+
72
+ Pick when: items move through stages (deals, candidates, orders, content,
73
+ bugs, onboarding cohorts).
74
+
75
+ ```
76
+ +----+----------------------------------------------------------------------+
77
+ |nav | [Board][List] [Owner v] [+ Add] [Qualify lane] |
78
+ | | New 6 $120k Contacted 4 Meeting 3 Proposal 2 Won 5 |
79
+ | | +-----------+ +-----------+ +-----------+ +-----------+ |
80
+ | | |Acme $40k| |Globex $12k| |... | |... | |
81
+ | | |DM 3d ** | |agent.. | | | | | |
82
+ | | +-----------+ +-----------+ +-----------+ +-----------+ |
83
+ +----+----------------------------------------------------------------------+
84
+ ```
85
+
86
+ - Build with: `pnpm add @dnd-kit/core@latest @dnd-kit/sortable@latest`
87
+ (keyboard sensor on), badge, avatar, dialog (card detail; the right edge
88
+ belongs to the agent), toggle-group (Board | List). Lane header: name, count,
89
+ tabular sum.
90
+ - Agent verbs: card "Qualify" (the card ring pulses while working; score and
91
+ next step land on the card); lane "Summarize" writes a note pinned to the
92
+ lane.
93
+ - Seed: 5 lanes, 3-6 cards each (merge or collapse a thinner lane), values
94
+ and ages varied, 1 stale, 1 blocked. Lanes are `h-fit`, not stretched to the
95
+ pane height.
96
+ - Mobile: lanes snap-scroll horizontally inside their own container; with the
97
+ A10 filter row, the only allowed sideways scrolls.
98
+
99
+ ## A3 Live workbench
100
+
101
+ Pick when: inputs change outputs (spreadsheet model, forecast, pricing,
102
+ budget, calculator, what-if).
103
+
104
+ ```
105
+ +----+----------------+----------------------------------------------------+
106
+ |nav | [Base|Up|Down] | Ending cash $70.9m +$31.1m vs base |
107
+ | | Revenue growth | +----------------------------------------------+ |
108
+ | | ---o------ 24% | | line chart, 3 scenarios, end values labeled | |
109
+ | | Gross margin | | crosshair tooltip, findings as numbered pins | |
110
+ | | -----o---- 77% | +----------------------------------------------+ |
111
+ | | Headcount +12 | period table: FY27 FY28 FY29 (sticky header) |
112
+ | | [3 more levers]| [Sheet | App] before and after toggle |
113
+ +----+----------------+----------------------------------------------------+
114
+ ```
115
+
116
+ - Build with: a slider paired with a numeric input per driver (drag or type),
117
+ toggle-group (scenarios; Sheet | App), `recharts` line, area, or bar with soft
118
+ fill, table, popover (source and provenance). One hero output with its delta
119
+ in the chart header; other outputs are table rows, not a card strip.
120
+ - Sheet view shows the source cells read-only (`DataGrid` from
121
+ `@agent-native/toolkit/data-grid`); App view is the workbench. The swap is
122
+ the before and after, and changed outputs show their delta against the sheet.
123
+ - Recompute in the browser from the same functions the actions use, so a
124
+ slider moves the chart instantly with no spinner.
125
+ - Agent verbs: header "Pressure-test" sends drivers and outputs; findings are
126
+ saved by an action, appear as pins on the chart, and each has "Apply", which
127
+ moves the sliders. Save scenario is optimistic.
128
+ - Seed: the sheet's own values; 3 saved scenarios; periods from one engine.
129
+ - Mobile: chart first, drivers in a bottom sheet, sticky Save. The period
130
+ table becomes a period-by-period list.
131
+
132
+ ## A4 Schedule grid
133
+
134
+ Pick when: the subject is time (appointments, shifts, releases, trips,
135
+ content calendars, bookings).
136
+
137
+ ```
138
+ +----+-------------------------------------------------------+-----------+
139
+ |nav | < Oct 5-11 > [Week|Day] [Find conflicts] [Apply] | Proposals |
140
+ | | Mon Tue Wed Thu Fri | Wed 8:30 |
141
+ | | 8am | | |/////| | ///= proposed | [Accept] |
142
+ | | 9am | | |APPT | | XXX= conflict | [Dismiss] |
143
+ | | 10am | | |/////| | now line, all-day | Conflicts |
144
+ | | events as colored blocks, striped ghost proposals| 1 external|
145
+ +----+-------------------------------------------------------+-----------+
146
+ ```
147
+
148
+ - Build with: CSS grid, 7 columns by 15-minute rows, blocks positioned by
149
+ percent, ghost blocks with `repeating-linear-gradient`, popover (details),
150
+ scroll-area (rail), badge. The rail is a list, never a form.
151
+ - Agent verbs: "Find conflicts" and "Propose blocks"; ghost blocks appear in
152
+ the grid as the agent saves them, each with Accept and Dismiss. Apply writes
153
+ externally, so it opens a review of the exact changes first.
154
+ - Seed: one real-looking week, 10-14 events, 2 appointments needing buffers,
155
+ 1 external-attendee conflict, 1 all-day.
156
+ - Mobile: day view, a week strip above it, proposals in a bottom sheet.
157
+
158
+ ## A5 Gallery and stage
159
+
160
+ Pick when: the output is a set of generated artifacts to compare and refine
161
+ (creative, slides, layouts, images, copy variants, thumbnails).
162
+
163
+ ```
164
+ +----+----------------------------------------------------------------------+
165
+ |nav | [All][Approved][Drafts] size --o-- [Generate 4] |
166
+ | | +------+ +------+ +------+ +------+ +------+ |
167
+ | | | art | | art | | art | | art | | art | click: tile expands |
168
+ | | +------+ +------+ +------+ +------+ +------+ into a stage with a |
169
+ | | +------+ +------+ +------+ ... variant strip below |
170
+ +----+----------------------------------------------------------------------+
171
+ ```
172
+
173
+ - Build with: CSS grid with `aspect-ratio`, view transitions for tile to stage
174
+ (`view-transition-name` per tile), toggle-group, slider (tile size), dialog or
175
+ a full-pane stage with previous and next, tooltip. Media outlines per the
176
+ palettes.
177
+ - Agent verbs: stage "More like this" and "Refine" (new tiles appear as
178
+ skeletons, then fill); gallery "Generate 4".
179
+ - Seed: 9-12 authored SVG or CSS compositions in `public/`, varied ratios.
180
+ Never grey boxes or stock placeholders.
181
+ - Mobile: two columns; the stage becomes full screen with swipe.
182
+
183
+ ## A6 Review diff
184
+
185
+ Pick when: changes are proposed and a person accepts or rejects them
186
+ (contracts, copy, config, data fixes, moderation, code changes).
187
+
188
+ ```
189
+ +----+-----------+--------------------------------------------+------------+
190
+ |nav | Changes 5 | Before | After | Why |
191
+ | | [x] Title | The Company shall | The Company will | Plain |
192
+ | | [ ] Term | ...~removed~ | ...+added+ | language |
193
+ | | [x] Fees |--------------------------------------------| [Re-draft] |
194
+ | | ... | sticky: 3 of 5 accepted [Approve accepted] |
195
+ +----+-----------+--------------------------------------------+------------+
196
+ ```
197
+
198
+ - Build with: `pnpm add diff@latest` for word-level hunks, a checkbox per hunk,
199
+ toggle-group (Split | Inline), a sticky action bar, scroll-area, badge.
200
+ - Agent verbs: per hunk "Explain" and "Re-draft"; header "Review all" adds a
201
+ rationale to each hunk. Approve is explicit and shows the count.
202
+ - Seed: one real-looking document with 5-7 hunks, mixed severity, 1 rejected.
203
+ - Mobile: hunk list first; a hunk opens a full-screen inline diff.
204
+
205
+ ## A7 Research brief
206
+
207
+ Pick when: sources become a written brief, report, plan, one-pager, or dossier.
208
+
209
+ ```
210
+ +----+---------+------------------------------------------+---------------+
211
+ |nav | Outline | Title lives in the document itself | Sources (7) |
212
+ | | Summary | Paragraph with claims [1][3] as chips, | [1] Report... |
213
+ | | Market | highlighted when its source is hovered | [2] Filing... |
214
+ | | Risks | [Deepen] [Add counterpoint] on hover | filter claims |
215
+ +----+---------+------------------------------------------+---------------+
216
+ ```
217
+
218
+ - Build with: a 66ch reading column (the one place a centered column is
219
+ right), the paper-desk serif body, hover-card for citation previews,
220
+ scroll-area, skeleton paragraphs while a section regenerates.
221
+ - Fixed sections from the source render as structure (headings, chips,
222
+ counters), not as one markdown blob, so a fixed shape stays visible.
223
+ - Agent verbs: section "Deepen", "Add counterpoint", "Check claims"; the
224
+ section shows a working state and the new text lands with a visible diff.
225
+ - Seed: a finished document, 3-4 sections, 6-8 real-looking sources with
226
+ title, publisher, date, and an excerpt. Never leave sources empty.
227
+ - Mobile: document full width; sources in a sheet from the citation chip.
228
+
229
+ ## A8 Monitor
230
+
231
+ Pick when: signals over time need watching (alerts, spend, health, usage,
232
+ funnel, error rates, anomalies).
233
+
234
+ ```
235
+ +----+---------------------------------------------------+----------------+
236
+ |nav | [Last 24h v] [Service v] [Investigate] | Anomalies |
237
+ | | +----------------------------------------------+ | * 14:20 spike |
238
+ | | | hero series with band and anomaly markers | | agent note |
239
+ | | +----------------------------------------------+ | * 09:02 drop |
240
+ | | [small multiple] [small multiple] [small multiple]| |
241
+ | | entity | sparkline | value | delta | status | |
242
+ +----+---------------------------------------------------+----------------+
243
+ ```
244
+
245
+ - Build with: `chart` over `recharts` (one dominant chart across the pane,
246
+ with a reference area for anomalies, and small multiples below it), a table with inline sparklines, select, badge, scroll-area. No
247
+ stat-card strip. A gap in the data renders as a gap, not as zero.
248
+ - Agent verbs: anomaly "Investigate" (adds a finding under the anomaly);
249
+ header "Investigate all". Clicking an anomaly brushes both charts to it.
250
+ - Seed: 30 days of generated series per entity with 2 injected anomalies,
251
+ 10-14 entities, mixed statuses.
252
+ - Mobile: charts stack; the anomaly feed becomes the first of two tabs.
253
+
254
+ ## A9 Runbook
255
+
256
+ Pick when: a procedure has state, owners, evidence, and blockers (release,
257
+ onboarding, audit, incident, trip prep, compliance). Not a stepper: every item
258
+ is visible and any order is allowed.
259
+
260
+ ```
261
+ +----+-------------+---------------------------------------------------+
262
+ |nav | Prep 4/4 | Release 4.2 7 of 18 [Run next] |
263
+ | | Verify 2/6 | [x] Freeze main Sam done |
264
+ | | Ship 0/5 | [x] Tag release agent done |
265
+ | | Comms 1/3 | [ ] Smoke tests blocked: staging down ! |
266
+ | | | evidence, notes, links (expanded row) |
267
+ +----+-------------+---------------------------------------------------+
268
+ ```
269
+
270
+ - Build with: one scrolling document with section anchors, checkbox,
271
+ collapsible rows, progress, avatar, badge for blocked and due. Progress lives
272
+ in the rail.
273
+ - Agent verbs: item "Run" for agent-doable items (the row shows working, then
274
+ done with evidence attached); header "Run next".
275
+ - Seed: 18 items in 4 groups, 7 done, 2 blocked, 1 overdue, owners mixed.
276
+ - Mobile: sections collapse; the rail becomes a sticky section picker.
277
+
278
+ ## A10 Directory
279
+
280
+ Pick when: many records are browsed, edited, enriched, or scored (contacts,
281
+ accounts, vendors, candidates, inventory, findings, a sheet of rows).
282
+
283
+ ```
284
+ +----+-----------------------------------------------------------------+
285
+ |nav | [All 214][Hot 18][Stale 31] +view search [Enrich selected]|
286
+ | | [ ] Name Company Stage Score Last touch Owner|
287
+ | | [x] Priya Nair Northwind Demo 82 ..-^ 3d JL |
288
+ | | [x] ... ... ... agent-filled cells carry a dot|
289
+ | | row click opens a dialog profile with a timeline |
290
+ +----+-----------------------------------------------------------------+
291
+ ```
292
+
293
+ - Build with: `DataGrid` from `@agent-native/toolkit/data-grid` (selection,
294
+ inline edit, resizable columns), saved views as toggle-group pills, a
295
+ selection bar, a dialog or sheet profile, skeleton rows, badge, avatar.
296
+ - An impact-by-effort or score-by-confidence scatter beside the table turns a
297
+ ranked list into a decision view when rows carry two measures.
298
+ - Agent verbs: selection bar "Enrich", "Score", "Dedupe"; cells show a working
299
+ shimmer, then the value with an agent dot and an Undo.
300
+ - Seed: 25-40 varied rows with gaps, duplicates, long names, mixed stages.
301
+ - Mobile: rows become two-line cards; the filter row scrolls sideways inside
302
+ its own container.
303
+
304
+ ## A11 Transform pane
305
+
306
+ Pick when: one input becomes one result the user judges and reuses (rewrite,
307
+ summarize, classify, translate, extract, generate from a brief, a calculator
308
+ with a text result). The input is the work: show it, filled.
309
+
310
+ ```
311
+ +----+---------------------------+----------------------------------+-----------+
312
+ |nav | Input (sample, filled) | Result | History |
313
+ | | [source text ..........] | structured result or diff | Today |
314
+ | | [Tone v] [Length v] [Run] | [Copy] [Accept] [Retry] | * Run 14 |
315
+ | | | Agent, 4s | * Run 13 |
316
+ +----+---------------------------+----------------------------------+-----------+
317
+ ```
318
+
319
+ - Build with: resizable, textarea, select or toggle-group for options, a diff
320
+ or structured result view, a history list with Restore, skeleton.
321
+ - Agent verbs: Run (the result pane shows the working state and receives the
322
+ result through an action); Retry with a changed option.
323
+ - Seed: a realistic filled input, a finished result beside it, 8-12 history
324
+ runs with varied options.
325
+ - Mobile: input above result; history in a sheet.
326
+
327
+ ## A12 Entry form
328
+
329
+ Pick when: the job is capturing structured records and the form is the work
330
+ (intake, application, expense, order, survey).
331
+
332
+ ```
333
+ +----+----------------------------------+------------------------------------+
334
+ |nav | New expense | Recent entries |
335
+ | | Vendor [.......] Amount [.....] | Date Vendor Amount Status |
336
+ | | Category [v] Receipt [drop] | ... 12-20 rows ... |
337
+ | | [Save] [Fill from receipt] | a selected row opens in the form |
338
+ +----+----------------------------------+------------------------------------+
339
+ ```
340
+
341
+ - Build with: real fields in sections (never a stepper), inline validation,
342
+ sensible defaults, Enter to save, and a table beside the form so the form is
343
+ not the only object.
344
+ - Agent verbs: "Fill from receipt" or "Check"; fields the agent filled carry
345
+ the agent mark with Undo.
346
+ - Seed: the form holds one realistic draft; 12-20 saved entries, mixed
347
+ statuses, a missing optional field.
348
+ - Mobile: tabs, Form | Entries.
349
+
350
+ ## A13 Conversation and artifact
351
+
352
+ Pick when: the workflow is a dialogue (coach, interviewer, tutor, intake) and
353
+ the value is the structure extracted from it.
354
+
355
+ ```
356
+ +----+-----------------------------------------+---------------------+
357
+ |nav | Sample session transcript, turns | Scorecard / notes |
358
+ | | attributed, with the agent's marks | next steps |
359
+ | | [Continue session] | updated by actions |
360
+ +----+-----------------------------------------+---------------------+
361
+ ```
362
+
363
+ - The agent sidebar is the live conversation; there is no second prompt box.
364
+ The canvas is the conversation's memory and updates through actions.
365
+ - Agent verbs: "Continue session" (opens the sidebar with the session id and a
366
+ bounded summary); each extracted item has Accept, Edit, Retry.
367
+ - Seed: one finished session and two earlier ones, with their scorecards.
368
+ - Mobile: scorecard first, transcript below.
369
+
370
+ ## No fit
371
+
372
+ If no archetype fits, or the one that fits makes the source's main object
373
+ disappear, do not bend the source. Name the object noun, compose one
374
+ collection (list, table, board, calendar, grid, tree) with one focus
375
+ (document, detail, chart, form, map), put the agent verbs on the objects, and
376
+ record "Archetype: custom, nearest A\_" in `DESIGN.md`. When a listed
377
+ first-party template already is the object (`content` for an editable
378
+ document, `forms` for a form builder), scaffold from it and say so in the
379
+ brief. An editor the user types into gets suggestions as A6-style inline
380
+ diffs, not a section-level "Deepen" verb. A truly gated procedure, where order
381
+ is enforced and the artifact does not exist until the end, may use a stepper.