@songsid/agend 2.4.0-alpha.1 → 2.4.0-alpha.2
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/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/dist/agent-whats-new.js +2 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.js +3 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.js +4 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +1 -1
- package/dist/backend-availability.js +28 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +7 -1
- package/dist/browser-backend-signins.js +8 -4
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +1 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/config-validator.js +47 -7
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +3 -0
- package/dist/daemon.js +4 -0
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +33 -4
- package/dist/fleet-manager.js +143 -61
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +19 -0
- package/dist/hub/audit/index.js +12 -5
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/catalog.d.ts +6 -0
- package/dist/hub/catalog.js +14 -4
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +2 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +2 -0
- package/dist/hub/compose/member.js +11 -2
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.js +2 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/enrolment-code.d.ts +126 -0
- package/dist/hub/enrolment-code.js +266 -0
- package/dist/hub/enrolment-code.js.map +1 -0
- package/dist/hub/group-policy/admin-impact.js +4 -2
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.js +6 -6
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +16 -2
- package/dist/hub/group-policy/authorization.js +69 -5
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.js +3 -3
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +40 -1
- package/dist/hub/group-policy/resources.js +51 -13
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.d.ts +6 -0
- package/dist/hub/group-policy/store.js +49 -4
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/http/compose.js +30 -6
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/init/text.js +2 -2
- package/dist/hub/init/text.js.map +1 -1
- package/dist/hub/init/web.d.ts +7 -0
- package/dist/hub/init/web.js +6 -1
- package/dist/hub/init/web.js.map +1 -1
- package/dist/hub/join/local.d.ts +27 -0
- package/dist/hub/join/local.js +70 -5
- package/dist/hub/join/local.js.map +1 -1
- package/dist/hub/join/receipt.d.ts +1 -0
- package/dist/hub/join/receipt.js +1 -1
- package/dist/hub/join/receipt.js.map +1 -1
- package/dist/hub/join/service.d.ts +92 -6
- package/dist/hub/join/service.js +199 -28
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/store.d.ts +2 -1
- package/dist/hub/join/store.js +7 -7
- package/dist/hub/join/store.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +3 -2
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +12 -2
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-notices.js +8 -6
- package/dist/hub/member/pairing-notices.js.map +1 -1
- package/dist/hub/pairing-notices.d.ts +5 -2
- package/dist/hub/pairing-notices.js +38 -13
- package/dist/hub/pairing-notices.js.map +1 -1
- package/dist/hub/pairing.d.ts +7 -2
- package/dist/hub/protocol.d.ts +47 -0
- package/dist/hub/protocol.js +3 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/server.js +15 -1
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +12 -4
- package/dist/hub-pairing-summary.js +1 -1
- package/dist/hub-pairing-summary.js.map +1 -1
- package/dist/instance-config-impact.js +4 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.js +4 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +6 -2
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +62 -6
- package/dist/log-service.js +135 -28
- package/dist/log-service.js.map +1 -1
- package/dist/log-steps-agy-grok.d.ts +74 -0
- package/dist/log-steps-agy-grok.js +440 -0
- package/dist/log-steps-agy-grok.js.map +1 -0
- package/dist/log-steps.d.ts +62 -3
- package/dist/log-steps.js +188 -22
- package/dist/log-steps.js.map +1 -1
- package/dist/log-transcript-paths.d.ts +29 -0
- package/dist/log-transcript-paths.js +109 -0
- package/dist/log-transcript-paths.js.map +1 -0
- package/dist/login-controller.d.ts +17 -3
- package/dist/login-controller.js +57 -5
- package/dist/login-controller.js.map +1 -1
- package/dist/login-window-lock.d.ts +20 -8
- package/dist/login-window-lock.js +35 -16
- package/dist/login-window-lock.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -0
- package/dist/outbound-handlers.js +49 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/profile-signins.d.ts +2 -0
- package/dist/profile-signins.js +1 -1
- package/dist/profile-signins.js.map +1 -1
- package/dist/settings-api.d.ts +34 -0
- package/dist/settings-api.js +184 -6
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +38 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +14 -0
- package/dist/settings-effect.js.map +1 -1
- package/dist/tool-progress.d.ts +7 -0
- package/dist/tool-progress.js +21 -9
- package/dist/tool-progress.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/ui/accounts-view.js +14 -4
- package/dist/ui/agent-details-settings.js +2 -2
- package/dist/ui/agent-page-strings.js +2 -2
- package/dist/ui/backend-signin.js +47 -14
- package/dist/ui/chat-activity-groups.js +225 -0
- package/dist/ui/chat-activity.js +355 -0
- package/dist/ui/chat-popout-header.js +35 -0
- package/dist/ui/chat-popout-transport.js +80 -0
- package/dist/ui/chat-popout.js +63 -0
- package/dist/ui/chat-quote.js +3 -1
- package/dist/ui/chat-store.js +45 -4
- package/dist/ui/chat-workspace-gestures.js +177 -0
- package/dist/ui/chat-workspace-navigation.js +34 -10
- package/dist/ui/chat-workspace.js +96 -32
- package/dist/ui/host-install.js +2 -2
- package/dist/ui/hub-agent-copy.js +7 -7
- package/dist/ui/hub-chat-strings.js +3 -3
- package/dist/ui/hub-client.js +77 -17
- package/dist/ui/hub-company-join-strings.js +12 -10
- package/dist/ui/hub-company-join.js +52 -39
- package/dist/ui/hub-confirm-place.js +44 -0
- package/dist/ui/hub-directory-editor-strings.js +3 -3
- package/dist/ui/hub-directory-notice-strings.js +1 -1
- package/dist/ui/hub-enrolment-code-strings.js +44 -0
- package/dist/ui/hub-enrolment-code.js +159 -0
- package/dist/ui/hub-group-search.js +82 -0
- package/dist/ui/hub-group-strings.js +8 -8
- package/dist/ui/hub-join-approval.js +31 -0
- package/dist/ui/hub-join-code-input.js +66 -0
- package/dist/ui/hub-join-queue.js +62 -0
- package/dist/ui/hub-join-steps.js +231 -0
- package/dist/ui/hub-joincode-flow-strings.js +22 -0
- package/dist/ui/hub-owner-strings.js +9 -9
- package/dist/ui/hub-pairing-progress-strings.js +1 -1
- package/dist/ui/hub-quick-pairing.js +8 -4
- package/dist/ui/hub-quick-strings.js +11 -11
- package/dist/ui/hub-share-refused.js +17 -0
- package/dist/ui/hub-strings.js +61 -61
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +26 -5
- package/dist/ui/image-annotate.js +283 -0
- package/dist/ui/image-lightbox.js +26 -6
- package/dist/ui/log-row.js +327 -0
- package/dist/ui/panel-chat.js +151 -12
- package/dist/ui/panel-details.js +14 -6
- package/dist/ui/panel-hub.js +42 -13
- package/dist/ui/panel-log.js +9 -154
- package/dist/ui/panel-settings.js +48 -11
- package/dist/ui/search-dialog.js +1 -0
- package/dist/ui/settings-access-overview.js +1 -1
- package/dist/ui/settings-hub-browser-certificate.js +3 -3
- package/dist/ui/settings-hub-company-join.js +41 -30
- package/dist/ui/settings-hub-connection.js +8 -5
- package/dist/ui/settings-hub-membership.js +3 -3
- package/dist/ui/settings-hub-section.js +1 -1
- package/dist/ui/settings-hub-setup-strings.js +6 -6
- package/dist/ui/settings-hub-setup.js +44 -6
- package/dist/ui/settings-hub.js +35 -10
- package/dist/ui/settings-layout.js +6 -4
- package/dist/ui/settings-public-session-strings.js +37 -0
- package/dist/ui/settings-registry.js +4 -0
- package/dist/ui/settings-strings.js +2 -2
- package/dist/ui/shared/app-shell.js +16 -10
- package/dist/ui/shared/app.css +195 -30
- package/dist/ui/shared/app.js +8 -1
- package/dist/ui/shared/chat-render.js +11 -2
- package/dist/ui/shared/chat-thread.js +20 -3
- package/dist/ui/shared/chat-work-bar.css +7 -0
- package/dist/ui/shared/chat-workspace-model.js +39 -9
- package/dist/ui/shared/hub-owner.css +8 -0
- package/dist/ui/shared/identity-color.js +9 -3
- package/dist/ui/shared/image-annotate.css +45 -0
- package/dist/ui/shared/instance-nav.js +59 -22
- package/dist/ui/shared/pane-geometry.js +29 -0
- package/dist/ui/shared/signin.js +2 -2
- package/dist/ui/shared/tokens.css +14 -0
- package/dist/ui/shared/ui-menu.js +22 -7
- package/dist/ui/signin.html +1 -1
- package/dist/ui/structured-signin.js +11 -4
- package/dist/web-api.d.ts +1 -0
- package/dist/web-api.js +34 -4
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +9 -3
- package/dist/web-backend-login.js +7 -4
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +11 -0
- package/dist/web-chat-history.js +9 -1
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-guest-access.js +2 -2
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-session.d.ts +31 -3
- package/dist/web-session.js +25 -4
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +8 -2
- package/dist/web-settings-patch.js +22 -10
- package/dist/web-settings-patch.js.map +1 -1
- package/package.json +1 -1
package/dist/ui/shared/app.css
CHANGED
|
@@ -319,7 +319,7 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
319
319
|
}
|
|
320
320
|
.panel-actions { display: flex; align-items: center; gap: var(--s-1); }
|
|
321
321
|
/* #3637: versioned optional host. Retained app.css never offers the entry, even with newer JS. */
|
|
322
|
-
:root { --chat-workspace-version: 1; }
|
|
322
|
+
:root { --chat-workspace-version: 1; --chat-workspace-geometry-version: 1; }
|
|
323
323
|
.chat-workspace { position: relative; flex: 1; min-height: 0; min-width: 0; display: grid; overflow: hidden; gap: 8px; background: var(--border); }
|
|
324
324
|
.chat-workspace.ws-right { grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr); }
|
|
325
325
|
.chat-workspace.ws-stack { grid-template-rows: minmax(320px, 1fr) minmax(320px, 1fr); }
|
|
@@ -356,12 +356,41 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
356
356
|
}
|
|
357
357
|
.ws-pane .pv-panel { position: absolute; inset: 0; width: auto; min-width: 0; max-width: none; z-index: 5; }
|
|
358
358
|
.ws-pane .pv-divider { display: none; }
|
|
359
|
+
/* Geometry is opt-in: retained PR2 hosts keep their original two-cell grid with this CSS. */
|
|
360
|
+
.chat-workspace.ws-geometry { gap: 0; }
|
|
361
|
+
.ws-geometry.ws-right { grid-template-columns: var(--ws-first, minmax(360px, 1fr)) 8px minmax(360px, 1fr); }
|
|
362
|
+
.ws-geometry.ws-stack { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--ws-first, minmax(320px, 1fr)) 8px minmax(320px, 1fr); }
|
|
363
|
+
/* Leave room for the one-row header and the coarse-pointer float handle; every action remains scrollable. */
|
|
364
|
+
.ws-geometry .ws-pane-head > .panel-actions > .menu > .menu-list { max-height: calc(var(--ws-pane-height) - 112px); overflow-y: auto; }
|
|
365
|
+
.ws-sash-slot { position: relative; z-index: 6; min-width: 0; min-height: 0; }
|
|
366
|
+
.ws-sash { position: absolute; inset: 0; cursor: col-resize; touch-action: none; }
|
|
367
|
+
.ws-sash::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 32px; transform: translate(-50%, -50%); border-radius: 2px; background: var(--border-strong); }
|
|
368
|
+
.ws-stack .ws-sash { cursor: row-resize; }
|
|
369
|
+
.ws-stack .ws-sash::after { width: 32px; height: 3px; }
|
|
370
|
+
.ws-sash:is(:hover, :focus-visible)::after, .ws-resizing .ws-sash::after { background: var(--accent); }
|
|
371
|
+
.ws-sash:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
372
|
+
.ws-geometry.ws-float { display: block; background: var(--bg); }
|
|
373
|
+
.ws-float > .ws-pane { width: 100%; height: 100%; }
|
|
374
|
+
.ws-float > .ws-floating { position: absolute; left: var(--ws-float-x); top: var(--ws-float-y); width: var(--ws-float-width); height: var(--ws-float-height); z-index: 4; padding-bottom: 20px; border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
|
|
375
|
+
.ws-floating .ws-pane-head { cursor: move; touch-action: none; }
|
|
376
|
+
.ws-float-resize { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; padding: 0; background: transparent; border: 0; cursor: nwse-resize; touch-action: none; color: var(--text-3); }
|
|
377
|
+
.ws-float-resize::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
|
|
378
|
+
.ws-resizing { user-select: none; }
|
|
379
|
+
.ws-resizing iframe { pointer-events: none; }
|
|
380
|
+
.ws-drop-overlay { position: fixed; z-index: 40; cursor: move; }
|
|
381
|
+
.ws-drop-target { position: absolute; display: grid; place-items: center; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
|
|
382
|
+
.ws-drop-target > span { max-width: calc(100% - 32px); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); color: var(--text); background: var(--bg); box-shadow: var(--shadow-1); }
|
|
383
|
+
.ws-geometry-hint { position: absolute; top: 8px; left: 8px; z-index: 7; max-width: calc(100% - 16px); margin: 0; padding: var(--s-2); border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--bg); box-shadow: var(--shadow-1); pointer-events: none; }
|
|
359
384
|
.v-li:has(> .inst-workspace) { position: relative; }
|
|
360
385
|
.v-li > .inst-workspace { position: absolute; right: 0; top: 6px; visibility: hidden; }
|
|
361
386
|
.inst-workspace > .icon-btn { width: 28px; height: 28px; padding: 0; }
|
|
362
387
|
.v-li:hover > .inst-workspace, .v-li:focus-within > .inst-workspace { visibility: visible; }
|
|
363
388
|
.v-li:has(> .inst-workspace):is(:hover, :focus-within) > .inst-gear { visibility: hidden; }
|
|
364
389
|
@media (pointer: coarse) {
|
|
390
|
+
.ws-right .ws-sash { left: -18px; right: -18px; }
|
|
391
|
+
.ws-stack .ws-sash { top: -18px; bottom: -18px; }
|
|
392
|
+
.ws-float > .ws-floating { padding-bottom: var(--tap); }
|
|
393
|
+
.ws-float-resize { width: var(--tap); height: var(--tap); }
|
|
365
394
|
.ws-pane-head :is(.icon-btn, .btn, .seg-item) { min-width: var(--tap); min-height: var(--tap); }
|
|
366
395
|
.ws-agent-tabs :is(.icon-btn, .seg-item) { min-width: var(--tap); min-height: var(--tap); }
|
|
367
396
|
.inst-workspace > .icon-btn { min-width: var(--tap); min-height: var(--tap); }
|
|
@@ -389,32 +418,106 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
389
418
|
.p-log .log-bar { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--border); flex: none; }
|
|
390
419
|
.p-log .log-bar .chip-btn.on { color: var(--text); background: var(--surface-2); font-weight: var(--fw-semibold); }
|
|
391
420
|
.p-log .log-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
|
|
392
|
-
.p-log .log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
|
|
393
|
-
.p-log .log-item { padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
|
|
394
|
-
.p-log .log-item.turn-start { margin-top: var(--s-4); }
|
|
395
|
-
.p-log .log-item.k-user { background: var(--user-bubble); }
|
|
396
|
-
.p-log .log-item.k-turn_end, .p-log .log-item.k-state, .p-log .log-item.k-event { background: transparent; color: var(--text-3); padding-block: 2px; font-size: var(--fs-sm); }
|
|
397
|
-
.p-log .log-item.k-error, .p-log .log-item.s-failed { --lbar-color: var(--danger); padding-left: calc(var(--s-3) + 3px); }
|
|
398
|
-
.p-log .log-head { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
|
|
399
|
-
.p-log .log-icon { flex: none; }
|
|
400
|
-
.p-log .log-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
401
|
-
.p-log .log-cat { font-weight: var(--fw-semibold); }
|
|
402
|
-
.p-log .log-subject { font-size: var(--fs-sm); }
|
|
403
|
-
.p-log .log-time { flex: none; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
|
|
404
|
-
.p-log .log-status { flex: none; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
|
|
405
|
-
.p-log .log-status.done { color: var(--ok); }
|
|
406
|
-
.p-log .log-status.failed { color: var(--danger); }
|
|
407
|
-
.p-log .log-status.interrupted { color: var(--warn, var(--text-3)); }
|
|
408
|
-
.p-log .log-status .spinner { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
|
|
409
|
-
.p-log .log-repeat { flex: none; font-size: var(--fs-xs); padding: 0 6px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
|
|
410
|
-
.p-log .log-text { white-space: pre-wrap; margin-top: var(--s-1); font-size: var(--fs-sm); }
|
|
411
|
-
.p-log .log-text.mono { font-family: var(--font-mono); font-size: var(--fs-xs); }
|
|
412
|
-
.p-log .log-text.folded { max-height: 10.5em; overflow: hidden; mask-image: linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); }
|
|
413
|
-
.p-log .link-btn { border: 0; background: none; padding: 2px 0; color: var(--accent); cursor: pointer; font-size: var(--fs-xs); }
|
|
414
|
-
.p-log .log-detail { margin-top: var(--s-1); display: flex; flex-direction: column; gap: var(--s-2); }
|
|
415
|
-
.p-log .log-sec-h { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
|
|
416
|
-
.p-log .log-older, .p-log .log-start { text-align: center; margin: var(--s-2) 0; }
|
|
421
|
+
:is(.p-log, .act-block) .log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-1); }
|
|
422
|
+
:is(.p-log, .act-block) .log-item { padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface); min-width: 0; overflow-wrap: anywhere; }
|
|
423
|
+
:is(.p-log, .act-block) .log-item.turn-start { margin-top: var(--s-4); }
|
|
424
|
+
:is(.p-log, .act-block) .log-item.k-user { background: var(--user-bubble); }
|
|
425
|
+
:is(.p-log, .act-block) .log-item.k-turn_end, .p-log .log-item.k-state, .p-log .log-item.k-event { background: transparent; color: var(--text-3); padding-block: 2px; font-size: var(--fs-sm); }
|
|
426
|
+
:is(.p-log) .log-item.k-error, .p-log .log-item.s-failed { --lbar-color: var(--danger); padding-left: calc(var(--s-3) + 3px); }
|
|
427
|
+
:is(.p-log, .act-block) .log-head { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
|
|
428
|
+
:is(.p-log, .act-block) .log-icon { flex: none; }
|
|
429
|
+
:is(.p-log, .act-block) .log-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
430
|
+
:is(.p-log, .act-block) .log-cat { font-weight: var(--fw-semibold); }
|
|
431
|
+
:is(.p-log, .act-block) .log-subject { font-size: var(--fs-sm); }
|
|
432
|
+
:is(.p-log, .act-block) .log-time { flex: none; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
|
|
433
|
+
:is(.p-log, .act-block) .log-status { flex: none; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
|
|
434
|
+
:is(.p-log, .act-block) .log-status.done { color: var(--ok); }
|
|
435
|
+
:is(.p-log, .act-block) .log-status.failed { color: var(--danger); }
|
|
436
|
+
:is(.p-log, .act-block) .log-status.interrupted { color: var(--warn, var(--text-3)); }
|
|
437
|
+
:is(.p-log, .act-block) .log-status .spinner { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
|
|
438
|
+
:is(.p-log, .act-block) .log-repeat { flex: none; font-size: var(--fs-xs); padding: 0 6px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
|
|
439
|
+
:is(.p-log, .act-block) .log-text { white-space: pre-wrap; margin-top: var(--s-1); font-size: var(--fs-sm); }
|
|
440
|
+
:is(.p-log, .act-block) .log-text.mono { font-family: var(--font-mono); font-size: var(--fs-xs); }
|
|
441
|
+
:is(.p-log, .act-block) .log-text.folded { max-height: 10.5em; overflow: hidden; mask-image: linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); }
|
|
442
|
+
:is(.p-log, .act-block) .link-btn { border: 0; background: none; padding: 2px 0; color: var(--accent); cursor: pointer; font-size: var(--fs-xs); }
|
|
443
|
+
:is(.p-log, .act-block) .log-detail { margin-top: var(--s-1); display: flex; flex-direction: column; gap: var(--s-2); }
|
|
444
|
+
:is(.p-log, .act-block) .log-sec-h { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
|
|
445
|
+
:is(.p-log, .act-block) .log-older, .p-log .log-start { text-align: center; margin: var(--s-2) 0; }
|
|
417
446
|
.p-log .log-off { padding: var(--s-6) var(--s-4); }
|
|
447
|
+
/* AGEND-181/197: the chat's activity block, as #3648's mockups draw it — above each agent reply a `.card` with a native
|
|
448
|
+
<details>: running, shut to one live line (the current step · N tools · elapsed), opened the steps with the newest in bold;
|
|
449
|
+
finished, one line "Tool history · used N tools" above the reply. The rows are the Log's own (log-row.js, compact), the
|
|
450
|
+
tokens and the card are the app's; only the frame is new. It sits close to the reply it belongs to (the thread's gap
|
|
451
|
+
would put it a message away). */
|
|
452
|
+
.activity-row { align-self: stretch; min-width: 0; }
|
|
453
|
+
.activity-row:not(:last-child) { margin-bottom: calc(var(--s-2) - var(--s-6)); }
|
|
454
|
+
.activity-row[hidden] { display: none; }
|
|
455
|
+
.card.act-block { margin: 0; padding: var(--s-1) var(--s-3); gap: 0; font-size: var(--fs-sm); }
|
|
456
|
+
.act-block .act-sum { display: flex; align-items: center; gap: var(--s-2); min-height: var(--s-7); cursor: pointer; list-style: none; color: var(--text-2); }
|
|
457
|
+
@media (pointer: coarse) { .act-block .act-sum { min-height: var(--tap); } }
|
|
458
|
+
.act-block .act-sum::-webkit-details-marker { display: none; }
|
|
459
|
+
.act-block .act-chev { flex: none; display: inline-flex; transition: transform .15s ease; transform: rotate(-90deg); }
|
|
460
|
+
.act-block[open] .act-chev { transform: none; }
|
|
461
|
+
.act-block .act-ic { flex: none; display: inline-flex; color: var(--text-3); }
|
|
462
|
+
.act-block .act-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
|
|
463
|
+
.act-block .act-title.act-now { color: var(--text); }
|
|
464
|
+
.act-block .act-meta { flex: none; font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
465
|
+
.act-block .act-spin { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
|
|
466
|
+
/* AGEND-200 (the preview feedback; the look is Multica's run list): nothing in the opened block scrolls, and a step is ONE small,
|
|
467
|
+
quiet line — its icon sits on a thin timeline, then what it did (one line, cut), its kind in a quiet word, its status, and a
|
|
468
|
+
chevron when there is more. The whole line opens it, so every "show / hide" is in the same place. Thinking and what the agent
|
|
469
|
+
said show two lines until opened. A long output is cut per step (the `folded` mask and "Show all"), never scrolled. Failure and
|
|
470
|
+
running are the icon's colour and one small word; a step that went well says nothing. */
|
|
471
|
+
.act-block .act-body { padding: var(--s-1) 0 var(--s-2); display: flex; flex-direction: column; gap: var(--s-1); border-top: 1px solid var(--border); }
|
|
472
|
+
.act-block .act-earlier { align-self: flex-start; margin-left: calc(14px + var(--s-2)); }
|
|
473
|
+
.act-block .act-lvl, .act-block .act-partial { margin: 0; }
|
|
474
|
+
.act-block .log-list { gap: 0; }
|
|
475
|
+
.act-block .log-item { --row-h: 24px; position: relative; background: transparent; border-radius: 0; padding: 0 0 0 calc(14px + var(--s-2)); font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--text-2); }
|
|
476
|
+
@media (pointer: coarse) { .act-block .log-item { --row-h: 32px; } }
|
|
477
|
+
.act-block .log-item::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--border-strong); opacity: .55; }
|
|
478
|
+
.act-block .log-item:first-child::before { top: calc(var(--row-h) / 2); }
|
|
479
|
+
.act-block .log-item:last-child::before { bottom: auto; height: calc(var(--row-h) / 2); }
|
|
480
|
+
.act-block .log-item:only-child::before { display: none; }
|
|
481
|
+
.act-block .log-item.compact { display: block; }
|
|
482
|
+
.act-block .log-head { display: flex; align-items: flex-start; gap: var(--s-2); width: 100%; min-width: 0; min-height: var(--row-h); padding: calc((var(--row-h) - var(--lh-xs)) / 2) 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; }
|
|
483
|
+
.act-block button.log-head { cursor: pointer; border-radius: var(--r-sm); }
|
|
484
|
+
.act-block button.log-head:hover .log-sum, .act-block button.log-head:focus-visible .log-sum { color: var(--text); }
|
|
485
|
+
.act-block .log-icon { position: absolute; left: 0; top: calc((var(--row-h) - 14px) / 2); display: inline-flex; background: var(--surface); color: var(--text-3); }
|
|
486
|
+
.act-block .log-sum { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
487
|
+
.act-block .log-subject { font-size: var(--fs-xs); }
|
|
488
|
+
.act-block .log-head .grow { flex: 1 1 0; min-width: 0; }
|
|
489
|
+
.act-block .log-head .log-cat { flex: none; font-weight: var(--fw-regular); color: var(--text-3); }
|
|
490
|
+
.act-block .log-chev { flex: none; width: 12px; display: inline-flex; align-self: center; color: var(--text-3); transform: rotate(-90deg); transition: transform .15s ease; }
|
|
491
|
+
.act-block .log-chev.none { visibility: hidden; }
|
|
492
|
+
.act-block [aria-expanded="true"] > .log-chev { transform: none; }
|
|
493
|
+
.act-block .log-item.latest .log-subject { font-weight: var(--fw-semibold); color: var(--text); }
|
|
494
|
+
.act-block .log-item.s-failed .log-icon, .act-block .log-item.k-error .log-icon { color: var(--danger); }
|
|
495
|
+
.act-block .log-item.s-running .log-icon { color: var(--accent); }
|
|
496
|
+
.act-block .log-status { flex: none; align-self: center; display: inline-flex; align-items: center; font-size: var(--fs-xs); white-space: nowrap; }
|
|
497
|
+
.act-block .log-status.failed { color: var(--danger); }
|
|
498
|
+
.act-block .log-status.interrupted { color: var(--warn, var(--text-3)); }
|
|
499
|
+
.act-block .log-status.running { color: var(--accent); }
|
|
500
|
+
.act-block .log-status .spinner { margin-right: 4px; }
|
|
501
|
+
.act-block .log-repeat { font-size: var(--fs-xs); }
|
|
502
|
+
/* thinking and what the agent said: two lines of it until opened; opened, all of it (wrapped, never scrolled) */
|
|
503
|
+
.act-block .log-sum.log-think, .act-block .log-sum.log-said { flex: 1 1 0; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; color: var(--text-3); }
|
|
504
|
+
.act-block .log-sum.log-think { font-style: italic; }
|
|
505
|
+
.act-block .log-sum.log-said { color: var(--text-2); }
|
|
506
|
+
.act-block .log-sum.open { display: block; -webkit-line-clamp: unset; line-clamp: unset; white-space: pre-wrap; overflow: visible; }
|
|
507
|
+
.act-block .log-head.log-more .grow { display: none; }
|
|
508
|
+
/* what a step opens to: the command once as code, an edit as removed / added text, the arguments only for a tool we do not read, the output cut */
|
|
509
|
+
.act-block .log-detail { margin: 0 0 var(--s-2); gap: var(--s-2); }
|
|
510
|
+
.act-block .log-code { margin: 0; padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: var(--lh-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
511
|
+
.act-block .log-code.rm { color: var(--danger); }
|
|
512
|
+
.act-block .log-code.add { color: var(--ok); }
|
|
513
|
+
.act-block .log-code.rm::before { content: "− "; }
|
|
514
|
+
.act-block .log-code.add::before { content: "+ "; }
|
|
515
|
+
.act-block .log-prompt { color: var(--text-3); user-select: none; }
|
|
516
|
+
.act-block .log-diff { display: flex; flex-direction: column; gap: 2px; }
|
|
517
|
+
.act-block .log-text { margin-top: 0; padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); }
|
|
518
|
+
.act-block .log-item.k-error .log-text { color: var(--danger); }
|
|
519
|
+
.act-block .log-sub { margin: 0 0 var(--s-1); }
|
|
520
|
+
.act-block .log-sub .log-item { --row-h: 22px; }
|
|
418
521
|
/* The header's controls are one height, the icon buttons' (36 px): its small buttons, and the instance tabs when they share
|
|
419
522
|
its row (a phone puts them on a row of their own, under it). */
|
|
420
523
|
.panel-head .btn-sm { min-height: 36px; }
|
|
@@ -468,6 +571,37 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
468
571
|
.menu-heading { 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); }
|
|
469
572
|
.menu-heading:first-child { border-top: 0; margin-top: 0; }
|
|
470
573
|
.menu-radio .menu-tick { width: 16px; display: inline-flex; color: var(--accent); }
|
|
574
|
+
/* M-2959: pane and sidebar actions share the same one-line icon rows. */
|
|
575
|
+
:root { --agent-menu-version: 1; }
|
|
576
|
+
.agent-menu > .menu-list { min-width: min(280px, calc(100vw - 16px)); max-width: min(360px, calc(100vw - 16px)); max-height: min(70vh, calc(100vh - 32px)); overflow-y: auto; transform: translateX(var(--menu-shift, 0px)); }
|
|
577
|
+
.agent-menu > .menu-list.menu-up { top: auto; bottom: calc(100% + var(--s-1)); }
|
|
578
|
+
.agent-menu > .menu-list.menu-compact { max-height: 180px; }
|
|
579
|
+
.agent-menu > .menu-list.menu-short { max-height: 96px; }
|
|
580
|
+
.agent-menu > .menu-list.menu-anchored { position: fixed; margin: 0; border: 0; left: var(--menu-x, 8px); top: var(--menu-y, 8px); right: auto; bottom: auto; transform: none; max-height: min(var(--menu-available, 70vh), calc(100vh - 16px)); }
|
|
581
|
+
.inst-row-menu > .menu-list:not(.menu-anchored) { min-width: min(220px, calc(100vw - 16px)); }
|
|
582
|
+
.agent-menu .menu-item { white-space: nowrap; }
|
|
583
|
+
.agent-menu .menu-item > .icon, .agent-menu .menu-tick { flex: none; }
|
|
584
|
+
.agent-menu .menu-item > span:not(.menu-tick):not(.menu-state) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
585
|
+
.agent-menu .menu-state { display: inline-flex; flex: none; color: var(--accent); }
|
|
586
|
+
.agent-menu .menu-starred { fill: currentColor; color: var(--warn); }
|
|
587
|
+
.agent-menu .menu-label-value { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
|
|
588
|
+
.agent-menu .menu-label-value > span:first-child { flex: none; }
|
|
589
|
+
.agent-menu .menu-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); text-align: right; }
|
|
590
|
+
.v-li > .inst-row-menu { position: relative; top: auto; right: auto; flex: none; visibility: visible; }
|
|
591
|
+
.inst-row-menu > .icon-btn { width: 28px; height: 28px; padding: 0; color: var(--text-3); }
|
|
592
|
+
.inst-menu-star { display: inline-flex; color: var(--warn); }
|
|
593
|
+
.inst-menu-star .icon, .inst-favorite-mark .icon { fill: currentColor; }
|
|
594
|
+
.inst-menu-more { display: none; }
|
|
595
|
+
.v-li:is(:hover, :focus-within) .inst-menu-star, .inst-row-menu:has(> button[aria-expanded="true"]) .inst-menu-star { display: none; }
|
|
596
|
+
.v-li:is(:hover, :focus-within) .inst-menu-more, .inst-row-menu:has(> button[aria-expanded="true"]) .inst-menu-more { display: inline-flex; }
|
|
597
|
+
.inst-favorite-mark { flex: none; width: 28px; display: inline-flex; justify-content: center; color: var(--warn); }
|
|
598
|
+
.inst.inst-favorite { position: relative; }
|
|
599
|
+
.inst.inst-favorite::before { content: ""; position: absolute; left: 0; top: var(--s-2); bottom: var(--s-2); width: 4px; background: color-mix(in srgb, var(--id, var(--accent)) 80%, var(--text) 20%); pointer-events: none; }
|
|
600
|
+
@media (max-width: 899px), (pointer: coarse) {
|
|
601
|
+
.inst-row-menu > .icon-btn { min-width: var(--tap); min-height: var(--tap); }
|
|
602
|
+
.agent-menu .menu-item { min-width: var(--tap); min-height: var(--tap); }
|
|
603
|
+
}
|
|
604
|
+
@media (hover: none) { .inst-menu-star { display: none; } .inst-menu-more { display: inline-flex; } }
|
|
471
605
|
|
|
472
606
|
/* ── Dialog: centred on a desktop, a bottom sheet on a phone ── */
|
|
473
607
|
.dlg { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-2); width: min(480px, calc(100vw - 32px)); max-height: 85vh; }
|
|
@@ -575,6 +709,24 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
575
709
|
/* Settings share the available management workspace, independently of the chat's reading width.
|
|
576
710
|
Keep fieldsets as real boxes so disabled forms and their confirmation boundaries stay intact. */
|
|
577
711
|
.p-settings > .panel-body > .col { width: 100%; max-width: var(--settings-width); min-width: 0; margin: 0 auto; container: settings-page / inline-size; }
|
|
712
|
+
/* #3714: Settings return belongs to scrolling content; the pane-header X only closes a pane. */
|
|
713
|
+
.agent-settings-heading.s-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--s-3); }
|
|
714
|
+
.agent-settings-heading .s-page-head > div { min-width: 0; max-width: 100%; }
|
|
715
|
+
.agent-settings-heading .s-scope { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
|
|
716
|
+
.agent-settings-heading.s-row, .agent-settings-index-return.s-row { min-height: 0; padding: 0; border-radius: 0; background: none; }
|
|
717
|
+
.agent-settings-index-return.s-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; }
|
|
718
|
+
.agent-settings-index-return h2 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
|
|
719
|
+
@media (max-width: 899px) {
|
|
720
|
+
.agent-settings-heading.s-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
|
|
721
|
+
.p-agent-page .agent-settings-heading.s-row > .s-back { min-width: var(--tap); min-height: var(--tap); margin: 0; padding: 0; border: 0; background: none; white-space: nowrap; }
|
|
722
|
+
.agent-settings-heading .s-page-head { min-width: 0; margin: 0; }
|
|
723
|
+
.agent-settings-heading .s-page-title { display: block; }
|
|
724
|
+
.agent-settings-heading .s-page-head h2 { font-size: var(--fs-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
725
|
+
.agent-settings-heading .s-page-lead, .agent-settings-heading .s-scope { display: none; }
|
|
726
|
+
}
|
|
727
|
+
@media (max-width: 899px), (pointer: coarse) {
|
|
728
|
+
.p-details .agent-back-chat { min-width: var(--tap); min-height: var(--tap); }
|
|
729
|
+
}
|
|
578
730
|
.s-page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 0 24px; }
|
|
579
731
|
.s-page-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
|
|
580
732
|
.s-page-head h2 { margin: 0; color: var(--text); font-size: 24px; font-weight: var(--fw-semibold); line-height: 1.35; letter-spacing: -0.02em; }
|
|
@@ -845,11 +997,14 @@ html.lb-open .scroller { overflow: hidden; }
|
|
|
845
997
|
.lb .icon-btn { color: #fff; }
|
|
846
998
|
.lb .icon-btn:hover { background: rgba(255, 255, 255, 0.15); }
|
|
847
999
|
.lb .lb-orig { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
|
|
1000
|
+
/* #3727: 「標註」 beside Open original (tokens only; the editor's own sheet is image-annotate.css). */
|
|
1001
|
+
.lb .lb-annotate { color: var(--media-ink); background: var(--media-btn); border-color: var(--media-line); }
|
|
1002
|
+
.lb .lb-annotate:hover, .lb .lb-annotate:focus-visible, .lb .lb-annotate:active { color: var(--media-ink); background: var(--media-btn-on); border-color: var(--media-ink); }
|
|
848
1003
|
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(0, 0, 0, 0.4); }
|
|
849
1004
|
.lb-prev { left: var(--s-2); }
|
|
850
1005
|
.lb-next { right: var(--s-2); }
|
|
851
1006
|
/* A phone: the arrows sit below the image's middle band, out of its way, still reachable with a thumb. */
|
|
852
|
-
@media (max-width: 480px) { .lb .lb-orig .lbl { display: none; } .lb-nav { top: auto; bottom: var(--s-4); transform: none; } .lb-stage { padding-bottom: 72px; } }
|
|
1007
|
+
@media (max-width: 480px) { .lb .lb-orig .lbl, .lb .lb-annotate .lbl { display: none; } .lb-nav { top: auto; bottom: var(--s-4); transform: none; } .lb-stage { padding-bottom: 72px; } }
|
|
853
1008
|
.msg .att-file { font-size: var(--fs-sm); color: var(--accent); }
|
|
854
1009
|
.msg .att-size { color: var(--text-3); }
|
|
855
1010
|
.msg .md p { margin: 0 0 var(--s-3); } .msg .md p:last-child { margin-bottom: 0; }
|
|
@@ -1022,8 +1177,10 @@ img.amb-p { object-fit: contain; }
|
|
|
1022
1177
|
box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
|
|
1023
1178
|
/* M-2789: the 「引用」 pill on a selected passage (chat-quote.js) — the message menu's look, one item, its pointer at the
|
|
1024
1179
|
passage's end; readable on white and dark alike (the shared border and shadow tokens). A phone's is a 44-px tap. */
|
|
1025
|
-
.msg-menu.quote-pop { min-width: 0; padding: 2px; border: 1px solid var(--border-strong); overflow: visible; }
|
|
1026
|
-
.quote-pop .quote-pick { display:
|
|
1180
|
+
.msg-menu.quote-pop { min-width: 0; max-width: calc(100vw - 32px); padding: 2px; border: 1px solid var(--border-strong); overflow: visible; }
|
|
1181
|
+
.quote-pop .quote-pick { display: flex; align-items: center; gap: var(--s-3); padding: 5px 10px; font-family: var(--font-ui); font-size: var(--fs-sm); font-weight: var(--fw-regular); white-space: nowrap; }
|
|
1182
|
+
.quote-pop .quote-pick .icon { flex: none; }
|
|
1183
|
+
.quote-pop .quote-pick > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
1027
1184
|
.quote-pop.is-phone .quote-pick { min-height: var(--tap); padding: 10px 14px; }
|
|
1028
1185
|
.quote-pop .quote-tip { position: absolute; width: 10px; height: 10px; background: var(--surface); transform: rotate(45deg); pointer-events: none; }
|
|
1029
1186
|
.quote-pop .quote-tip.down { bottom: -6px; border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
|
|
@@ -1211,7 +1368,7 @@ img.amb-p { object-fit: contain; }
|
|
|
1211
1368
|
.reply-bar { display: flex; align-items: center; gap: var(--s-2); min-width: 0; margin: var(--s-2) var(--s-2) 0; padding: 4px var(--s-2) 4px calc(var(--s-3) + 3px);
|
|
1212
1369
|
--lbar-color: var(--accent); border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-sm); }
|
|
1213
1370
|
.reply-bar .reply-mark { color: var(--accent); }
|
|
1214
|
-
.reply-bar .reply-label { font-weight: var(--fw-semibold); white-space: nowrap; }
|
|
1371
|
+
.reply-bar .reply-label { font-weight: var(--fw-semibold); white-space: nowrap; min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; } /* #3727: a long sender never pushes ✕ off a phone */
|
|
1215
1372
|
.reply-bar .reply-text { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1216
1373
|
.reply-bar .reply-cancel { flex: none; width: 28px; height: 28px; }
|
|
1217
1374
|
.file-chip { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); padding: 4px var(--s-2); border-radius: var(--r-md); background: var(--bg); max-width: 320px; }
|
|
@@ -1343,6 +1500,7 @@ img.amb-p { object-fit: contain; }
|
|
|
1343
1500
|
.dlg-box { max-height: 90vh; }
|
|
1344
1501
|
.dlg-actions { padding-bottom: max(var(--s-5), env(safe-area-inset-bottom)); }
|
|
1345
1502
|
.dlg-actions .btn { flex: 1; min-height: var(--tap); }
|
|
1503
|
+
.dlg-head .dlg-x { min-width: var(--tap); min-height: var(--tap); }
|
|
1346
1504
|
.row-item .btn, .s-row .btn, .n-actions .btn { min-height: var(--tap); }
|
|
1347
1505
|
.s-row .icon-btn { min-width: var(--tap); min-height: var(--tap); }
|
|
1348
1506
|
.p-settings .s-company-join :is(.field input, .btn) { min-height: var(--tap); }
|
|
@@ -4340,3 +4498,10 @@ html.oo-immersive .p-fleet > .panel-body { z-index: 50; }
|
|
|
4340
4498
|
.instructions-field { display: flex; flex-direction: column; gap: var(--s-2); }
|
|
4341
4499
|
.instructions-field > .seg-inline { align-self: flex-start; }
|
|
4342
4500
|
.instructions-field .pv-code { max-height: 24rem; }
|
|
4501
|
+
|
|
4502
|
+
/* #3637: opt-in pop-out presentation. Normal single-pane selectors and phone layout are unchanged. */
|
|
4503
|
+
:root { --chat-popout-version: 1; }
|
|
4504
|
+
.chat-popout > .scrim, .chat-popout .sb-open, .chat-popout .sb-new, .chat-popout .sb-search { display: none !important; }
|
|
4505
|
+
.chat-popout .main { width: 100%; }
|
|
4506
|
+
.chat-popout .popup-pane-head { flex-wrap: nowrap; gap: var(--s-1); padding: var(--s-1) var(--s-2); }
|
|
4507
|
+
.chat-popout .popup-pane-head .inst-switch { flex-basis: auto; order: initial; width: auto; display: flex; }
|
package/dist/ui/shared/app.js
CHANGED
|
@@ -25,6 +25,7 @@ import { startThemes } from "./app-themes.js";
|
|
|
25
25
|
|
|
26
26
|
const boot = document.body.dataset;
|
|
27
27
|
const workspaceLanding = location.pathname === "/ui";
|
|
28
|
+
const popoutRequested = new URLSearchParams(location.search).get("presentation") === "popout";
|
|
28
29
|
// #1523 N3: this device's text size, on the root before the first paint of any panel.
|
|
29
30
|
initTextSize();
|
|
30
31
|
initUsageRail();
|
|
@@ -151,7 +152,13 @@ if (hubPage) {
|
|
|
151
152
|
};
|
|
152
153
|
setNewInstanceOpener(onNewInstance);
|
|
153
154
|
// Optional alpha feature: an old server/CSS/module set keeps the original single-panel path and drafts.
|
|
154
|
-
if (!guest &&
|
|
155
|
+
if (!guest && popoutRequested && boot.chatWorkspace === "1") {
|
|
156
|
+
Promise.all([import("/ui/js/chat-popout.js"), chatBoot]).then(([popout, chat]) => {
|
|
157
|
+
popout.installPopout({ nav: navigation, chat, scope: boot.chatLayoutScope });
|
|
158
|
+
}).catch(() => {}); // old optional assets retain the full single-chat frame and the parent's draft
|
|
159
|
+
}
|
|
160
|
+
if (!guest && !popoutRequested && boot.chatWorkspace === "1" && getComputedStyle(document.documentElement).getPropertyValue("--chat-workspace-version").trim() === "1"
|
|
161
|
+
&& getComputedStyle(document.documentElement).getPropertyValue("--chat-workspace-geometry-version").trim() === "1") {
|
|
155
162
|
Promise.all([import("/ui/js/chat-workspace.js"), chatBoot]).then(([workspace, chat]) => {
|
|
156
163
|
workspace.installWorkspaceEntry({ nav: navigation, chat, landing: workspaceLanding, scope: boot.chatLayoutScope,
|
|
157
164
|
ready: async () => {
|
|
@@ -35,6 +35,14 @@
|
|
|
35
35
|
return u;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* #3716: CJK characters and full-width punctuation — kana, CJK ideographs (and extension A, compatibility), Hangul, the CJK
|
|
40
|
+
* symbols and punctuation block (「」『』、。) and the half/full-width forms (:,()!?;). Before a bare URL they start it; inside
|
|
41
|
+
* one they end it.
|
|
42
|
+
*/
|
|
43
|
+
var CJK = "\\u3000-\\u30ff\\u3400-\\u4dbf\\u4e00-\\u9fff\\uac00-\\ud7af\\uf900-\\ufaff\\uff00-\\uffef";
|
|
44
|
+
var BARE_URL_RE = new RegExp("(^|[\\s(" + CJK + "])((?:https?:\\/\\/)[^\\s<" + CJK + "]+[^\\s<.,;:!?)\\]'\"&" + CJK + "])", "g");
|
|
45
|
+
|
|
38
46
|
function link(href, label) {
|
|
39
47
|
return '<a href="' + href + '" target="_blank" rel="noopener noreferrer" data-trust="link">' + label + "</a>";
|
|
40
48
|
}
|
|
@@ -97,8 +105,9 @@
|
|
|
97
105
|
var href = safeHref(url);
|
|
98
106
|
return href ? stash(store, link(href, emphasis(label))) : m;
|
|
99
107
|
});
|
|
100
|
-
// bare URLs
|
|
101
|
-
|
|
108
|
+
// bare URLs — after the start, a space, "(" or (#3716) a CJK character / full-width punctuation ("開好了:https://…"), and
|
|
109
|
+
// ending at the first CJK character or full-width punctuation ("https://x/y交給" links https://x/y), as Discord does.
|
|
110
|
+
s = s.replace(BARE_URL_RE, function (m, pre, url) {
|
|
102
111
|
var href = safeHref(url);
|
|
103
112
|
return href ? pre + stash(store, link(href, url)) : m;
|
|
104
113
|
});
|
|
@@ -755,7 +755,7 @@ export function createThread(list, scroller, opts) {
|
|
|
755
755
|
const stick = pinned || nearBottom();
|
|
756
756
|
msgs = next || [];
|
|
757
757
|
if (!msgs.length) {
|
|
758
|
-
for (const v of nodes.values()) stopIn(v.node);
|
|
758
|
+
for (const v of nodes.values()) { stopIn(v.node); v.handle?.unmount(); }
|
|
759
759
|
nodes.clear();
|
|
760
760
|
firstKey = null;
|
|
761
761
|
armDay();
|
|
@@ -778,13 +778,29 @@ export function createThread(list, scroller, opts) {
|
|
|
778
778
|
}
|
|
779
779
|
/** Put the messages from startIndex() on in the list (nodes reused when unchanged). Returns how many are new. */
|
|
780
780
|
function draw(drawOpts) {
|
|
781
|
-
|
|
781
|
+
// AGEND-181: activity rows (a turn's thinking and tool steps above its reply) are drawn only when the page gave a
|
|
782
|
+
// way to (opts.activity) — never part of a message: not copied, replied to, counted as unread or reached by ↑/↓.
|
|
783
|
+
const shown = msgs.slice(startIndex()).filter((x) => x.role !== "activity" || opts.activity);
|
|
782
784
|
const keep = new Set(shown.map(msgKey));
|
|
783
|
-
for (const [k, v] of nodes) if (!keep.has(k)) { stopIn(v.node); v.node.remove(); nodes.delete(k); }
|
|
785
|
+
for (const [k, v] of nodes) if (!keep.has(k)) { stopIn(v.node); v.handle?.unmount(); v.node.remove(); nodes.delete(k); }
|
|
784
786
|
let prev = null, added = 0;
|
|
785
787
|
for (const x of shown) {
|
|
786
788
|
const key = msgKey(x);
|
|
787
789
|
let have = nodes.get(key);
|
|
790
|
+
if (x.role === "activity") {
|
|
791
|
+
// One node for the life of the group (a live turn, then the reply it becomes): its island is updated in place,
|
|
792
|
+
// so what the reader opened stays open and nothing remounts or jumps.
|
|
793
|
+
if (!have) {
|
|
794
|
+
const node = list.ownerDocument.createElement("div");
|
|
795
|
+
node.className = "activity-row";
|
|
796
|
+
have = { html: "activity", node, x, handle: opts.activity.mount(node, x.group) };
|
|
797
|
+
nodes.set(key, have);
|
|
798
|
+
} else if (have.x !== x) { have.x = x; have.handle.update(x.group); }
|
|
799
|
+
const want = prev ? prev.nextSibling : list.firstChild;
|
|
800
|
+
if (have.node !== want) list.insertBefore(have.node, want);
|
|
801
|
+
prev = have.node;
|
|
802
|
+
continue;
|
|
803
|
+
}
|
|
788
804
|
// Filling in older messages: a node drawn from this very message object is current — not drawn again.
|
|
789
805
|
if (drawOpts.older && have && have.x === x) { prev = have.node; continue; }
|
|
790
806
|
const html = msgHtml(x);
|
|
@@ -960,6 +976,7 @@ export function createThread(list, scroller, opts) {
|
|
|
960
976
|
if (!parked) watchReader(scroller, false);
|
|
961
977
|
if (ro) ro.disconnect();
|
|
962
978
|
if (P()) { if (own) P().stopIn(list); else P().stopAll("leave"); }
|
|
979
|
+
for (const v of nodes.values()) v.handle?.unmount();
|
|
963
980
|
nodes.clear();
|
|
964
981
|
armDay();
|
|
965
982
|
armPolls();
|
|
@@ -3,3 +3,10 @@
|
|
|
3
3
|
app.css, which has no rule for it — on a phone that Stop was 40×30, under the 44 px tap target. */
|
|
4
4
|
.work-bar .btn-stop { flex: none; margin-left: auto; }
|
|
5
5
|
@media (max-width: 899px), (pointer: coarse) { .work-bar .btn-stop { min-height: var(--tap, 44px); min-width: var(--tap, 44px); } }
|
|
6
|
+
/* #3724: one height in every state (idle included: the strip stays, empty), so the thread and the composer never move when the
|
|
7
|
+
agent starts, stops or waits. The height is the Stop button's (desktop: btn-sm's 30 px; phone / touch: the 44 px tap target).
|
|
8
|
+
The status text keeps to one line, cut with an ellipsis; the timer and Stop never shrink. */
|
|
9
|
+
.work-bar { box-sizing: border-box; block-size: 30px; min-block-size: 30px; max-block-size: 30px; overflow: hidden; }
|
|
10
|
+
.work-bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
11
|
+
.work-bar .elapsed, .work-bar .pulse { flex: none; }
|
|
12
|
+
@media (max-width: 899px), (pointer: coarse) { .work-bar { block-size: var(--tap, 44px); min-block-size: var(--tap, 44px); max-block-size: var(--tap, 44px); } }
|
|
@@ -3,13 +3,17 @@ import { isSafeInstanceName, parseRoute, routePath } from "./app-route.js";
|
|
|
3
3
|
|
|
4
4
|
export const PANE_VIEWS = Object.freeze(["chat", "view", "log", "details"]);
|
|
5
5
|
const categories = new Set(["overview", "basic", "runtime", "work", "channel", "adv"]);
|
|
6
|
-
const keys = ["compare", "paneA", "paneB", "layout", "focus", "ratio", "swap", "catA", "catB", "messageA", "messageB"];
|
|
6
|
+
const keys = ["compare", "paneA", "paneB", "layout", "focus", "ratio", "swap", "catA", "catB", "messageA", "messageB", "floatPane", "floatX", "floatY", "floatW", "floatH"];
|
|
7
7
|
export const agentRoute = route => !!route && PANE_VIEWS.includes(route.panel) && isSafeInstanceName(route.instance);
|
|
8
8
|
const category = (route, search) => route.panel === "details" && categories.has(new URLSearchParams(search).get("cat"))
|
|
9
9
|
? new URLSearchParams(search).get("cat") : "";
|
|
10
10
|
const cleanSearch = (route, search) => { const cat = category(route, search); return cat ? `?cat=${cat}` : ""; };
|
|
11
11
|
const cleanHash = hash => /^#m=[0-9a-f]{1,32}-\d{1,15}$/.test(hash || "") ? hash : "";
|
|
12
|
-
|
|
12
|
+
// Physical pane minimums live in pane-geometry; a second percentage minimum breaks ultra-wide displays.
|
|
13
|
+
const boundedRatio = value => Number.isFinite(Number(value)) ? Math.max(0, Math.min(1, Number(value))) : .5;
|
|
14
|
+
const layouts = ["right", "stack", "float"];
|
|
15
|
+
const cleanRect = value => value && ["x", "y", "width", "height"].every(key => typeof value[key] === "number" && Number.isFinite(value[key]) && value[key] >= 0 && value[key] <= 100000)
|
|
16
|
+
&& value.width >= 420 && value.height >= 360 ? { x: value.x, y: value.y, width: value.width, height: value.height } : null;
|
|
13
17
|
function pane(route, search = "", hash = "", prior) {
|
|
14
18
|
search = cleanSearch(route, search); hash = cleanHash(hash);
|
|
15
19
|
if (prior && prior.route.panel === route.panel && prior.route.instance === route.instance && prior.search === search && prior.hash === hash) return prior;
|
|
@@ -17,23 +21,33 @@ function pane(route, search = "", hash = "", prior) {
|
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
/** An explicit compare link is the only URL that restores two panes. An ordinary deep link stays single. */
|
|
20
|
-
export function readWorkspace(url, previous = null) {
|
|
24
|
+
export function readWorkspace(url, previous = null, allowFloat = false) {
|
|
21
25
|
const route = parseRoute(url.pathname), q = url.searchParams;
|
|
22
26
|
if (!agentRoute(route) || !q.has("compare") || keys.some(key => q.getAll(key).length > 1)) return null;
|
|
23
27
|
const second = q.get("compare"), aView = q.get("paneA") || route.panel, bView = q.get("paneB") || "chat";
|
|
24
28
|
if (!isSafeInstanceName(second) || second === route.instance || !PANE_VIEWS.includes(aView) || !PANE_VIEWS.includes(bView)) return null;
|
|
25
|
-
if (q.has("layout") && !
|
|
29
|
+
if (q.has("layout") && !layouts.includes(q.get("layout"))) return null;
|
|
30
|
+
if (q.get("layout") === "float" && !allowFloat) return null; // retained adapters/hosts have no floating geometry
|
|
26
31
|
if (q.has("focus") && !["a", "b"].includes(q.get("focus"))) return null;
|
|
32
|
+
if (q.has("floatPane") && !["a", "b"].includes(q.get("floatPane"))) return null;
|
|
33
|
+
const boxKeys = ["floatX", "floatY", "floatW", "floatH"];
|
|
34
|
+
const rect = boxKeys.some(key => q.has(key)) ? cleanRect(Object.fromEntries(["x", "y", "width", "height"].map((key, i) => [key, q.has(boxKeys[i]) ? Number(q.get(boxKeys[i])) : NaN]))) : null;
|
|
35
|
+
if (boxKeys.some(key => q.has(key)) && !rect) return null;
|
|
27
36
|
const a = { panel: aView, instance: route.instance }, b = { panel: bView, instance: second };
|
|
28
37
|
return { a: pane(a, q.has("catA") ? `?cat=${q.get("catA")}` : url.search, q.get("messageA") ? `#m=${q.get("messageA")}` : url.hash, previous?.a),
|
|
29
38
|
b: pane(b, q.has("catB") ? `?cat=${q.get("catB")}` : "", q.get("messageB") ? `#m=${q.get("messageB")}` : "", previous?.b),
|
|
30
39
|
focus: q.get("focus") || "b", layout: q.get("layout") || "right", ratio: q.has("ratio") ? boundedRatio(q.get("ratio")) : .5,
|
|
31
|
-
flipped: q.get("swap") === "1" };
|
|
40
|
+
flipped: q.get("swap") === "1", ...(q.get("layout") === "float" ? { floating: q.get("floatPane") || "b", rect } : {}) };
|
|
32
41
|
}
|
|
33
42
|
export function workspacePath(w) {
|
|
34
43
|
const q = new URLSearchParams({ compare: w.b.route.instance, paneB: w.b.route.panel, layout: w.layout, focus: w.focus });
|
|
35
44
|
if (w.ratio !== .5) q.set("ratio", String(w.ratio));
|
|
36
45
|
if (w.flipped) q.set("swap", "1");
|
|
46
|
+
if (w.layout === "float") {
|
|
47
|
+
q.set("floatPane", w.floating === "a" ? "a" : "b");
|
|
48
|
+
const rect = cleanRect(w.rect);
|
|
49
|
+
if (rect) for (const [key, value] of Object.entries(rect)) q.set({ x: "floatX", y: "floatY", width: "floatW", height: "floatH" }[key], String(value));
|
|
50
|
+
}
|
|
37
51
|
for (const id of ["a", "b"]) {
|
|
38
52
|
const suffix = id.toUpperCase(), p = w[id], cat = category(p.route, p.search);
|
|
39
53
|
if (cat) q.set(`cat${suffix}`, cat);
|
|
@@ -60,17 +74,33 @@ export function navigatePane(w, id, url) {
|
|
|
60
74
|
return { ...w, [id]: pane(route, url.search, url.hash, w[id]), focus: id };
|
|
61
75
|
}
|
|
62
76
|
export function twoPaneFits(viewport, width, height, layout) {
|
|
63
|
-
return viewport >= 1200 && width >= 760 && (layout !== "stack" || height >= 648);
|
|
77
|
+
return viewport >= 1200 && width >= 760 && (layout !== "stack" || height >= 648) && (layout !== "float" || height >= 368);
|
|
64
78
|
}
|
|
65
79
|
/** This schema intentionally cannot carry credentials, request bodies, drafts, anchors or arbitrary query strings. */
|
|
66
80
|
export function saveWorkspace(w) {
|
|
67
81
|
const saved = id => ({ instance: w[id].route.instance, panel: w[id].route.panel, category: category(w[id].route, w[id].search) });
|
|
68
|
-
return { v: 1, a: saved("a"), b: saved("b"), focus: w.focus, layout: w.layout, ratio: w.ratio, flipped: w.flipped
|
|
82
|
+
return { v: 1, a: saved("a"), b: saved("b"), focus: w.focus, layout: w.layout, ratio: w.ratio, flipped: w.flipped,
|
|
83
|
+
...(w.layout === "float" ? { floating: w.floating === "a" ? "a" : "b", rect: cleanRect(w.rect) } : {}) };
|
|
69
84
|
}
|
|
70
85
|
export function restoreWorkspace(saved) {
|
|
71
86
|
if (!saved || saved.v !== 1 || !agentRoute(saved.a) || !agentRoute(saved.b) || saved.a.instance === saved.b.instance
|
|
72
|
-
|| !["a", "b"].includes(saved.focus) || !
|
|
87
|
+
|| !["a", "b"].includes(saved.focus) || !layouts.includes(saved.layout)) return null;
|
|
73
88
|
const from = p => pane(p, categories.has(p.category) ? `?cat=${p.category}` : "");
|
|
74
89
|
return { a: from(saved.a), b: from(saved.b), focus: saved.focus, layout: saved.layout,
|
|
75
|
-
ratio: boundedRatio(saved.ratio), flipped: saved.flipped === true
|
|
90
|
+
ratio: boundedRatio(saved.ratio), flipped: saved.flipped === true,
|
|
91
|
+
...(saved.layout === "float" ? { floating: saved.floating === "a" ? "a" : "b", rect: cleanRect(saved.rect) } : {}) };
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** A drop changes topology through the same router/guards; never duplicates an existing agent or changes its pane lease. */
|
|
95
|
+
export function dockWorkspace(w, target, zone, name) {
|
|
96
|
+
if (!w || !["a", "b"].includes(target) || !["left", "right", "top", "bottom", "center"].includes(zone) || !isSafeInstanceName(name)) return w;
|
|
97
|
+
const source = ["a", "b"].find(id => w[id].route.instance === name);
|
|
98
|
+
if (zone === "center" && source) return source === target ? w : { ...w, focus: source,
|
|
99
|
+
...(w.layout === "float" ? { floating: w.floating === "a" ? "b" : "a" } : { flipped: !w.flipped }) };
|
|
100
|
+
const id = source || target;
|
|
101
|
+
const next = source ? w : { ...w, [id]: pane({ panel: "chat", instance: name }, "", "", w[id]) };
|
|
102
|
+
if (zone === "center") return { ...next, focus: id };
|
|
103
|
+
const { floating, rect, ...docked } = next;
|
|
104
|
+
return { ...docked, focus: id, layout: ["left", "right"].includes(zone) ? "right" : "stack", ratio: .5,
|
|
105
|
+
flipped: ["left", "top"].includes(zone) ? id === "b" : id === "a" };
|
|
76
106
|
}
|
|
@@ -28,6 +28,14 @@
|
|
|
28
28
|
.hub-steps > li.done::before { content: "✓"; background: var(--ok-bg, var(--surface)); color: var(--ok); }
|
|
29
29
|
.hub-steps > li.now::before { background: var(--text); color: var(--bg); }
|
|
30
30
|
.hub-step-body > span { display: flex; flex-direction: column; gap: 2px; }
|
|
31
|
+
/* Hub UX U2 (M-2932): 「讓同仁加入」 — the done mark beside its step's title; each group's row (its Fleet limit inline); the search hits. */
|
|
32
|
+
.hub-join-steps .hub-step-body > span > b .tag { margin-inline-start: var(--s-2); vertical-align: middle; }
|
|
33
|
+
.hub-join-step2, .hub-join-groups, .hub-group-search, .hub-group-hits { width: 100%; }
|
|
34
|
+
.hub-join-groups, .hub-group-hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
|
|
35
|
+
.hub-join-groups > .s-row, .hub-group-hits > .s-row { flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
|
|
36
|
+
.hub-join-groups .hub-row-text, .hub-group-hits .hub-row-text { flex: 1 1 12em; min-width: 0; }
|
|
37
|
+
.hub-join-fleets { flex-direction: row; align-items: center; gap: var(--s-2); margin: 0; }
|
|
38
|
+
.hub-join-fleets input { width: 4.5em; }
|
|
31
39
|
.hub-step-form { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; width: 100%; }
|
|
32
40
|
.hub-step-form .field { margin: 0; flex: 1 1 14em; min-width: 14em; } /* a phone: the button wraps under the field, never squeezing it */
|
|
33
41
|
.hub-steps .hub-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; margin: 0; padding: 0; }
|
|
@@ -67,8 +67,8 @@ export function contrast(a, b) {
|
|
|
67
67
|
* The shade of `hex` name text uses: itself if readable, else the nearest step toward black (light) or white (dark).
|
|
68
68
|
* `page` (#2196): an agent's colours on the page now — names must read on its background and sidebar instead.
|
|
69
69
|
*/
|
|
70
|
-
export function readableShade(hex, mode, page = null) {
|
|
71
|
-
const backgrounds = page ? [page.bg, page.sidebar] : BG[mode], text = page ? page.text : TEXT[mode];
|
|
70
|
+
export function readableShade(hex, mode, page = null, extra = []) {
|
|
71
|
+
const backgrounds = [...(page ? [page.bg, page.sidebar] : BG[mode]), ...extra], text = page ? page.text : TEXT[mode];
|
|
72
72
|
if (!HEX.test(hex)) return text;
|
|
73
73
|
const toward = mode === "light" ? 0 : 255;
|
|
74
74
|
const ch = [1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16));
|
|
@@ -137,9 +137,15 @@ export function identityOf(it, opts = {}) {
|
|
|
137
137
|
const c = resolveColor(it && it.color, showThemes);
|
|
138
138
|
const p = resolvePlaces(it && it.color_show, showThemes, opts.hostDefault ?? defaultPlaces());
|
|
139
139
|
const light = colorValue(c.color, "light"), dark = colorValue(c.color, "dark");
|
|
140
|
+
const page = pageNow("light");
|
|
141
|
+
// Sidebar text also sits on selected/hovered rows and the strongest fresh-reply tint. Keep the existing dark
|
|
142
|
+
// shades and non-sidebar consumers unchanged. Mixing toward black changes brightness without changing hue.
|
|
143
|
+
const mix = (a, b, amount) => `#${[1, 3, 5].map(i => Math.round(parseInt(a.slice(i, i + 2), 16) * (1 - amount) + parseInt(b.slice(i, i + 2), 16) * amount).toString(16).padStart(2, "0")).join("")}`;
|
|
144
|
+
const rowBackgrounds = opts.sidebar ? [page ? mix(page.surface, page.text, .08) : "#ececec",
|
|
145
|
+
mix(page?.sidebar || "#f9f9f9", page?.accent || "#0a62c2", .22)] : [];
|
|
140
146
|
return {
|
|
141
147
|
color: c.color, source: c.source, show: p.show, showSource: p.source, off: opts.off ?? colorsOff(),
|
|
142
|
-
light, dark, nameLight: readableShade(light, "light",
|
|
148
|
+
light, dark, nameLight: readableShade(light, "light", page, rowBackgrounds), nameDark: readableShade(dark, "dark", pageNow("dark")),
|
|
143
149
|
};
|
|
144
150
|
}
|
|
145
151
|
/** The row's classes for its identity colour ("" when colours are off or shown nowhere). */
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* #3727 (M-2973): the image viewer's annotation editor (image-annotate.js), inside the viewer's dark dialog. Linked by its
|
|
2
|
+
module (an older app.css lacks it). Classes only (#1300). */
|
|
3
|
+
.lb .an { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--media-ink); }
|
|
4
|
+
.lb .an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--media-bar); }
|
|
5
|
+
.lb .an-name { flex: 1 1 8em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
|
|
6
|
+
.lb .an-tools, .lb .an-colours, .lb .an-history { display: inline-flex; align-items: center; gap: 4px; }
|
|
7
|
+
.lb .an .btn { color: var(--media-ink); background: var(--media-btn); border-color: var(--media-line); min-width: 36px; min-height: 36px; justify-content: center; }
|
|
8
|
+
.lb .an .btn:disabled { opacity: 0.45; }
|
|
9
|
+
.lb .an .btn:not(.btn-primary):hover, .lb .an .btn:not(.btn-primary):focus-visible { color: var(--media-ink); background: var(--media-btn-on); }
|
|
10
|
+
.lb .an .an-tool.on { background: var(--media-btn-on); border-color: var(--media-ink); }
|
|
11
|
+
.lb .an .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
|
|
12
|
+
.lb .an-glyph { font-size: 1.1em; line-height: 1; }
|
|
13
|
+
/* A swatch: a button (36 px; 44 px on touch) holding its colour disc. */
|
|
14
|
+
.lb .an-colour { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%;
|
|
15
|
+
background: transparent; cursor: pointer; }
|
|
16
|
+
.lb .an-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--media-line); box-sizing: border-box; }
|
|
17
|
+
.lb .an-colour.on .an-dot { border-color: var(--media-ink); outline: 2px solid var(--media-ink); outline-offset: 2px; }
|
|
18
|
+
.lb .an-colour:focus-visible { outline: 2px solid var(--media-ink); outline-offset: 1px; }
|
|
19
|
+
.lb .an-colour-red { background: var(--mark-red); }
|
|
20
|
+
.lb .an-colour-yellow { background: var(--mark-yellow); }
|
|
21
|
+
.lb .an-colour-blue { background: var(--mark-blue); }
|
|
22
|
+
.lb .an-colour-white { background: var(--mark-white); }
|
|
23
|
+
.lb .an-close { margin-left: auto; }
|
|
24
|
+
.lb .an-text { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--media-panel); }
|
|
25
|
+
.lb .an-text-label { flex: 1; display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); }
|
|
26
|
+
.lb .an-text input { flex: 1; min-width: 0; color: var(--media-ink); background: var(--media-btn); border: 1px solid var(--media-line); border-radius: 6px; padding: 6px 8px; font: inherit; }
|
|
27
|
+
.lb .an-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--s-3); box-sizing: border-box; overflow: hidden; }
|
|
28
|
+
/* The canvas keeps its own pixel size and is shown fitted; drawing maps the pointer back to canvas pixels. */
|
|
29
|
+
.lb .an-canvas { max-width: 100%; max-height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
|
|
30
|
+
.lb .an-cursor-pen, .lb .an-cursor-box, .lb .an-cursor-arrow { cursor: crosshair; }
|
|
31
|
+
.lb .an-cursor-text { cursor: text; }
|
|
32
|
+
.lb .an-note { opacity: 0.85; }
|
|
33
|
+
.lb .an-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom, 0px)); background: var(--media-bar); }
|
|
34
|
+
@media (max-width: 480px) {
|
|
35
|
+
/* The title and ✕ on the first row; the tools wrap below. */
|
|
36
|
+
.lb .an-name { order: -2; flex: 1 1 0; }
|
|
37
|
+
.lb .an-close { order: -1; margin-left: 0; }
|
|
38
|
+
.lb .an-bar > :not(.an-name):not(.an-close) { order: 0; }
|
|
39
|
+
.lb .an-tools { flex-basis: 100%; }
|
|
40
|
+
.lb .an-actions .btn { flex: 1; }
|
|
41
|
+
}
|
|
42
|
+
@media (pointer: coarse) {
|
|
43
|
+
.lb .an .btn, .lb .an .icon-btn { min-width: 44px; min-height: 44px; }
|
|
44
|
+
.lb .an-colour { width: 44px; height: 44px; }
|
|
45
|
+
}
|