@songsid/agend 2.4.0-beta.4 → 2.4.0-beta.6

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 (115) hide show
  1. package/dist/auth-api.js +2 -0
  2. package/dist/auth-api.js.map +1 -1
  3. package/dist/backend/cli-runtime-switch.d.ts +21 -2
  4. package/dist/backend/cli-runtime-switch.js +124 -2
  5. package/dist/backend/cli-runtime-switch.js.map +1 -1
  6. package/dist/backend/codex-footer-hints.d.ts +1 -0
  7. package/dist/backend/codex-footer-hints.js +15 -0
  8. package/dist/backend/codex-footer-hints.js.map +1 -1
  9. package/dist/backend/codex.d.ts +6 -4
  10. package/dist/backend/codex.js +26 -9
  11. package/dist/backend/codex.js.map +1 -1
  12. package/dist/backend/kiro.js +3 -3
  13. package/dist/backend/kiro.js.map +1 -1
  14. package/dist/backend/native-pane.js +1 -1
  15. package/dist/backend/native-pane.js.map +1 -1
  16. package/dist/backend/types.d.ts +2 -0
  17. package/dist/backend/types.js.map +1 -1
  18. package/dist/build-provenance.json +1 -1
  19. package/dist/daemon.d.ts +3 -0
  20. package/dist/daemon.js +28 -9
  21. package/dist/daemon.js.map +1 -1
  22. package/dist/fleet-manager.d.ts +5 -0
  23. package/dist/fleet-manager.js +15 -3
  24. package/dist/fleet-manager.js.map +1 -1
  25. package/dist/general-knowledge/skills/hub/SKILL.md +27 -18
  26. package/dist/hub/compose/server.js +4 -3
  27. package/dist/hub/compose/server.js.map +1 -1
  28. package/dist/hub/group-policy/admin-api.js +9 -0
  29. package/dist/hub/group-policy/admin-api.js.map +1 -1
  30. package/dist/hub/group-policy/admin-control.d.ts +1 -0
  31. package/dist/hub/group-policy/admin-control.js +13 -4
  32. package/dist/hub/group-policy/admin-control.js.map +1 -1
  33. package/dist/hub/group-policy/admin-dto.d.ts +37 -0
  34. package/dist/hub/group-policy/admin-dto.js.map +1 -1
  35. package/dist/hub/group-policy/admin-facts.d.ts +4 -2
  36. package/dist/hub/group-policy/admin-facts.js +17 -2
  37. package/dist/hub/group-policy/admin-facts.js.map +1 -1
  38. package/dist/hub/group-policy/admin-impact.d.ts +4 -3
  39. package/dist/hub/group-policy/admin-impact.js +8 -6
  40. package/dist/hub/group-policy/admin-impact.js.map +1 -1
  41. package/dist/hub/group-policy/admin-search.d.ts +2 -1
  42. package/dist/hub/group-policy/admin-search.js +56 -7
  43. package/dist/hub/group-policy/admin-search.js.map +1 -1
  44. package/dist/hub/group-policy/impact-inventory.d.ts +4 -1
  45. package/dist/hub/group-policy/impact-inventory.js +23 -2
  46. package/dist/hub/group-policy/impact-inventory.js.map +1 -1
  47. package/dist/hub/group-policy/model.d.ts +29 -1
  48. package/dist/hub/group-policy/model.js +20 -7
  49. package/dist/hub/group-policy/model.js.map +1 -1
  50. package/dist/hub/group-policy/store.js +22 -3
  51. package/dist/hub/group-policy/store.js.map +1 -1
  52. package/dist/hub/group-policy/team-subjects.d.ts +16 -0
  53. package/dist/hub/group-policy/team-subjects.js +32 -0
  54. package/dist/hub/group-policy/team-subjects.js.map +1 -0
  55. package/dist/hub/http/compose.js +15 -1
  56. package/dist/hub/http/compose.js.map +1 -1
  57. package/dist/hub/join/client.js +75 -42
  58. package/dist/hub/join/client.js.map +1 -1
  59. package/dist/hub/runtime.js +4 -3
  60. package/dist/hub/runtime.js.map +1 -1
  61. package/dist/hub/socket.d.ts +1 -0
  62. package/dist/hub/socket.js +39 -2
  63. package/dist/hub/socket.js.map +1 -1
  64. package/dist/hub/teams/index.d.ts +8 -3
  65. package/dist/hub/teams/index.js +106 -31
  66. package/dist/hub/teams/index.js.map +1 -1
  67. package/dist/hub/teams/store.d.ts +5 -1
  68. package/dist/hub/teams/store.js +25 -2
  69. package/dist/hub/teams/store.js.map +1 -1
  70. package/dist/hub/teams/types.d.ts +19 -2
  71. package/dist/native-mcp.js +1 -2
  72. package/dist/native-mcp.js.map +1 -1
  73. package/dist/native-pane-lifecycle.js +3 -2
  74. package/dist/native-pane-lifecycle.js.map +1 -1
  75. package/dist/office-share-page.js +1 -1
  76. package/dist/office-share-page.js.map +1 -1
  77. package/dist/runtime-pane-native.js +3 -1
  78. package/dist/runtime-pane-native.js.map +1 -1
  79. package/dist/ui/chat-store.js +2 -1
  80. package/dist/ui/fleet-canvas.js +5 -1
  81. package/dist/ui/fleet-office-carousel.d.ts +14 -0
  82. package/dist/ui/fleet-office-carousel.js +95 -0
  83. package/dist/ui/fleet-office-store.js +14 -2
  84. package/dist/ui/fleet-office.js +125 -13
  85. package/dist/ui/hub-admin-rooms.js +1 -1
  86. package/dist/ui/hub-chat-strings.js +7 -0
  87. package/dist/ui/hub-client.js +3 -0
  88. package/dist/ui/hub-grant-picker.js +3 -37
  89. package/dist/ui/hub-group-policy.js +22 -10
  90. package/dist/ui/hub-group-strings.js +26 -17
  91. package/dist/ui/hub-join-steps.js +27 -15
  92. package/dist/ui/hub-policy-subjects.js +35 -0
  93. package/dist/ui/hub-subject-picker.js +58 -0
  94. package/dist/ui/hub-teams-strings.js +10 -6
  95. package/dist/ui/hub-teams.js +56 -28
  96. package/dist/ui/hub-welcome.js +122 -75
  97. package/dist/ui/panel-chat.js +179 -11
  98. package/dist/ui/panel-details.js +3 -1
  99. package/dist/ui/panel-fleet.js +25 -3
  100. package/dist/ui/panel-hub.js +101 -57
  101. package/dist/ui/panel-log.js +3 -1
  102. package/dist/ui/shared/agent-sheet.js +115 -0
  103. package/dist/ui/shared/app-shell.js +56 -17
  104. package/dist/ui/shared/app.css +61 -1
  105. package/dist/ui/shared/chat-composer.js +23 -2
  106. package/dist/ui/shared/chat-strings.js +4 -2
  107. package/dist/ui/shared/chat-work-bar.css +63 -1
  108. package/dist/ui/shared/hub-chat.css +33 -0
  109. package/dist/ui/shared/hub-groups.css +18 -14
  110. package/dist/ui/shared/hub-owner.css +11 -0
  111. package/dist/ui/shared/hub-rooms-u2.css +4 -0
  112. package/dist/ui/shared/model-picker.css +27 -0
  113. package/dist/ui/shared/panel-view.js +7 -1
  114. package/dist/ui/shared/ui-toast.js +1 -1
  115. package/package.json +1 -1
@@ -79,6 +79,11 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
79
79
  /* M-3108: the Hub sidebar's "Preview" tag sits right after the one-line brand (outside it), before the collapse button. */
80
80
  .side-head:has(> .hub-preview-tag) > .brand { flex: 0 1 auto; white-space: nowrap; }
81
81
  .side-head > .hub-preview-tag { margin-inline-end: auto; flex: none; }
82
+ /* M-3190: the Hub's name on a small line under "AgEnD Hub" (and its preview tag). */
83
+ .side-head > .side-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; }
84
+ .side-brand-line { display: flex; align-items: center; gap: var(--s-1); min-width: 0; }
85
+ .side-brand-line > .brand { flex: 0 1 auto; white-space: nowrap; }
86
+ .side-brand-name { color: var(--text-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
82
87
  .side-nav { display: flex; flex-direction: column; padding: var(--s-1) var(--s-2); gap: 1px; }
83
88
  .side-row {
84
89
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 36px; padding: 0 var(--s-3);
@@ -2478,8 +2483,20 @@ button.oo-tile-label:focus-visible { outline: 2px solid var(--focus); outline-of
2478
2483
  .oo.fs.immersive { position: fixed; inset: 0; z-index: 50; width: 100vw; height: 100vh; width: 100dvw; height: 100dvh; }
2479
2484
  html.oo-immersive, html.oo-immersive body { overflow: hidden; }
2480
2485
  html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
2481
- .oo-fs-bar { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 6; display: flex; align-items: center; gap: var(--s-2); }
2486
+ .oo-fs-bar { position: absolute; left: var(--s-3); top: var(--s-3); z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
2482
2487
  .oo-fs-bar .tb-select { max-width: 180px; }
2488
+ /* #4010: carousel — n/m picker + interval in the Office bar (one row); Pause / Next / name in the bar and in fullscreen.
2489
+ The checklist is a popover so 15–20 offices never wrap the bar. */
2490
+ .oo-carousel { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
2491
+ .oo-car-pick { position: relative; flex: 0 0 auto; }
2492
+ .oo-car-offices { white-space: nowrap; }
2493
+ .oo-car-menu { position: absolute; z-index: 8; left: 0; top: calc(100% + 4px); min-width: 12em; max-width: min(22em, calc(100vw - 2 * var(--s-3)));
2494
+ max-height: min(50vh, 16rem); overflow: hidden; display: flex; flex-direction: column;
2495
+ background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
2496
+ .oo-car-menu-acts { display: flex; gap: var(--s-2); padding: var(--s-2); border-bottom: 1px solid var(--border); flex: none; }
2497
+ .oo-carousel-offices { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; overflow-y: auto; padding: var(--s-2); }
2498
+ .oo-carousel-offices .check { padding: 4px 0; }
2499
+ .oo-car-now { font-size: var(--fs-xs); white-space: nowrap; }
2483
2500
  .ol-overlay { position: absolute; left: 0; top: 0; z-index: 4; }
2484
2501
  .ol-svg { display: block; overflow: visible; touch-action: none; }
2485
2502
  .ol-grid { stroke: var(--text-3); stroke-opacity: 0.25; stroke-width: 1; }
@@ -2524,6 +2541,7 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
2524
2541
  .oo > :not(.oo-stage):not(dialog) { margin-left: var(--s-3); margin-right: var(--s-3); }
2525
2542
  .oo-stage { min-height: 200px; }
2526
2543
  .oo-pick .tb-select { max-width: 150px; }
2544
+ .oo-carousel { flex-wrap: wrap; } /* Pause / Next stay on screen; the n/m picker is still one button */
2527
2545
  .oo-mini { display: none; }
2528
2546
  .oo-zoom .icon-btn { width: 40px; height: 40px; }
2529
2547
  /* #2689: a column of the label and five 40 px buttons (~240 px) is taller than that stage: a row along its top
@@ -4579,3 +4597,45 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
4579
4597
  .chat-popout .main { width: 100%; }
4580
4598
  .chat-popout .popup-pane-head { flex-wrap: nowrap; gap: var(--s-1); padding: var(--s-1) var(--s-2); }
4581
4599
  .chat-popout .popup-pane-head .inst-switch { flex-basis: auto; order: initial; width: auto; display: flex; }
4600
+
4601
+ /* M-3166 (Argon 4–5, the user's OK of round 2): a phone moves around by its drawer alone — no bottom tab bar, no counts or
4602
+ badges on the Fleet side. The drawer is a phone's own: 300 px; one search (the agent filter) with [+] beside it at the top;
4603
+ Fleet 概覽 and 等你處理; then the agents, rows of 48 px with their dot and name (no avatar letters, CLI marks, % or ⋯);
4604
+ 設定 at the foot. Fleet is two rows: ☰ and its tabs, then the page's tools; the org page opens on its list. */
4605
+ @media (max-width: 899px) {
4606
+ .tabs { display: none !important; }
4607
+ /* The tab bar's room goes; a list page keeps the home-indicator inset. Not inside an agent's pages (the dock keeps it, #3972)
4608
+ nor with the keyboard up (the box sits on the keyboard, #2478): there the padding stays 0. */
4609
+ .shell:not(.in-agent):not(.kb-open) .main { padding-bottom: env(safe-area-inset-bottom); }
4610
+ .sidebar.fleet-side .nav-count, .sidebar.fleet-side .v-group-head .count { display: none !important; }
4611
+ .sidebar.fleet-side { width: 300px; }
4612
+ .sidebar.fleet-side .side-nav, .sidebar.fleet-side .view-roster { display: contents; }
4613
+ .sidebar.fleet-side .side-head { order: 0; }
4614
+ .sidebar.fleet-side .v-filter { order: 1; position: relative; padding: var(--s-1) calc(var(--tap) + var(--s-3)) var(--s-2) var(--s-3); border: 0; }
4615
+ .sidebar.fleet-side .v-filter .nav-facets { display: none; }
4616
+ .sidebar.fleet-side .side-nav > .side-row { order: 2; }
4617
+ .sidebar.fleet-side #instanceList { order: 3; flex: 1; min-height: 0; overflow-y: auto; }
4618
+ .sidebar.fleet-side .side-foot { order: 4; }
4619
+ .sidebar.fleet-side .side-search, .sidebar.fleet-side .side-nav > a[href="/ui/notices"], .sidebar.fleet-side .inst-head { display: none !important; }
4620
+ .sidebar.fleet-side .side-new { position: absolute; top: calc(var(--header-h) + max(var(--s-1), env(safe-area-inset-top))); right: var(--s-2); width: var(--tap); height: var(--tap); padding: 0; justify-content: center; }
4621
+ .sidebar.fleet-side .side-new .grow { display: none; }
4622
+ .sidebar.fleet-side .inst-row-menu, .sidebar.fleet-side .av-cli, .sidebar.fleet-side .av-text, .sidebar.fleet-side .v-group-kind, .sidebar.fleet-side .v-meta { display: none !important; }
4623
+ .sidebar.fleet-side .v-inst { min-height: 48px; }
4624
+ .sidebar.fleet-side .v-inst .av { width: 10px; height: 10px; background: none; border: 0; box-shadow: none; margin: 0 var(--s-1); }
4625
+ .sidebar.fleet-side .v-inst .av-dot { position: static; width: 8px; height: 8px; border: 0; }
4626
+ .p-fleet > .panel-head .sb-search, .p-fleet > .panel-head .panel-title h1, .p-fleet > .panel-head .panel-actions { display: none !important; }
4627
+ /* The title gives way, but a host-memory warning (its subtitle) stays: a line of its own under ☰ and the tabs (#4008 review). */
4628
+ .p-fleet > .panel-head .panel-title:not(:has(.host-mem)) { display: none; }
4629
+ .p-fleet > .panel-head:has(.host-mem) { flex-wrap: wrap; }
4630
+ .p-fleet > .panel-head .panel-title:has(.host-mem) { order: 10; flex: 1 0 100%; min-height: 0; padding-bottom: var(--s-1); }
4631
+ .p-fleet > .panel-head .panel-title .panel-sub:has(.host-mem) { flex: 1 1 auto; width: auto; }
4632
+ .p-fleet > .panel-head .fleet-phone-tabs { flex: 1; min-width: 0; order: initial; padding: 0; margin: 0; overflow-x: auto; flex-wrap: nowrap; }
4633
+ .p-fleet .oc-bar > span:first-child, .p-fleet .oc-bar .org-counts { display: none; }
4634
+ .p-fleet .oc-bar .oc-tools { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
4635
+ }
4636
+ /* M-3166 (Argon 2, the user's OK of round 2): on a phone a toast (an agent waiting for you, a result) is one line — a pill that a
4637
+ tap puts away — and none shows while the keyboard is up. */
4638
+ @media (max-width: 899px) {
4639
+ .toasts .toast { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r-full); padding: var(--s-1) var(--s-3); font-size: var(--fs-sm); cursor: pointer; }
4640
+ .kb-open .toasts { display: none; }
4641
+ }
@@ -11,6 +11,27 @@
11
11
  import { html, useLayoutEffect, useRef } from "./app-html.js";
12
12
  import { Icon } from "./ui-icons.js";
13
13
 
14
+ /**
15
+ * Grow the box with its text, up to 240px; empty, it is one line. M-3206 (the user, iPhone, beta.5: typing flickered):
16
+ * the box was collapsed ("auto") and measured again on every key, two writes to the focused field's own style per
17
+ * keystroke even when its height stayed — on iOS a change to the focused field redraws the keyboard's bars, and the
18
+ * page followed them. Now a key that only adds text writes nothing unless the text no longer fits (a new line); only a
19
+ * deletion, a replaced draft, or a box with no height of its own yet collapses and measures it.
20
+ */
21
+ export function fitComposerHeight(el, value, before) {
22
+ if (!el?.style) return;
23
+ const cap = 240;
24
+ const set = (px) => { const next = px == null ? "auto" : `${px}px`; if (el.style.height !== next) el.style.height = next; };
25
+ if (!value) { set(null); return; }
26
+ const grew = typeof before === "string" && value.length > before.length && el.style.height !== "";
27
+ if (grew) {
28
+ if (el.scrollHeight > el.clientHeight) set(Math.min(el.scrollHeight, cap));
29
+ return;
30
+ }
31
+ el.style.height = "auto";
32
+ set(Math.min(el.scrollHeight, cap));
33
+ }
34
+
14
35
  /** A coarse pointer (a phone, a tablet): Enter makes a new line there and the box says "enter" to the keyboard. */
15
36
  export const touchScreen = () => typeof matchMedia === "function" && matchMedia("(pointer: coarse)").matches;
16
37
 
@@ -27,10 +48,10 @@ export function ComposerInput({ inputRef, value, placeholder, onValue, onKeyDown
27
48
  // A render while composing (another part of the page changed) gives the box what it holds, so it never writes it.
28
49
  const boxValue = composing.current && input.current ? input.current.value : value;
29
50
  // Grow with the text, up to a limit. Empty, it is one line (#2478 — a long name's placeholder made the box two lines).
51
+ const fitted = useRef(null);
30
52
  useLayoutEffect(() => {
31
53
  const el = input.current; if (!el || composing.current) return;
32
- el.style.height = "auto";
33
- if (value) el.style.height = `${Math.min(el.scrollHeight, 240)}px`;
54
+ fitComposerHeight(el, value, fitted.current); fitted.current = value;
34
55
  }, [value]);
35
56
  const onInput = (e) => { if (composing.current || e.isComposing) return; onValue(e.target.value); };
36
57
  const onCompositionStart = () => { composing.current = true; };
@@ -137,7 +137,8 @@ register("chat", {
137
137
  copy: "Copy", copyMessage: "Copy this reply", copied: "Copied", copyFailed: "Copy failed", wrap: "Wrap", showAll: "Show all {0} lines", showMore: "Show more", showLess: "Show less", showAllShort: "All {0} lines", showMoreShort: "More", jumpLatest: "Latest", newBelow: "{0} new",
138
138
  disconnected: "disconnected", tick_queued: "Waiting behind another message", tick_processing: "Handed to the agent", tick_delivered: "The agent has it", tick_failed: "Not delivered", tick_cancelled: "Dropped by Stop", reactedBy: "{0} reacted",
139
139
  promptAnswering: "Answering…", promptGone: "This prompt is no longer open", promptTextPlaceholder: "Your answer", promptTextSend: "Send answer", promptFor: "{0}: {1}",
140
- working: "{0} is working…", stuck: "{0} looks stuck", stopReply: "Stop reply", stopReplyTitle: "Stop the current reply (like Esc) and drop the messages still waiting. The instance keeps running.", stopSent: "Stopped",
140
+ working: "{0} is working…", stuck: "{0} looks stuck",
141
+ metaWorking: "Working", metaStuck: "Looks stuck", metaStopping: "Stopping…", metaAwaiting: "Waiting for you", stopReply: "Stop reply", stopReplyTitle: "Stop the current reply (like Esc) and drop the messages still waiting. The instance keeps running.", stopSent: "Stopped",
141
142
  file_empty: "empty file", file_too_large: "over {0} MB", file_too_large_public: "over {0} MB — the most the public link carries in one upload", file_too_many: "at most {0} files per message", file_too_much: "the files together would be over {0} MB", removeFile: "Remove", putBack: "Put back",
142
143
  noMessages: "Type a task below.",
143
144
  guestAllHidden: "Nothing here you can see yet", guestAllHiddenHint: "This agent's recent activity is between agents, which guests don't see. Its chat appears here when someone talks in its channel.",
@@ -300,7 +301,8 @@ register("chat", {
300
301
  copy: "複製", copyMessage: "複製這則回覆", copied: "已複製", copyFailed: "複製失敗", wrap: "換行", showAll: "展開全部 {0} 行", showMore: "顯示更多", showLess: "收合", showAllShort: "全部 {0} 行", showMoreShort: "更多", jumpLatest: "最新", newBelow: "{0} 則新訊息",
301
302
  disconnected: "已斷線", tick_queued: "排在前一則訊息之後", tick_processing: "已交給 agent", tick_delivered: "agent 已收到", tick_failed: "未送達", tick_cancelled: "已被中止取消", reactedBy: "{0} 的回應",
302
303
  promptAnswering: "回覆中…", promptGone: "這個提示已經結束", promptTextPlaceholder: "你的回答", promptTextSend: "送出回答", promptFor: "{0}:{1}",
303
- working: "{0} 處理中…", stuck: "{0} 似乎卡住了", stopReply: "停止回覆", stopReplyTitle: "停止目前的回覆(同 Esc),並取消還在排隊的訊息。Agent 會繼續運行。", stopSent: "已中止",
304
+ working: "{0} 處理中…", stuck: "{0} 似乎卡住了",
305
+ metaWorking: "處理中", metaStuck: "似乎卡住了", metaStopping: "停止中…", metaAwaiting: "等你回應", stopReply: "停止回覆", stopReplyTitle: "停止目前的回覆(同 Esc),並取消還在排隊的訊息。Agent 會繼續運行。", stopSent: "已中止",
304
306
  file_empty: "空檔案", file_too_large: "超過 {0} MB", file_too_large_public: "超過 {0} MB,這是公開連結單次上傳的上限", file_too_many: "每則訊息最多 {0} 個檔案", file_too_much: "檔案合計會超過 {0} MB", removeFile: "移除", putBack: "放回輸入框",
305
307
  noMessages: "直接在下方輸入任務。",
306
308
  guestAllHidden: "這裡還沒有你能看到的訊息", guestAllHiddenHint: "這個 agent 最近只和其他 agent 往來,訪客看不到這些。有人在它的頻道說話後,對話會出現在這裡。",
@@ -32,7 +32,8 @@
32
32
  a 44 px tap target drawn as text. */
33
33
  @media (max-width: 899px) {
34
34
  .p-chat .work-bar { block-size: 22px; min-block-size: 22px; max-block-size: 22px; overflow: visible; }
35
- .p-chat .dock:has(.composer-field textarea:placeholder-shown) .work-bar .btn-stop { display: none; }
35
+ /* …only when nothing is waiting to go: with a file attached Send is Send (the file can go), so Stop stays here (M-3198). */
36
+ .p-chat .dock:has(.composer-field textarea:placeholder-shown):not(:has(.pending-files)) .work-bar .btn-stop { display: none; }
36
37
  .p-chat .work-bar .btn-stop { min-height: var(--tap); min-width: var(--tap); height: var(--tap); margin-block: calc((22px - var(--tap)) / 2); padding: 0 var(--s-2); border: 0; background: none; color: var(--accent); font-weight: var(--fw-semibold); }
37
38
  .p-chat .work-bar .btn-stop .icon { display: none; }
38
39
  /* M-3115 PR 3: past 70% the context hint is one thin line in the status line's place — the idle strip gives way to it,
@@ -58,3 +59,64 @@
58
59
  .p-chat .panel-head .panel-sub { min-width: 0; overflow: hidden; }
59
60
  .p-chat .panel-head .panel-title h1 { flex: 0 1000 auto; min-width: min(8ch, 40%); } /* the name gives way before the status */
60
61
  }
62
+ /* M-3166 (Argon 0 and 1, the user's OK of round 2): a phone's meta line above the box — 26 px, the small type, hit targets of
63
+ at least 32 px — in place of the working bar and of the line under the box (its Not verified is the meta line's right end,
64
+ amber; ✓ Verified isn't drawn there). The box is 📎 · the text, the whole width · Send/Stop; files in a strip at the top;
65
+ at most five lines, then it scrolls. */
66
+ @media (max-width: 899px) {
67
+ .chat-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); height: 26px; padding: 0 var(--s-1); font-size: var(--fs-xs); color: var(--text-2); }
68
+ .chat-meta-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 32px; margin: -3px 0; padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm); background: none; color: inherit; font: inherit; white-space: nowrap; overflow: hidden; }
69
+ .chat-meta-left > span:not(.chat-meta-dot):not(.chev) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
70
+ .chat-meta-model .chev { flex: none; color: var(--text-3); }
71
+ .chat-meta-dot { flex: none; width: 6px; height: 6px; border-radius: var(--r-full); background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
72
+ .chat-meta.awaiting .chat-meta-dot, .chat-meta.stuck .chat-meta-dot { background: var(--warn); animation: none; }
73
+ .chat-meta-right { display: inline-flex; align-items: center; gap: var(--s-2); flex: none; }
74
+ .chat-meta-right .webauth-row[data-state="verified"] > :not(.webauth-notice) { display: none; }
75
+ .chat-meta-right .webauth-row, .chat-meta-right .webauth-row .note { color: var(--warn); font-weight: var(--fw-semibold); }
76
+ .chat-meta-right .webauth-row :is(button, a) { min-height: 32px; color: var(--warn); font-weight: var(--fw-semibold); }
77
+ .chat-meta-stop { min-height: 32px; padding: 0 var(--s-2); border: 0; background: none; color: var(--accent); font: inherit; font-weight: var(--fw-semibold); }
78
+ .p-chat .dock:has(.composer-field textarea:placeholder-shown):not(:has(.pending-files)) .chat-meta-stop { display: none; } /* M-3198: files-only, Stop stays */
79
+ .p-chat .dock:has(.chat-meta.busy) .qa-line { display: none; }
80
+ .p-chat .dock:has(.chat-meta) .composer-row { display: none; }
81
+ .p-chat .composer textarea { max-height: calc(5 * var(--lh-md)); overflow-y: auto; }
82
+ .p-chat .composer-box .pending-files { flex-wrap: nowrap; overflow-x: auto; }
83
+ }
84
+ /* M-3166 (Argon 2–3, the user's OK of round 2): a phone's chat header is "← name ● ⋯" in 44 px — the status is its 6 px dot
85
+ (its title still says it), and the search, card, text size and usage buttons and the tab row are the ⋯ sheet's. */
86
+ @media (max-width: 899px) {
87
+ .p-chat > .panel-head { min-height: 44px; padding-bottom: 0; }
88
+ .p-chat > .panel-head .panel-title { min-height: 44px; gap: var(--s-2); }
89
+ /* Only a header with the ⋯ sheet gives its controls up to it: a guest's has none, so it keeps its own (#4002 review). */
90
+ .p-chat > .panel-head:has(.chat-sheet-more) { flex-wrap: nowrap; }
91
+ .p-chat > .panel-head:has(.chat-sheet-more) .sb-search, .p-chat > .panel-head:has(.chat-sheet-more) .inst-switch,
92
+ .p-chat > .panel-head:has(.chat-sheet-more) .panel-actions > :not(.chat-sheet-more):not(.dlg) { display: none !important; }
93
+ .p-chat > .panel-head .panel-title h1 { flex: 0 1 auto; }
94
+ .p-chat > .panel-head .panel-sub > :not(.status) { display: none; }
95
+ .p-chat > .panel-head .panel-sub .status { font-size: 0; gap: 0; }
96
+ .p-chat > .panel-head .panel-sub .dot { width: 6px; height: 6px; }
97
+ /* M-3166 PR 5: View, Log and Details get the same "← name ● ⋯" header, no tab row — when it has the ⋯ sheet (a guest's or
98
+ an anonymous reader's View has none, and keeps its own header). */
99
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) { min-height: 44px; padding-bottom: 0; flex-wrap: nowrap; }
100
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) .panel-title { min-height: 44px; gap: var(--s-2); }
101
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) :is(.sb-search, .inst-switch),
102
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) .panel-actions > :not(.chat-sheet-more):not(.dlg) { display: none !important; }
103
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) .panel-title h1 { flex: 0 1 auto; }
104
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) .panel-sub > :not(.status) { display: none; }
105
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) .panel-sub .status { font-size: 0; gap: 0; }
106
+ :is(.p-view, .p-log, .p-details) > .panel-head:has(.chat-sheet-more) .panel-sub .dot { width: 6px; height: 6px; }
107
+ /* The ⋯ sheet (the dialog's own bottom sheet on a phone). */
108
+ /* The sheet's name stays its accessible name (the dialog's title), drawn as a handle instead, as approved. */
109
+ .chat-sheet .dlg-head { position: relative; justify-content: center; min-height: var(--s-6); padding-bottom: var(--s-1); }
110
+ .chat-sheet .dlg-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
111
+ .chat-sheet .dlg-head::before { content: ""; width: 36px; height: 5px; border-radius: var(--r-full); background: var(--border-strong); }
112
+ .chat-sheet .dlg-head .dlg-x { position: absolute; right: var(--s-2); top: 50%; transform: translateY(-50%); }
113
+ .chat-sheet-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-bottom: var(--s-3); }
114
+ .chat-sheet-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); min-height: 64px; border: 0; border-radius: var(--r-md);
115
+ background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
116
+ .chat-sheet-row { width: 100%; min-height: var(--tap); font-size: var(--fs-md); }
117
+ .chat-sheet-row small { margin-left: auto; color: var(--text-2); font-size: var(--fs-sm); }
118
+ .chat-sheet-gap { width: 18px; flex: none; }
119
+ .chat-sheet-sub { padding-left: var(--s-3); border-left: 2px solid var(--border); margin: 0 0 var(--s-2) var(--s-3); }
120
+ .chat-sheet-head { margin-top: var(--s-2); }
121
+ .chat-sheet-foot { border-top: 1px solid var(--border); margin-top: var(--s-2); padding: var(--s-3) var(--s-3) 0; font-size: var(--fs-sm); color: var(--ok); font-weight: var(--fw-semibold); }
122
+ }
@@ -62,10 +62,43 @@
62
62
  .hub-home { flex: 1; min-height: 0; display: flex; }
63
63
  .hub-home-list { display: none; }
64
64
  .hub-home-pick { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--s-6); }
65
+ /* M-3190 (Argon's chat-first review): the launcher — one centred column of agent rows. On a phone the list keeps the page,
66
+ except on 新對話 and with nothing to list (.is-launch). */
67
+ .hub-home-pick.hub-home-launch { align-items: flex-start; overflow-y: auto; padding: 0; }
68
+ .hub-launch { width: 100%; max-width: 600px; margin: 0 auto; padding: 48px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
69
+ .hub-launch-title { font-size: var(--fs-xl); font-weight: var(--fw-semibold); margin: 0; }
70
+ .hub-launch-filter { margin: 0; }
71
+ .hub-launch-rows { display: flex; flex-direction: column; gap: 8px; }
72
+ .hub-launch-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 12px;
73
+ background: var(--bg); color: var(--text); text-decoration: none; }
74
+ .hub-launch-row:hover, .hub-launch-row:focus-visible { background: var(--surface); }
75
+ .hub-launch-av { position: relative; display: inline-flex; flex: none; }
76
+ .hub-launch-av .hub-av { width: 36px; height: 36px; }
77
+ .hub-launch-av .dot { position: absolute; right: -1px; bottom: -1px; width: 6px; height: 6px; box-shadow: 0 0 0 2px var(--bg); }
78
+ .hub-launch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
79
+ .hub-launch-text strong { font-size: var(--fs-md); font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
80
+ .hub-launch-text small { color: var(--text-3); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
81
+ .hub-launch-go { flex: none; color: var(--text-3); font-size: var(--fs-sm); opacity: 0; }
82
+ .hub-launch-row:hover .hub-launch-go, .hub-launch-row:focus-visible .hub-launch-go { opacity: 1; }
83
+ .hub-launch-empty { max-width: 520px; box-sizing: border-box; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg);
84
+ display: flex; flex-direction: column; gap: 8px; }
85
+ .hub-launch-empty strong { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-lg); }
86
+ .hub-launch-empty p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
87
+ .hub-launch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
88
+ .hub-launch-pill { min-height: 36px; border-radius: 999px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
89
+ a.hub-launch-pill { border: 1px solid var(--border); background: transparent; color: var(--text); }
90
+ @media (hover: none) { .hub-launch-go { opacity: 1; } }
91
+ @media (max-width: 899px), (pointer: coarse) { .hub-launch-pill { min-height: var(--tap); } } /* a fingertip on a phone */
65
92
  @media (max-width: 899px) {
66
93
  .hub-home-list { display: block; flex: 1; overflow-y: auto; padding-top: var(--s-2); }
67
94
  .hub-home-pick { display: none; }
95
+ .hub-home.is-launch .hub-home-list { display: none; }
96
+ .hub-home.is-launch .hub-home-pick { display: flex; }
97
+ .hub-launch { padding: 24px 16px; }
68
98
  }
99
+ /* The Hub sidebar's current page: a filled pill, semibold (Argon) — not a focus ring after a click. */
100
+ .side-nav .side-row.active { background: var(--surface-2); font-weight: var(--fw-semibold); }
101
+ .side-nav .side-row:focus:not(:focus-visible) { outline: none; }
69
102
 
70
103
  /* ── a room ── */
71
104
  .hub-chat { flex: 1; min-height: 0; display: flex; }
@@ -1,21 +1,25 @@
1
1
  /* #3298 S-89: the Hub's signed-in welcome and Administration → Group permissions. Its own stylesheet (linked by
2
2
  hub-group-strings.js) so a tab holding an older hub-chat.css or hub-owner.css still draws these pages. Built on the shared
3
3
  card / s-row / field / btn / tag pieces; only the layout of the two entries and the group rows is here. */
4
- .hub-home.has-welcome .hub-home-pick.hub-home-welcome { align-items: flex-start; justify-content: flex-start; overflow-y: auto; }
5
- .hub-welcome-page { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
6
- .hub-welcome { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); }
7
- .hub-welcome-card { display: flex; flex-direction: column; gap: var(--s-2); min-height: 180px; }
8
- .hub-welcome-card h3 { font-size: var(--fs-lg, 1.15rem); margin: 0; }
9
- .hub-welcome-actions { margin-top: auto; display: flex; gap: var(--s-2); }
10
4
  .hub-groups-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
11
- .hub-welcome-card.is-off h3 { color: var(--text-2); }
12
- .hub-welcome-fleets { margin: 0; padding-left: var(--s-4); }
13
- @media (max-width: 899px) {
14
- /* A phone shows the welcome first, then the chat list under it. */
15
- .hub-home.has-welcome { flex-direction: column; overflow-y: auto; }
16
- .hub-home.has-welcome .hub-home-pick.hub-home-welcome { display: block; flex: none; padding: var(--s-3); }
17
- .hub-home.has-welcome .hub-home-list { flex: none; overflow: visible; }
18
- }
5
+ /* M-3190: the chat launcher's frame (hub-welcome.js ChatLauncherFrame) and 我分享的 Agent → 「我的 Fleet」. */
6
+ .hub-launch-banner { display: flex; align-items: center; gap: 10px; min-height: 40px; box-sizing: border-box; padding: 0 4px 0 14px; border: 1px solid var(--border);
7
+ border-radius: 10px; background: var(--surface); font-size: var(--fs-sm); }
8
+ .hub-launch-banner > span { flex: 1; min-width: 0; }
9
+ .hub-launch-foot { margin: 8px 0 0; color: var(--text-3); font-size: var(--fs-sm); }
10
+ .hub-launch-foot a { color: inherit; }
11
+ .hub-launch-ok { color: var(--ok); }
12
+ @media (max-width: 640px) { .hub-launch-foot { display: none; } } /* no Fleet or address text on a phone's 對話 */
13
+ .hub-my-fleets h3 small { font-weight: var(--fw-regular); }
14
+ .hub-my-fleets .hub-rows { display: flex; flex-direction: column; gap: 8px; }
15
+ .hub-my-fleets .hub-rows .s-row.hub-row { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
16
+ .hub-fleet-menu > .menu-list { min-width: 148px; padding: 4px; border: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow-2); }
17
+ .hub-pair-more { align-self: flex-start; }
18
+ .hub-pair-steps { display: flex; flex-direction: column; gap: var(--s-2); }
19
+ .hub-pair-steps > .note { margin: 0; }
20
+ .hub-address-chip { display: inline-flex; align-items: center; gap: var(--s-2); align-self: flex-start; max-width: 100%; padding: 4px 4px 4px 12px; box-sizing: border-box;
21
+ border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
22
+ .hub-address-chip code { background: none; font-size: var(--fs-sm); overflow-wrap: anywhere; }
19
23
  /* A group's DN takes its own full line; its permissions, fleets and Remove wrap under it (hub-owner.css rows don't wrap). */
20
24
  .hub-rows .s-row.hub-row.hub-group-row { flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
21
25
  .hub-rows .s-row.hub-row.hub-group-row > .hub-row-text { flex: 1 1 100%; }
@@ -167,3 +167,14 @@
167
167
  .hub-ov-range-item { min-height: var(--tap); }
168
168
  .hub-ov-link { min-height: var(--tap); display: inline-flex; align-items: center; }
169
169
  }
170
+
171
+ /* M-3194: shared subject picker and both allowed-list editors keep full touch targets. */
172
+ @media (max-width: 899px), (pointer: coarse) {
173
+ .hub-groups .btn, .hub-join-step2 .btn, .hub-subject-picker .btn { min-height: var(--tap); min-width: var(--tap); }
174
+ .hub-groups .field input, .hub-groups .field select, .hub-join-step2 .field input,
175
+ .hub-join-step2 .field select, .hub-subject-picker input, .hub-subject-picker select { min-height: var(--tap); }
176
+ .hub-group-cap, .hub-join-step2 .check { min-height: var(--tap); }
177
+ }
178
+
179
+ /* The granting administrator must see a Team's size and leads at every width. */
180
+ .hub-row-text strong.hub-policy-subject-label { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@@ -35,6 +35,10 @@
35
35
  .hub-admin-rooms-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
36
36
  .hub-admin-rooms-table th, .hub-admin-rooms-table td { text-align: start; padding: var(--s-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
37
37
  .hub-admin-rooms-table td:first-child { white-space: normal; overflow-wrap: anywhere; min-width: 8em; }
38
+ /* M-3189: a row's ⋯ opens in the top layer (ui-menu topLayer): inside the table's sideways scroll box its menu was clipped — an inner
39
+ scrollbar and a white block over the row. The ⋯ column stays in view while a narrow screen scrolls the table under it. */
40
+ .hub-admin-row-menu > .menu-list.menu-anchored { position: fixed; inset: auto; margin: 0; border: 0; left: var(--menu-x, 8px); top: var(--menu-y, 8px); max-height: min(var(--menu-available, 70vh), calc(100vh - 16px)); overflow-y: auto; }
41
+ .hub-admin-rooms-table :is(th, td):last-child { position: sticky; right: 0; background: var(--bg); }
38
42
  /* Phone and touch: every button in these screens is at least a fingertip (--tap, 44px) tall and wide — the invitations
39
43
  list's 同意/拒絕, its retry, the sidebar's invitations row, 退出這個房間, the member card, Room settings, admin rooms. */
40
44
  @media (max-width: 899px), (pointer: coarse) {
@@ -32,3 +32,30 @@
32
32
  .p-chat .jump-latest { left: auto; right: var(--s-3); transform: none; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; justify-content: center; }
33
33
  .p-chat .jump-latest .jump-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
34
34
  }
35
+ /* M-3166 PR 3 (the user's OK of round 2): /model as a menu — under the model control on a desk, a bottom sheet on a phone.
36
+ One row per model (its name, one line, ✓ on the current one), "More models" in place, the effort as one segmented row. */
37
+ .model-menu { display: flex; flex-direction: column; gap: 2px; }
38
+ .model-menu-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-1) var(--s-2) var(--s-1) var(--s-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
39
+ .model-menu-row { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
40
+ .model-menu-row:hover:not(:disabled), .model-menu-row:focus-visible { background: var(--surface-2); outline: none; }
41
+ .model-menu-row:disabled { opacity: 0.5; cursor: default; }
42
+ .model-menu-row > .icon { margin-inline-start: auto; flex: none; color: var(--accent); }
43
+ .model-menu-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
44
+ .model-menu-text b { font-weight: var(--fw-semibold); }
45
+ .model-menu-text small { color: var(--text-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }
46
+ .model-menu-more { display: flex; align-items: center; min-height: 40px; padding: var(--s-2) var(--s-3); border: 0; background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); text-align: start; cursor: pointer; }
47
+ .model-menu-label { padding: var(--s-2) var(--s-3) var(--s-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); border-top: 1px solid var(--border); margin-top: var(--s-1); }
48
+ .model-menu-seg { display: flex; gap: 2px; padding: 2px; margin: 0 var(--s-3) var(--s-2); border-radius: var(--r-md); background: var(--surface-2); }
49
+ .model-menu-seg button { flex: 1; min-height: 32px; border: 0; border-radius: calc(var(--r-md) - 2px); background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
50
+ .model-menu-seg button.on { background: var(--surface); color: var(--text); font-weight: var(--fw-semibold); box-shadow: var(--shadow-1); }
51
+ .model-menu-loading { padding: var(--s-3); margin: 0; }
52
+ .model-menu-signin { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) var(--s-3); }
53
+ .model-menu-scrim { position: fixed; inset: 0; z-index: 90; }
54
+ .model-menu-pop { position: fixed; z-index: 91; width: 320px; max-height: calc(100vh - 16px); overflow-y: auto; padding: var(--s-1); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-2), 0 0 0 1px var(--border); }
55
+ @media (max-width: 899px) {
56
+ .model-menu-row { min-height: 56px; }
57
+ .model-menu-more { min-height: var(--tap); }
58
+ .model-menu-seg { margin: 0 0 var(--s-2); }
59
+ .model-menu-seg button { min-height: var(--tap); }
60
+ }
61
+ .model-menu-error { margin: 0; padding: var(--s-2) var(--s-3); }
@@ -17,6 +17,7 @@ import { useLease, createLease } from "./app-ctx.js";
17
17
  import * as paneContext from "./app-ctx.js";
18
18
  import { PanelHeader, setTitle, onPanelKey, signInHref } from "./app-shell.js";
19
19
  import { InstanceSwitch } from "./instance-switch.js";
20
+ import { AgentSheetButton, usePhone } from "./agent-sheet.js";
20
21
  import { HeaderTools, VIEW_SCALE, textSizeStore } from "./header-tools.js";
21
22
  import { readStream } from "./read-stream.js";
22
23
  // The usage dialog's metric row lives with the dialog now (usage-dialog.js); re-exported for what imported it here.
@@ -172,6 +173,7 @@ export function ViewPanel({ route, navKey }) {
172
173
  const go = pane?.navigate || navigate;
173
174
  const viewed = useStore(viewStore);
174
175
  const { viewOnly, instances, ready } = useStore(appStore);
176
+ const phone = usePhone(); // M-3166 PR 5: a signed-in phone's header is "← name ● ⋯" (the ⋯ sheet holds the rest)
175
177
  const guest = guestPage(), trusted = guest && guestTrusted();
176
178
  // #2855: a guest's roster is its own agents, as its status frame lists them.
177
179
  const v = guest ? { loaded: ready !== false, error: null, roster: (instances || []).map((i) => ({ instance_name: i.name, display_name: i.display_name, status: i.status })) } : viewed;
@@ -239,6 +241,10 @@ export function ViewPanel({ route, navKey }) {
239
241
  const actions = html`<${HeaderTools} view=${true} navKey=${navKey} />
240
242
  ${guest ? null : html`<button type="button" class="icon-btn" onClick=${() => setDialog("help")} aria-label=${tn("helpButton")} title=${tn("helpButton")}><${Icon} name="info" /></button>`}`;
241
243
 
244
+ // M-3166 PR 5: the ⋯ sheet, for a signed-in admin on a phone (a guest's or an anonymous reader's View keeps its own header).
245
+ const full = !guest && !viewOnly && it ? (instances || []).find((i) => i.name === name) || null : null;
246
+ const sheet = phone && full ? html`<${AgentSheetButton} name=${name} inst=${full} current="view" navKey=${navKey}
247
+ extra=${[{ key: "viewHelp", label: tn("helpButton"), icon: "info", onSelect: () => setDialog("help") }]} />` : null;
242
248
  let body;
243
249
  if (v.error && !v.roster.length) body = html`<div data-trust="panel-content" class="panel-body center"><${ErrorState} message=${tn("rosterFailedShort")} onRetry=${() => go(route.instance ? viewPath(route.instance) : "/view", { replace: true })} /></div>`;
244
250
  else if (!v.loaded) body = html`<div data-trust="panel-content" class="panel-body"><${Skeleton} lines=${6} /></div>`;
@@ -255,7 +261,7 @@ export function ViewPanel({ route, navKey }) {
255
261
  <${PanelHeader} title=${it ? (it.display_name || it.instance_name) : tn("title")} pageControls=${{ navKey, view: true }}
256
262
  pageActions=${guest ? [] : [{ key: "viewHelp", label: tn("helpButton"), icon: "info", onSelect: () => setDialog("help") }]}
257
263
  sub=${it ? html`<span class="status"><span class=${`dot ${it.status === "running" ? "ok" : it.status === "crashed" ? "bad" : "off"}`} aria-hidden="true"></span>${tn(STATUS_KEYS[it.status] || "statusUnknown")}</span>` : null}
258
- nav=${it && (guest ? trusted : !viewOnly) ? html`<${InstanceSwitch} name=${name} current="view" guest=${guest} />` : null}>${actions}</${PanelHeader}>
264
+ nav=${it && (guest ? trusted : !viewOnly) ? html`<${InstanceSwitch} name=${name} current="view" guest=${guest} />` : null}>${actions}${sheet}</${PanelHeader}>
259
265
  ${body}
260
266
  ${open === "edit" && it ? html`<${EditProfile} key=${navKey} it=${it} onClose=${() => setDialog(null)} />` : null}
261
267
  ${open === "help" ? html`<${HelpDialog} onClose=${() => setDialog(null)} />` : null}
@@ -27,5 +27,5 @@ export function Toasts() {
27
27
  if (list.length) el.showPopover();
28
28
  } catch { /* a popover that cannot be shown stays where it is */ }
29
29
  }, [list]);
30
- return html`<div ref=${box} popover="manual" data-trust="toast" class="toasts" role="status" aria-live="polite">${list.map(x => html`<div key=${x.id} class=${`toast ${x.ok ? "ok" : "err"}`}>${x.text}</div>`)}</div>`;
30
+ return html`<div ref=${box} popover="manual" data-trust="toast" class="toasts" role="status" aria-live="polite">${list.map(x => html`<div key=${x.id} class=${`toast ${x.ok ? "ok" : "err"}`} onClick=${() => toasts.set((l) => l.filter((y) => y.id !== x.id))}>${x.text}</div>`)}</div>`;
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@songsid/agend",
3
- "version": "2.4.0-beta.4",
3
+ "version": "2.4.0-beta.6",
4
4
  "description": "Multi-agent fleet daemon — run coding CLIs (Claude, Muse, Codex, OpenCode) from Discord or Telegram",
5
5
  "type": "module",
6
6
  "bin": {