@gemboss/ui 0.68.0 → 0.69.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 (48) hide show
  1. package/CHANGELOG.md +148 -5
  2. package/README.md +89 -9
  3. package/catalog/editor.html +10 -8
  4. package/catalog/index.html +617 -566
  5. package/gemboss-ui.css +3 -3
  6. package/package.json +5 -2
  7. package/parts/components.css +1 -1
  8. package/parts/core.css +1 -1
  9. package/parts/shell.css +1 -1
  10. package/src/assistant/attachments.tsx +486 -0
  11. package/src/assistant/chat-cards.tsx +343 -0
  12. package/src/assistant/chat.tsx +29 -6
  13. package/src/assistant/host.tsx +8 -11
  14. package/src/assistant/index.ts +8 -1
  15. package/src/assistant-chat.css +1 -1
  16. package/src/assistant-plain.js +1 -1
  17. package/src/assistant.css +1 -1
  18. package/src/auth-field.css +1 -1
  19. package/src/auth.tsx +4 -2
  20. package/src/chat-attachments.css +1 -0
  21. package/src/chat-cards.css +1 -0
  22. package/src/chat-plain.js +5 -5
  23. package/src/collections.tsx +8 -1
  24. package/src/editor/controls.tsx +51 -10
  25. package/src/editor/field-frame.tsx +4 -10
  26. package/src/editor/index.ts +2 -4
  27. package/src/editor/inspector-frame.tsx +143 -32
  28. package/src/editor/items-field.tsx +8 -3
  29. package/src/editor/items.ts +30 -6
  30. package/src/editor/panel.tsx +4 -5
  31. package/src/editor-inspector-frame.css +1 -1
  32. package/src/editor-media.css +1 -0
  33. package/src/editor-plain.js +1 -1
  34. package/src/editor-rail.css +1 -1
  35. package/src/editor.css +1 -1
  36. package/src/email-editor/editor.tsx +96 -69
  37. package/src/email-editor.css +1 -1
  38. package/src/gem-at-work.css +1 -1
  39. package/src/gem-at-work.ts +177 -33
  40. package/src/gem-holo.css +1 -1
  41. package/src/icons.tsx +42 -0
  42. package/src/index-table-extras.css +1 -0
  43. package/src/index-table.tsx +37 -16
  44. package/src/menu.tsx +7 -3
  45. package/src/narration.css +1 -1
  46. package/src/selection.tsx +22 -12
  47. package/src/editor/chips.tsx +0 -24
  48. package/src/editor-chips.css +0 -1
@@ -1 +1 @@
1
- .gb-emailed .gemboss-editor-tb-left{gap:8px;min-width:0}.gb-emailed-crumb{max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gemboss-text-muted);font-weight:550}.gb-emailed-slash{color:var(--gemboss-divider)}.gb-emailed-name{max-width:28ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gemboss-text-strong)}.gb-emailed-chip,.gb-emailed-tag{flex:none;padding:1px 8px;border-radius:var(--gemboss-radius-sm);background:var(--gemboss-active-bg);font-size:var(--gemboss-fs-caption);font-weight:600;white-space:nowrap}.gb-emailed-tag{padding:1px 6px;background:var(--gemboss-accent-soft);color:var(--gemboss-accent-strong);font-size:var(--gemboss-fs-micro)}.gb-emailed-view{display:inline-flex;gap:6px}.gb-emailed-col{display:flex;flex-direction:column;min-height:0}.gb-emailed-chat{flex:1;min-height:0;display:flex;flex-direction:column}.gb-emailed-chat[hidden]{display:none}.gb-emailed-pane{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px}.gb-emailed-pane>.gemboss-ei-head{margin:-12px -12px 4px}.gb-emailed-blocks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.gb-emailed-row{display:flex;align-items:stretch;border-radius:10px;box-shadow:inset 0 0 0 1px var(--gemboss-divider);background:var(--gemboss-surface)}.gb-emailed-row.is-sel{background:var(--gemboss-accent-soft);box-shadow:inset 0 0 0 1.5px var(--gemboss-accent)}.gb-emailed-row.is-hidden{opacity:.55}.gb-emailed-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:8px 10px;border:0;background:none;font:inherit;color:var(--gemboss-text);text-align:left;cursor:pointer;border-radius:10px}.gb-emailed-row-main:focus-visible,.gb-emailed-row-acts button:focus-visible,.gb-emailed-addend:focus-visible,.gb-emailed-checks:focus-visible,.gb-email-blk:focus-visible,.gb-email-env:focus-visible,.gb-email-add:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}.gb-emailed-row-t{flex:1;min-width:0;display:flex;flex-direction:column}.gb-emailed-row-t b{font-weight:550;color:var(--gemboss-text-strong)}.gb-emailed-row-t span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gb-emailed-row-acts{display:flex;align-items:center;gap:2px;padding-right:6px}.gb-emailed-row-acts button{width:26px;height:26px;border:0;border-radius:var(--gemboss-radius-sm);background:none;color:var(--gemboss-text-muted);font:inherit;cursor:pointer}.gb-emailed-row-acts button:hover:not(:disabled){background:var(--gemboss-hover);color:var(--gemboss-text)}.gb-emailed-row-acts button:disabled{opacity:.35;cursor:default}.gb-emailed-addend{min-height:36px;padding:0 12px;border:1.5px dashed var(--gemboss-divider);border-radius:10px;background:transparent;color:var(--gemboss-text);font:inherit;font-weight:550;cursor:pointer}.gb-emailed-addend:hover{border-color:var(--gemboss-accent);color:var(--gemboss-accent-strong)}.gb-emailed-addend span{color:var(--gemboss-text-muted);font-weight:450}.gb-emailed-sum{margin-top:4px;padding:12px;border-radius:10px;background:var(--gemboss-primary-soft);display:flex;flex-direction:column;gap:6px;align-items:flex-start}.gb-emailed-sum b{color:var(--gemboss-text-strong)}.gb-emailed-muted{margin:0;font-size:var(--gemboss-fs-caption);line-height:18px;color:var(--gemboss-text-muted)}.gb-emailed-pick{padding:10px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--gemboss-divider);display:flex;flex-direction:column;gap:8px}.gb-emailed-pick-head{display:flex;align-items:center;gap:8px}.gb-emailed-pick-head span{flex:1;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption)}.gb-emailed-form{display:flex;flex-direction:column;gap:12px;padding-top:4px}.gb-emailed-area{min-height:88px}.gb-emailed-vars{display:flex;flex-wrap:wrap;gap:4px;margin-top:-6px}.gb-emailed-personal{padding:10px 12px;border-radius:10px;background:var(--gemboss-accent-wash);box-shadow:inset 0 0 0 1px var(--gemboss-accent-tint);display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gb-emailed-personal b{font-size:var(--gemboss-fs-body);color:var(--gemboss-text-strong)}.gb-emailed-from{color:var(--gemboss-text-muted)}.gb-emailed-stage{background:var(--gemboss-preview-canvas)}.gb-emailed-scroll{flex:1;min-width:0;overflow:auto;padding:24px}.gb-emailed-meta,.gb-emailed-checklist{max-width:640px;margin:0 auto 12px;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}.gb-emailed-checklist{display:block;padding:12px;border-radius:12px;background:var(--gemboss-surface)}.gb-emailed-checks,.gb-emailed-as,.gb-emailed-note{padding:4px 10px;border:0;border-radius:var(--gemboss-radius-full);background:var(--gemboss-warning-soft);color:var(--gemboss-warning);font:inherit;font-size:var(--gemboss-fs-caption);font-weight:600}.gb-emailed-checks{cursor:pointer}.gb-emailed-checks.is-ok{background:var(--gemboss-success-soft);color:var(--gemboss-success-strong)}.gb-emailed-as,.gb-emailed-note{background:var(--gemboss-surface);color:var(--gemboss-text);font-weight:450}.gb-emailed-addmail{display:block;max-width:640px;width:100%;margin:12px auto 0;background:var(--gemboss-surface)}.gb-emailed-sent{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:8px}.gb-emailed-sent.is-mobile{max-width:375px}.gb-emailed-sent[aria-busy=true]{opacity:.6}.gb-emailed-sent-frame{display:block;width:100%;height:72vh;min-height:480px;border:0;border-radius:var(--gemboss-radius-md);background:var(--gemboss-surface)}.gb-emailed-sent-err{margin:0;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption)}.gb-email-col{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:12px;color:var(--gemboss-text)}.gb-email-col.is-mobile{max-width:375px}.gb-email-env{padding:12px 16px;border-radius:12px;background:var(--gemboss-surface);display:flex;flex-direction:column;gap:2px;cursor:pointer}.gb-email-env[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px var(--gemboss-accent)}.gb-email-env-k,.gb-email-env-pre{color:var(--gemboss-text-muted)}.gb-email-mail{--gb-ink: var(--gb-email-ink, var(--gemboss-text));--gb-muted: var(--gb-email-muted, var(--gemboss-text-muted));--gb-line: var(--gb-email-line, var(--gemboss-divider-soft));border-radius:12px;background:var(--gb-email-bg, var(--gemboss-surface));color:var(--gb-ink);overflow:hidden;display:flex;flex-direction:column}.is-dark>.gb-email-mail{--gb-ink: var(--gemboss-dark-text);--gb-muted: var(--gemboss-dark-muted);--gb-line: var(--gemboss-dark-divider);background:var(--gemboss-dark-surface)}.gb-email-blk{position:relative;cursor:pointer}.gb-email-blk:hover{box-shadow:inset 0 0 0 1px var(--gemboss-accent-mid)}.gb-email-blk.is-sel{box-shadow:inset 0 0 0 2px var(--gemboss-accent)}.gb-email-addrow{position:relative;height:0;display:flex;justify-content:center;z-index:1}.gb-email-add{position:absolute;top:-14px;width:28px;height:28px;border:0;border-radius:50%;background:var(--gemboss-accent);color:var(--gemboss-on-primary);font:inherit;font-size:18px;line-height:1;cursor:pointer;box-shadow:var(--gemboss-shadow-raised)}.gb-email-logo{height:56px;display:grid;place-items:center;border-bottom:1px solid var(--gb-line);font-weight:700;letter-spacing:.2em;color:var(--gb-ink)}.gb-email-logo img{max-height:32px}.gb-email-al-left{text-align:left;justify-content:flex-start}.gb-email-al-center{text-align:center;justify-content:center}.gb-email-al-right{text-align:right;justify-content:flex-end}.gb-email-img img{display:block;width:100%;height:auto}.gb-email-img.is-empty{height:150px;display:grid;place-items:center;background:var(--gemboss-warning-soft);color:var(--gb-muted);font-size:var(--gemboss-fs-caption)}.gb-email-text{padding:24px 32px 8px;display:flex;flex-direction:column;gap:8px}.gb-email-h{margin:0;font-size:22px;line-height:28px;font-weight:700;color:var(--gb-ink)}.gb-email-p{margin:0;line-height:20px;color:var(--gb-ink)}.gb-email-strong{font-weight:650}.gb-email-muted{color:var(--gb-muted)}.gb-email-link{text-decoration:underline}.gb-email-var{padding:0 2px;border-radius:3px;background:var(--gemboss-warning-soft);color:var(--gemboss-warning)}.gb-email-products,.gb-email-review,.gb-email-band{padding:8px 32px;display:flex;flex-direction:column;gap:10px}.gb-email-review{align-items:center;text-align:center;padding-block:16px}.gb-email-pgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gb-email-pgrid[data-count="1"]{grid-template-columns:minmax(0,1fr)}.gb-email-pgrid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.is-mobile .gb-email-pgrid{grid-template-columns:minmax(0,1fr)}.gb-email-pcard{border:1px solid var(--gb-line);border-radius:10px;overflow:hidden}.gb-email-pcard.is-one{margin:8px 32px;display:flex}.gb-email-pimg{height:80px;background:var(--gemboss-warning-soft)}.gb-email-pimg img{width:100%;height:100%;object-fit:cover}.gb-email-pbody{padding:8px 10px;display:flex;flex-direction:column}.gb-email-pbody span{color:var(--gb-muted)}.gb-email-btnrow{padding:12px 32px 24px;display:flex;justify-content:center}.gb-email-products .gb-email-btnrow,.gb-email-review .gb-email-btnrow,.gb-email-text .gb-email-btnrow,.gb-email-band .gb-email-btnrow{padding:4px 0 8px}.gb-email-btn{padding:12px 24px;border-radius:8px;background:var(--gb-email-btn, var(--gemboss-primary));color:var(--gb-email-btn-ink, var(--gemboss-on-primary));font-weight:600}.gb-email-stars{display:inline-flex;gap:4px;fill:none;stroke:var(--gemboss-warning);stroke-width:1.4}.gb-email-foot{padding:12px 32px 20px;border-top:1px solid var(--gb-line);text-align:center;font-size:var(--gemboss-fs-caption);color:var(--gb-muted)}.gb-email-foot p{margin:0 0 4px}.gb-email-quote{margin:8px 32px;padding:16px;border-radius:8px;background:var(--gemboss-primary-soft);font-style:italic}.gb-email-quote cite{display:block;margin-top:8px;font-style:normal;font-weight:600}.gb-email-list{margin:0;padding:8px 32px 8px 54px}.gb-email-cols{padding:8px 32px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.gb-email-rule{margin:8px 32px;border:0;border-top:1px solid var(--gb-line)}.is-mobile .gb-email-text,.is-mobile .gb-email-products,.is-mobile .gb-email-review,.is-mobile .gb-email-btnrow,.is-mobile .gb-email-foot{padding-inline:20px}@media (max-width: 47.9975em){.gb-emailed-crumb,.gb-emailed-slash{display:none}.gb-emailed-scroll{padding:12px}.gb-email-pgrid{grid-template-columns:minmax(0,1fr)}.gb-emailed-row-main,.gb-emailed-addend,.gb-emailed-row-acts button{min-height:44px}.gb-emailed-row-acts button{min-width:44px}}
1
+ .gb-emailed .gemboss-editor-tb-left{gap:8px;min-width:0}.gb-emailed-crumb{max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gemboss-text-muted);font-weight:550}.gb-emailed-slash{color:var(--gemboss-divider)}.gb-emailed-name{max-width:28ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--gemboss-text-strong)}.gb-emailed-chip,.gb-emailed-tag{flex:none;padding:1px 8px;border-radius:var(--gemboss-radius-sm);background:var(--gemboss-active-bg);font-size:var(--gemboss-fs-caption);font-weight:600;white-space:nowrap}.gb-emailed-tag{padding:1px 6px;background:var(--gemboss-accent-soft);color:var(--gemboss-accent-strong);font-size:var(--gemboss-fs-micro)}.gb-emailed-view{display:inline-flex;gap:6px}.gb-emailed-col{display:flex;flex-direction:column;min-height:0}.gb-emailed-chat{flex:1;min-height:0;display:flex;flex-direction:column}.gb-emailed-chat[hidden]{display:none}.gb-emailed-pane{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px}.gb-emailed-pane>.gemboss-ei-head{margin:-12px -12px 4px}.gb-emailed-blocks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.gb-emailed-row{display:flex;align-items:stretch;border-radius:10px;box-shadow:inset 0 0 0 1px var(--gemboss-divider);background:var(--gemboss-surface)}.gb-emailed-row.is-sel{background:var(--gemboss-accent-soft);box-shadow:inset 0 0 0 1.5px var(--gemboss-accent)}.gb-emailed-row.is-hidden{opacity:.55}.gb-emailed-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:8px 10px;border:0;background:none;font:inherit;color:var(--gemboss-text);text-align:left;cursor:pointer;border-radius:10px}.gb-emailed-row-main:focus-visible,.gb-emailed-row-acts button:focus-visible,.gb-emailed-addend:focus-visible,.gb-emailed-checks:focus-visible,.gb-email-blk:focus-visible,.gb-email-env:focus-visible,.gb-email-add:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}.gb-emailed-row-t{flex:1;min-width:0;display:flex;flex-direction:column}.gb-emailed-row-t b{font-weight:550;color:var(--gemboss-text-strong)}.gb-emailed-row-t span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gb-emailed-row-acts{display:flex;align-items:center;gap:2px;padding-right:6px}.gb-emailed-row-acts button{width:26px;height:26px;border:0;border-radius:var(--gemboss-radius-sm);background:none;color:var(--gemboss-text-muted);font:inherit;cursor:pointer}.gb-emailed-row-acts button:hover:not(:disabled){background:var(--gemboss-hover);color:var(--gemboss-text)}.gb-emailed-row-acts button:disabled{opacity:.35;cursor:default}.gb-emailed-addend{min-height:36px;padding:0 12px;border:1.5px dashed var(--gemboss-divider);border-radius:10px;background:transparent;color:var(--gemboss-text);font:inherit;font-weight:550;cursor:pointer}.gb-emailed-addend:hover{border-color:var(--gemboss-accent);color:var(--gemboss-accent-strong)}.gb-emailed-addend span{color:var(--gemboss-text-muted);font-weight:450}.gb-emailed-sum{margin-top:4px;padding:12px;border-radius:10px;background:var(--gemboss-primary-soft);display:flex;flex-direction:column;gap:6px;align-items:flex-start}.gb-emailed-sum b{color:var(--gemboss-text-strong)}.gb-emailed-muted{margin:0;font-size:var(--gemboss-fs-caption);line-height:18px;color:var(--gemboss-text-muted)}.gb-emailed-pick{padding:10px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--gemboss-divider);display:flex;flex-direction:column;gap:8px}.gb-emailed-pick-head{display:flex;align-items:center;gap:8px}.gb-emailed-pick-head span{flex:1;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption)}.gb-emailed-vars{display:flex;flex-wrap:wrap;gap:4px;margin-top:-6px}.gb-emailed-personal{padding:10px 12px;border-radius:10px;background:var(--gemboss-accent-wash);box-shadow:inset 0 0 0 1px var(--gemboss-accent-tint);display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:var(--gemboss-fs-caption);color:var(--gemboss-text-muted)}.gb-emailed-personal b{font-size:var(--gemboss-fs-body);color:var(--gemboss-text-strong)}.gb-emailed-from{color:var(--gemboss-text-muted)}.gb-emailed-stage{background:var(--gemboss-preview-canvas)}.gb-emailed-scroll{flex:1;min-width:0;overflow:auto;padding:24px}.gb-emailed-meta,.gb-emailed-checklist{max-width:640px;margin:0 auto 12px;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}.gb-emailed-checklist{display:block;padding:12px;border-radius:12px;background:var(--gemboss-surface)}.gb-emailed-checks,.gb-emailed-as,.gb-emailed-note{padding:4px 10px;border:0;border-radius:var(--gemboss-radius-full);background:var(--gemboss-warning-soft);color:var(--gemboss-warning);font:inherit;font-size:var(--gemboss-fs-caption);font-weight:600}.gb-emailed-checks{cursor:pointer}.gb-emailed-checks.is-ok{background:var(--gemboss-success-soft);color:var(--gemboss-success-strong)}.gb-emailed-as,.gb-emailed-note{background:var(--gemboss-surface);color:var(--gemboss-text);font-weight:450}.gb-emailed-addmail{display:block;max-width:640px;width:100%;margin:12px auto 0;background:var(--gemboss-surface)}.gb-emailed-sent{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:8px}.gb-emailed-sent.is-mobile{max-width:375px}.gb-emailed-sent[aria-busy=true]{opacity:.6}.gb-emailed-sent-frame{display:block;width:100%;height:72vh;min-height:480px;border:0;border-radius:var(--gemboss-radius-md);background:var(--gemboss-surface)}.gb-emailed-sent-err{margin:0;color:var(--gemboss-text-muted);font-size:var(--gemboss-fs-caption)}.gb-email-col{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:12px;color:var(--gemboss-text)}.gb-email-col.is-mobile{max-width:375px}.gb-email-env{padding:12px 16px;border-radius:12px;background:var(--gemboss-surface);display:flex;flex-direction:column;gap:2px;cursor:pointer}.gb-email-env[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px var(--gemboss-accent)}.gb-email-env-k,.gb-email-env-pre{color:var(--gemboss-text-muted)}.gb-email-mail{--gb-ink: var(--gb-email-ink, var(--gemboss-text));--gb-muted: var(--gb-email-muted, var(--gemboss-text-muted));--gb-line: var(--gb-email-line, var(--gemboss-divider-soft));border-radius:12px;background:var(--gb-email-bg, var(--gemboss-surface));color:var(--gb-ink);overflow:hidden;display:flex;flex-direction:column}.is-dark>.gb-email-mail{--gb-ink: var(--gemboss-dark-text);--gb-muted: var(--gemboss-dark-muted);--gb-line: var(--gemboss-dark-divider);background:var(--gemboss-dark-surface)}.gb-email-blk{position:relative;cursor:pointer}.gb-email-blk:hover{box-shadow:inset 0 0 0 1px var(--gemboss-accent-mid)}.gb-email-blk.is-sel{box-shadow:inset 0 0 0 2px var(--gemboss-accent)}.gb-email-addrow{position:relative;height:0;display:flex;justify-content:center;z-index:1}.gb-email-add{position:absolute;top:-14px;width:28px;height:28px;border:0;border-radius:50%;background:var(--gemboss-accent);color:var(--gemboss-on-primary);font:inherit;font-size:18px;line-height:1;cursor:pointer;box-shadow:var(--gemboss-shadow-raised)}.gb-email-logo{height:56px;display:grid;place-items:center;border-bottom:1px solid var(--gb-line);font-weight:700;letter-spacing:.2em;color:var(--gb-ink)}.gb-email-logo img{max-height:32px}.gb-email-al-left{text-align:left;justify-content:flex-start}.gb-email-al-center{text-align:center;justify-content:center}.gb-email-al-right{text-align:right;justify-content:flex-end}.gb-email-img img{display:block;width:100%;height:auto}.gb-email-img.is-empty{height:150px;display:grid;place-items:center;background:var(--gemboss-warning-soft);color:var(--gb-muted);font-size:var(--gemboss-fs-caption)}.gb-email-text{padding:24px 32px 8px;display:flex;flex-direction:column;gap:8px}.gb-email-h{margin:0;font-size:22px;line-height:28px;font-weight:700;color:var(--gb-ink)}.gb-email-p{margin:0;line-height:20px;color:var(--gb-ink)}.gb-email-strong{font-weight:650}.gb-email-muted{color:var(--gb-muted)}.gb-email-link{text-decoration:underline}.gb-email-var{padding:0 2px;border-radius:3px;background:var(--gemboss-warning-soft);color:var(--gemboss-warning)}.gb-email-products,.gb-email-review,.gb-email-band{padding:8px 32px;display:flex;flex-direction:column;gap:10px}.gb-email-review{align-items:center;text-align:center;padding-block:16px}.gb-email-pgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gb-email-pgrid[data-count="1"]{grid-template-columns:minmax(0,1fr)}.gb-email-pgrid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.is-mobile .gb-email-pgrid{grid-template-columns:minmax(0,1fr)}.gb-email-pcard{border:1px solid var(--gb-line);border-radius:10px;overflow:hidden}.gb-email-pcard.is-one{margin:8px 32px;display:flex}.gb-email-pimg{height:80px;background:var(--gemboss-warning-soft)}.gb-email-pimg img{width:100%;height:100%;object-fit:cover}.gb-email-pbody{padding:8px 10px;display:flex;flex-direction:column}.gb-email-pbody span{color:var(--gb-muted)}.gb-email-btnrow{padding:12px 32px 24px;display:flex;justify-content:center}.gb-email-products .gb-email-btnrow,.gb-email-review .gb-email-btnrow,.gb-email-text .gb-email-btnrow,.gb-email-band .gb-email-btnrow{padding:4px 0 8px}.gb-email-btn{padding:12px 24px;border-radius:8px;background:var(--gb-email-btn, var(--gemboss-primary));color:var(--gb-email-btn-ink, var(--gemboss-on-primary));font-weight:600}.gb-email-stars{display:inline-flex;gap:4px;fill:none;stroke:var(--gemboss-warning);stroke-width:1.4}.gb-email-foot{padding:12px 32px 20px;border-top:1px solid var(--gb-line);text-align:center;font-size:var(--gemboss-fs-caption);color:var(--gb-muted)}.gb-email-foot p{margin:0 0 4px}.gb-email-quote{margin:8px 32px;padding:16px;border-radius:8px;background:var(--gemboss-primary-soft);font-style:italic}.gb-email-quote cite{display:block;margin-top:8px;font-style:normal;font-weight:600}.gb-email-list{margin:0;padding:8px 32px 8px 54px}.gb-email-cols{padding:8px 32px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.gb-email-rule{margin:8px 32px;border:0;border-top:1px solid var(--gb-line)}.is-mobile .gb-email-text,.is-mobile .gb-email-products,.is-mobile .gb-email-review,.is-mobile .gb-email-btnrow,.is-mobile .gb-email-foot{padding-inline:20px}@media (max-width: 47.9975em){.gb-emailed-crumb,.gb-emailed-slash{display:none}.gb-emailed-scroll{padding:12px}.gb-email-pgrid{grid-template-columns:minmax(0,1fr)}.gb-emailed-row-main,.gb-emailed-addend,.gb-emailed-row-acts button{min-height:44px}.gb-emailed-row-acts button{min-width:44px}}
@@ -1 +1 @@
1
- .gb-gaw{position:absolute;left:0;top:0;width:0;height:0;overflow:visible;pointer-events:none;z-index:2147483000;--gb-gaw-ring: var(--gemboss-accent, #5661f5);--gb-gaw-bad: var(--gemboss-danger, #d72c0d);font:600 11px/1 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.gb-gaw>*{position:absolute;box-sizing:border-box}.gb-gaw__cursor{left:0;top:0;width:14px;height:18px;z-index:2;will-change:transform}.gb-gaw__cursor svg{display:block;width:14px;height:18px;max-width:none;max-height:none;overflow:visible;filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))}.gb-gaw__cursor path{fill:var(--c, var(--gb-gaw-ring));stroke:#fff;stroke-width:1.3;stroke-linejoin:round}.gb-gaw__tag{position:absolute;left:11px;top:15px;padding:4px 6px;border-radius:3px;background:var(--c, var(--gb-gaw-ring));color:var(--ink, #fff);white-space:nowrap;box-shadow:0 1px 2px #0003}.gb-gaw__cursor.is-left .gb-gaw__tag{left:auto;right:6px}.gb-gaw__cursor.is-failed path{fill:var(--gb-gaw-bad)}.gb-gaw__cursor.is-failed .gb-gaw__tag{background:var(--gb-gaw-bad);color:#fff}.gb-gaw__ring{border:1.5px solid var(--gb-gaw-ring);border-radius:2px}.gb-gaw__label{position:absolute;left:-2px;top:-21px;padding:5px 7px;border-radius:3px 3px 0 0;background:var(--gb-gaw-ring);color:#fff;white-space:nowrap}.gb-gaw__ring--slot{border-color:transparent}.gb-gaw__ring.is-applied .gb-gaw__label:after{content:" \2713"}.gb-gaw__ring.is-failed{border-color:var(--gb-gaw-bad)}.gb-gaw__ring.is-failed .gb-gaw__label{background:var(--gb-gaw-bad)}.gb-gaw__slot{min-height:120px;padding:18px 22px;border:1.5px dashed var(--gb-gaw-ring);border-radius:6px;background:var(--gemboss-accent-wash, #f7f8ff);box-shadow:0 6px 20px #1f1e1d14}.gb-gaw__slot--new{padding:26px 30px;border:0;border-radius:12px;background:var(--gemboss-accent-wash, #f7f8ff);box-shadow:0 1px 2px #1f1e1d0a,0 8px 24px #1f1e1d0f}.gb-gaw__ghost-h,.gb-gaw__ghost-p{width:fit-content;max-width:100%}.gb-gaw__ghost-h{margin:0 0 10px;color:#1b1c1e;font-size:28px;font-weight:600;line-height:1.2}.gb-gaw__ghost-p{margin:0 0 6px;color:#3d4250;font-size:16px;font-weight:400;line-height:1.5}.gb-gaw__sel{border:1px solid var(--gb-gaw-ring)}.gb-gaw__sel i{position:absolute;width:6px;height:6px;background:#fff;border:1px solid var(--gb-gaw-ring)}.gb-gaw__sel i:nth-child(1){left:-3.5px;top:-3.5px}.gb-gaw__sel i:nth-child(2){right:-3.5px;top:-3.5px}.gb-gaw__sel i:nth-child(3){left:-3.5px;bottom:-3.5px}.gb-gaw__sel i:nth-child(4){right:-3.5px;bottom:-3.5px}.gb-gaw__dim{position:absolute;left:-1px;top:calc(100% + 4px);padding:2px 4px;border-radius:2px;background:var(--gb-gaw-ring);color:#fff;font:600 9.5px/1 ui-monospace,SF Mono,Menlo,Consolas,monospace;white-space:nowrap}.gb-gaw__guide{background:#ff7a45;opacity:.75}.gb-gaw__caret{background:var(--gb-gaw-ring)}.gb-gaw__caret--inline{position:static;display:inline-block;width:2px;height:.9em;margin-left:2px;vertical-align:-.1em}.gb-gaw__veil{background:#a9b1fb;opacity:.92}.gb-gaw__scan{background:var(--gb-gaw-ring);box-shadow:0 0 14px 4px #5661f559}.gb-gaw__glow{border:2px solid var(--gb-gaw-ring);border-radius:2px;box-shadow:0 0 0 4px #5661f52e;opacity:0}@media (prefers-reduced-motion: reduce){.gb-gaw__cursor,.gb-gaw__scan,.gb-gaw__guide{display:none}}.gb-gaw-skip{position:fixed;right:16px;bottom:16px;z-index:2147483001;padding:7px 12px;border:0;border-radius:999px;background:#16171adb;color:#fff;font:600 12px/1 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px #0000002e}.gb-gaw-skip:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gb-gaw__say,.gb-gaw-goal,.gb-gaw-count{z-index:2147483001;pointer-events:none;padding:6px 10px;border-radius:6px;background:#16171ae0;color:#fff;font:500 12px/1.35 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px;box-shadow:0 2px 8px #0000002e}.gb-gaw__say{position:absolute;left:0;top:0}.gb-gaw-goal{position:fixed;left:16px;bottom:16px}.gb-gaw-goal i,.gb-gaw-count i{display:block;height:3px;margin-top:5px;border-radius:2px;background:var(--gemboss-accent, #5661f5);transform-origin:left}.gb-gaw__plus{color:#fff;background:var(--gb-gaw-ring);font:700 11px/12px monospace;text-align:center}.gb-gaw-ruler{position:fixed;left:0;right:0;height:14px;z-index:2147483000;pointer-events:none;background:repeating-linear-gradient(90deg,#fff 0 1px,transparent 1px 10px) bottom / 100% 4px no-repeat #16171a}.gb-gaw-ruler span{position:absolute;color:#fff;font:9px monospace}.gb-gaw-count{position:fixed;left:50%;bottom:16px;transform:translate(-50%)}.gb-gaw-count b{display:inline-block;width:8px;height:8px;border-radius:50%}
1
+ .gb-gaw{position:absolute;left:0;top:0;width:0;height:0;overflow:visible;pointer-events:none;z-index:2147483000;--gb-gaw-ring: var(--gemboss-accent, #5661f5);--gb-gaw-bad: var(--gemboss-danger, #d72c0d);font:600 11px/1 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.gb-gaw>*{position:absolute;box-sizing:border-box}.gb-gaw__cursor{left:0;top:0;width:14px;height:18px;z-index:2;will-change:transform}.gb-gaw__cursor svg{display:block;width:14px;height:18px;max-width:none;max-height:none;overflow:visible;filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))}.gb-gaw__cursor path{fill:var(--c, var(--gb-gaw-ring));stroke:#fff;stroke-width:1.3;stroke-linejoin:round}.gb-gaw__tag{position:absolute;left:11px;top:15px;padding:4px 6px;border-radius:3px;background:var(--c, var(--gb-gaw-ring));color:var(--ink, #fff);white-space:nowrap;box-shadow:0 1px 2px #0003}.gb-gaw__cursor.is-left .gb-gaw__tag{left:auto;right:6px}.gb-gaw__cursor.is-failed path{fill:var(--gb-gaw-bad)}.gb-gaw__cursor.is-failed .gb-gaw__tag{background:var(--gb-gaw-bad);color:#fff}.gb-gaw__ring{border:1.5px solid var(--gb-gaw-ring);border-radius:2px}.gb-gaw__label{position:absolute;left:-2px;top:-21px;padding:5px 7px;border-radius:3px 3px 0 0;background:var(--gb-gaw-ring);color:#fff;white-space:nowrap}.gb-gaw__ring--slot{border-color:transparent}.gb-gaw__ring.is-applied .gb-gaw__label:after{content:" \2713"}.gb-gaw__ring.is-failed{border-color:var(--gb-gaw-bad)}.gb-gaw__ring.is-failed .gb-gaw__label{background:var(--gb-gaw-bad)}.gb-gaw__slot{min-height:120px;padding:18px 22px;border:1.5px dashed var(--gb-gaw-ring);border-radius:6px;background:var(--gemboss-accent-wash, #f7f8ff);box-shadow:0 6px 20px #1f1e1d14}.gb-gaw__slot--new{padding:26px 30px;border:0;border-radius:12px;background:var(--gemboss-accent-wash, #f7f8ff);box-shadow:0 1px 2px #1f1e1d0a,0 8px 24px #1f1e1d0f}.gb-gaw__ghost-h,.gb-gaw__ghost-p{width:fit-content;max-width:100%}.gb-gaw__ghost-h{margin:0 0 10px;color:#1b1c1e;font-size:28px;font-weight:600;line-height:1.2}.gb-gaw__ghost-p{margin:0 0 6px;color:#3d4250;font-size:16px;font-weight:400;line-height:1.5}.gb-gaw__sel{border:1px solid var(--gb-gaw-ring)}.gb-gaw__sel i{position:absolute;width:6px;height:6px;background:#fff;border:1px solid var(--gb-gaw-ring)}.gb-gaw__sel i:nth-child(1){left:-3.5px;top:-3.5px}.gb-gaw__sel i:nth-child(2){right:-3.5px;top:-3.5px}.gb-gaw__sel i:nth-child(3){left:-3.5px;bottom:-3.5px}.gb-gaw__sel i:nth-child(4){right:-3.5px;bottom:-3.5px}.gb-gaw__dim{position:absolute;left:-1px;top:calc(100% + 4px);padding:2px 4px;border-radius:2px;background:var(--gb-gaw-ring);color:#fff;font:600 9.5px/1 ui-monospace,SF Mono,Menlo,Consolas,monospace;white-space:nowrap}.gb-gaw__guide{background:#ff7a45;opacity:.75}.gb-gaw__caret{background:var(--gb-gaw-ring)}.gb-gaw__caret--inline{position:static;display:inline-block;width:2px;height:.9em;margin-left:2px;vertical-align:-.1em}.gb-gaw__veil{background:#a9b1fb;opacity:.92}.gb-gaw__scan{background:var(--gb-gaw-ring);box-shadow:0 0 14px 4px #5661f559}.gb-gaw__glow{border:2px solid var(--gb-gaw-ring);border-radius:2px;box-shadow:0 0 0 4px #5661f52e;opacity:0}@media (prefers-reduced-motion: reduce){.gb-gaw__cursor,.gb-gaw__scan,.gb-gaw__guide{display:none}}.gb-gaw-skip{position:fixed;right:16px;bottom:16px;z-index:2147483001;padding:7px 12px;border:0;border-radius:999px;background:#16171adb;color:#fff;font:600 12px/1 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px #0000002e}.gb-gaw-skip:focus-visible{outline:2px solid var(--ui-focus, #5661f5);outline-offset:2px}.gb-gaw__say,.gb-gaw-goal,.gb-gaw-count{z-index:2147483001;pointer-events:none;padding:6px 10px;border-radius:6px;background:#16171ae0;color:#fff;font:500 12px/1.35 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px;box-shadow:0 2px 8px #0000002e}.gb-gaw__say{position:absolute;left:0;top:0}.gb-gaw-goal{position:fixed;left:16px;bottom:16px}.gb-gaw-goal i,.gb-gaw-count i{display:block;height:3px;margin-top:5px;border-radius:2px;background:var(--gemboss-accent, #5661f5);transform-origin:left}.gb-gaw__plus{color:#fff;background:var(--gb-gaw-ring);font:700 11px/12px monospace;text-align:center}.gb-gaw-ruler{position:fixed;left:0;right:0;height:14px;z-index:2147483000;pointer-events:none;background:repeating-linear-gradient(90deg,#fff 0 1px,transparent 1px 10px) bottom / 100% 4px no-repeat #16171a}.gb-gaw-ruler span{position:absolute;color:#fff;font:9px monospace}.gb-gaw-count{position:fixed;left:50%;bottom:16px;transform:translate(-50%)}.gb-gaw-count b{display:inline-block;width:8px;height:8px;border-radius:50%}.gb-gaw__pin{display:flex;flex-direction:row-reverse;align-items:center;gap:6px;width:300px}.gb-gaw__pin i{flex:none;width:10px;height:10px;border-radius:50%;background:var(--c);box-shadow:0 0 0 3px #fff}.gb-gaw__pin span{padding:3px 7px;border-radius:4px;background:#16171ae0;color:#fff;font:500 11px/1.3 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gb-gaw__pin.is-ok i{background:#22c55e}.gb-gaw__wire{border:1.5px solid var(--c)}.gb-gaw__wire.is-heading,.gb-gaw__wire.is-words{background:repeating-linear-gradient(transparent 0 5px,rgba(150,150,150,.4) 5px 12px,transparent 12px 16px)}.gb-gaw__wire.is-picture{background:linear-gradient(to top right,transparent calc(50% - 1px),var(--c) 50%,transparent calc(50% + 1px)),linear-gradient(to bottom right,transparent calc(50% - 1px),var(--c) 50%,transparent calc(50% + 1px))}.gb-gaw__wire b{position:absolute;left:4px;bottom:4px;color:var(--c);font:600 9px/1 monospace}.gb-gaw__cursor.is-hand .gb-gaw__tag{padding:2px 5px;font-size:10px}
@@ -77,8 +77,15 @@ export interface GemActivity {
77
77
  /** How far the turn's goal is, measured, not guessed (a clone's likeness to its original, sections built): drawn as a meter
78
78
  * with where it started this turn. `unit: "%"` reads `done` as a percent of `total`. */
79
79
  goal?: { label: string; done: number; total: number; unit?: "%" };
80
+ /** What a check found, on the blocks it found it on (Chris 08/11: "lỗi nằm đâu"): a dot in its trade's colour with the finding,
81
+ * turned ✓ when a later check finds that block right. The reader names each by its `target`; `source` is the original's
82
+ * section a comparison names, for the editor to put a target to (gem-activity-relay.ts). */
83
+ pins?: GemPin[];
80
84
  }
81
85
 
86
+ /** One finding of a check, on the block it is about. */
87
+ export interface GemPin { target?: GemActivityTarget; source?: number; say: string; trade?: GemTrade; ok?: boolean }
88
+
82
89
  /** The crew's trades, as an activity names them (`trades`). */
83
90
  export type GemTrade = "copy" | "layout" | "image" | "cro" | "check" | "style";
84
91
 
@@ -164,6 +171,15 @@ const HEAT_MIN = 0.75;
164
171
  const BUILD_LANES = 8;
165
172
  const HANDS_MAX = 6;
166
173
  const BUILD_PACE = 1.6;
174
+ /** THE STRUCTURE FIRST (Chris 08/11, the reels "Agentic Build" and "AI Agents build my website"): each band of a section built is
175
+ * first blocked out, every block's box dragged out in its kind's colour (a picture's crossed, with its size; words as grey lines),
176
+ * then each step fills its boxes. Words are typed in at BUILD_CPS, a block's typing never longer than TYPE_MAX_MS. */
177
+ const WIRE: Record<BlockKind, string> = { frame: "#c084fc", picture: "#60a5fa", heading: "#facc15", words: "#4ade80", action: "#fb923c" };
178
+ const BUILD_CPS = 70;
179
+ const TYPE_MAX_MS = 1100;
180
+ /** What the extra hands are called, by trade: short names of the work, as the reels' agents are ("Copy", "Palette", "Render"). */
181
+ const HAND_NAMES: Record<Role, readonly string[]> = { lead: ["Gem"], copy: ["Copy", "Typeset", "Headline"], layout: ["Grid", "Spacing", "Layout"],
182
+ image: ["Image", "Render", "Crop"], cro: ["Buttons", "CTA"], check: ["QA", "Lint"], style: ["Palette", "Shadow", "Fonts"] };
167
183
  /** What one of the crew says while it goes over a block (`inspect`): its own trade's look at it (the copy expert reads the words). */
168
184
  const LOOKING: Record<Role, string> = { lead: "working", copy: "reading", layout: "checking the spacing", image: "checking the picture", cro: "checking the button", check: "checking", style: "checking the look" };
169
185
  const FIXING: Record<Role, string> = { lead: "working", copy: "fixing the words", layout: "fixing the layout", image: "fixing the pictures", cro: "fixing the buttons", check: "checking again", style: "fixing the look" };
@@ -200,7 +216,8 @@ const CREW: ReadonlyArray<{ role: Role; name: string; doing: string; c: string;
200
216
  { role: "check", name: "QA", doing: "auto-checking", c: "#5EEAD4", ink: "#16171a" },
201
217
  { role: "style", name: "Smart styling", doing: "tuning", c: "#A3E635", ink: "#16171a" },
202
218
  ];
203
- type Member = { role: Role; name: string; doing: string; el: HTMLElement; tag: HTMLElement; x: number; y: number; anim: Animation | null; fade: Animation | null; resting: boolean };
219
+ type Member = { role: Role; name: string; doing: string; el: HTMLElement; tag: HTMLElement; x: number; y: number; anim: Animation | null; fade: Animation | null; resting: boolean;
220
+ /** An extra hand: its tag is its name alone. */ quiet?: true };
204
221
  /** Buttons, prices and offers are conversion work; pictures the image expert's; colours and fonts smart styling's; words the copy
205
222
  * expert's; the rest is layout. */
206
223
  const CRO = /^(Button|Cta|Call to action|Price|Offer|Discount|Bundle|Upsell|Countdown)/i;
@@ -325,11 +342,16 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
325
342
  let ruler: HTMLElement | null = null, counter: HTMLElement | null = null;
326
343
  let built = { done: 0, total: 0 };
327
344
  const plus = new Map<HTMLElement, HTMLElement>();
345
+ /** Each block's box blocked out ahead of its fill, and the words being typed in (to put back on a skip). */
346
+ const wires = new Map<HTMLElement, HTMLElement>();
347
+ const typedOver = new Map<Text, string>();
328
348
  const looked = new Map<Role, number>();
329
349
  /** The line by the work (`say`), and the goal's meter in the corner (`goal`) with what it read when the turn first said it. */
330
350
  let sayEl: HTMLElement | null = null;
331
351
  let goalEl: HTMLElement | null = null;
332
352
  let goalAt: { label: string; from: number; frac: number } | null = null;
353
+ /** The findings pinned on the page, by the block they are on. */
354
+ const pinned = new Map<string, HTMLElement>();
333
355
  /** The one at work on the stage now, and QA while it rides a sweep to its end. */
334
356
  let atWork: Member | undefined;
335
357
  let riding: Member | null = null;
@@ -350,6 +372,8 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
350
372
  let draining = false;
351
373
  let epoch = 0;
352
374
  let waiting: Array<() => void> = [];
375
+ /** reveal()'s callers, let go by a skip: the build's timers go with the skip, so it would never end by itself. */
376
+ let revealsOut: Array<() => void> = [];
353
377
  /** The words written so far in each field: its next draft carries on from them. */
354
378
  const typed = new Map<string, string>();
355
379
  let handsOn = -Infinity;
@@ -449,7 +473,7 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
449
473
  }
450
474
  return crew;
451
475
  }
452
- function say(m: Member, doing?: string) { m.tag.textContent = m.role === "lead" && !doing ? m.name : `${m.name} · ${doing ?? m.doing}`; }
476
+ function say(m: Member, doing?: string) { m.tag.textContent = m.quiet || (m.role === "lead" && !doing) ? m.name : `${m.name} · ${doing ?? m.doing}`; }
453
477
  /** How much work a trade has had lately, as of now. */
454
478
  function heatOf(role: Role, t = now()): number {
455
479
  const h = heat.get(role);
@@ -886,6 +910,7 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
886
910
  if (!queue.length) hideSkip();
887
911
  // The last line and the goal stay a moment past the light, then go with the crew.
888
912
  unnarrate(1200);
913
+ unpin(1200);
889
914
  leave();
890
915
  }
891
916
  function leave() {
@@ -955,6 +980,8 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
955
980
  for (const band of bandsOf([...kinds.keys()])) {
956
981
  const area = bandBox(band);
957
982
  follow(area);
983
+ // The structure first: every block of the band blocked out, many hands at once; then each step fills its boxes.
984
+ if (pace && mode === "full") await blueprint(readingOrder(band), kinds, quick, was);
958
985
  for (const { kind, step } of BUILD_ORDER) {
959
986
  const group = readingOrder(band.filter((b) => kinds.get(b) === kind));
960
987
  if (!group.length) continue;
@@ -1019,25 +1046,31 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1019
1046
  }
1020
1047
  function hand(kind: BlockKind): Member | undefined {
1021
1048
  const free = arrive().filter((x) => !onBlock.has(x));
1049
+ // The counter says how many are live the moment one joins, not only when a block is done.
1050
+ const take = (m: Member) => { wake(m); count(0); return m; };
1022
1051
  for (const role of TAKERS[kind]) {
1023
1052
  const m = free.find((x) => x.role === role);
1024
- if (m) { wake(m); return m; }
1053
+ if (m) return take(m);
1025
1054
  }
1026
1055
  // The crew all busy: one of the trade's extra hands, a free one or a new one flown in from the middle of the screen.
1027
1056
  const role = TAKERS[kind][0];
1028
1057
  const spare = hands.find((h) => h.role === role && !onBlock.has(h));
1029
- if (spare) { wake(spare); return spare; }
1058
+ if (spare) return take(spare);
1030
1059
  if (!crew.length || !pace || hands.length >= HANDS_MAX) return undefined;
1031
1060
  const c = CREW.find((x) => x.role === role)!, v = view(), el = doc.createElement("div");
1032
1061
  el.className = "gb-gaw__cursor is-hand";
1033
1062
  el.style.setProperty("--c", c.c);
1034
- el.innerHTML = ARROW;
1063
+ el.style.setProperty("--ink", c.ink);
1064
+ el.innerHTML = `${ARROW}<span class="gb-gaw__tag"></span>`;
1035
1065
  ensureLayer().append(el);
1036
1066
  const x = v.x + v.w / 2, y = v.y + v.h / 2;
1037
1067
  el.style.transform = `translate(${x}px,${y}px)`;
1038
1068
  move(el, [{ opacity: "0" }, { opacity: "1" }], 200);
1039
- const m: Member = { ...c, el, tag: doc.createElement("span"), x, y, anim: null, fade: null, resting: false };
1069
+ const names = HAND_NAMES[role], name = names[hands.filter((h) => h.role === role).length % names.length]!;
1070
+ const m: Member = { ...c, name, el, tag: el.querySelector(".gb-gaw__tag") as HTMLElement, x, y, anim: null, fade: null, resting: false, quiet: true };
1071
+ say(m);
1040
1072
  hands.push(m);
1073
+ count(0);
1041
1074
  return m;
1042
1075
  }
1043
1076
  /** A "+" at the corner of a block whose turn is next: where it is about to go. */
@@ -1053,10 +1086,11 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1053
1086
  built.done += k;
1054
1087
  if (!built.total || mode !== "full") return;
1055
1088
  if (!counter) { counter = doc.createElement("div"); counter.className = "gb-gaw-count"; counter.setAttribute("aria-hidden", "true"); root.append(counter); }
1056
- const at = [...crew.filter((m) => !m.resting), ...hands];
1089
+ const at = [...crew, ...hands].filter((m) => !m.resting);
1057
1090
  const dots = at.slice(0, 8).map((m) => { const d = doc.createElement("b"); d.style.background = CREW.find((c) => c.role === m.role)!.c; return d; });
1058
1091
  const bar = doc.createElement("i");
1059
- counter.replaceChildren(...dots, doc.createTextNode(` ${at.length} at work · ${Math.min(built.done, built.total)} / ${built.total} blocks`), bar);
1092
+ const done = Math.min(built.done, built.total);
1093
+ counter.replaceChildren(...dots, doc.createTextNode(` ${at.length} agents live · ${done} / ${built.total} blocks · ${done >= built.total ? "done" : "building"}`), bar);
1060
1094
  bar.style.transform = `scaleX(${Math.min(1, built.done / built.total)})`;
1061
1095
  }
1062
1096
  /** A pixel ruler across the top of the screen while sections are built, as a design tool has (under a bar that sticks to the top). */
@@ -1076,6 +1110,10 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1076
1110
  hands = [];
1077
1111
  for (const p of plus.values()) p.remove();
1078
1112
  plus.clear();
1113
+ for (const w of wires.values()) w.remove();
1114
+ wires.clear();
1115
+ for (const [node, full] of typedOver) node.nodeValue = full;
1116
+ typedOver.clear();
1079
1117
  ruler?.remove(); ruler = null;
1080
1118
  counter?.remove(); counter = null;
1081
1119
  built = { done: 0, total: 0 };
@@ -1090,6 +1128,18 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1090
1128
  const worker = hand(kind);
1091
1129
  if (worker) { onBlock.add(worker); say(worker, worker.role === TAKERS[kind][0] ? VERB[kind] : undefined); }
1092
1130
  try {
1131
+ const wire = wires.get(b);
1132
+ if (wire) {
1133
+ // Its box is out already (blueprint): the hand goes into it and fills it; no second box over the first.
1134
+ if (worker) travel(worker, bx.x + 6, bx.y + 6, 240 / hurry);
1135
+ await wait(250 / hurry);
1136
+ boxOut();
1137
+ b.style.opacity = own;
1138
+ await fill(b, kind, hurry, worker, picture ? wire : null);
1139
+ wires.delete(b);
1140
+ gone(wire, 220);
1141
+ return;
1142
+ }
1093
1143
  // To the corner.
1094
1144
  if (worker) travel(worker, bx.x, bx.y, 320 / hurry);
1095
1145
  await wait(340 / hurry);
@@ -1120,29 +1170,7 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1120
1170
  sel.append(dim);
1121
1171
  move(dim, [{ opacity: "0" }, { opacity: "1" }], 140);
1122
1172
  b.style.opacity = own;
1123
- if (picture) {
1124
- // The tint held a moment, then the picture comes up through it.
1125
- if (typeof b.animate === "function") b.animate([{ opacity: 0 }, { opacity: 0, offset: 0.45 }, { opacity: 1 }], { duration: 1100 / hurry, easing: EASE });
1126
- await wait(500 / hurry);
1127
- gone(tint ?? undefined, 600 / hurry);
1128
- await wait(700 / hurry);
1129
- } else if (kind === "heading" || kind === "words") {
1130
- const wipe = Math.max(500, Math.min(1300, words * 14)) / hurry;
1131
- if (typeof b.animate === "function") b.animate([{ clipPath: "inset(-4px 100% -4px -4px)" }, { clipPath: "inset(-4px -4px -4px -4px)" }], { duration: wipe, easing: "linear" });
1132
- const caret = piece("gb-gaw__caret", { x: bx.x, y: bx.y, w: 2, h: Math.min(bx.h, 60) });
1133
- move(caret, [{ transform: "translateX(0)" }, { transform: `translateX(${bx.w}px)` }], wipe);
1134
- if (worker) { worker.anim?.cancel(); travel(worker, bx.x + bx.w + 4, bx.y + Math.min(bx.h, 60) * 0.6, wipe); }
1135
- await wait(wipe);
1136
- caret.remove();
1137
- } else if (kind === "action") {
1138
- // A button: it arrives whole.
1139
- if (typeof b.animate === "function") b.animate([{ opacity: 0, transform: "scale(.94)" }, { opacity: 1, transform: "scale(1)" }], { duration: 420 / hurry, easing: EASE });
1140
- await wait(420 / hurry);
1141
- } else {
1142
- // The structure: its fill comes up in the box.
1143
- if (typeof b.animate === "function") b.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 420 / hurry, easing: EASE });
1144
- await wait(420 / hurry);
1145
- }
1173
+ await fill(b, kind, hurry, worker, tint);
1146
1174
  gone(sel, 260);
1147
1175
  await wait(160 / hurry);
1148
1176
  } finally {
@@ -1151,6 +1179,89 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1151
1179
  }
1152
1180
  }
1153
1181
 
1182
+ /** A block's content comes into its box: a picture up through the tint, words typed in, a button whole, a frame's fill. */
1183
+ async function fill(b: HTMLElement, kind: BlockKind, hurry: number, worker: Member | undefined, tint: HTMLElement | null) {
1184
+ if (kind === "picture") {
1185
+ // The tint held a moment, then the picture comes up through it.
1186
+ if (typeof b.animate === "function") b.animate([{ opacity: 0 }, { opacity: 0, offset: 0.45 }, { opacity: 1 }], { duration: 1100 / hurry, easing: EASE });
1187
+ await wait(500 / hurry);
1188
+ gone(tint ?? undefined, 600 / hurry);
1189
+ await wait(700 / hurry);
1190
+ } else if (kind === "heading" || kind === "words") {
1191
+ await typeIn(b, hurry, worker);
1192
+ } else if (kind === "action") {
1193
+ // A button: it arrives whole.
1194
+ if (typeof b.animate === "function") b.animate([{ opacity: 0, transform: "scale(.94)" }, { opacity: 1, transform: "scale(1)" }], { duration: 420 / hurry, easing: EASE });
1195
+ await wait(420 / hurry);
1196
+ } else {
1197
+ // The structure: its fill comes up in the box.
1198
+ if (typeof b.animate === "function") b.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 420 / hurry, easing: EASE });
1199
+ await wait(420 / hurry);
1200
+ }
1201
+ }
1202
+ /** A block's words typed in a character at a time behind a caret at the end of what is typed (the reels' "Agentic Gr|"), then
1203
+ * exactly what they were; a skip puts them back (unbuild). A block with no words of its own comes up whole. */
1204
+ async function typeIn(b: HTMLElement, hurry: number, worker: Member | undefined) {
1205
+ const node = ownText(b), full = node?.nodeValue ?? "", run = revealing;
1206
+ if (!node || !full.trim()) {
1207
+ if (typeof b.animate === "function") b.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300 / hurry, easing: EASE });
1208
+ await wait(300 / hurry);
1209
+ return;
1210
+ }
1211
+ const ms = Math.max(300, Math.min(TYPE_MAX_MS, (full.length / BUILD_CPS) * 1000)) / hurry, steps = Math.max(2, Math.min(40, full.length));
1212
+ typedOver.set(node, full);
1213
+ const caret = piece("gb-gaw__caret"), end = doc.createRange();
1214
+ try {
1215
+ for (let i = 1; i <= steps && revealing === run; i++) {
1216
+ node.nodeValue = full.slice(0, Math.round((full.length * i) / steps));
1217
+ end.setStart(node, node.length);
1218
+ end.setEnd(node, node.length);
1219
+ const r = box(end);
1220
+ place(caret, { x: r.x, y: r.y, w: 2, h: Math.max(10, r.h) });
1221
+ if (worker && i % 5 === 1) travel(worker, r.x + 6, r.y + r.h * 0.7, 140);
1222
+ await wait(ms / steps);
1223
+ }
1224
+ } finally {
1225
+ node.nodeValue = full;
1226
+ typedOver.delete(node);
1227
+ caret.remove();
1228
+ }
1229
+ }
1230
+ /** A band blocked out: every block's box dragged out in its kind's colour, eight hands at a time, each a moment after the last. */
1231
+ async function blueprint(blocks: HTMLElement[], kinds: Map<HTMLElement, BlockKind>, hurry: number, run: typeof revealing) {
1232
+ tellStep("laying out the structure");
1233
+ const going = new Set<Promise<void>>();
1234
+ for (const b of blocks) {
1235
+ if (revealing !== run) return;
1236
+ while (going.size >= BUILD_LANES) await Promise.race(going);
1237
+ const job: Promise<void> = wireBlock(b, kinds.get(b) ?? "frame", hurry).finally(() => { going.delete(job); });
1238
+ going.add(job);
1239
+ await wait(70 / hurry);
1240
+ }
1241
+ await Promise.all(going);
1242
+ }
1243
+ /** One block's box blocked out: to its corner, pressed, dragged out in its kind's colour; a picture's crossed with its size. */
1244
+ async function wireBlock(b: HTMLElement, kind: BlockKind, hurry: number) {
1245
+ const bx = box(b), worker = hand(kind);
1246
+ if (worker) { onBlock.add(worker); travel(worker, bx.x, bx.y, 220 / hurry); }
1247
+ try {
1248
+ await wait(230 / hurry);
1249
+ const w = piece(`gb-gaw__wire is-${kind}`, bx);
1250
+ w.style.setProperty("--c", WIRE[kind]);
1251
+ if (kind === "picture") { const size = doc.createElement("b"); size.textContent = `IMG · ${Math.round(bx.w)}×${Math.round(bx.h)}`; w.append(size); }
1252
+ const drag = Math.max(240, Math.min(520, 160 + (bx.w + bx.h) * 0.2)) / hurry;
1253
+ move(w, [{ clipPath: "inset(0 100% 100% 0)" }, { clipPath: "inset(0 0 0 0)" }], drag);
1254
+ if (worker) travel(worker, bx.x + bx.w + 4, bx.y + bx.h + 4, drag);
1255
+ // The guides a design tool draws while a box is dragged out, across the screen from its top and left edges.
1256
+ const v = view();
1257
+ for (const g of [piece("gb-gaw__guide", { x: v.x, y: bx.y, w: v.w, h: 1 }), piece("gb-gaw__guide", { x: bx.x, y: v.y, w: 1, h: v.h })]) later(() => gone(g, 240), drag + 200);
1258
+ wires.set(b, w);
1259
+ await wait(drag);
1260
+ } finally {
1261
+ if (worker) onBlock.delete(worker);
1262
+ }
1263
+ }
1264
+
1154
1265
  function push(raw: unknown) {
1155
1266
  if (mode === "off" || !isActivity(raw)) return;
1156
1267
  // Skipped: the rest of this turn is not drawn; its landing ends the skip.
@@ -1231,6 +1342,32 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1231
1342
  move(bar, [{ transform: `scaleX(${goalAt.frac})` }, { transform: `scaleX(${frac})` }], 700);
1232
1343
  goalAt.frac = frac;
1233
1344
  }
1345
+ /** What a check found, on the blocks it is about: a dot in its trade's colour by the block's top-right corner, the finding beside
1346
+ * it; one found right since turns ✓ and goes. A pin whose block is not on the page is left out. */
1347
+ function drawPins(list: readonly GemPin[]) {
1348
+ for (const p of list.slice(0, 24)) {
1349
+ if (!p || typeof p.say !== "string" || !p.target) continue;
1350
+ const key = keyOf(p.target), was = pinned.get(key);
1351
+ if (p.ok) { if (was) { was.classList.add("is-ok"); was.lastElementChild!.textContent = "✓ fixed"; pinned.delete(key); later(() => gone(was, 300), 2400); } continue; }
1352
+ const hit = find(p.target);
1353
+ if (!hit) continue;
1354
+ const r = box(hit.el), v = view();
1355
+ const el = was ?? piece("gb-gaw__pin");
1356
+ if (!was) {
1357
+ el.innerHTML = "<i></i><span></span>";
1358
+ el.style.setProperty("--c", CREW.find((c) => c.role === (p.trade ?? "check"))?.c ?? CREW[0]!.c);
1359
+ move(el, [{ opacity: "0" }, { opacity: "1" }], 220);
1360
+ pinned.set(key, el);
1361
+ }
1362
+ el.lastElementChild!.textContent = p.say.slice(0, 90);
1363
+ const x = Math.max(v.x + 8, Math.min(r.x + r.w - 12, v.x + v.w - 20) - 300), y = r.y + 10;
1364
+ el.style.transform = `translate(${Math.round(x)}px,${Math.round(y)}px)`;
1365
+ }
1366
+ }
1367
+ function unpin(after = 0) {
1368
+ for (const el of pinned.values()) if (after) gone(el, 300, after); else el.remove();
1369
+ pinned.clear();
1370
+ }
1234
1371
  /** The line and the meter go: with the turn (after the light) or at once (Skip). */
1235
1372
  function unnarrate(after = 0) {
1236
1373
  if (sayEl) { if (after) gone(sayEl, 300, after); else sayEl.remove(); sayEl = null; }
@@ -1301,6 +1438,7 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1301
1438
  if (a.kind !== "land") {
1302
1439
  if (typeof a.say === "string" && a.say.trim()) narrate(a.say.trim().slice(0, 120)); else placeSay();
1303
1440
  if (a.goal) showGoal(a.goal);
1441
+ if (Array.isArray(a.pins)) drawPins(a.pins);
1304
1442
  }
1305
1443
  } catch {
1306
1444
  // The bottom of the ladder: the page as it is.
@@ -1315,6 +1453,7 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1315
1453
  stopTicker();
1316
1454
  hideSkip();
1317
1455
  unnarrate();
1456
+ unpin();
1318
1457
  unbuild();
1319
1458
  // The calm clock stops where it is: nothing queued is drawn, and whoever waits on it is let go.
1320
1459
  epoch += 1;
@@ -1324,6 +1463,7 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1324
1463
  queue = [];
1325
1464
  for (const item of left) item.done?.();
1326
1465
  for (const done of waiting.splice(0)) done();
1466
+ for (const done of revealsOut.splice(0)) done();
1327
1467
  for (const m of marks.values()) putBack(m);
1328
1468
  if (revealing) { for (const { e, opacity, clip } of revealing) { for (const an of e.getAnimations()) an.cancel(); e.style.opacity = opacity; e.style.clipPath = clip; } revealing = null; }
1329
1469
  lastStack = null;
@@ -1352,8 +1492,12 @@ export function createGemAtWork(options: GemAtWorkOptions = {}): GemAtWork {
1352
1492
 
1353
1493
  function reveal(sections?: readonly string[]): Promise<void> {
1354
1494
  if (mode === "off" || skipped) return Promise.resolve();
1355
- if (!calm) return showSaved(sections, 1);
1356
- return new Promise<void>((done) => { queue.push({ at: now(), reveal: sections, done }); void drain(); });
1495
+ return new Promise<void>((done) => {
1496
+ const finish = () => { revealsOut = revealsOut.filter((d) => d !== finish); done(); };
1497
+ revealsOut.push(finish);
1498
+ if (!calm) void showSaved(sections, 1).then(finish, finish);
1499
+ else { queue.push({ at: now(), reveal: sections, done: finish }); void drain(); }
1500
+ });
1357
1501
  }
1358
1502
 
1359
1503
  return {
package/src/gem-holo.css CHANGED
@@ -1 +1 @@
1
- .ui-holo{--ui-holo-size: 32px;position:relative;display:inline-block;flex:none;width:var(--ui-holo-size);height:var(--ui-holo-size);isolation:isolate;vertical-align:middle}.ui-holo:before{content:"";position:absolute;inset:0;border-radius:42% 58% 63% 37%/41% 44% 56% 59%;background:conic-gradient(from 0deg,#8b93ff,#4fe0b4,#ffc861,#ff7a9c,#8b93ff);filter:blur(calc(var(--ui-holo-size) * .08)) saturate(1.3);animation:ui-holo-morph 9s ease-in-out infinite,ui-holo-turn 14s linear infinite}.ui-holo:after{content:"";position:absolute;inset:12%;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fffffff2,#fff0 46%);mix-blend-mode:screen;animation:ui-holo-morph 9s ease-in-out infinite reverse}.ui-holo>svg{position:absolute;inset:22%;z-index:1;width:56%;height:56%}.ui-holo--busy:before{animation-duration:3s,5s}@keyframes ui-holo-morph{0%,to{border-radius:42% 58% 63% 37%/41% 44% 56% 59%}33%{border-radius:63% 37% 38% 62%/55% 62% 38% 45%}66%{border-radius:38% 62% 56% 44%/63% 37%}}@keyframes ui-holo-turn{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.ui-holo:before,.ui-holo:after{animation:none}}
1
+ .ui-holo{--ui-holo-size: 32px;position:relative;display:inline-block;flex:none;width:var(--ui-holo-size);height:var(--ui-holo-size);isolation:isolate;vertical-align:middle;background:none}.ui-holo:before{content:"";position:absolute;inset:0;border-radius:42% 58% 63% 37%/41% 44% 56% 59%;background:conic-gradient(from 0deg,#8b93ff,#4fe0b4,#ffc861,#ff7a9c,#8b93ff);filter:blur(calc(var(--ui-holo-size) * .08)) saturate(1.3);animation:ui-holo-morph 9s ease-in-out infinite,ui-holo-turn 14s linear infinite}.ui-holo:after{content:"";position:absolute;inset:12%;border-radius:50%;background:radial-gradient(circle at 32% 28%,#fffffff2,#fff0 46%);mix-blend-mode:screen;animation:ui-holo-morph 9s ease-in-out infinite reverse}.ui-holo>svg{position:absolute;inset:22%;z-index:1;width:56%;height:56%}.ui-holo--busy:before{animation-duration:3s,5s}@keyframes ui-holo-morph{0%,to{border-radius:42% 58% 63% 37%/41% 44% 56% 59%}33%{border-radius:63% 37% 38% 62%/55% 62% 38% 45%}66%{border-radius:38% 62% 56% 44%/63% 37%}}@keyframes ui-holo-turn{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.ui-holo:before,.ui-holo:after{animation:none}}
package/src/icons.tsx CHANGED
@@ -97,6 +97,35 @@ const P = {
97
97
  grip: <><circle cx="7.5" cy="5" r="1" /><circle cx="12.5" cy="5" r="1" /><circle cx="7.5" cy="10" r="1" /><circle cx="12.5" cy="10" r="1" /><circle cx="7.5" cy="15" r="1" /><circle cx="12.5" cy="15" r="1" /></>,
98
98
  timer: <><path d="M5.5 3h9M5.5 17h9" /><path d="M6.5 3c0 3.5 3.5 4.5 3.5 7s-3.5 3.5-3.5 7M13.5 3c0 3.5-3.5 4.5-3.5 7s3.5 3.5 3.5 7" /></>,
99
99
  target: <><circle cx="10" cy="10" r="7" /><circle cx="10" cy="10" r="4" /><circle cx="10" cy="10" r="1" /></>,
100
+ // THE CHAT FRAME (11/11/2026, Chris: "đổi icon các thứ cho đồng bộ", canvas board ChatKit): every glyph the assistant panel
101
+ // drew on its own (a 24px paperclip at 2px, a 24px mic at 1.8px, a filled Polaris arrow, header SVGs at 1.6/1.7px, ✕ ⏳ ✓ ✳ ❯ ⏺
102
+ // ☐ ☑ ▲ as text) now comes from this set. The panel's window controls: full screen and back (`expand`/`shrink`, the same
103
+ // diagonal axis, arrows out and in).
104
+ expand: <path d="M11 9l5-5M16 4h-3.5M16 4v3.5M9 11l-5 5M4 16h3.5M4 16v-3.5" />,
105
+ shrink: <path d="M16 4l-5 5M11 9h3.5M11 9V5.5M4 16l5-5M9 11H5.5M9 11v3.5" />,
106
+ // The composer: send (an arrow up, the board's; `send` stays the team chat's paper plane), stop (a filled square: the
107
+ // attribute on the child beats the <g>'s fill="none"), the microphone, and what the "+" menu offers: a file from this
108
+ // computer, a picture from the library, a screenshot, a mention.
109
+ arrowUp: <path d="M10 16V4.5M5 9.5l5-5 5 5" />,
110
+ stop: <rect x="5.5" y="5.5" width="9" height="9" rx="1.6" fill="currentColor" />,
111
+ mic: <><rect x="7.5" y="2.5" width="5" height="9.2" rx="2.5" /><path d="M4.2 9.2a5.8 5.8 0 0 0 11.6 0M10 15v2.5" /></>,
112
+ upload: <path d="M10 13V3.5M6 7.5l4-4 4 4M3.5 13v2.5c0 .6.4 1 1 1h11c.6 0 1-.4 1-1V13" />,
113
+ media: <><rect x="5.5" y="5.5" width="11.5" height="11" rx="1.6" /><path d="M3 13.5V4.6C3 3.7 3.7 3 4.6 3h8.9" /><path d="M6 15.5l3.2-3.2 2.3 2.3 1.7-1.7 3.3 3.3" /></>,
114
+ screenshot: <><path d="M3 6.5v-2A1.5 1.5 0 0 1 4.5 3h2M13.5 3h2A1.5 1.5 0 0 1 17 4.5v2M17 13.5v2a1.5 1.5 0 0 1-1.5 1.5h-2M6.5 17h-2A1.5 1.5 0 0 1 3 15.5v-2" /><rect x="6.5" y="7" width="7" height="6" rx="1" /></>,
115
+ at: <><circle cx="10" cy="10" r="2.8" /><path d="M12.8 10v1.2a2.2 2.2 0 0 0 4.4 0V10a7.2 7.2 0 1 0-2.8 5.7" /></>,
116
+ // A product in a mention list (a price tag).
117
+ tag: <><path d="M3 10.2V4c0-.6.4-1 1-1h6.2l6.8 6.8-7.2 7.2z" /><circle cx="6.8" cy="6.8" r="1" /></>,
118
+ // Under an answer: copy it, rate it; on a change card: undo it.
119
+ copy: <><rect x="7" y="7" width="9.5" height="9.5" rx="1.8" /><path d="M13 7V5.3c0-1-.8-1.8-1.8-1.8H5.3c-1 0-1.8.8-1.8 1.8v5.9c0 1 .8 1.8 1.8 1.8H7" /></>,
120
+ thumbsUp: <path d="M6.5 9v7.5H4a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1zM6.5 9l3-5.5c1 0 2 .8 2 2V8h3.6a1.5 1.5 0 0 1 1.5 1.8l-1.1 5.5a1.5 1.5 0 0 1-1.5 1.2H6.5" />,
121
+ thumbsDown: <path d="M6.5 11V3.5H4a1 1 0 0 0-1 1V10a1 1 0 0 0 1 1zM6.5 11l3 5.5c1 0 2-.8 2-2V12h3.6a1.5 1.5 0 0 0 1.5-1.8l-1.1-5.5a1.5 1.5 0 0 0-1.5-1.2H6.5" />,
122
+ undo: <path d="M7.5 4.5 4 8l3.5 3.5M4 8h7.5a4.5 4.5 0 0 1 0 9H9" />,
123
+ // A step's state, the way the ChatKit board draws a plan: done `check`, failed `close`, running `dot`, waiting `circle`; a
124
+ // plan's own boxes `square` / `squareCheck` (☐ ☑ until 11/11).
125
+ dot: <circle cx="10" cy="10" r="2.6" fill="currentColor" />,
126
+ circle: <circle cx="10" cy="10" r="5" />,
127
+ square: <rect x="4" y="4" width="12" height="12" rx="2.2" />,
128
+ squareCheck: <><rect x="4" y="4" width="12" height="12" rx="2.2" /><path d="M7 10.2l2.1 2.1L13.2 8" /></>,
100
129
  } satisfies Record<string, React.ReactNode>;
101
130
  // `satisfies`, not a `Record<string, …>` annotation: the annotation widened `keyof` to `string`, so a
102
131
  // typo (`name="setings"`) type-checked and drew an empty box (review #3474).
@@ -104,6 +133,19 @@ const P = {
104
133
  export type IconName = keyof typeof P;
105
134
  export const ICON_NAMES = Object.keys(P) as IconName[];
106
135
 
136
+ /**
137
+ * The chat frame's icons (11/11/2026). In <Icon> like every other name, but NOT in icons-plain.js: a plain page that draws a
138
+ * chat gets them inside the script that draws it (chat-plain.js, assistant-plain.js, checked against <Icon> by their tests), so
139
+ * GemNews' rail, the one page on icons-plain.js, does not carry eighteen glyphs it never draws (CLAUDE.md §9.4: shared weight
140
+ * only shrinks; measured: +134 B gzip over icons-plain.js' ceiling).
141
+ */
142
+ export const CHAT_ICON_NAMES = [
143
+ "expand", "shrink", "arrowUp", "stop", "mic", "upload", "media", "screenshot", "at", "tag", "copy", "thumbsUp", "thumbsDown",
144
+ "undo", "dot", "circle", "square", "squareCheck",
145
+ ] as const satisfies readonly IconName[];
146
+ /** What icons-plain.js carries: every name but the chat's, in icons.tsx order. */
147
+ export const PLAIN_ICON_NAMES = ICON_NAMES.filter((n) => !(CHAT_ICON_NAMES as readonly string[]).includes(n));
148
+
107
149
  /** One icon from the GemBoss set. 20px by default; colour is `currentColor`. */
108
150
  export function Icon({ name, size = 20, title, className }: { name: IconName; size?: number; title?: string; className?: string }) {
109
151
  return (
@@ -0,0 +1 @@
1
+ .ui-table.ui-table--index :is(th,td).ui-table__primary--fill{width:100%;max-width:0;--ui-trunc: none}.ui-table__primary--fill .ui-table__primary-inner>:first-child{flex:none}.ui-table.ui-table--index tbody td.ui-table__cell--wrap{white-space:normal;overflow-wrap:anywhere}.ui-table.ui-table--index :is(th,td)[data-show-from="848"]{display:none}.ui-bulkbar[data-idle=fold],.ui-index__when-folded{display:none}@container ui-index (min-width: 848px){.ui-table.ui-table--index :is(th,td)[data-show-from="848"]{display:table-cell}.ui-index__until-848{display:none}}@container ui-index (max-width: 768px){.ui-table.ui-table--index :is(th,td).ui-table__primary--fill{width:auto;max-width:none}.ui-bulkbar[data-idle=fold]{display:flex}.ui-index__when-folded{display:inline}.ui-index__when-table{display:none}.ui-table.ui-table--index tbody td:has(>.ui-index__when-table:only-child){display:none}}