@songsid/agend 2.4.0-beta.12 → 2.4.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-endpoint.js +28 -6
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/auth-api.js +5 -0
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +9 -0
- package/dist/backend/claude-code.js +60 -4
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex.js +11 -0
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok.js +11 -0
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/types.d.ts +4 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +1 -16
- package/dist/backend-availability.js +2 -91
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-version-static.d.ts +15 -0
- package/dist/backend-version-static.js +95 -0
- package/dist/backend-version-static.js.map +1 -0
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/telegram.js +3 -1
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +18 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/tool-router.d.ts +4 -0
- package/dist/channel/tool-router.js +43 -19
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/classic-channel-manager.d.ts +3 -0
- package/dist/classic-channel-manager.js +18 -0
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/classic-cli-guard.d.ts +66 -0
- package/dist/classic-cli-guard.js +209 -0
- package/dist/classic-cli-guard.js.map +1 -0
- package/dist/cli-audited.js +7 -5
- package/dist/cli-audited.js.map +1 -1
- package/dist/config-validator.js +3 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/contact-auth-api.d.ts +16 -0
- package/dist/contact-auth-api.js +78 -0
- package/dist/contact-auth-api.js.map +1 -0
- package/dist/contact-auth-files.d.ts +6 -0
- package/dist/contact-auth-files.js +29 -0
- package/dist/contact-auth-files.js.map +1 -0
- package/dist/contact-auth-policy.d.ts +75 -0
- package/dist/contact-auth-policy.js +23 -0
- package/dist/contact-auth-policy.js.map +1 -0
- package/dist/contact-auth-service.d.ts +32 -0
- package/dist/contact-auth-service.js +99 -0
- package/dist/contact-auth-service.js.map +1 -0
- package/dist/contact-auth-store.d.ts +75 -0
- package/dist/contact-auth-store.js +295 -0
- package/dist/contact-auth-store.js.map +1 -0
- package/dist/contact-auth-types.d.ts +170 -0
- package/dist/contact-auth-types.js +7 -0
- package/dist/contact-auth-types.js.map +1 -0
- package/dist/daemon.d.ts +16 -1
- package/dist/daemon.js +127 -11
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +6 -0
- package/dist/delivery-outbox.js +19 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/dispatcher-liveness.js +2 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/fleet-manager.d.ts +45 -0
- package/dist/fleet-manager.js +450 -23
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +18 -0
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +12 -0
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +28 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +6 -0
- package/dist/hub/audit/index.d.ts +3 -1
- package/dist/hub/audit/index.js +35 -3
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/catalog.d.ts +8 -0
- package/dist/hub/catalog.js +39 -4
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/compose/server.d.ts +2 -0
- package/dist/hub/compose/server.js +11 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/directory.js +5 -2
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +5 -1
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/hub/http/compose.d.ts +2 -0
- package/dist/hub/http/compose.js +123 -6
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +2 -0
- package/dist/hub/http/schema.js +6 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/invitations.js +15 -7
- package/dist/hub/invitations.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +3 -0
- package/dist/hub/roles/cutover-inventory.js +20 -4
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover-marker.d.ts +18 -2
- package/dist/hub/roles/cutover-marker.js +6 -2
- package/dist/hub/roles/cutover-marker.js.map +1 -1
- package/dist/hub/room-agent-discovery-model.d.ts +29 -0
- package/dist/hub/room-agent-discovery-model.js +33 -0
- package/dist/hub/room-agent-discovery-model.js.map +1 -0
- package/dist/hub/room-agent-discovery.d.ts +14 -0
- package/dist/hub/room-agent-discovery.js +65 -0
- package/dist/hub/room-agent-discovery.js.map +1 -0
- package/dist/hub/room-agent-requests.d.ts +71 -0
- package/dist/hub/room-agent-requests.js +377 -0
- package/dist/hub/room-agent-requests.js.map +1 -0
- package/dist/hub/rooms/directory.d.ts +13 -0
- package/dist/hub/rooms/directory.js +12 -3
- package/dist/hub/rooms/directory.js.map +1 -1
- package/dist/hub/rooms/schema.d.ts +5 -0
- package/dist/hub/rooms/schema.js +9 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +43 -19
- package/dist/hub/rooms/service.js +67 -11
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +1 -1
- package/dist/instance-lifecycle.d.ts +6 -1
- package/dist/instance-lifecycle.js +11 -4
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +34 -4
- package/dist/locale.js.map +1 -1
- package/dist/needs-you-hub.d.ts +1 -0
- package/dist/needs-you-hub.js +6 -0
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +14 -2
- package/dist/needs-you.js +4 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +9 -0
- package/dist/outbound-handlers.js +48 -10
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/public-web-gateway.d.ts +20 -0
- package/dist/public-web-gateway.js +61 -4
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/runtime-cli-install.js +7 -7
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/topic-commands.d.ts +1 -1
- package/dist/topic-commands.js +4 -6
- package/dist/topic-commands.js.map +1 -1
- package/dist/ui/accounts-keepalive.js +2 -1
- package/dist/ui/accounts-view.js +2 -1
- package/dist/ui/agent-details-settings.js +7 -5
- package/dist/ui/contact-auth-client.js +48 -0
- package/dist/ui/contact-auth-strings.js +164 -0
- package/dist/ui/contact-authorizations.js +125 -0
- package/dist/ui/contact-needs.js +84 -0
- package/dist/ui/contact-permissions.js +193 -0
- package/dist/ui/contact-ticket-badge.js +54 -0
- package/dist/ui/fleet-canvas.js +3 -1
- package/dist/ui/fleet-office-skin.js +4 -3
- package/dist/ui/fleet-route.js +44 -6
- package/dist/ui/fleet-task-view.js +2 -1
- package/dist/ui/host-install.js +5 -2
- package/dist/ui/hub-ai-apps.js +2 -1
- package/dist/ui/hub-chat-strings.js +2 -1
- package/dist/ui/hub-client.js +30 -7
- package/dist/ui/hub-grant-picker.js +2 -1
- package/dist/ui/hub-group-strings.js +2 -1
- package/dist/ui/hub-invitations.js +5 -1
- package/dist/ui/hub-my-agents.js +2 -1
- package/dist/ui/hub-owner-strings.js +2 -1
- package/dist/ui/hub-personal-agent.js +2 -1
- package/dist/ui/hub-quota.js +2 -1
- package/dist/ui/hub-roles-strings.js +2 -1
- package/dist/ui/hub-room-new-strings.js +2 -1
- package/dist/ui/hub-room-new.js +10 -3
- package/dist/ui/hub-room-owner-requests-strings.js +114 -0
- package/dist/ui/hub-room-owner-requests.js +264 -0
- package/dist/ui/hub-room-pins.js +43 -0
- package/dist/ui/hub-room-settings.js +11 -2
- package/dist/ui/hub-room-source.js +2 -1
- package/dist/ui/hub-room-strings.js +3 -0
- package/dist/ui/hub-room-thread.js +47 -5
- package/dist/ui/hub-strings.js +2 -1
- package/dist/ui/hub-teams.js +2 -1
- package/dist/ui/model-picker.js +3 -2
- package/dist/ui/panel-chat.js +8 -2
- package/dist/ui/panel-details.js +2 -0
- package/dist/ui/panel-fleet.js +3 -2
- package/dist/ui/panel-hub.js +14 -4
- package/dist/ui/panel-needs.js +8 -3
- package/dist/ui/panel-runtimes.js +2 -1
- package/dist/ui/panel-settings.js +3 -0
- package/dist/ui/reply-file-preview.js +2 -1
- package/dist/ui/settings-access-overview.js +2 -1
- package/dist/ui/settings-connector.js +2 -1
- package/dist/ui/shared/agent-sheet.js +2 -1
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-route.js +1 -1
- package/dist/ui/shared/app-shell.js +35 -9
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app.css +42 -0
- package/dist/ui/shared/asset-url.d.ts +2 -0
- package/dist/ui/shared/asset-url.js +20 -0
- package/dist/ui/shared/chat-quote.js +26 -2
- package/dist/ui/shared/chat-table-select.js +175 -0
- package/dist/ui/shared/chat-thread.js +6 -2
- package/dist/ui/shared/hub-rooms-u2.css +22 -0
- package/dist/ui/shared/image-annotate.js +2 -1
- package/dist/ui/shared/text-undo.js +17 -3
- package/dist/ui/shared/ui-states.js +3 -2
- package/dist/ui/shared/view-history.js +2 -1
- package/dist/ui/subagent-row.js +3 -2
- package/dist/ui/usage-pool.js +2 -1
- package/dist/ui/workspace-panel.js +2 -1
- package/dist/wake-coordinator.js +3 -2
- package/dist/wake-coordinator.js.map +1 -1
- package/dist/web-api.d.ts +9 -0
- package/dist/web-api.js +56 -4
- package/dist/web-api.js.map +1 -1
- package/dist/web-chat-history.d.ts +5 -0
- package/dist/web-chat-history.js +26 -0
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-host-install.d.ts +1 -1
- package/dist/web-reply-files.d.ts +1 -0
- package/dist/web-reply-files.js +2 -0
- package/dist/web-reply-files.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -1
- package/dist/web-shell-routes.js +2 -1
- package/dist/web-shell-routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ import { roomSource, mountSourceAuthor } from "./hub-room-source.js";
|
|
|
36
36
|
import { countsLine } from "./hub-room-list.js";
|
|
37
37
|
import { DropOverlay, MAX_FILES, PendingFiles, hf, hubFileAttachment, pageCarriesFiles, putBackText, roomTakesFiles, uploadChosen, useFileDrop } from "./hub-attachments.js";
|
|
38
38
|
import { LightboxHost, openLightbox } from "/assets/image-lightbox.js";
|
|
39
|
+
import { ROOM_PINS_MAX, RoomPinsButton, RoomPinsDialog } from "./hub-room-pins.js";
|
|
39
40
|
// M-3125 PR3: the one quote target an annotated room picture has (here, so a page with an older dictionary has the words).
|
|
40
41
|
register("hubRoomAnnotate", { en: { quote: "Quote in this room" }, "zh-TW": { quote: "引用到這個房間" } });
|
|
41
42
|
|
|
@@ -220,9 +221,10 @@ export function toThreadMessages(messages, { meId, ids, direct = false, expanded
|
|
|
220
221
|
* `send(text, { mentions, replyTo })` → the client's answer (a refusal's code is the caller's to word; a soft warning is
|
|
221
222
|
* stored and drawn), `older()`, `findQuoted(key)`, `markRead()`, `refresh()`, `stop()`. M-3127 B: `clickButton` / `vote` / `busy` / `mine` are the direct chat's button actions (hub-button-actions.js), on group rooms only.
|
|
222
223
|
*/
|
|
223
|
-
export function createRoomStore(roomId, { client, meId = "" } = {}) {
|
|
224
|
+
export function createRoomStore(roomId, { client, meId = "", pinsOn = false } = {}) {
|
|
224
225
|
const subs = new Set(), ids = new Map(), expanded = new Set();
|
|
225
|
-
|
|
226
|
+
// M-3340: `pins` — my own pins in this group room (null: this Hub offers none, or not read yet); nobody else's, ever.
|
|
227
|
+
const st = { live: true, detail: null, messages: [], loaded: false, error: null, removed: false, more: false, view: [], pins: null };
|
|
226
228
|
let loadingOlder = false;
|
|
227
229
|
// The room's committed order (Ridge: `sequence`, from the stored row): a waiting answer replaced in place, or an event that
|
|
228
230
|
// arrives out of order, is drawn where the room has it. Rows without it (a direct chat, an older Hub) keep arrival order.
|
|
@@ -245,6 +247,14 @@ export function createRoomStore(roomId, { client, meId = "" } = {}) {
|
|
|
245
247
|
if (page.ok) { for (const m of page.messages || []) upsert(m); st.more = page.more === true; st.loaded = true; if (d.ok) st.error = null; }
|
|
246
248
|
else st.error = page.code || "failed";
|
|
247
249
|
changed();
|
|
250
|
+
void readPins();
|
|
251
|
+
}
|
|
252
|
+
/** M-3340: my pins, read again (opening the room; my other tab or device changed them: pins.changed). A group room only. */
|
|
253
|
+
async function readPins() {
|
|
254
|
+
if (!pinsOn || typeof client.roomPins !== "function" || st.detail?.room?.kind !== "group") return;
|
|
255
|
+
const r = await client.roomPins(roomId);
|
|
256
|
+
if (!st.live) return;
|
|
257
|
+
if (r?.ok && Array.isArray(r.pins)) { st.pins = r.pins.filter((p) => p && typeof p.messageId === "string"); changed(); }
|
|
248
258
|
}
|
|
249
259
|
const on = (fn) => (data) => { if (st.live && data && data.roomId === roomId) { fn(data); changed(); } };
|
|
250
260
|
// M-3127 B: an answer's buttons and polls — the direct chat's own actions (one key per intent, my vote kept in this tab),
|
|
@@ -260,6 +270,7 @@ export function createRoomStore(roomId, { client, meId = "" } = {}) {
|
|
|
260
270
|
"presence.changed": on((d) => { const m = st.detail?.members?.find((x) => x.id === d.memberId); if (m) { m.presence = d.presence;
|
|
261
271
|
for (const k of ["presenceNote", "presenceReason"]) { if (d[k]) m[k] = d[k]; else delete m[k]; } } }),
|
|
262
272
|
"member.changed": on(() => { void readDetail().then(changed); }),
|
|
273
|
+
"pins.changed": on(() => { void readPins(); }),
|
|
263
274
|
"room.changed": on((d) => { if (d.removed) st.removed = true; else if (d.room && st.detail) st.detail = { ...st.detail, room: { ...st.detail.room, ...d.room } }; }),
|
|
264
275
|
}) : () => {};
|
|
265
276
|
/** One page older than what is held (the server's `before=`). False when there was nothing to fetch. */
|
|
@@ -349,6 +360,17 @@ export function createRoomStore(roomId, { client, meId = "" } = {}) {
|
|
|
349
360
|
if (st.live && r?.ok && m && Array.isArray(r.reactions)) { if (r.reactions.length) m.reactions = r.reactions; else delete m.reactions; changed(); }
|
|
350
361
|
return r;
|
|
351
362
|
},
|
|
363
|
+
/** M-3340: my pins (newest first: { messageId, pinnedAt, message }); offered when this Hub keeps them for me. */
|
|
364
|
+
pins: () => st.pins || [],
|
|
365
|
+
pinsOffered: () => Array.isArray(st.pins),
|
|
366
|
+
isPinned: (messageId) => (st.pins || []).some((p) => p.messageId === messageId),
|
|
367
|
+
/** Pin (on) or unpin a message for me only; the Hub answers with my pins → the client's answer (pins-full past 50). */
|
|
368
|
+
async setPin(messageId, on) {
|
|
369
|
+
if (!Array.isArray(st.pins) || typeof client.pinRoomMessage !== "function") return { ok: false, code: "unavailable" };
|
|
370
|
+
const r = await client.pinRoomMessage(roomId, messageId, on);
|
|
371
|
+
if (st.live && r?.ok && Array.isArray(r.pins)) { st.pins = r.pins.filter((p) => p && typeof p.messageId === "string"); changed(); }
|
|
372
|
+
return r;
|
|
373
|
+
},
|
|
352
374
|
markRead() { const last = st.messages.at(-1); return last ? client.markRoomRead(roomId, last.id) : Promise.resolve({ ok: true }); },
|
|
353
375
|
refresh, clickButton: actions.clickButton, vote: actions.vote, busy: actions.busy, mine: actions.mine,
|
|
354
376
|
stop() { st.live = false; subs.clear(); unsubscribe(); actions.stop(); },
|
|
@@ -378,8 +400,9 @@ function useMembersPanel() {
|
|
|
378
400
|
* Fleet chat's thread (panel-hub.js's HubThread, given as `Thread`: the thread wiring is one), the room's composer, and
|
|
379
401
|
* the members panel on the right. `client`: the Hub client; `me`: { id } from the session.
|
|
380
402
|
*/
|
|
381
|
-
export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "", rooms = [], openRoom = () => {}, goList = () => {}, onLeft = () => {}, onMe = () => {} }) {
|
|
382
|
-
const store = useMemo(() => createRoomStore(roomId, { client, meId }), [roomId]);
|
|
403
|
+
export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "", rooms = [], openRoom = () => {}, goList = () => {}, onLeft = () => {}, onMe = () => {}, pinsOn = false }) {
|
|
404
|
+
const store = useMemo(() => createRoomStore(roomId, { client, meId, pinsOn }), [roomId]);
|
|
405
|
+
const [pinsOpen, setPinsOpen] = useState(false);
|
|
383
406
|
useEffect(() => () => store.stop(), [store]);
|
|
384
407
|
const [, tick] = useState(0);
|
|
385
408
|
// The first read may land before this subscribes: read once more on subscribing.
|
|
@@ -506,13 +529,31 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
506
529
|
quote: { field: () => input.current, can: () => !store.closed() },
|
|
507
530
|
// M-3311 (3): the Fleet chat's Copy link — a room message's address (opening it shows that message).
|
|
508
531
|
linkOf: roomLinkOf(roomId),
|
|
532
|
+
// M-3340: the Fleet chat's Pin / Unpin — mine only (read when the menu opens: the pins arrive after the first render).
|
|
533
|
+
pin: (x) => { void togglePin(x.roomMessage); },
|
|
534
|
+
pinned: (x) => store.isPinned(x.roomMessage),
|
|
535
|
+
canPin: (x) => store.pinsOffered() && !!x.roomMessage && x.role !== "status",
|
|
509
536
|
};
|
|
537
|
+
// M-3340: pin or unpin a message for me; said in a toast either way (as the Fleet chat says it).
|
|
538
|
+
async function togglePin(messageId) {
|
|
539
|
+
const on = !store.isPinned(messageId), r = await store.setPin(messageId, on);
|
|
540
|
+
if (r?.ok) toast(t(on ? "chat.pinned" : "chat.unpinned"));
|
|
541
|
+
else toast(r?.code === "pins-full" ? hroom("pinsFull", String(ROOM_PINS_MAX)) : t("chat.pinFailed"), false);
|
|
542
|
+
}
|
|
543
|
+
const pinCount = store.pinsOffered() ? store.pins().length : 0;
|
|
544
|
+
// M-3340: a pin's message in the room — loaded back to it, scrolled to and flashed (the search hit's way); gone: said.
|
|
545
|
+
async function showPin(pin) {
|
|
546
|
+
setPinsOpen(false);
|
|
547
|
+
const key = await store.find(pin.messageId);
|
|
548
|
+
if (key) setTimeout(() => threadRef.current?.reveal(key), 60); else toast(hroom("jumpMissing"), false);
|
|
549
|
+
}
|
|
510
550
|
// M-3311 (3): the header's menu — a group room's Room settings and Leave, and on a desk the Fleet chat's 「全寬」 for any room.
|
|
511
551
|
const [fullWidth, setFullWidth] = useState(hubChatWide);
|
|
512
552
|
const textSize = useStore(textSizeStore), notify = useStore(notifyStore), narrow = useNarrowScreen();
|
|
513
553
|
const menuItems = [
|
|
514
554
|
group && detail?.me?.role === "manager" ? { key: "settings", label: hroom("roomSettings"), icon: "settings", onSelect: openSettings } : null,
|
|
515
555
|
group && detail?.me ? { key: "leave", label: hroom("leaveRoom"), icon: "close", onSelect: () => { void leave(); } } : null,
|
|
556
|
+
pinCount ? { key: "pins", label: `${t("chat.pinsTitle")} · ${pinCount}`, icon: "pin", onSelect: () => setPinsOpen(true) } : null,
|
|
516
557
|
!narrow && detail?.me ? { key: "fullWidth", checkbox: true, checked: fullWidth, label: t("chat.fullWidth"), onSelect: () => { setHubChatWide(!fullWidth); setFullWidth(!fullWidth); } } : null,
|
|
517
558
|
// M-3311 (4): a phone's header is one row (back, the room, members, ⋯) as the Fleet chat's — its text size and Notify
|
|
518
559
|
// move into ⋯ there (hub-chat.css hides the two buttons at the same width).
|
|
@@ -533,6 +574,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
533
574
|
onSettings=${() => { setSheet(false); openSettings(); }} />` : null;
|
|
534
575
|
return html`<div class=${`hub-chat hub-room-page${showRail ? " with-rail" : ""}`} data-room=${roomId} data-width=${fullWidth ? "full" : undefined}>
|
|
535
576
|
<${LightboxHost} />
|
|
577
|
+
${pinsOpen ? html`<${RoomPinsDialog} pins=${store.pins()} onClose=${() => setPinsOpen(false)} onJump=${(p) => void showPin(p)} onUnpin=${(p) => void togglePin(p.messageId)} />` : null}
|
|
536
578
|
<section class="hub-chat-main" ref=${mainRef}>
|
|
537
579
|
${attach ? html`<${DropOverlay} />` : null}
|
|
538
580
|
<header class=${`hub-chat-head${room.agent?.answerOnly?" hub-answer-only-head":""}`} data-trust="panel-content">
|
|
@@ -541,7 +583,7 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
541
583
|
onClick=${(e) => { if (e.metaKey || e.ctrlKey) return; e.preventDefault(); goList(); }}><${Icon} name="back" /></a>
|
|
542
584
|
<span class=${`av${group ? " av-square" : ""}`} aria-hidden="true"><span class="av-text">${firstCharacter(title || "?") || "?"}</span></span>
|
|
543
585
|
<span class="hub-chat-title"><strong>${title}</strong>${group&&typeof room.purpose==="string"?html`<${RoomPurposeHeader} purpose=${room.purpose} onEdit=${detail?.me?.role==="manager"&&client.roomPurposeV1===true?openSettings:undefined} />`:null}<span class=${`s${room.agent?.answerOnly?" hub-answer-only-note":""}`}>${line2}</span>${room.assistant||room.agent?.intro?html`<span class="s hub-agent-intro-line">${room.assistant?hi("assistant"):room.agent.intro}</span>`:null}</span>
|
|
544
|
-
<span class="hub-head-tools"><${TextSizeButton} /><${HubNotifyToggle} /></span>
|
|
586
|
+
<span class="hub-head-tools"><${RoomPinsButton} count=${pinCount} onOpen=${() => setPinsOpen(true)} /><${TextSizeButton} /><${HubNotifyToggle} /></span>
|
|
545
587
|
${group && Panel ? html`<button type="button" class="icon-btn hub-room-rail-toggle" aria-pressed=${(wide ? rail : sheet) ? "true" : "false"} title=${hroom("members")} aria-label=${hroom("members")}
|
|
546
588
|
onClick=${() => (wide ? setRail(!rail) : setSheet(true))}><${Icon} name="team" size=${18} /></button>` : null}
|
|
547
589
|
${menuItems.length ? html`<${Menu} cls="hub-room-menu" label=${hroom("menu")} fit=${true} ownerKey=${roomId} items=${menuItems} />` : null}
|
package/dist/ui/hub-strings.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// A lazy module of its own: loaded only with a Hub page or card, never while the Hub is off. It imports only names every
|
|
3
3
|
// shell has had since #1408 (register / t), so a tab opened before an upgrade loads it as fresh as the rest.
|
|
4
4
|
import { register, t } from "/assets/app-i18n.js";
|
|
5
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
5
6
|
|
|
6
7
|
register("hub", {
|
|
7
8
|
en: {
|
|
@@ -172,7 +173,7 @@ export function linkHubCss(doc = typeof document !== "undefined" ? document : nu
|
|
|
172
173
|
try {
|
|
173
174
|
if (!doc || !doc.head || doc.querySelector('link[data-hub-css="1"]')) return;
|
|
174
175
|
const link = doc.createElement("link");
|
|
175
|
-
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/hub.css"); link.setAttribute("data-hub-css", "1");
|
|
176
|
+
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/hub.css")); link.setAttribute("data-hub-css", "1");
|
|
176
177
|
doc.head.appendChild(link);
|
|
177
178
|
} catch { /* the pages still work without it */ }
|
|
178
179
|
}
|
package/dist/ui/hub-teams.js
CHANGED
|
@@ -3,6 +3,7 @@ import { html, useEffect, useRef, useState } from "/assets/app-html.js";
|
|
|
3
3
|
import { Icon } from "/assets/ui-icons.js";
|
|
4
4
|
import { navigate } from "/assets/app-nav.js";
|
|
5
5
|
import { ht } from "./hub-teams-strings.js";
|
|
6
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
6
7
|
|
|
7
8
|
const changes = new Set();
|
|
8
9
|
const changed = () => { for (const fn of changes) fn(); };
|
|
@@ -18,7 +19,7 @@ export function linkHubTeamsCss(doc = typeof document === "undefined" ? null : d
|
|
|
18
19
|
if (!doc?.head) return Promise.resolve(false);
|
|
19
20
|
if (cssLoads.has(doc)) return cssLoads.get(doc);
|
|
20
21
|
const promise = new Promise(resolve => {
|
|
21
|
-
const link = doc.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/hub-teams.css");
|
|
22
|
+
const link = doc.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/hub-teams.css"));
|
|
22
23
|
link.setAttribute("data-hub-teams-css", "1");
|
|
23
24
|
link.addEventListener("load", () => resolve(true), { once: true });
|
|
24
25
|
link.addEventListener("error", () => { link.remove(); cssLoads.delete(doc); resolve(false); }, { once: true });
|
package/dist/ui/model-picker.js
CHANGED
|
@@ -4,14 +4,15 @@ import { register, t } from "/assets/app-i18n.js";
|
|
|
4
4
|
import { Icon } from "/assets/ui-icons.js";
|
|
5
5
|
import { ErrorState } from "/assets/ui-states.js";
|
|
6
6
|
import * as catalogStore from "./settings-catalog.js";
|
|
7
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
7
8
|
register("modelPicker", {
|
|
8
9
|
en: { refresh: "Refresh models", refreshing: "Refreshing models…", refreshed: "Model list refreshed.", failed: "Could not refresh models. The previous list and selection are kept.", more: "More models…", backend: "Choose backend", model: "Choose model", next: "Choose a backend; next choose its model and reasoning effort.", current: "Selected", nativeFailed: "Could not refresh models on this computer. Update its Runtime if needed and check that its owner allows account access. The previous list and selection are kept.", keep: "Refreshing keeps the selected model.", selectionHint: "Refresh keeps your selection; choose a model to apply it.", accountSource: "Source: selected account’s model listing.", effort: "Choose reasoning effort", effortFor: "Choose the effort for {0}", effortAuto: "Auto" },
|
|
9
10
|
"zh-TW": { refresh: "重新整理模型", refreshing: "正在重新整理模型…", refreshed: "模型清單已更新。", failed: "無法重新整理模型。已保留原清單與選擇。", more: "更多模型…", backend: "選擇後端", model: "選擇模型", next: "選擇後端;下一步選模型與推理強度", current: "已選擇", nativeFailed: "無法在這台電腦重新整理模型。請確認 Runtime 已更新,且電腦擁有者允許存取帳號;已保留原清單與選擇。", keep: "重新整理會保留已選模型。", selectionHint: "重新整理只更新清單;選擇模型才會套用。", accountSource: "來源:已選帳號的模型清單。", effort: "選擇推理強度", effortFor: "選擇 {0} 的推理強度", effortAuto: "自動" },
|
|
10
11
|
});
|
|
11
12
|
export const mw = (key, ...args) => t(`modelPicker.${key}`, ...args);
|
|
12
13
|
export function modelPickerStyles() {
|
|
13
|
-
if (typeof document === "undefined" || !document.head || document.querySelector(
|
|
14
|
-
const link = document.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/model-picker.css"); document.head.appendChild(link);
|
|
14
|
+
if (typeof document === "undefined" || !document.head || document.querySelector(`link[href="${assetUrl("/assets/model-picker.css")}"]`)) return;
|
|
15
|
+
const link = document.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/model-picker.css")); document.head.appendChild(link);
|
|
15
16
|
}
|
|
16
17
|
const answers = new Map(); // share only in-flight passive reads; the server owns catalog freshness
|
|
17
18
|
export function forgetModelPickerCatalogs() { answers.clear(); catalogStore.forgetCatalogs?.(); }
|
package/dist/ui/panel-chat.js
CHANGED
|
@@ -60,6 +60,7 @@ import { applyTheme, clearAmbient, resolvedMode, themeFor, themeImageUrl, themeM
|
|
|
60
60
|
import { colorMenuItem } from "/assets/identity-color.js";
|
|
61
61
|
import { brokenPictures, cardFoldable, IdentityCard, useCard } from "/assets/identity-card.js";
|
|
62
62
|
import { AgentWidget, instanceBinds, widgetFor } from "/assets/agent-widget.js";
|
|
63
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
63
64
|
// #1629 r4 §1: the identity card under the chat's header — hidden by default; shown or not is this device's choice.
|
|
64
65
|
// #2217 (the user, 2026-10-19): no row of its own; its picture and bio can be folded away (the banner stays) — this
|
|
65
66
|
// device's choice too, kept the same way. The user (2026-10-20): no control on the card — one card button in the header
|
|
@@ -164,6 +165,8 @@ import { createThread, msgKey } from "/assets/chat-thread.js";
|
|
|
164
165
|
import { ComposerInput, WorkBarView, touchScreen } from "/assets/chat-composer.js";
|
|
165
166
|
import { installMessageActions } from "/assets/chat-msg-actions.js";
|
|
166
167
|
import { composerCaret, insertQuote, installQuoteSelection, showCaret } from "./chat-quote.js";
|
|
168
|
+
import { installTableSelection } from "/assets/chat-table-select.js";
|
|
169
|
+
import { contactBadgeHtml, installBadgeRefresh } from "./contact-ticket-badge.js";
|
|
167
170
|
import { createEmojiIndex } from "./chat-emojis.js";
|
|
168
171
|
import { pollPublicPreview } from "./preview-status.js";
|
|
169
172
|
import { createMentionIndex } from "./chat-mentions.js";
|
|
@@ -187,7 +190,7 @@ export function linkWorkBarCss(doc = typeof document !== "undefined" ? document
|
|
|
187
190
|
try {
|
|
188
191
|
if (!doc || !doc.head || doc.querySelector('link[data-chat-work-bar-css="1"]')) return;
|
|
189
192
|
const link = doc.createElement("link");
|
|
190
|
-
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/chat-work-bar.css"); link.setAttribute("data-chat-work-bar-css", "1");
|
|
193
|
+
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/chat-work-bar.css")); link.setAttribute("data-chat-work-bar-css", "1");
|
|
191
194
|
doc.head.appendChild(link);
|
|
192
195
|
} catch { /* Stop still works without it */ }
|
|
193
196
|
}
|
|
@@ -757,6 +760,7 @@ function threadEntry(name, doc) {
|
|
|
757
760
|
onEmpty: (v) => e.sink?.setEmpty(v && store.allHidden(name) ? "hidden" : v),
|
|
758
761
|
setPreviewOptIn, copyText, download: downloadHtml, toggleWrap,
|
|
759
762
|
clickReplyButton: (id, index) => store.clickReplyButton(name, id, index), // #1266
|
|
763
|
+
contactBadge: (x) => { installBadgeRefresh(); return contactBadgeHtml(x); }, // M-3339: 聯絡申請 #R… / 已准轉交 #R… (kept current)
|
|
760
764
|
retryOutgoing: (clientId) => store.retryOutgoing(name, clientId), // a failed send's Retry and Delete
|
|
761
765
|
deleteOutgoing: (clientId) => store.deleteOutgoing(name, clientId),
|
|
762
766
|
putBackOutgoing: (clientId) => { recordEdit(composerField(name)); store.putBackOutgoing(name, clientId); }, // undoable, as typing
|
|
@@ -877,6 +881,8 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
877
881
|
pinned: (x) => isPinned(name, msgKey(x)),
|
|
878
882
|
canPin: (x) => !guestPage() && pinOffered(name) && (x.role === "agent" || x.role === "user") && /^[0-9a-f]{1,32}-\d{1,15}$/.test(msgKey(x)),
|
|
879
883
|
});
|
|
884
|
+
// M-3326: a table's cells selected as a spreadsheet's (a desk: drag down a column or across a block; Ctrl/Cmd+C as TSV).
|
|
885
|
+
const offCells = installTableSelection(ls, { phone: () => typeof matchMedia === "function" && matchMedia("(pointer: coarse)").matches });
|
|
880
886
|
// M-2789: select a passage in a message → 「引用」 → it goes into the composer as a quote at the caret, repeatable.
|
|
881
887
|
const offQuote = installQuoteSelection(ls, {
|
|
882
888
|
field: () => bindings.input.current,
|
|
@@ -923,7 +929,7 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
923
929
|
return () => {
|
|
924
930
|
window.removeEventListener("hashchange", onHash);
|
|
925
931
|
unfollow();
|
|
926
|
-
offActions(); offQuote();
|
|
932
|
+
offActions(); offQuote(); offCells();
|
|
927
933
|
sc.removeEventListener("scroll", onScroll);
|
|
928
934
|
ls.removeEventListener("click", thread.onClick);
|
|
929
935
|
if (mountedThreads.get(name) === owner) mountedThreads.delete(name);
|
package/dist/ui/panel-details.js
CHANGED
|
@@ -33,6 +33,7 @@ import { api } from "./settings-confirm.js";
|
|
|
33
33
|
import { InstanceBoardWork } from "./fleet-task-work.js";
|
|
34
34
|
import { Icon } from "/assets/ui-icons.js";
|
|
35
35
|
import { AgentCategoryNav, AgentPageHead, AgentSettingsPanels, agentKind, categoryFromSearch, useAgentSettings } from "./agent-details-settings.js";
|
|
36
|
+
import { ContactPermissionsPanel } from "./contact-permissions.js";
|
|
36
37
|
import "./agent-page-strings.js";
|
|
37
38
|
import { pt } from "./agent-page-strings.js";
|
|
38
39
|
|
|
@@ -201,6 +202,7 @@ function DetailsView({ name, inst, navKey, exec, awaiting }) {
|
|
|
201
202
|
<div class="s-section-layout" data-agent-category=${shownCat}>
|
|
202
203
|
<div class="ap-panel" id=${pane ? `pane-${pane.id}-ap-panel-overview` : "ap-panel-overview"} hidden=${shownCat !== "overview"}>${overview}</div>
|
|
203
204
|
${opened ? html`<${AgentSettingsPanels} name=${name} kind=${kind} cat=${shownCat} sess=${sess} onDirty=${onDirty} />` : null}
|
|
205
|
+
${shownCat === "permissions" ? html`<div class="ap-panel" id=${pane ? `pane-${pane.id}-ap-panel-permissions` : "ap-panel-permissions"}><${ContactPermissionsPanel} key=${name} name=${name} /></div>` : null}
|
|
204
206
|
</div></div></div>
|
|
205
207
|
${sess.staged.size && Pending ? html`<${Pending} staged=${sess.staged} busy=${!!sess.op && ["writing", "posting", "watching"].includes(sess.op.phase)} onApply=${sess.apply} onDiscard=${sess.discard} section="agents" />` : null}
|
|
206
208
|
</div>`;
|
package/dist/ui/panel-fleet.js
CHANGED
|
@@ -20,6 +20,7 @@ import { ClaudeAccountSelect, accountCli } from "./credential-profile-select.js"
|
|
|
20
20
|
import { AccountSelect } from "./accounts-view.js"; // the same Account field as the agent dialog (a new module: never a stale named import)
|
|
21
21
|
import { capsOf } from "./cli-caps.js";
|
|
22
22
|
import { chatPath, fleetPath, FLEET_TABS, rememberFleetTab } from "/assets/app-route.js";
|
|
23
|
+
import { ContactAuthorizations } from "./contact-authorizations.js";
|
|
23
24
|
import { Dialog } from "/assets/ui-dialog.js";
|
|
24
25
|
import { Empty, ErrorState, Skeleton } from "/assets/ui-states.js";
|
|
25
26
|
import { Icon } from "/assets/ui-icons.js";
|
|
@@ -104,7 +105,7 @@ const DOCS_SITE = "https://songsid.github.io/AgEnD";
|
|
|
104
105
|
export function docsUrl(language = lang()) {
|
|
105
106
|
return `${DOCS_SITE}${language === "zh-TW" ? "/zh-tw" : ""}/docs/web-guide/`;
|
|
106
107
|
}
|
|
107
|
-
const ICONS = { tasks: "tasks", schedules: "clock", teams: "team", org: "org", cache: "chart", usage: "chart" };
|
|
108
|
+
const ICONS = { tasks: "tasks", schedules: "clock", teams: "team", org: "org", cache: "chart", usage: "chart", authorizations: "key" };
|
|
108
109
|
const BACKENDS = ["claude-code", "codex", "opencode", "kiro-cli", "antigravity", "grok", "muse"];
|
|
109
110
|
|
|
110
111
|
async function api(method, path, body, lease) {
|
|
@@ -212,7 +213,7 @@ export function FleetPanel({ route, navKey }) {
|
|
|
212
213
|
const tab = route.tab;
|
|
213
214
|
useEffect(() => { setTitle(`${t("fleet.title")} · ${t(`fleet.${tab}`)}`); }, [tab, navKey]);
|
|
214
215
|
useEffect(() => { rememberFleetTab(tab); }, [tab]); // #2183: the sidebar's and the phone's Fleet reopen it
|
|
215
|
-
const Body = { tasks: TaskBoardTab, schedules: Schedules, teams: Teams, org: Org, cache: Cache, usage: UsageTab }[tab] || TaskBoardTab;
|
|
216
|
+
const Body = { tasks: TaskBoardTab, schedules: Schedules, teams: Teams, org: Org, cache: Cache, usage: UsageTab, authorizations: ContactAuthorizations }[tab] || TaskBoardTab;
|
|
216
217
|
// #1685: host memory pressure slowing or holding new agents — shown here, where macOS's routine "elevated" is not a chat notice.
|
|
217
218
|
const { hostMemory, hostMemoryTop } = useStore(appStore);
|
|
218
219
|
// #2015: and which processes hold the most, and whose — text only (never chat, #1712).
|
package/dist/ui/panel-hub.js
CHANGED
|
@@ -58,6 +58,8 @@ import { PageHead } from "/assets/page-head.js";
|
|
|
58
58
|
import { bindRoomFeedback, bootHubPreview, downloadHtml, draftWithLine, panelOpenFor, roomPanelKey, roomPanelOpts, setHubPreviewOptIn } from "./hub-preview.js";
|
|
59
59
|
import { DropOverlay, MAX_FILES, PendingFiles, hf, pageCarriesFiles, pasteToAttach, putBackText, roomTakesFiles, uploadChosen, useFileDrop } from "./hub-attachments.js";
|
|
60
60
|
import { composerCaret, insertQuote, installQuoteSelection, showCaret } from "/assets/chat-quote.js";
|
|
61
|
+
import { installTableSelection } from "/assets/chat-table-select.js";
|
|
62
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
61
63
|
register("hubAccess", {
|
|
62
64
|
en: { tag: "Access needs checking", refused: "Asking was refused. Check your access before trying again.", check: "Check access", limited: "Asking was refused; the previous access information needs checking." },
|
|
63
65
|
"zh-TW": { tag: "需要確認權限", refused: "提問遭到拒絕。請先重新檢查權限,再試一次。", check: "重新檢查權限", limited: "提問遭到拒絕,先前的權限資訊需要重新確認。" },
|
|
@@ -261,7 +263,7 @@ function linkHubSigninCss(doc = typeof document !== "undefined" ? document : nul
|
|
|
261
263
|
try {
|
|
262
264
|
if (!doc || !doc.head || doc.querySelector('link[data-hub-signin-css="1"]')) return;
|
|
263
265
|
const link = doc.createElement("link");
|
|
264
|
-
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/hub-signin.css"); link.setAttribute("data-hub-signin-css", "1");
|
|
266
|
+
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/hub-signin.css")); link.setAttribute("data-hub-signin-css", "1");
|
|
265
267
|
doc.head.appendChild(link);
|
|
266
268
|
} catch { /* the page still works without it */ }
|
|
267
269
|
}
|
|
@@ -588,7 +590,7 @@ function HubChats() {
|
|
|
588
590
|
// A room of a Hub with rooms: the shared thread with the room's store, composer and members panel (hub-room-thread.js).
|
|
589
591
|
if (id && listed && !listed.legacy) return html`<${HubRoomPage} key=${id} roomId=${id} listed=${listed} Thread=${HubThread} client=${hubClient()}
|
|
590
592
|
rooms=${rs.rooms} openRoom=${(rid) => navigate(roomPath(rid))} goList=${() => navigate("/ui/hub")}
|
|
591
|
-
onLeft=${() => { void refreshRooms(); navigate("/ui/hub"); }} onMe=${noteHubMeId} />`;
|
|
593
|
+
onLeft=${() => { void refreshRooms(); navigate("/ui/hub"); }} onMe=${noteHubMeId} pinsOn=${roomPinsLive()} />`;
|
|
592
594
|
if (id && room) return html`<${HubRoomView} key=${id} room=${room} />`;
|
|
593
595
|
if (id) return html`<${HubRoomLoading} error=${rs.error} />`;
|
|
594
596
|
if (opening && (!rs.loaded || recentRoom(rs.rooms))) return html`<${PanelHeader} title=${hc("chats")} /><div class="hub-home"><div class="hub-home-pick center"><${Skeleton} variant="rows" lines=${4} /></div></div>`;
|
|
@@ -908,6 +910,8 @@ function HubThread({ store, name, panelKey, threadRef, extra = null, emptyView =
|
|
|
908
910
|
...(typeof ex.react === "function" ? { react: (x) => thread.pickReaction?.(msgKey(x)), canReact: (x) => !!x.roomMessage && ex.canReact?.(x) !== false, reactLabel: ex.reactLabel } : {}),
|
|
909
911
|
// M-3311 (3): Copy link where the page gives a message an address (a room: extra.linkOf).
|
|
910
912
|
...(typeof ex.linkOf === "function" ? { linkOf: (x) => ex.linkOf(x) } : {}),
|
|
913
|
+
// M-3340: Pin / Unpin where the page keeps pins (a room of a Hub with room-pins-v1: extra.pin), mine only.
|
|
914
|
+
...(typeof ex.pin === "function" ? { pin: (x) => ex.pin(x), pinned: (x) => ex.pinned?.(x) === true, canPin: (x) => ex.canPin?.(x) !== false } : {}),
|
|
911
915
|
});
|
|
912
916
|
// M-3311 (2): the Fleet chat's 「引用」 — a passage selected in one message goes into this conversation's composer as a quote
|
|
913
917
|
// at the caret (chat-quote.js; panel-chat.js's own install), through the box's typing path. `extra.quote.field()`: the box.
|
|
@@ -935,8 +939,10 @@ function HubThread({ store, name, panelKey, threadRef, extra = null, emptyView =
|
|
|
935
939
|
}, 0);
|
|
936
940
|
},
|
|
937
941
|
}) : () => {};
|
|
942
|
+
// M-3326: the Fleet chat's table cell selection (a desk; chat-table-select.js), in every Hub conversation.
|
|
943
|
+
const offCells = installTableSelection(list, { phone });
|
|
938
944
|
return () => {
|
|
939
|
-
offActions(); offQuote();
|
|
945
|
+
offActions(); offQuote(); offCells();
|
|
940
946
|
paging = false;
|
|
941
947
|
off(); offOpt(); offPanel(); sc.removeEventListener("scroll", onScroll); list.removeEventListener("click", thread.onClick);
|
|
942
948
|
thread.dispose(true); list.remove(); th.current = null; if (threadRef && threadRef.current === thread) threadRef.current = null;
|
|
@@ -1008,7 +1014,7 @@ function HubMine() {
|
|
|
1008
1014
|
useEffect(() => {
|
|
1009
1015
|
linkHubChatCss(); linkHubOwnerCss();
|
|
1010
1016
|
if (!document.querySelector('link[data-hub-sharing-css="1"]')) {
|
|
1011
|
-
const link = document.createElement("link"); link.rel = "stylesheet"; link.href = "/assets/hub-sharing.css";
|
|
1017
|
+
const link = document.createElement("link"); link.rel = "stylesheet"; link.href = assetUrl("/assets/hub-sharing.css");
|
|
1012
1018
|
link.setAttribute("data-hub-sharing-css", "1"); document.head.appendChild(link);
|
|
1013
1019
|
}
|
|
1014
1020
|
}, []);
|
|
@@ -1051,6 +1057,7 @@ function HubMine() {
|
|
|
1051
1057
|
<div class="hub-rows">${mine.map((e) => html`<a key=${e.id} class="s-row hub-row hub-row-link" href=${`/ui/hub/exposures?agent=${encodeURIComponent(e.id)}`}>
|
|
1052
1058
|
<${Avatar} name=${e.displayName} /><span class="hub-row-text"><strong>${e.displayName}</strong>${e.intro?html`<small class="note">${e.intro}</small>`:null}<small class="note">${grantSummary(e.grants)}</small></span>
|
|
1053
1059
|
${stateTag(e.state, e.kind === "personal")}<${Icon} name="next" size=${16} /></a>`)}</div></section>` : null}
|
|
1060
|
+
${mine.length > 0 && session?.features?.includes("room-owner-requests-v1") ? html`<${LazyRoomPart} load=${() => import("./hub-room-owner-requests.js")} name="OwnerAgentRequestSetting" props=${{ client: hubClient(), scope: session.csrf }} />` : null}
|
|
1054
1061
|
</div>${allowTarget ? html`<${AllowDialog} x=${allowTarget} act=${act} onClose=${() => setAllowTarget(null)} />` : null}</div>`;
|
|
1055
1062
|
}
|
|
1056
1063
|
|
|
@@ -1097,6 +1104,7 @@ function HubAgentPage({ x, act, msg }) {
|
|
|
1097
1104
|
</div>`)}</div>` : html`<p class="note">${roomCount > 0 ? hroom("agentNoOneToOne") : hw("noGrants")}</p>`}
|
|
1098
1105
|
${roomCount > 0 ? html`<p class="note hub-rooms-can-ask">${hroom("roomsCanAskIt")}</p>` : null}
|
|
1099
1106
|
</section>
|
|
1107
|
+
${session?.features?.includes("room-agent-discovery-v1") && typeof client.agentRoomDiscovery === "function" ? html`<${LazyRoomPart} load=${() => import("./hub-room-owner-requests.js")} name="OwnerAgentDiscoverySetting" props=${{ client, scope: session.csrf, exposure: x }} />` : null}
|
|
1100
1108
|
${roomsLive() ? html`<${LazyRoomPart} load=${() => import("./hub-invitations.js")} name="AgentRoomsSection" props=${{ client: hubClient(), exposureId: x.id, onRooms: setRoomCount }} />` : null}
|
|
1101
1109
|
<${QuotaVisibilityRow} exposure=${x} onSaved=${() => act(async () => ({ ok: true }))} />
|
|
1102
1110
|
<section class="card"><h3>${ho("recent")}</h3><p class="note">${ho("recentLead")}</p>
|
|
@@ -1219,6 +1227,8 @@ function LazyRoomPart({ load, name, props = {} }) {
|
|
|
1219
1227
|
}
|
|
1220
1228
|
const teamsLive = () => { const c = hubClient(); return typeof c.teamsLive === "function" && c.teamsLive() === true; };
|
|
1221
1229
|
const roomPurposeLive=()=>session?.features?.includes("room-purpose-v1")&&hubClient().roomPurposeV1===true;
|
|
1230
|
+
// M-3340: personal pins — a Hub that keeps them (room-pins-v1) and a client that can ask; an older Hub shows no Pin at all.
|
|
1231
|
+
const roomPinsLive=()=>session?.features?.includes("room-pins-v1")===true&&typeof hubClient().roomPins==="function";
|
|
1222
1232
|
const roomsLive = () => { const c = hubClient(); return typeof c.roomsLive === "function" && c.roomsLive() === true; };
|
|
1223
1233
|
function LazyThisHub({ directory }) {
|
|
1224
1234
|
const [C, setC] = useState(null);
|
package/dist/ui/panel-needs.js
CHANGED
|
@@ -28,12 +28,13 @@ import { openSignIn, signInOffered } from "./backend-signin.js";
|
|
|
28
28
|
import { decideProposal, installProposals } from "./agent-proposals.js";
|
|
29
29
|
import { GeneralLocation } from "./general-location.js";
|
|
30
30
|
import { runtimeUpdateText } from "./runtime-update-status.js";
|
|
31
|
+
import { ContactNeedsItem } from "./contact-needs.js";
|
|
31
32
|
import { HostDirectoryNotices, hostDirectoryNoticesOffered } from "./hub-host-security-notices.js";
|
|
32
33
|
|
|
33
34
|
// A pre-upgrade tab retains app-i18n.js. Register these reasons when the updated panel is loaded, too.
|
|
34
35
|
register("app", {
|
|
35
|
-
en: { needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_unavailable: "Hub not running", needs_reason_tmux_hold: "Held: an old tmux server or window" },
|
|
36
|
-
"zh-TW": { needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_tmux_hold: "已暫停:舊的 tmux 伺服器或視窗" },
|
|
36
|
+
en: { needs_reason_stale_auth: "Codex needs a restart", needs_stale_auth_detail: "Codex cannot refresh this agent’s current sign-in. Restart the agent; sign in again only if Codex asks.", needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_unavailable: "Hub not running", needs_reason_tmux_hold: "Held: an old tmux server or window" },
|
|
37
|
+
"zh-TW": { needs_reason_stale_auth: "Codex 需要重新啟動", needs_stale_auth_detail: "Codex 無法更新這個 Agent 執行中使用的登入。請重新啟動 Agent;只有 Codex 要求時才需要重新登入。", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_tmux_hold: "已暫停:舊的 tmux 伺服器或視窗" },
|
|
37
38
|
});
|
|
38
39
|
|
|
39
40
|
register("needs", {
|
|
@@ -141,6 +142,7 @@ const BAD = new Set(["crashed", "delivery_failed", "hang", "exited"]);
|
|
|
141
142
|
* its question or what it lacks; anything else is the server's own words.
|
|
142
143
|
*/
|
|
143
144
|
function detailOf(item) {
|
|
145
|
+
if (item.reason === "stale_auth") return t("app.needs_stale_auth_detail");
|
|
144
146
|
if (item.modelSwitch) return modelSwitchText(item.modelSwitch);
|
|
145
147
|
const c = item.type === "task" ? item.card : null;
|
|
146
148
|
if (!c || !c.title) return configDetail(item);
|
|
@@ -214,7 +216,10 @@ export function NeedsPanel({ navKey }) {
|
|
|
214
216
|
: !items.length && !asks.length && !decidedHere.length ? hostDirectoryNoticesOffered() ? html`<p class="muted">${tn("otherEmpty")}</p>` : html`<${Empty} icon="check" title=${tn("empty")} hint=${tn(chatApp ? "emptyHint" : "emptyHintWeb")} />`
|
|
215
217
|
: groups.map((g) => html`<section key=${JSON.stringify([g.instance, g.items[0]?.type === "config", !!g.items[0]?.runtimeUpdate])} class="n-group" aria-label=${g.items[0]?.runtimeUpdate ? runtimeUpdateText("attention") : g.instance}>
|
|
216
218
|
<h2 class="n-group-head">${g.items[0]?.runtimeUpdate ? runtimeUpdateText("attention") : g.instance ? html`<a href=${chatPath(g.instance)} title=${g.instance}>${nameFor(g.instance)}</a>` : g.items[0]?.type === "config" ? t("app.settings") : tn(g.items.some(i => i.type === "backend") ? "fleetSignIns" : "noAssignee")}</h2>
|
|
217
|
-
${g.items.map((item) =>
|
|
219
|
+
${g.items.map((item) => item.type === "contact"
|
|
220
|
+
// M-3339: a contact request or the restricted-mode suggestion — its own card (contact-needs.js; references only).
|
|
221
|
+
? html`<${ContactNeedsItem} key=${item.id} item=${item} />`
|
|
222
|
+
: html`<${NeedsItem} key=${item.id} item=${item} nowMs=${nowMs} owner=${owner} />`)}
|
|
218
223
|
</section>`)}
|
|
219
224
|
<${HostDirectoryNotices} />
|
|
220
225
|
<${NotifyToggle} />
|
|
@@ -17,13 +17,14 @@ import { credentialProfileView, credentialProfileState } from "./credential-prof
|
|
|
17
17
|
import { identityText } from "./account-identity.js";
|
|
18
18
|
import { CliInstall, offersCliInstall } from "./runtime-cli-install.js";
|
|
19
19
|
import { useWindowsCliCatalog, refreshWindowsCliCatalog, useWindowsCliCatalogSnapshot } from "./windows-cli-catalog.js";
|
|
20
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
20
21
|
|
|
21
22
|
/** The install tabs', command cards' and account list's stylesheet, linked once by this lazy page (a tab opened before an upgrade has an app.css without these rules). */
|
|
22
23
|
export function linkRuntimeInstallCss(doc = typeof document !== "undefined" ? document : null) {
|
|
23
24
|
try {
|
|
24
25
|
if (!doc || !doc.head || doc.querySelector('link[data-runtime-install-css="1"]')) return;
|
|
25
26
|
const link = doc.createElement("link");
|
|
26
|
-
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/runtime-install.css"); link.setAttribute("data-runtime-install-css", "1");
|
|
27
|
+
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/runtime-install.css")); link.setAttribute("data-runtime-install-css", "1");
|
|
27
28
|
doc.head.appendChild(link);
|
|
28
29
|
} catch { /* the page still works, only plainer, without it */ }
|
|
29
30
|
}
|
|
@@ -79,6 +79,7 @@ import { useRuntimeCatalog } from "./runtime-catalog.js";
|
|
|
79
79
|
import { ShortcutsHelpRow } from "./settings-shortcuts.js";
|
|
80
80
|
import { GeneralLocation } from "./general-location.js";
|
|
81
81
|
import { SettingsConnector } from "./settings-connector.js";
|
|
82
|
+
import { ca } from "./contact-auth-strings.js";
|
|
82
83
|
|
|
83
84
|
const tn = (k, ...v) => k === "sec_notifications" ? quotaNoticeText().title : t(`settings.${k}`, ...v);
|
|
84
85
|
/**
|
|
@@ -1208,6 +1209,8 @@ function General({ ctx, part = "all" }) {
|
|
|
1208
1209
|
return html`<div class=${fleetPart ? "s-defaults-layout" : "s-classic-layout"}><div class=${`form s-general s-part-${part}`}>
|
|
1209
1210
|
${fleetPart ? html`<${SharedAgentSettings} ctx=${ctx} form=${{ f, set, base, errors, warnings, unset, fc, notes, replyNote: fleetReply }} />` : null}
|
|
1210
1211
|
${classicPart ? html`<section class="card s-classic-defaults-card"><h3>${tn("classicDefaultsTitle")}</h3>
|
|
1212
|
+
${/* M-3339 (the leader's A3 decision): what a new room's default means, before any room is set — said here, plainly. */ ""}
|
|
1213
|
+
<p class="s-info contact-new-rooms"><span aria-hidden="true">ⓘ</span><span>${ca("newRoomsRestricted")}</span></p>
|
|
1211
1214
|
<div class="grid2">
|
|
1212
1215
|
<div class=${fc("field", "classicBackend")}>${L(tn("classicBackend"), "classic_defaults.backend", "g-cbe")}<${BackendSelect} id="g-cbe" value=${f.classicBackend} onChange=${set("classicBackend")} hostOnly />
|
|
1213
1216
|
${!c.backend && f.classicBackend === base.classicBackend ? html`<${Inherited} text=${valueText(f.classicBackend, "backend")} builtin=${!d.backend} from=${inAgentDefaults("#g-be")} />` : null}</div>
|
|
@@ -6,13 +6,14 @@ import { Skeleton } from "/assets/ui-states.js";
|
|
|
6
6
|
import { WorkspaceFileViewer, linkWorkspaceCss } from "./workspace-panel.js";
|
|
7
7
|
import { openReplyPreviewImage } from "/assets/image-lightbox.js";
|
|
8
8
|
import { openReplyFile, openMarkdown, panelStore, closePanel } from "/assets/preview-panel.js";
|
|
9
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
9
10
|
register("replyPreview", {
|
|
10
11
|
en: { button: "Preview {0}", title: "File preview", loading: "Loading file", unoffered: "File previews are not available for this agent.", missing: "This file is no longer in the agent's working folder.", denied: "This preview needs an administrator session and a file inside this agent's working folder.", changed: "The session or working folder changed. Open the preview again.", failed: "The file could not be loaded. Try opening the preview again.", remote: "Previews of files on a paired Windows computer aren't available yet.", lines: "Requested lines: {0}–{1}", readonly: "Read only · current file in this agent's working folder", pdf: "PDF preview" },
|
|
11
12
|
"zh-TW": { button: "預覽 {0}", title: "檔案預覽", loading: "正在載入檔案", unoffered: "這個 Agent 無法提供檔案預覽。", missing: "這個檔案已不在 Agent 的工作資料夾裡。", denied: "需要管理員登入,且檔案必須在這個 Agent 的工作資料夾裡,才能預覽。", changed: "登入或工作資料夾已變更,請重新開啟預覽。", failed: "無法載入檔案,請重新開啟預覽再試一次。", remote: "目前還無法預覽已配對 Windows 電腦上的檔案。", lines: "指定行數:{0}–{1}", readonly: "唯讀 · 這個 Agent 工作資料夾裡的目前檔案", pdf: "PDF 預覽" },
|
|
12
13
|
});
|
|
13
14
|
function linkReplyCss() {
|
|
14
15
|
if (typeof document === "undefined" || document.querySelector('link[data-reply-preview-css]')) return;
|
|
15
|
-
const link = document.createElement("link"); link.rel = "stylesheet"; link.href = "/assets/reply-previews.css"; link.dataset.replyPreviewCss = "1"; document.head.append(link);
|
|
16
|
+
const link = document.createElement("link"); link.rel = "stylesheet"; link.href = assetUrl("/assets/reply-previews.css"); link.dataset.replyPreviewCss = "1"; document.head.append(link);
|
|
16
17
|
}
|
|
17
18
|
linkReplyCss();
|
|
18
19
|
export const replyPreviewLabel = p => t("replyPreview.button", p.path + (p.line ? `:${p.line}${p.endLine && p.endLine !== p.line ? `–${p.endLine}` : ""}` : ""));
|
|
@@ -14,6 +14,7 @@ import { sectionPath } from "/assets/app-route.js";
|
|
|
14
14
|
import { api } from "./settings-confirm.js";
|
|
15
15
|
import { agoWords } from "./settings-devices.js";
|
|
16
16
|
import { roleName } from "/assets/device-roles.js";
|
|
17
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
17
18
|
|
|
18
19
|
register("accessov", {
|
|
19
20
|
en: {
|
|
@@ -67,7 +68,7 @@ export function linkAccessOverviewCss(doc = typeof document !== "undefined" ? do
|
|
|
67
68
|
try {
|
|
68
69
|
if (!doc || !doc.head || doc.querySelector('link[data-access-overview-css="1"]')) return;
|
|
69
70
|
const link = doc.createElement("link");
|
|
70
|
-
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/access-overview.css"); link.setAttribute("data-access-overview-css", "1");
|
|
71
|
+
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/access-overview.css")); link.setAttribute("data-access-overview-css", "1");
|
|
71
72
|
doc.head.appendChild(link);
|
|
72
73
|
} catch { /* the page still works without it */ }
|
|
73
74
|
}
|
|
@@ -3,6 +3,7 @@ import { t } from "/assets/app-i18n.js";
|
|
|
3
3
|
import { useLease } from "/assets/app-ctx.js";
|
|
4
4
|
import { connectorPrompt } from "/assets/connector-prompt.js";
|
|
5
5
|
import "./settings-connector-strings.js";
|
|
6
|
+
import { assetUrl } from "/assets/asset-url.js";
|
|
6
7
|
const tr = key => t(`connector.${key}`);
|
|
7
8
|
export function SettingsConnector() {
|
|
8
9
|
const lease = useLease("settings-connector");
|
|
@@ -23,7 +24,7 @@ export function SettingsConnector() {
|
|
|
23
24
|
try { await navigator.clipboard.writeText(prompt); if (lease.current()) setNotice("copied"); }
|
|
24
25
|
catch { if (lease.current()) setNotice("failed"); }
|
|
25
26
|
};
|
|
26
|
-
return html`<section class="card s-group s-connector" id="connector"><link rel="stylesheet" href
|
|
27
|
+
return html`<section class="card s-group s-connector" id="connector"><link rel="stylesheet" href=${assetUrl("/assets/settings-connector.css")} /><div><h3>${tr("title")}</h3><p class="note">${tr("hint")}</p></div>
|
|
27
28
|
<p class="note">${tr("scope")}</p>
|
|
28
29
|
${error ? html`<button class="btn s-connector-action" type="button" onClick=${read}>${tr("retry")}</button>`
|
|
29
30
|
: !info ? html`<p role="status">${tr("loading")}</p>`
|
|
@@ -20,6 +20,7 @@ import { Icon } from "./ui-icons.js";
|
|
|
20
20
|
import { setTextSize, textSizeStore, TEXT_SIZES, usageOffered } from "./header-tools.js";
|
|
21
21
|
import { UsageDialog } from "./usage-dialog.js";
|
|
22
22
|
import { supportsInstanceFeature } from "./instance-nav.js";
|
|
23
|
+
import { assetUrl } from "./asset-url.js";
|
|
23
24
|
|
|
24
25
|
register("agentSheet", {
|
|
25
26
|
en: { sheet: "{0}: more", search: "Search", files: "Files & changes", card: "Card", usage: "Usage", model: "Model & effort", backend: "CLI backend",
|
|
@@ -36,7 +37,7 @@ register("agentSheet", {
|
|
|
36
37
|
try {
|
|
37
38
|
if (typeof document === "undefined" || !document.head || document.querySelector('link[data-chat-work-bar-css="1"]')) return;
|
|
38
39
|
const link = document.createElement("link");
|
|
39
|
-
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", "/assets/chat-work-bar.css"); link.setAttribute("data-chat-work-bar-css", "1");
|
|
40
|
+
link.setAttribute("rel", "stylesheet"); link.setAttribute("href", assetUrl("/assets/chat-work-bar.css")); link.setAttribute("data-chat-work-bar-css", "1");
|
|
40
41
|
document.head.appendChild(link);
|
|
41
42
|
} catch { /* the header keeps its desk look */ }
|
|
42
43
|
})();
|
|
@@ -119,7 +119,7 @@ register("app", {
|
|
|
119
119
|
confirmTitle: "Please confirm", confirmOk: "Continue", cancel: "Cancel",
|
|
120
120
|
sidePanelLeave: "Leave {0} without saving? Your changes there will be lost.", sidePanelDiscard: "Discard changes",
|
|
121
121
|
// The server's own wording (src/locale.ts needs.reason.*), so the web says what Discord says.
|
|
122
|
-
needs_reason_kiro_choice: "Kiro needs your decision", needs_reason_hang: "Not responding", needs_reason_exited: "Exited", needs_reason_assist: "Waiting at its terminal", needs_reason_question: "Asking you a question", needs_reason_permission: "Permission needed", needs_reason_dangerous_command: "Dangerous command waiting", needs_reason_login: "Waiting to connect its AI account", needs_reason_dialog: "Waiting at a dialog", needs_reason_terminal_input: "May be waiting for input", needs_reason_auth_paused: "Paused: AI account not connected", needs_reason_backend_signin: "AI account needs connecting", needs_reason_config_invalid: "Configuration file needs attention", needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_unavailable: "Hub not running", needs_reason_config_fallback: "Running on stored configuration", config_history_edit: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. The next restart would use the stored valid copy from {4}. Correct the YAML error; the file has not been changed by AgEnD.", config_history_no_history: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. No stored valid copy is available, so the next restart cannot recover automatically. Correct the YAML error before restarting; the file has not been changed by AgEnD.", config_history_fallback: "{0}, line {1}, column {2}: {3}. AgEnD started using the stored valid copy from {4}. Correct the YAML error and reload the settings. The file on disk has not been changed by AgEnD.", needs_reason_general_windows_offline: "General’s Windows PC is offline", needs_reason_general_location_hold: "Run General on", needs_reason_native_pane_hold: "Windows agent needs attention", needs_reason_model_switch: "Claude model switched", needs_reason_crashed: "Crashed", needs_reason_backend_missing: "AI CLI not installed", needs_reason_usage_limit: "Usage limit reached · reset time unknown", needs_reason_delivery_uncertain: "Could not confirm delivery", needs_reason_delivery_failed: "Delivery failed", needs_reason_missed_offline: "Missed while AgEnD was offline", needs_reason_task_review: "Waiting for your confirmation", needs_reason_task_blocked: "Blocked: asks you", needs_reason_task_stalled: "Its assignee went quiet",
|
|
122
|
+
needs_reason_kiro_choice: "Kiro needs your decision", needs_reason_hang: "Not responding", needs_reason_exited: "Exited", needs_reason_assist: "Waiting at its terminal", needs_reason_question: "Asking you a question", needs_reason_permission: "Permission needed", needs_reason_dangerous_command: "Dangerous command waiting", needs_reason_login: "Waiting to connect its AI account", needs_reason_dialog: "Waiting at a dialog", needs_reason_terminal_input: "May be waiting for input", needs_reason_auth_paused: "Paused: AI account not connected", needs_reason_stale_auth: "Codex needs a restart", needs_stale_auth_detail: "Codex cannot refresh this agent’s current sign-in. Restart the agent; sign in again only if Codex asks.", needs_reason_backend_signin: "AI account needs connecting", needs_reason_config_invalid: "Configuration file needs attention", needs_reason_hub_proposal: "Hub action proposed: review locally", needs_reason_hub_execution_hold: "Hub work held: review locally", needs_reason_hub_unavailable: "Hub not running", needs_reason_config_fallback: "Running on stored configuration", config_history_edit: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. The next restart would use the stored valid copy from {4}. Correct the YAML error; the file has not been changed by AgEnD.", config_history_no_history: "{0}, line {1}, column {2}: {3}. AgEnD is still running on the previous settings. No stored valid copy is available, so the next restart cannot recover automatically. Correct the YAML error before restarting; the file has not been changed by AgEnD.", config_history_fallback: "{0}, line {1}, column {2}: {3}. AgEnD started using the stored valid copy from {4}. Correct the YAML error and reload the settings. The file on disk has not been changed by AgEnD.", needs_reason_general_windows_offline: "General’s Windows PC is offline", needs_reason_general_location_hold: "Run General on", needs_reason_native_pane_hold: "Windows agent needs attention", needs_reason_model_switch: "Claude model switched", needs_reason_crashed: "Crashed", needs_reason_backend_missing: "AI CLI not installed", needs_reason_usage_limit: "Usage limit reached · reset time unknown", needs_reason_delivery_uncertain: "Could not confirm delivery", needs_reason_delivery_failed: "Delivery failed", needs_reason_missed_offline: "Missed while AgEnD was offline", needs_reason_task_review: "Waiting for your confirmation", needs_reason_task_blocked: "Blocked: asks you", needs_reason_task_stalled: "Its assignee went quiet",
|
|
123
123
|
},
|
|
124
124
|
"zh-TW": {
|
|
125
125
|
brand: "AgEnD", fleet: "Fleet", fleetOverview: "Fleet 概覽", view: "檢視", settings: "設定", instances: "Agent", newInstance: "新增 Agent", newAgent: "新增 Agent",
|
|
@@ -167,6 +167,6 @@ register("app", {
|
|
|
167
167
|
search: "搜尋", searchTitle: "搜尋聊天、agent 之間的訊息與任務({0})",
|
|
168
168
|
confirmTitle: "請確認", confirmOk: "繼續", cancel: "取消",
|
|
169
169
|
sidePanelLeave: "不儲存就離開「{0}」?你在那裡的修改會遺失。", sidePanelDiscard: "捨棄修改",
|
|
170
|
-
needs_reason_kiro_choice: "Kiro 需要你決定", needs_reason_hang: "沒有回應", needs_reason_exited: "已結束", needs_reason_assist: "在終端機上等待", needs_reason_question: "正在問你問題", needs_reason_permission: "需要權限", needs_reason_dangerous_command: "危險指令待確認", needs_reason_login: "等待連接 AI 帳號", needs_reason_dialog: "停在對話框", needs_reason_terminal_input: "可能在等輸入", needs_reason_auth_paused: "已暫停:AI 帳號未連接", needs_reason_backend_signin: "需要連接 AI 帳號", needs_reason_config_invalid: "設定檔需要處理", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_config_fallback: "正在使用儲存的設定副本", config_history_edit: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。下次重新啟動會改用 {4} 儲存的有效副本。請修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_no_history: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。沒有可用的有效副本,下次重新啟動將無法自動恢復。請在重新啟動前修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_fallback: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 已使用 {4} 儲存的有效副本啟動。請修正 YAML 錯誤並重新載入設定。AgEnD 未更動磁碟上的檔案。", needs_reason_general_windows_offline: "General 所在的 Windows 電腦已離線", needs_reason_general_location_hold: "General 執行位置", needs_reason_native_pane_hold: "Windows Agent 需要處理", needs_reason_model_switch: "Claude 模型已切換", needs_reason_crashed: "已崩潰", needs_reason_backend_missing: "AI CLI 沒有安裝", needs_reason_usage_limit: "用量已達上限 · 恢復時間未知", needs_reason_delivery_uncertain: "無法確認是否送達", needs_reason_delivery_failed: "傳送失敗", needs_reason_missed_offline: "AgEnD 離線時錯過", needs_reason_task_review: "等你確認", needs_reason_task_blocked: "卡住,在問你", needs_reason_task_stalled: "接手者很久沒有動靜",
|
|
170
|
+
needs_reason_kiro_choice: "Kiro 需要你決定", needs_reason_hang: "沒有回應", needs_reason_exited: "已結束", needs_reason_assist: "在終端機上等待", needs_reason_question: "正在問你問題", needs_reason_permission: "需要權限", needs_reason_dangerous_command: "危險指令待確認", needs_reason_login: "等待連接 AI 帳號", needs_reason_dialog: "停在對話框", needs_reason_terminal_input: "可能在等輸入", needs_reason_auth_paused: "已暫停:AI 帳號未連接", needs_reason_stale_auth: "Codex 需要重新啟動", needs_stale_auth_detail: "Codex 無法更新這個 Agent 執行中使用的登入。請重新啟動 Agent;只有 Codex 要求時才需要重新登入。", needs_reason_backend_signin: "需要連接 AI 帳號", needs_reason_config_invalid: "設定檔需要處理", needs_reason_hub_proposal: "Hub 提議操作:請在本機檢視", needs_reason_hub_execution_hold: "Hub 工作已暫停:請在本機檢視", needs_reason_hub_unavailable: "Hub 未在執行", needs_reason_config_fallback: "正在使用儲存的設定副本", config_history_edit: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。下次重新啟動會改用 {4} 儲存的有效副本。請修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_no_history: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 仍使用先前的設定執行。沒有可用的有效副本,下次重新啟動將無法自動恢復。請在重新啟動前修正 YAML 錯誤;AgEnD 未更動此檔案。", config_history_fallback: "{0} 第 {1} 行、第 {2} 欄:{3}。AgEnD 已使用 {4} 儲存的有效副本啟動。請修正 YAML 錯誤並重新載入設定。AgEnD 未更動磁碟上的檔案。", needs_reason_general_windows_offline: "General 所在的 Windows 電腦已離線", needs_reason_general_location_hold: "General 執行位置", needs_reason_native_pane_hold: "Windows Agent 需要處理", needs_reason_model_switch: "Claude 模型已切換", needs_reason_crashed: "已崩潰", needs_reason_backend_missing: "AI CLI 沒有安裝", needs_reason_usage_limit: "用量已達上限 · 恢復時間未知", needs_reason_delivery_uncertain: "無法確認是否送達", needs_reason_delivery_failed: "傳送失敗", needs_reason_missed_offline: "AgEnD 離線時錯過", needs_reason_task_review: "等你確認", needs_reason_task_blocked: "卡住,在問你", needs_reason_task_stalled: "接手者很久沒有動靜",
|
|
171
171
|
},
|
|
172
172
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// a test runs both over one list of cases). Pure: no DOM, no history.
|
|
3
3
|
|
|
4
4
|
// #2347 §10: Config is gone from Fleet — each of its settings has one home in Settings (/ui/fleet/config leads there).
|
|
5
|
-
export const FLEET_TABS = ["tasks", "schedules", "teams", "org", "cache", "usage"];
|
|
5
|
+
export const FLEET_TABS = ["tasks", "schedules", "teams", "org", "cache", "usage", "authorizations"];
|
|
6
6
|
// #2347: two groups — "You" changes only you or this browser; "Fleet" changes AgEnD for everyone.
|
|
7
7
|
export const SETTINGS_GROUPS = Object.freeze([
|
|
8
8
|
Object.freeze({ id: "you", sections: Object.freeze(["preferences", "look"]) }),
|