@songsid/agend 2.4.0-beta.19 → 2.4.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli-instructions.md +1 -0
- package/dist/agent-whats-new.js +6 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +2 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +14 -0
- package/dist/dashboard-permissions.js +17 -1
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +5 -2
- package/dist/hub/compose/server.d.ts +1 -0
- package/dist/hub/compose/server.js +3 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.js +8 -1
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +5 -2
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +2 -0
- package/dist/hub/http/schema.js +2 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/rooms/office.d.ts +32 -0
- package/dist/hub/rooms/office.js +25 -0
- package/dist/hub/rooms/office.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +44 -0
- package/dist/hub/rooms/service.js +44 -9
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +4 -0
- package/dist/instructions.js +2 -2
- package/dist/instructions.js.map +1 -1
- package/dist/ui/chat-task-refs.js +6 -4
- package/dist/ui/fleet-office-card.js +17 -8
- package/dist/ui/fleet-office-play.js +9 -0
- package/dist/ui/fleet-office-skin.js +111 -8
- package/dist/ui/fleet-office-zones.js +44 -9
- package/dist/ui/fleet-office.js +218 -67
- package/dist/ui/hub-my-agents-strings.js +2 -2
- package/dist/ui/hub-my-agents.js +8 -3
- package/dist/ui/hub-room-members.js +51 -4
- package/dist/ui/hub-room-office.js +16 -5
- package/dist/ui/hub-room-presence.js +5 -2
- package/dist/ui/hub-room-settings.js +45 -1
- package/dist/ui/hub-room-source.js +4 -2
- package/dist/ui/hub-room-strings.js +17 -4
- package/dist/ui/hub-room-thread.js +26 -6
- package/dist/ui/hub-strings.js +4 -4
- package/dist/ui/panel-chat.js +1 -1
- package/dist/ui/panel-hub.js +42 -5
- package/dist/ui/shared/app.css +44 -1
- package/dist/ui/shared/chat-render.js +4 -4
- package/dist/ui/shared/chat-thread.js +2 -2
- package/dist/ui/shared/hub-my-agents.css +6 -0
- package/dist/ui/shared/hub-rooms-u2.css +17 -0
- package/dist/web-api.d.ts +1 -0
- package/dist/web-api.js +1 -1
- package/dist/web-api.js.map +1 -1
- package/package.json +1 -1
package/dist/ui/shared/app.css
CHANGED
|
@@ -2537,6 +2537,31 @@ strong.org-name { font-size: var(--fs-sm); color: var(--text); }
|
|
|
2537
2537
|
.oo { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; width: 100%; }
|
|
2538
2538
|
.oo > :not(.oo-stage):not(dialog) { margin-left: var(--s-5); margin-right: var(--s-5); } /* not the editors' dialogs: they centre themselves (#2585) */
|
|
2539
2539
|
.oo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
|
|
2540
|
+
/* M-3556: one row on a desk — scope on the left; actions and ⚙ Display options (a dropdown, like Members) on the right.
|
|
2541
|
+
A Hub room's office opens the same dropdown from the gear in its zoom stack (to the gear's left). */
|
|
2542
|
+
.oo-bar-row { flex-wrap: nowrap; justify-content: space-between; }
|
|
2543
|
+
.oo-bar-scope, .oo-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
|
|
2544
|
+
.oo-bar-actions { margin-inline-start: auto; justify-content: flex-end; }
|
|
2545
|
+
.oo-display-btn { display: inline-flex; align-items: center; gap: var(--s-1); }
|
|
2546
|
+
.oo-display { position: relative; }
|
|
2547
|
+
.oo-display-btn.on { border-color: var(--accent); }
|
|
2548
|
+
.oo-display-pop { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 480px); overflow-y: auto;
|
|
2549
|
+
padding: var(--s-2) var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
|
|
2550
|
+
.oo-display-list { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--s-1); }
|
|
2551
|
+
.oo-display-list .oo-pick { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
|
|
2552
|
+
.oo-display-list .check { min-height: 32px; }
|
|
2553
|
+
.oo-display-list :is(.check, .oo-pick) { font-size: var(--fs-sm); color: var(--text); } /* one style for every option, as in the sheet */
|
|
2554
|
+
/* The Fleet office's dropdown opens left of the stage's zoom stack (right: --s-3, 38 px wide), never over it. */
|
|
2555
|
+
.oo-bar-row .oo-display-pop { right: calc(var(--s-3) + 38px + var(--s-2)); }
|
|
2556
|
+
.oo-display-h { margin: 0 0 var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
|
|
2557
|
+
.oo-display-zoom { position: static; border-top: 1px solid var(--border); } /* the dropdown hangs from the stack's top, not the gear's */
|
|
2558
|
+
.oo-display-zoom .oo-display-pop { top: 0; right: calc(100% + 6px); }
|
|
2559
|
+
.oo-zoom:has(.oo-display-pop) { overflow: visible; }
|
|
2560
|
+
/* In the dropdown the reduced-motion note goes on its own line under the label (the panel is narrow). */
|
|
2561
|
+
.oo-display-list .oo-play { flex-wrap: wrap; row-gap: 0; }
|
|
2562
|
+
.oo-sheet .oo-sheet-bar > .oo-pick + .oo-pick { margin-top: var(--s-2); }
|
|
2563
|
+
.oo-sheet .oo-sheet-bar > .oo-sheet-rule { min-height: 0; width: 100%; margin: var(--s-3) 0 var(--s-1); border: 0; border-top: 1px solid var(--border); }
|
|
2564
|
+
.oo-sheet .oo-sheet-bar > .oo-sheet-h { min-height: 0; margin: var(--s-3) 0 0; padding-top: var(--s-2); border-top: 1px solid var(--border); font-size: var(--fs-xs); font-weight: var(--fw-semibold, 600); color: var(--text-2); }
|
|
2540
2565
|
.oo-pick { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); }
|
|
2541
2566
|
.oo-pick .tb-select { max-width: 200px; }
|
|
2542
2567
|
.oo-people { position: relative; }
|
|
@@ -2568,6 +2593,11 @@ strong.org-name { font-size: var(--fs-sm); color: var(--text); }
|
|
|
2568
2593
|
.oo-people-list { list-style: none; margin: 0; padding: 0; }
|
|
2569
2594
|
.oo-people-list label { display: flex; align-items: center; gap: 8px; padding: 3px 2px; font-size: var(--fs-xs); color: var(--text); cursor: pointer; overflow-wrap: anywhere; }
|
|
2570
2595
|
.oo-note { font-size: var(--fs-xs); }
|
|
2596
|
+
/* M-3547 / M-3556: why "Drag and pat" is locked — one line under it, inside its label (read with its name), in Display options
|
|
2597
|
+
and the phone sheet alike. */
|
|
2598
|
+
.oo-play:has(.oo-play-still) { flex-wrap: wrap; row-gap: 0; }
|
|
2599
|
+
.oo-play .oo-play-still { flex-basis: 100%; min-width: 0; padding-inline-start: calc(13px + var(--s-2)); }
|
|
2600
|
+
.oo-play:has(input:disabled) > span:not(.oo-play-still) { opacity: 0.45; } /* disabled, as .btn:disabled */
|
|
2571
2601
|
.oo-stage { position: relative; flex: 1 1 auto; min-height: 340px; overflow: hidden; background: var(--bg); touch-action: none; user-select: none; -webkit-user-select: none; }
|
|
2572
2602
|
/* #2554: clip, not a scroll container — nothing past the edge (a tile's label) can scroll the stage and its controls. */
|
|
2573
2603
|
.oo-stage { overflow: clip; }
|
|
@@ -2581,9 +2611,9 @@ strong.org-name { font-size: var(--fs-sm); color: var(--text); }
|
|
|
2581
2611
|
.oo-key-rows { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: 0; padding: 0; list-style: none; }
|
|
2582
2612
|
.oo-key-row { display: inline-flex; align-items: center; gap: 6px; }
|
|
2583
2613
|
.oo-key-icon { width: 32px; height: 32px; flex: none; image-rendering: pixelated; }
|
|
2584
|
-
.oo-key-btn.on { border-color: var(--accent); }
|
|
2585
2614
|
.oo-zoom { z-index: 6; }
|
|
2586
2615
|
.oo-zoom .icon-btn { color: var(--text); }
|
|
2616
|
+
.oo-zoom .icon-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); } /* the stack clips an outline */
|
|
2587
2617
|
/* The overview's box (left, top, width, height) is set by the page, inside the stage and scaled to it (miniBox). */
|
|
2588
2618
|
.oo-mini { z-index: 6; right: auto; bottom: auto; overflow: hidden; }
|
|
2589
2619
|
.oo-zoom-pct { display: block; padding: 3px 0; font-size: var(--fs-2xs); line-height: 14px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums;
|
|
@@ -2814,6 +2844,7 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
|
|
|
2814
2844
|
.oc-tools:has(.oo-more-btn) .oc-find { flex: 1 1 96px; min-width: 88px; }
|
|
2815
2845
|
.oc-tools:has(.oo-more-btn) .seg-inline { flex: none; }
|
|
2816
2846
|
.oc-tools .oo-more-btn { flex: none; width: var(--tap); height: var(--tap); }
|
|
2847
|
+
@media (hover: none) { .oc-tools .oo-more-btn:hover { background: none; } } /* a tap leaves :hover stuck on touch */
|
|
2817
2848
|
.oo.phone > :not(.oo-stage):not(dialog) { margin-left: var(--s-3); margin-right: var(--s-3); }
|
|
2818
2849
|
.oo.phone .oo-stage { min-height: 160px; }
|
|
2819
2850
|
.oo.phone .oo-mini { display: none; }
|
|
@@ -2826,6 +2857,10 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
|
|
|
2826
2857
|
max-width: calc(100% - 2 * var(--s-2)); overflow-x: auto; padding: var(--s-1); box-sizing: border-box;
|
|
2827
2858
|
background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full); box-shadow: var(--shadow-1); }
|
|
2828
2859
|
.oo-zone-pills .btn { flex: none; min-height: 36px; border-radius: var(--r-full); white-space: nowrap; }
|
|
2860
|
+
/* M-3539: chips that do not fit scroll sideways; the side with more fades out. */
|
|
2861
|
+
.oo-zone-pills[data-more-right] { -webkit-mask-image: linear-gradient(to right, currentColor calc(100% - 32px), transparent); mask-image: linear-gradient(to right, currentColor calc(100% - 32px), transparent); }
|
|
2862
|
+
.oo-zone-pills[data-more-left] { -webkit-mask-image: linear-gradient(to left, currentColor calc(100% - 32px), transparent); mask-image: linear-gradient(to left, currentColor calc(100% - 32px), transparent); }
|
|
2863
|
+
.oo-zone-pills[data-more-left][data-more-right] { -webkit-mask-image: linear-gradient(to right, transparent, currentColor 32px, currentColor calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, currentColor 32px, currentColor calc(100% - 32px), transparent); }
|
|
2829
2864
|
.oo-snacks { left: var(--s-2); bottom: max(var(--s-2), env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 2 * var(--s-2)); }
|
|
2830
2865
|
.oo-stage:has(.oo-zone-pills) .oo-snacks { bottom: calc(max(var(--s-2), env(safe-area-inset-bottom, 0px)) + 52px); }
|
|
2831
2866
|
}
|
|
@@ -2841,6 +2876,9 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
|
|
|
2841
2876
|
.oo-sheet .oo-pick { justify-content: space-between; }
|
|
2842
2877
|
.oo-sheet .oo-pick .tb-select { width: 62%; min-height: var(--tap); font-size: var(--fs-md); }
|
|
2843
2878
|
.oo-sheet .dlg-x { width: var(--tap); height: var(--tap); }
|
|
2879
|
+
/* M-3556: more below the fold fades out at the sheet's foot, over the rows (data-more: set while not at the end). */
|
|
2880
|
+
.oo-sheet .dlg-body[data-more]::after { content: ""; position: sticky; bottom: calc(-1 * var(--s-4)); flex: none; display: block; height: 48px;
|
|
2881
|
+
margin-top: calc(-48px - var(--s-3)); pointer-events: none; background: linear-gradient(transparent, var(--bg) 85%); }
|
|
2844
2882
|
.oo-sheet .oo-sheet-bar :is(.btn, .oo-people > .btn) { min-height: var(--tap); }
|
|
2845
2883
|
.oo-sheet .oo-sheet-bar > .btn, .oo-sheet .oo-people > .btn { width: 100%; justify-content: flex-start; }
|
|
2846
2884
|
.oo-sheet .oo-sheet-bar > :is(.btn, .oo-people, .oo-carousel, .oo-note) { margin-top: var(--s-1); }
|
|
@@ -3185,6 +3223,11 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
|
|
|
3185
3223
|
/* ── #2293: global search — the sidebar row's shortcut, the header's button (collapsed sidebar, phone), the dialog ── */
|
|
3186
3224
|
/* #2478: a touch screen has no Ctrl/⌘ K — the shortcut's hint is not shown there (the row is). */
|
|
3187
3225
|
@media (pointer: coarse) { .side-search .kbd-hint { display: none; } }
|
|
3226
|
+
/* M-3559: the search row's label never gives way to its shortcut hint. Where the row is too narrow for both — two nav rows
|
|
3227
|
+
to a line in a short window (122 px), a sidebar narrowed further — the hint goes first; the row's title still names the
|
|
3228
|
+
shortcut. Inside the row's padding, the icon, "Search", the gaps and "Ctrl K" take about 140 px. */
|
|
3229
|
+
.side-search { container-type: inline-size; }
|
|
3230
|
+
@container (max-width: 144px) { .side-search .kbd-hint { display: none; } }
|
|
3188
3231
|
.kbd-hint { font: inherit; font-size: var(--fs-xs); color: var(--text-3); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0 var(--s-1); line-height: 18px; white-space: nowrap; }
|
|
3189
3232
|
.panel-head .sb-search { display: none; }
|
|
3190
3233
|
.sb-collapsed .panel-head .sb-search { display: inline-flex; }
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
return '<span class="mention" data-mention="' + kind + ":" + id + '" title="' + id + '">' + label + "</span>";
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
// A task card's number in a person's message — `#M-3` or `#s3` (a bare M-3 is the word it is) — drawn as a chip
|
|
89
|
-
// status) that opens the card (Fleet › Tasks, ?card=). Only for a card the page knows (store.taskRefs(code) →
|
|
90
|
-
// statusLabel, tip }), and only on a page that asks for it (the
|
|
91
|
-
// stays the text it was. The rule is the server's (src/chat-task-refs.ts) and the page's (chat-task-refs.js): a test holds the
|
|
88
|
+
// A task card's number in a person's or an agent's message — `#M-3` or `#s3` (a bare M-3 is the word it is) — drawn as a chip
|
|
89
|
+
// (number, title, status) that opens the card (Fleet › Tasks, ?card=). Only for a card the page knows (store.taskRefs(code) →
|
|
90
|
+
// { title, status, statusLabel, tip }; a card the viewer may not see is none), and only on a page that asks for it (the Fleet
|
|
91
|
+
// chat); any other number stays the text it was. The rule is the server's (src/chat-task-refs.ts) and the page's (chat-task-refs.js): a test holds the
|
|
92
92
|
// three to one list of cases. The href is built from the matched digits, the class from a fixed list; the card's own words
|
|
93
93
|
// (title, labels) are inserted escaped.
|
|
94
94
|
var TASK_REF_RE = /(?<![A-Za-z0-9_\/&#@-])#([MmSs])-?(\d{1,9})(?![A-Za-z0-9_-]|\.\d)/g;
|
|
@@ -119,7 +119,7 @@ export function renderedMarkdown(text, cards, emojis, mentions, labels, taskRefs
|
|
|
119
119
|
let sig = cards ? "c" : "-";
|
|
120
120
|
// M-3092: a Hub room's mention labels change the drawing, so they are part of its key.
|
|
121
121
|
if (Array.isArray(labels) && labels.length) sig += `|L${labels.join("\u0001")}`;
|
|
122
|
-
// A person's task numbers are chips while the page knows the card (what it knows, its words included, is in the key).
|
|
122
|
+
// A person's or an agent's task numbers are chips while the page knows the card (what it knows, its words included, is in the key).
|
|
123
123
|
if (typeof taskRefs === "function" && typeof R().taskRefCodes === "function" && TASK_REF_HINT.test(src)) for (const code of R().taskRefCodes(src)) { const info = taskRefs(code); sig += `|t${code}=${info && typeof info === "object" ? JSON.stringify(info) : "-"}`; }
|
|
124
124
|
if (src.includes("<")) {
|
|
125
125
|
// Read as renderMarkdown reads it: it drops NUL first (its placeholder mark), so "<@\0id>" is a mention there too.
|
|
@@ -219,7 +219,7 @@ export function createThread(list, scroller, opts) {
|
|
|
219
219
|
// M-3339: a contact request's badge (聯絡申請 #R… / 已准轉交 #R…) — escaped HTML from the Fleet chat's hook; a Hub passes none.
|
|
220
220
|
const contact = typeof opts.contactBadge === "function" && x.contactTicket ? String(opts.contactBadge(x) || "") : "";
|
|
221
221
|
// M-3092 (Hub rooms): another person's message, a bubble on the left (`msg-person`); the fleet never sets x.person.
|
|
222
|
-
return `<div class="msg ${u ? "user" : "agent"}${x.person ? " msg-person" : ""}" data-key="${escAttr(key)}" tabindex="-1">${act}<div class="meta"><span class="sender"${badge}>${escAttr(x.sender)}</span>${time}${ticks}${contact}</div>${quoteHtml(x.replyTo)}<div class="body">${clicked ? clickHtml(x.click) : `<div class="md">${renderedMarkdown(x.text, x.role === "agent", opts.emojis, opts.mentions, opts.mentionLabels?.(), x.role === "user" ? opts.taskRefs : undefined)}</div>`}${R().attachmentsHtml(x.attachments, { htmlCards: x.role === "agent", goneTitle: tr(x.archived ? "chat.attNotKeptTitle" : "chat.attGone"), goneLabel: tr(x.archived ? "chat.attNotKept" : "chat.attUnavailable"), inlinePreviews: !PUBLIC_LINK(), textPreviews: true })}${buttons}</div>${Array.isArray(x.reactionBar) ? reactBarHtml(x, key, reactable) : R().reactionsHtml(x.reactions, tr("chat.reactedBy", x.instance || ""))}${tools}${resend}</div>`;
|
|
222
|
+
return `<div class="msg ${u ? "user" : "agent"}${x.person ? " msg-person" : ""}" data-key="${escAttr(key)}" tabindex="-1">${act}<div class="meta"><span class="sender"${badge}>${escAttr(x.sender)}</span>${time}${ticks}${contact}</div>${quoteHtml(x.replyTo)}<div class="body">${clicked ? clickHtml(x.click) : `<div class="md">${renderedMarkdown(x.text, x.role === "agent", opts.emojis, opts.mentions, opts.mentionLabels?.(), x.role === "user" || x.role === "agent" ? opts.taskRefs : undefined)}</div>`}${R().attachmentsHtml(x.attachments, { htmlCards: x.role === "agent", goneTitle: tr(x.archived ? "chat.attNotKeptTitle" : "chat.attGone"), goneLabel: tr(x.archived ? "chat.attNotKept" : "chat.attUnavailable"), inlinePreviews: !PUBLIC_LINK(), textPreviews: true })}${buttons}</div>${Array.isArray(x.reactionBar) ? reactBarHtml(x, key, reactable) : R().reactionsHtml(x.reactions, tr("chat.reactedBy", x.instance || ""))}${tools}${resend}</div>`;
|
|
223
223
|
}
|
|
224
224
|
/** M-3127: a room's words for its reaction controls (opts.reactText(key)), English when the page gives none. */
|
|
225
225
|
function reactText(k, ...a) {
|
|
@@ -33,3 +33,9 @@
|
|
|
33
33
|
.hub-my-agents .hub-agent-choice .s-row.hub-row { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr); }
|
|
34
34
|
.hub-agent-choice .hub-agent-pause { grid-column: 3; justify-self: start; }
|
|
35
35
|
}
|
|
36
|
+
/* M-3565 (the user, 11-24): an agent's name opens its page (who may ask, recent askers): it reads as a link — the accent
|
|
37
|
+
colour and a ›, underlined on hover or focus — not as plain bold text. */
|
|
38
|
+
.hub-agent-link { color: var(--accent); }
|
|
39
|
+
.hub-agent-link::after { content: "›"; margin-inline-start: var(--s-1); }
|
|
40
|
+
.hub-agent-link:hover strong, .hub-agent-link:focus-visible strong { text-decoration: underline; }
|
|
41
|
+
.hub-agent-who { display: inline-flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
.hub-room-name-row .field-row > .btn { flex: none; min-height: 40px; }
|
|
24
24
|
.hub-room-settings h4, .hub-room-members h4, .hub-agent-rooms h4 { margin: 0 0 var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
|
|
25
25
|
.hub-room-settings fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-1); }
|
|
26
|
+
.hub-room-settings .hub-nowrap { white-space: nowrap; }
|
|
26
27
|
.hub-settings-people, .hub-settings-agents, .hub-settings-invited, .hub-agent-rooms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
|
27
28
|
.hub-settings-row, .hub-agent-rooms li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-1) 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
|
|
28
29
|
.hub-settings-row > span { min-width: 0; overflow-wrap: anywhere; }
|
|
@@ -118,3 +119,19 @@
|
|
|
118
119
|
/* On a touch screen every interactive row is a fingertip high: the filter, a fold, an agent's row (a person's row is not
|
|
119
120
|
pressed, and a desk stays dense). */
|
|
120
121
|
@media (pointer: coarse) { .hub-room-members .hub-members-filter, .hub-member-group > summary, .hub-room-members.compact .hub-member-open { min-height: var(--tap); } }
|
|
122
|
+
/* M-3533 R2a: an agent's avatar in the member list (its emoji or initial on its identity colour), in the source mark's
|
|
123
|
+
slot: a one-line row stays one line. */
|
|
124
|
+
.hub-agent-av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
|
|
125
|
+
margin-inline-end: 6px; vertical-align: middle; font-size: var(--fs-2xs); font-weight: var(--fw-semibold); line-height: 1;
|
|
126
|
+
background: var(--av, var(--surface-2)); color: var(--av-ink, var(--text-2)); }
|
|
127
|
+
.hub-agent-av { overflow: hidden; }
|
|
128
|
+
.hub-agent-av::before { content: attr(data-av); white-space: nowrap; }
|
|
129
|
+
.hub-agent-av.emoji { font-size: var(--fs-xs); font-weight: normal; }
|
|
130
|
+
/* The default tint is pale on a light panel: the neutral avatar (no look) alone gets a ring in the border colour. */
|
|
131
|
+
.hub-agent-av.neutral { box-shadow: inset 0 0 0 1px var(--border); }
|
|
132
|
+
/* The assistant's row is not a button: the agent rows' padding, so its disc sits in their avatar column. */
|
|
133
|
+
.hub-member-assistant { padding-inline: var(--s-1); }
|
|
134
|
+
/* Its status ("Idle · provided by the Hub") is long: in a compact list it takes a second line, so the name stays whole. */
|
|
135
|
+
.hub-room-members.compact .hub-member.hub-member-assistant { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; }
|
|
136
|
+
.hub-room-members.compact .hub-member-assistant .hub-member-name { max-width: 100%; }
|
|
137
|
+
.hub-room-members.compact .hub-member-assistant .hub-member-state { flex-wrap: wrap; padding-inline-start: 26px; } /* under the name, past the 20 px disc and its 6 px */
|
package/dist/web-api.d.ts
CHANGED
|
@@ -732,6 +732,7 @@ export declare const HUB_SHELL_DROPS = "<script src=\"/assets/agend-auth.js\"></
|
|
|
732
732
|
export declare function serveHubWorkspaceShell(res: ServerResponse, hub: {
|
|
733
733
|
name: string;
|
|
734
734
|
preview?: Readonly<import("./hub/preview.js").HubPreviewView>;
|
|
735
|
+
loginWithoutAt?: boolean;
|
|
735
736
|
}): void;
|
|
736
737
|
/** M-3314: the served modules' static imports, read once per process (its files do not change under it). */
|
|
737
738
|
export declare function appModuleGraph(): ModuleGraph;
|
package/dist/web-api.js
CHANGED
|
@@ -7020,7 +7020,7 @@ export function serveHubWorkspaceShell(res, hub) {
|
|
|
7020
7020
|
const previewAttrs = preview ? ` data-dashboard-origin="${attr(preview.dashboardOrigin)}"`
|
|
7021
7021
|
+ (preview.previewOrigin && preview.bootId ? ` data-preview-origin="${attr(preview.previewOrigin)}" data-preview-boot="${attr(preview.bootId)}"`
|
|
7022
7022
|
: ` data-preview-reason-code="${attr(preview.reasonCode ?? "notOffered")}" data-preview-reason="${attr(preview.reason ?? "")}"`) : "";
|
|
7023
|
-
const body = `<body data-mode="full" data-web-transport="none" data-usage-panel="0" data-log-tab="0" data-hub="hub"${name ? ` data-hub-name="${attr(name)}"` : ""}${previewAttrs}>`;
|
|
7023
|
+
const body = `<body data-mode="full" data-web-transport="none" data-usage-panel="0" data-log-tab="0" data-hub="hub"${name ? ` data-hub-name="${attr(name)}"` : ""}${hub.loginWithoutAt ? ` data-hub-login="no-at"` : ""}${previewAttrs}>`;
|
|
7024
7024
|
sendPanelHtml(res, withAppIconLinks(html).replace("<body>", body), 200, { "Cache-Control": "no-store" }, { mediaSrc: "'none'", ...(preview?.previewOrigin ? { frameSrc: `${preview.previewOrigin}/frame` } : {}) });
|
|
7025
7025
|
}
|
|
7026
7026
|
catch {
|