@songsid/agend 2.4.0-beta.21 → 2.4.0-beta.22
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/backend/claude-code.js +3 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/cache-ledger.d.ts +23 -21
- package/dist/cache-ledger.js +70 -6
- package/dist/cache-ledger.js.map +1 -1
- package/dist/cache-prices.d.ts +8 -6
- package/dist/cache-prices.js +12 -5
- package/dist/cache-prices.js.map +1 -1
- package/dist/cache-service.d.ts +9 -5
- package/dist/cache-service.js +202 -50
- package/dist/cache-service.js.map +1 -1
- package/dist/cli-audited.js +2 -1
- package/dist/cli-audited.js.map +1 -1
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/contact-auth-policy.js +1 -1
- package/dist/contact-auth-policy.js.map +1 -1
- package/dist/contact-auth-service.js +8 -2
- package/dist/contact-auth-service.js.map +1 -1
- package/dist/contact-auth-store.d.ts +3 -0
- package/dist/contact-auth-store.js +34 -8
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/contact-auth-types.d.ts +3 -2
- package/dist/contact-auth-types.js.map +1 -1
- package/dist/contact-change-proposals.js +3 -2
- package/dist/contact-change-proposals.js.map +1 -1
- package/dist/daemon.d.ts +31 -0
- package/dist/daemon.js +149 -2
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +10 -0
- package/dist/delivery-outbox.js +21 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/fleet-manager.d.ts +40 -0
- package/dist/fleet-manager.js +173 -18
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +6 -3
- package/dist/hub/agent-pictures-model.d.ts +128 -0
- package/dist/hub/agent-pictures-model.js +43 -4
- package/dist/hub/agent-pictures-model.js.map +1 -1
- package/dist/hub/agent-pictures.d.ts +14 -2
- package/dist/hub/agent-pictures.js +65 -12
- package/dist/hub/agent-pictures.js.map +1 -1
- package/dist/hub/client.d.ts +2 -0
- package/dist/hub/client.js +9 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +4 -1
- package/dist/hub/compose/member.js +18 -6
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +5 -5
- package/dist/hub/compose/server.js +5 -3
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.d.ts +3 -0
- package/dist/hub/http/compose.js +9 -7
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +1 -0
- package/dist/hub/http/schema.js +2 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/init/text.js +1 -1
- package/dist/hub/mcp/policy.d.ts +1 -1
- package/dist/hub/member/agent-pictures.d.ts +34 -1
- package/dist/hub/member/agent-pictures.js +80 -9
- package/dist/hub/member/agent-pictures.js.map +1 -1
- package/dist/hub/member/room-ask.d.ts +22 -1
- package/dist/hub/member/room-ask.js +99 -5
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-asker-store.d.ts +48 -0
- package/dist/hub/member/room-asker-store.js +181 -0
- package/dist/hub/member/room-asker-store.js.map +1 -0
- package/dist/hub/protocol.d.ts +131 -0
- package/dist/hub/protocol.js +3 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/representative.d.ts +10 -0
- package/dist/hub/representative.js +13 -0
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/room-asker-identity-model.d.ts +53 -0
- package/dist/hub/room-asker-identity-model.js +14 -0
- package/dist/hub/room-asker-identity-model.js.map +1 -0
- package/dist/hub/room-asker-identity.d.ts +22 -0
- package/dist/hub/room-asker-identity.js +43 -0
- package/dist/hub/room-asker-identity.js.map +1 -0
- package/dist/hub/rooms/agents.js +16 -0
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/asker-identity.d.ts +21 -0
- package/dist/hub/rooms/asker-identity.js +86 -0
- package/dist/hub/rooms/asker-identity.js.map +1 -0
- package/dist/hub/rooms/office.d.ts +18 -0
- package/dist/hub/rooms/office.js +3 -1
- package/dist/hub/rooms/office.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +6 -0
- package/dist/hub/rooms/service.js +19 -0
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/server.js +7 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +1 -0
- package/dist/hub-character-plan.d.ts +47 -0
- package/dist/hub-character-plan.js +70 -0
- package/dist/hub-character-plan.js.map +1 -0
- package/dist/hub-contact-windows.d.ts +13 -1
- package/dist/hub-contact-windows.js +35 -2
- package/dist/hub-contact-windows.js.map +1 -1
- package/dist/hub-picture-reduce.d.ts +21 -1
- package/dist/hub-picture-reduce.js +65 -13
- package/dist/hub-picture-reduce.js.map +1 -1
- package/dist/hub-picture-worker.js +12 -4
- package/dist/hub-picture-worker.js.map +1 -1
- package/dist/locale.js +267 -263
- package/dist/locale.js.map +1 -1
- package/dist/ls-rows.d.ts +2 -0
- package/dist/ls-rows.js.map +1 -1
- package/dist/needs-you.d.ts +2 -0
- package/dist/needs-you.js +1 -1
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +4 -0
- package/dist/outbound-handlers.js +16 -2
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/runtime-cli-install.js +4 -4
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/tips.js +3 -3
- package/dist/ui/agent-export-strings.js +1 -1
- package/dist/ui/agent-page-strings.js +5 -5
- package/dist/ui/contact-auth-client.js +2 -2
- package/dist/ui/fleet-cache.js +5 -5
- package/dist/ui/fleet-canvas.js +1 -1
- package/dist/ui/fleet-office-card.js +26 -2
- package/dist/ui/fleet-office-layout.js +2 -2
- package/dist/ui/fleet-office-skin.js +16 -0
- package/dist/ui/fleet-office-view.js +32 -0
- package/dist/ui/fleet-office.js +80 -24
- package/dist/ui/fleet-org.js +3 -3
- package/dist/ui/fleet-task-common.js +2 -2
- package/dist/ui/fleet-usage.js +6 -6
- package/dist/ui/hub-admin-overview.js +1 -1
- package/dist/ui/hub-chat-strings.js +1 -1
- package/dist/ui/hub-my-agents-strings.js +2 -2
- package/dist/ui/hub-my-agents.js +1 -1
- package/dist/ui/hub-room-office.js +70 -2
- package/dist/ui/hub-room-presence.js +5 -0
- package/dist/ui/panel-fleet.js +5 -5
- package/dist/ui/panel-log.js +3 -3
- package/dist/ui/panel-runtimes.js +2 -2
- package/dist/ui/runtime-cli-install.js +1 -1
- package/dist/ui/runtime-update-status.js +1 -1
- package/dist/ui/settings-access-strings.js +1 -1
- package/dist/ui/settings-hub-setup-strings.js +1 -1
- package/dist/ui/settings-layout.js +2 -2
- package/dist/ui/settings-named-test.js +16 -16
- package/dist/ui/settings-public-session-strings.js +2 -2
- package/dist/ui/settings-revoke-strings.js +1 -1
- package/dist/ui/settings-shared-strings.js +2 -2
- package/dist/ui/settings-strings.js +40 -40
- package/dist/ui/shared/app-shell.js +1 -1
- package/dist/ui/shared/app.css +22 -3
- package/dist/ui/shared/chat-strings.js +8 -8
- package/dist/ui/shared/instance-nav.js +36 -2
- package/dist/ui/shared/view-strings.js +27 -9
- package/package.json +1 -1
package/dist/ui/fleet-office.js
CHANGED
|
@@ -71,7 +71,7 @@ import { nodeText, stateWords } from "./fleet-org.js";
|
|
|
71
71
|
import { hits, needle } from "./fleet-canvas-layout.js";
|
|
72
72
|
import { AUTO_ID, LOBBY, autoLayout, backingScale, coatOf, createFlights, customLayout, deskAt, desksOf, filterOk, lampOf, layoutOk, lightOf, membersOf,
|
|
73
73
|
officePose, officeRooms, signOf, workOn } from "./fleet-office-model.js";
|
|
74
|
-
import { BUILT_IN_SKINS, CHAR_DEPTH, DEFAULT_PAL, PICTURE_SKINS, bubbleBox, pixelSkin, loadBuiltInSkin, loadPackSkin, modeOf, skinFor, tagBox, tagFootprint } from "./fleet-office-skin.js";
|
|
74
|
+
import { BUILT_IN_SKINS, CHAR_DEPTH, DEFAULT_PAL, PICTURE_SKINS, bubbleBox, pixelSkin, loadBuiltInSkin, loadPackSkin, modeOf, skinFor, tagBox, tagFootprint, withCharacters } from "./fleet-office-skin.js";
|
|
75
75
|
import { CALLING, activeFurniture, bubbleAt, hiddenBy, bubbleRank, NIGHT, WANDER, createMail, createWalkers, isNight, linesFor, npcKey, personAt, placeBubbles, routeStaysInArea, thinBubbles, walkTargets, zonesLayout } from "./fleet-office-zones.js";
|
|
76
76
|
import { actsOk, createOfficeStore } from "./fleet-office-store.js";
|
|
77
77
|
import { badgeOf, fixedOf, mergeLevels } from "./fleet-office-levels.js";
|
|
@@ -87,7 +87,7 @@ import { applyOverrides, createClipClocks, fitNight, fitSeatFor, packMaxFps, sna
|
|
|
87
87
|
import { ALL_ID, LOBBY_TILE, OV, createCrossFlights, cropToRooms, fromTile, inTile, labelAt, lobbyNodes, overviewOk, tileAt, tileBox, tileLayout, visibleTiles } from "./fleet-office-overview.js";
|
|
88
88
|
import { CAROUSEL_ID, INTERVALS, carouselHeld, carouselIdsOk, carouselKey, carouselOk, intervalOk, nextIndex, prevIndex } from "./fleet-office-carousel.js";
|
|
89
89
|
import { centreOn, gestureState, gestures, miniPoint, toScreen, toWorld, wheelFactor, zoomKey, zoomTo } from "./fleet-canvas-view.js";
|
|
90
|
-
import { OK_MAX, clampPan, desksK, minK, edgeMatte, edgeStrips, fitScene, layerScale, miniBox, miniFrame, openingView, pinchOffice, savedOf, stepK, viewFromSaved,
|
|
90
|
+
import { OK_MAX, cardSpot, clampPan, desksK, minK, edgeMatte, edgeStrips, fitScene, layerScale, miniBox, miniFrame, openingView, pinchOffice, savedOf, stepK, viewFromSaved,
|
|
91
91
|
wholeInView, zoomLabel, zoomOffice } from "./fleet-office-view.js";
|
|
92
92
|
|
|
93
93
|
register("orgo", {
|
|
@@ -106,7 +106,7 @@ register("orgo", {
|
|
|
106
106
|
styleForAll: "The whole fleet's style, for everyone: every device and share link", styleHere: "The whole fleet's style in this browser",
|
|
107
107
|
styleFailed: "The style was not saved for everyone ({0}).", styleBusy: "Too many changes. Try again in a minute.",
|
|
108
108
|
fit: "Fit the office", overview: "Overview: click to move there", fullscreen: "Fullscreen", exitFullscreen: "Exit fullscreen",
|
|
109
|
-
fill: "Fill", fillTitle: "Fill the panel (the scene's overflow is cropped; drag to see it)", zoomLevel: "Zoom {0}",
|
|
109
|
+
fill: "Fill", fillTitle: "Fill the panel (the scene's overflow is cropped; drag to see it)", zoomLevel: "Zoom {0}", view: "View", zoomIn: "Zoom in", zoomOut: "Zoom out", live: "Live",
|
|
110
110
|
allOffices: "All offices", labelAll: "All offices: each office is a tile, drawn in its own style. Drag to pan; the wheel, a pinch, + and − zoom, 0 fits, F is fullscreen. Click a tile to open that office.",
|
|
111
111
|
backAll: "← All offices",
|
|
112
112
|
key: "Key", keyTitle: "What the items carried between desks are", keyLabel: "Carried between desks",
|
|
@@ -126,8 +126,8 @@ register("orgo", {
|
|
|
126
126
|
},
|
|
127
127
|
"zh-TW": {
|
|
128
128
|
display: "顯示選項", playMotionOff: "已關閉:系統開了「減少動態效果」",
|
|
129
|
-
label: "
|
|
130
|
-
office: "辦公室", allOffice: "整個 fleet", show: "顯示", allTeams: "
|
|
129
|
+
label: "辦公室:每個團隊是一間房間,每個 Agent 一張桌子;General 和未加入團隊的 Agent 在大廳。拖曳平移;滾輪、雙指、+ 和 − 縮放,0 顯示整個場景,F 切換全螢幕。",
|
|
130
|
+
office: "辦公室", allOffice: "整個 fleet", show: "顯示", allTeams: "所有團隊", lobby: "大廳(General、未加入團隊)", lobbyRoom: "大廳",
|
|
131
131
|
people: "成員", peopleN: "成員({0})", findPerson: "尋找成員", everyone: "顯示全部", nobody: "沒有符合這個篩選的成員。",
|
|
132
132
|
unseated: "{0} 位沒有座位", skinUnknown: "這裡沒有它的風格「{0}」:以辦公桌顯示。", closed: "休息中", desks: "桌子", tapAgain: "再點一下開啟聊天",
|
|
133
133
|
capWorking: "埋頭打字中", capIdle: "喝茶休息", capPaused: "睡著了", capNeeds: "在呼叫你", capAway: "空位", capStarting: "剛到座位", capQueued: "等待啟動",
|
|
@@ -139,7 +139,7 @@ register("orgo", {
|
|
|
139
139
|
styleForAll: "整個 fleet 的風格,所有人共用:每台裝置與分享連結都一樣", styleHere: "這個瀏覽器裡整個 fleet 的風格",
|
|
140
140
|
styleFailed: "風格沒有替所有人儲存({0})。", styleBusy: "變更太頻繁,請一分鐘後再試。",
|
|
141
141
|
fit: "顯示整個辦公室", overview: "總覽:點一下移到那裡", fullscreen: "全螢幕", exitFullscreen: "結束全螢幕",
|
|
142
|
-
fill: "填滿", fillTitle: "填滿整個面板(超出的部分會被裁切,拖曳即可看到)", zoomLevel: "縮放 {0}",
|
|
142
|
+
fill: "填滿", fillTitle: "填滿整個面板(超出的部分會被裁切,拖曳即可看到)", zoomLevel: "縮放 {0}", view: "檢視", zoomIn: "放大", zoomOut: "縮小", live: "即時",
|
|
143
143
|
allOffices: "所有辦公室", labelAll: "所有辦公室:每間辦公室是一格,以它自己的風格顯示。拖曳平移;滾輪、雙指、+ 和 − 縮放,0 顯示全部,F 切換全螢幕。點一格即可開啟那間辦公室。",
|
|
144
144
|
backAll: "← 返回全域",
|
|
145
145
|
key: "圖例", keyTitle: "桌子之間傳遞的物品代表什麼", keyLabel: "桌子之間傳遞的物品",
|
|
@@ -256,6 +256,8 @@ const UP_MS = 1800;
|
|
|
256
256
|
const FIND_K = 2;
|
|
257
257
|
/** #2661: below this stage width (CSS px) the card is a bottom sheet. */
|
|
258
258
|
const SHEET_W = 560;
|
|
259
|
+
/** M-3633: the corner of an area its name takes (logical units, from the area's top left): a floating card keeps off it. */
|
|
260
|
+
const AREA_LABEL = { w: 320, h: 44 };
|
|
259
261
|
/**
|
|
260
262
|
* M-3253 (Argon's phone review): the Office's phone layout — a phone's width (the shell's), or a phone turned sideways (a
|
|
261
263
|
* coarse pointer in a short window: an iPhone's 956 × 440 is wider than 899 px). There the Office's tools are one ⋯ sheet,
|
|
@@ -408,6 +410,8 @@ export function speakerAt(sk, look, at) {
|
|
|
408
410
|
}
|
|
409
411
|
/** The pose an area's seats are for: the first state (asleep, working, calling, idle) the pack sends there. */
|
|
410
412
|
const GHOST_POSE = [["paused", "paused"], ["stopped", "paused"], ["working", "working"], ["needs", "needs"], ["crashed", "needs"], ["stuck", "needs"], ["idle", "idle"]];
|
|
413
|
+
/** M-3533 R2c: how far inside its area's top edge a room character's speech bubble stays (scene units). */
|
|
414
|
+
const BUBBLE_IN_AREA = 8;
|
|
411
415
|
/** How faint Edit layout's figures are: seen through, yet readable over a busy picture (a dimmed person is 0.35). */
|
|
412
416
|
const GHOST_ALPHA = 0.6;
|
|
413
417
|
/** Edit layout's faint figures: one on each seat no one is on, { x, y, look } (the pack's default set; drawn at GHOST_ALPHA). */
|
|
@@ -770,7 +774,7 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
|
|
|
770
774
|
// Speech bubbles: a short line for the state, now and then (typed out; whole at once when still), placed so no two
|
|
771
775
|
// overlap (placeBubbles; #2431).
|
|
772
776
|
const bubbles = [], rp = p.reply, tSaid = Date.now(), replies = [];
|
|
773
|
-
for (
|
|
777
|
+
for (let sp of speakers) {
|
|
774
778
|
if (sp.look.dim || sp.look.pose === "away") continue;
|
|
775
779
|
// Talk "Over their head": a live reply, in full (wrapped), in place of the state's line.
|
|
776
780
|
const said = rp ? rp.chat.recent(sp.look.name, tSaid) : null;
|
|
@@ -788,6 +792,10 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
|
|
|
788
792
|
const b = own ? { text: own, shown: [...own].length }
|
|
789
793
|
: scText ? { text: scText, shown: [...scText].length }
|
|
790
794
|
: bubbleAt(sp.look.name, says, ms, linesFor(says, p.lang, sk.pack, p.lines, sp.look.name)); // #3681: theirs, their set's, the pack's
|
|
795
|
+
// M-3533 R2c (Lumen): a room's own characters stand taller than the style's figures; their bubble stays inside the
|
|
796
|
+
// area's box, as a figure's does (the Fleet's own office is unchanged).
|
|
797
|
+
const ar = b && sk.ownCharacters && p.zones && sp.area != null ? p.L.areas && p.L.areas[sp.area] : null;
|
|
798
|
+
if (ar && ar.rect) { const bx = bubbleBox(ctx, sp.x, sp.y, b.text), min = ar.rect.y + BUBBLE_IN_AREA; if (bx.y < min) sp = { ...sp, y: sp.y + (min - bx.y) }; }
|
|
791
799
|
if (b) bubbles.push({ key: sp.look.name, area: sp.area, state: sp.look.state, calling: CALLING.has(sp.look.state), rank: own ? 0 : scText ? 1 : bubbleRank(sp.look.state), shown: b.shown, ...(raSays ? { keep: true } : {}),
|
|
792
800
|
box: bubbleBox(ctx, sp.x, sp.y, b.text), tail: { x: sp.x, y: sp.y }, sp, b });
|
|
793
801
|
}
|
|
@@ -795,8 +803,15 @@ export function drawPart(ctx, p, a, ox, oy, ms, still, hot, env, tagsOff = false
|
|
|
795
803
|
// (All offices): drawn after every tile, unclipped, so a bubble at a tile's edge is whole.
|
|
796
804
|
// M-3648: an area's name blocks chatter; a call may cover it (placeBubbles' `soft`): a name never keeps a call out.
|
|
797
805
|
const placed = placeBubbles(thinBubbles(bubbles, p.zones ? p.L.over : null), 22, tags, titleBoxes);
|
|
798
|
-
|
|
799
|
-
|
|
806
|
+
// M-3533 R2c: and after placing (which lifts a bubble clear of another), a room character's bubble still stays in its area.
|
|
807
|
+
const inArea = (sp, text, dy) => {
|
|
808
|
+
const ar = sk.ownCharacters && p.zones && sp.area != null ? p.L.areas && p.L.areas[sp.area] : null;
|
|
809
|
+
if (!ar || !ar.rect || !dy) return dy;
|
|
810
|
+
const over = ar.rect.y + BUBBLE_IN_AREA - bubbleBox(ctx, sp.x, sp.y, text, -dy).y;
|
|
811
|
+
return over > 0 ? Math.max(0, dy - over) : dy;
|
|
812
|
+
};
|
|
813
|
+
const say = () => { T(); for (const { sp, b, dy: lifted } of placed) {
|
|
814
|
+
const text = [...b.text].slice(0, b.shown).join(""), dy = inArea(sp, b.text, lifted);
|
|
800
815
|
sk.drawBubble(ctx, sp.x, sp.y, text, env, -dy);
|
|
801
816
|
if (bubbleHits && text) {
|
|
802
817
|
const box = bubbleBox(ctx, sp.x, sp.y, text, -dy);
|
|
@@ -944,7 +959,7 @@ function ensureDialogueStyle() {
|
|
|
944
959
|
link.setAttribute("data-office-dialogue-css", "1"); doc.head.appendChild(link);
|
|
945
960
|
}
|
|
946
961
|
export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetImage, opening, talk, chatUi = null, more = false, onMore = null, live = null, onLive = null,
|
|
947
|
-
oneOffice = false, readOnly = false, stream = true, storage = undefined, cardRows = null, words = null, cardAction = null, cardName = null, officesKey = undefined, foldBar = false, cardPhoto = null }) {
|
|
962
|
+
oneOffice = false, readOnly = false, stream = true, storage = undefined, cardRows = null, words = null, cardAction = null, cardName = null, officesKey = undefined, foldBar = false, cardPhoto = null, characters = null }) {
|
|
948
963
|
// M-3253: on a phone the page above (fleet-canvas.js) puts a ⋯ in its bar: `more` is that sheet open, `onMore(open)`;
|
|
949
964
|
// `live` / `onLive` its Live toggle, which moves into the sheet. Without one (a share link's page) the bar stays.
|
|
950
965
|
useLayoutEffect(ensureDialogueStyle, []);
|
|
@@ -1039,6 +1054,8 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
1039
1054
|
// back there when it closes); the card's element and where it points (placed every frame: it follows them).
|
|
1040
1055
|
const [card, setCard] = useState(null);
|
|
1041
1056
|
const cardFrom = useRef(null), cardEl = useRef(null), cardDesk = useRef(null);
|
|
1057
|
+
// M-3633: how much of the stage a bottom-sheet card covers (px from its foot); the scene is kept in the rest.
|
|
1058
|
+
const sheetCover = useRef(0);
|
|
1042
1059
|
const stageRef = useRef(null), canvasRef = useRef(null), tipRef = useRef(null), lastType = useRef("mouse");
|
|
1043
1060
|
// Fullscreen: null, "native" (the Fullscreen API) or "immersive" (the CSS cover); per visit, never kept.
|
|
1044
1061
|
const ooRef = useRef(null), [fs, setFs] = useState(null), fsRef = useRef(null), fsAsked = useRef(false), fsTarget = useRef(null);
|
|
@@ -1323,7 +1340,8 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
1323
1340
|
if (zones && layout && !layoutStale) return { skin: { ...baseSkin, pack: layout.draft }, ignored: false };
|
|
1324
1341
|
return withOverrides(baseSkin, zones, custom);
|
|
1325
1342
|
}, [baseSkin, zones, custom, layout, layoutStale]);
|
|
1326
|
-
|
|
1343
|
+
// M-3533 R2c: a Hub room office's agents in their own characters (`characters`: { sets, images }), over its style.
|
|
1344
|
+
const skin = useMemo(() => (characters ? withCharacters(placed.skin, characters.sets, characters.images) : placed.skin), [placed.skin, characters]);
|
|
1327
1345
|
// While Edit layout is open: a faint figure on every seat, in the pose its area is for (#2558), so a seat is placed by
|
|
1328
1346
|
// what will stand, sit or lie there, not by a dot.
|
|
1329
1347
|
const ghosts = zones && !!layout && !layoutStale;
|
|
@@ -1513,17 +1531,55 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
1513
1531
|
*/
|
|
1514
1532
|
const placeCard = () => {
|
|
1515
1533
|
const el = cardEl.current, c = cardDesk.current;
|
|
1516
|
-
if (!el || !c || !el.style
|
|
1534
|
+
if (!el || !c || !el.style) return;
|
|
1535
|
+
if (el.classList?.contains("sheet")) { el.style.removeProperty("max-height"); liftOverSheet(el, c); return; }
|
|
1517
1536
|
const v = view0(), sz = sizeRef.current;
|
|
1518
1537
|
const w = c.walks ? walkers.at(c.name, now()) : null;
|
|
1519
1538
|
const pt = w ? { x: w.x, y: w.y - 52, r: 16 } : { x: c.box.x + c.box.w / 2, y: c.box.y, r: (c.box.w / 2) * v.k };
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1539
|
+
// Its whole height (a card held shorter below an area's name scrolls: its content's height, not the box's).
|
|
1540
|
+
const sc = (typeof el.querySelector === "function" && el.querySelector(".oo-card-body")) || el;
|
|
1541
|
+
const natural = sc.scrollHeight ? sc.scrollHeight + ((el.offsetHeight || 0) - (sc.clientHeight || 0)) : 0;
|
|
1542
|
+
const p = toScreen(v, pt.x, pt.y), cw = el.offsetWidth || 320, ch = natural || el.offsetHeight || 260, gap = (c.skin?.pack?.card?.layout?.gap ?? 12) + pt.r;
|
|
1543
|
+
// M-3633: clear of the areas' names — where the Office writes each one (areaTitleBox, a few px around it), else, on a
|
|
1544
|
+
// pack's own picture, the corner a name painted there takes.
|
|
1545
|
+
// The scene's own layout and skin (the draw loop's: this runs in it, where the render's may be an older one).
|
|
1546
|
+
const sc0 = scene.current, part = sc0 && !sc0.overview ? sc0.part : null, sk0 = part && part.skin;
|
|
1547
|
+
const titled = !!(sk0 && sk0.areaTitleBox && sc0.ctx && sc0.env);
|
|
1548
|
+
const avoid = part && part.zones && part.L ? Object.values(part.L.areas || {}).map((ar) => {
|
|
1549
|
+
const b = titled ? sk0.areaTitleBox(sc0.ctx, ar, sc0.env) : null;
|
|
1550
|
+
const r = b ? { x: b.x - 4, y: b.y - 4, w: b.w + 8, h: b.h + 8 } : { x: ar.rect.x, y: ar.rect.y, w: Math.min(ar.rect.w, AREA_LABEL.w), h: Math.min(ar.rect.h, AREA_LABEL.h) };
|
|
1551
|
+
const q = toScreen(v, r.x, r.y);
|
|
1552
|
+
return { x: q.x, y: q.y, w: r.w * v.k, h: r.h * v.k };
|
|
1553
|
+
}) : [];
|
|
1554
|
+
const { x, y, maxH } = cardSpot({ px: p.x, py: p.y, gap, cw, ch, w: sz.w, h: sz.h, avoid });
|
|
1555
|
+
if (maxH) el.style.setProperty("max-height", `${Math.round(maxH)}px`); else el.style.removeProperty("max-height");
|
|
1525
1556
|
el.style.setProperty("transform", `translate(${Math.round(x)}px, ${Math.round(y)}px)`);
|
|
1526
1557
|
};
|
|
1558
|
+
/**
|
|
1559
|
+
* M-3633: a phone's bottom-sheet card covers the stage's foot. The scene is kept in the rest (setView's clampPan is
|
|
1560
|
+
* given the uncovered height: a scene smaller than it is centred there), and the person is brought above the sheet —
|
|
1561
|
+
* once each time the sheet's height changes, so a pan of their own is left alone. It closes: the whole stage again.
|
|
1562
|
+
*/
|
|
1563
|
+
const visSize = () => { const z = sizeRef.current || size; return { w: z.w, h: Math.max(1, z.h - sheetCover.current) }; };
|
|
1564
|
+
const liftOverSheet = (el, c) => {
|
|
1565
|
+
const st = stageRef.current;
|
|
1566
|
+
if (!st || typeof st.getBoundingClientRect !== "function" || typeof el.getBoundingClientRect !== "function") return;
|
|
1567
|
+
const cover = Math.max(0, Math.round(st.getBoundingClientRect().bottom - el.getBoundingClientRect().top));
|
|
1568
|
+
if (cover === sheetCover.current) return;
|
|
1569
|
+
sheetCover.current = cover;
|
|
1570
|
+
// The scene's current layout (this runs in the draw loop, where the render's `L` may be an older one).
|
|
1571
|
+
const LL = (scene.current && !scene.current.overview && scene.current.part && scene.current.part.L) || L;
|
|
1572
|
+
const v = view0(), w = c.walks ? walkers.at(c.name, now()) : null;
|
|
1573
|
+
const p = toScreen(v, w ? w.x : c.box.x + c.box.w / 2, w ? w.y : c.box.y + c.box.h), room = (sizeRef.current || size).h - cover - 16;
|
|
1574
|
+
vp.current = clampPan({ ...v, y: v.y - Math.max(0, p.y - room) }, LL.width, LL.height, visSize());
|
|
1575
|
+
apply();
|
|
1576
|
+
};
|
|
1577
|
+
const unliftSheet = () => {
|
|
1578
|
+
if (!sheetCover.current) return;
|
|
1579
|
+
sheetCover.current = 0;
|
|
1580
|
+
vp.current = clampPan(view0(), L.width, L.height, size);
|
|
1581
|
+
apply();
|
|
1582
|
+
};
|
|
1527
1583
|
/**
|
|
1528
1584
|
* Put the view on everything that shows it beside the canvas: the overview's frame (the part of the scene in view;
|
|
1529
1585
|
* the whole view on its data-k/x/y), the zoom's percentage, the overlay, the tooltip.
|
|
@@ -1572,7 +1628,7 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
1572
1628
|
* fit (a resize fits it again).
|
|
1573
1629
|
*/
|
|
1574
1630
|
const setView = (v, user = true, fit = false) => {
|
|
1575
|
-
vp.current = clampPan(v, L.width, L.height,
|
|
1631
|
+
vp.current = clampPan(v, L.width, L.height, visSize());
|
|
1576
1632
|
fitted.current = fit;
|
|
1577
1633
|
apply();
|
|
1578
1634
|
if (!user) return;
|
|
@@ -1612,7 +1668,7 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
1612
1668
|
else if (!touched.current) reopen();
|
|
1613
1669
|
else { const v = vp.current, cx = (was.w / 2 - v.x) / v.k, cy = (was.h / 2 - v.y) / v.k; vp.current = { k: v.k, x: size.w / 2 - cx * v.k, y: size.h / 2 - cy * v.k }; }
|
|
1614
1670
|
} else if (fitted.current) vp.current = fitL(fitMode); // the scene's size changed
|
|
1615
|
-
vp.current = clampPan(view0(), L.width, L.height,
|
|
1671
|
+
vp.current = clampPan(view0(), L.width, L.height, visSize());
|
|
1616
1672
|
raw.current = vp.current.k;
|
|
1617
1673
|
}, [officeKey, size.w, size.h, ratio, L.width, L.height]);
|
|
1618
1674
|
useEffect(() => () => flushSave(), []);
|
|
@@ -2608,7 +2664,7 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
2608
2664
|
${tile("fitwidth", to("fill"), toggleFill, "oo-sheet-fill", fitMode === "cover")}
|
|
2609
2665
|
${tile("fullscreen", to("fullscreen"), () => { closeMore(); enterFs(); }, "oo-sheet-fs")}
|
|
2610
2666
|
</div>` : null}
|
|
2611
|
-
${typeof onLive === "function" ? html`<label class="check oo-sheet-live"><input type="checkbox" checked=${!!live} onChange=${() => onLive(!live)} /><span>${
|
|
2667
|
+
${typeof onLive === "function" ? html`<label class="check oo-sheet-live"><input type="checkbox" checked=${!!live} onChange=${() => onLive(!live)} /><span>${to("live")}</span></label>` : null}
|
|
2612
2668
|
<div class="oo-bar oo-sheet-bar" onClick=${sheetClick}>${barItems}</div>
|
|
2613
2669
|
</${Dialog}>` : null}
|
|
2614
2670
|
${traffic && keyOpen ? html`<${OfficeKey} pal=${pal} />` : null}
|
|
@@ -2639,7 +2695,7 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
2639
2695
|
model=${cardModel({ node: cardOf.node, lv, levels: wordsOf(cardOf.skin), share: !onOpen, rows: cardRows ? cardRows(cardOf.node.name) : null, display: cardName ? cardName(cardOf.node.name) : "",
|
|
2640
2696
|
state: stateOf(cardOf.node), now: nowOf(cardOf.node),
|
|
2641
2697
|
where: [cardOf.office || (custom ? custom.name : to("allOffice")), cardOf.area].filter(Boolean).join(" · ") })}
|
|
2642
|
-
avatar=${drawAvatar} sheet=${phone || size.w < SHEET_W} place=${(el) => { const was = cardEl.current; cardEl.current = el; placeCard();
|
|
2698
|
+
avatar=${drawAvatar} sheet=${phone || size.w < SHEET_W} place=${(el) => { const was = cardEl.current; cardEl.current = el; if (!el || !el.classList?.contains("sheet")) unliftSheet(); placeCard();
|
|
2643
2699
|
// #4379 review: the tags it covers (or uncovers) are judged at the next frame; a still scene draws one now.
|
|
2644
2700
|
if (was !== el && scene.current) { scene.current.dirty = true; const go = () => (still ? draw(0) : loop.current?.wake()); if (typeof requestAnimationFrame === "function") requestAnimationFrame(go); else go(); } }}
|
|
2645
2701
|
onChat=${onOpen ? () => { const n = cardOf.node.name; setCard(null); open(n); } : null} onFind=${findCard} onClose=${closeCard}
|
|
@@ -2672,10 +2728,10 @@ export function Office({ view, traffic, q = "", lease, onOpen, assetUrl, assetIm
|
|
|
2672
2728
|
onFocus=${() => setTip(d.key)} onBlur=${() => setTip(null)} onClick=${() => { cardFrom.current = d.key; setCard((cur) => (cur === d.key ? null : d.key)); }}>${nt.primary}</button>`
|
|
2673
2729
|
: html`<span class="oo-desk" data-name=${d.node.name} data-key=${d.key}>${full}</span>`}</li>`;
|
|
2674
2730
|
})}</ul>
|
|
2675
|
-
<div class="oc-zoom oo-zoom" role="group" aria-label=${
|
|
2731
|
+
<div class="oc-zoom oo-zoom" role="group" aria-label=${to("view")}>
|
|
2676
2732
|
<output ref=${pctRef} class="oo-zoom-pct"></output>
|
|
2677
|
-
<button type="button" class="icon-btn oo-zoom-in" aria-label=${
|
|
2678
|
-
<button type="button" class="icon-btn oo-zoom-out" aria-label=${
|
|
2733
|
+
<button type="button" class="icon-btn oo-zoom-in" aria-label=${to("zoomIn")} title=${to("zoomIn")} onClick=${() => zoomStep(1)}><${Icon} name="plus" size=${16} /></button>
|
|
2734
|
+
<button type="button" class="icon-btn oo-zoom-out" aria-label=${to("zoomOut")} title=${to("zoomOut")} onClick=${() => zoomStep(-1)}><${Icon} name="minus" size=${16} /></button>
|
|
2679
2735
|
<button type="button" class="icon-btn oo-fit" aria-label=${to("fit")} title=${to("fit")} onClick=${() => fit()}><${Icon} name="fitwidth" size=${16} /></button>
|
|
2680
2736
|
<button type="button" class=${`icon-btn oo-fill${fitMode === "cover" ? " on" : ""}`} aria-pressed=${fitMode === "cover" ? "true" : "false"} aria-label=${to("fillTitle")}
|
|
2681
2737
|
title=${to("fillTitle")} onClick=${toggleFill}>${to("fill")}</button>
|
package/dist/ui/fleet-org.js
CHANGED
|
@@ -24,11 +24,11 @@ register("org", {
|
|
|
24
24
|
sending: "Sending:", queuedNote: "(queued)", workingNote: "(in progress)",
|
|
25
25
|
},
|
|
26
26
|
"zh-TW": {
|
|
27
|
-
starting: "啟動中", queued: "等待啟動", title: "組織圖", general: "General", unteamed: "
|
|
27
|
+
starting: "啟動中", queued: "等待啟動", title: "組織圖", general: "General", unteamed: "未加入團隊", members: "{0} 名成員", member: "1 名成員", instances: "{0} 個 Agent", instance: "1 個 Agent",
|
|
28
28
|
needs: "等你回應", working: "工作中", idle: "閒置", stuck: "似乎卡住", paused: "已暫停", stopped: "已停止", crashed: "已當掉",
|
|
29
29
|
missing: "不在 fleet 中", thread_discord: "Discord 討論串", thread_telegram: "Telegram topic", openChat: "開啟聊天",
|
|
30
|
-
classic: "ClassicBot 頻道", empty: "還沒有 Agent", emptyHint: "fleet 有 Agent
|
|
31
|
-
noTeams: "
|
|
30
|
+
classic: "ClassicBot 頻道", empty: "還沒有 Agent", emptyHint: "fleet 有 Agent 和團隊後會顯示在這裡。",
|
|
31
|
+
noTeams: "還沒有團隊——到 Fleet → 團隊 定義後,組織圖會依團隊分組。", newTab: "(在新分頁開啟)",
|
|
32
32
|
sending: "傳送中:", queuedNote: "(排隊中)", workingNote: "(進行中)",
|
|
33
33
|
},
|
|
34
34
|
});
|
|
@@ -131,7 +131,7 @@ register("tasks", {
|
|
|
131
131
|
boardOffNote: "{0} 的任務板是關閉的:不能指派卡片給它,留言和 @ 也叫不醒它,它也收不到 [Task board] 通知。",
|
|
132
132
|
boardOffCommentNote: "{0} 的任務板是關閉的,這則留言不會叫醒它。",
|
|
133
133
|
boardOffWhere: "要打開:{0}(所有 Agent),或這個 Agent 自己的設定 → 進階 → 網頁儀表板權限。", boardOffWhereLink: "設定 → Agent 共用設定",
|
|
134
|
-
boardOff: "{0}(看板已關閉)", boardOffHint: "關閉任務看板的 Agent
|
|
134
|
+
boardOff: "{0}(看板已關閉)", boardOffHint: "關閉任務看板的 Agent 不能被派卡:它沒有任務工具,讀不到卡片。",
|
|
135
135
|
reviewBox: "做完要停在待確認,等我確認", created: "已開 {0}", titleRequired: "標題必填",
|
|
136
136
|
search: "搜尋卡片", searchHint: "搜尋標題、各欄位、驗收條件和留言", searchEmpty: "沒有符合的卡片", inField: "在{0}",
|
|
137
137
|
fieldgoal: "目標", fieldscope: "範圍", fieldcontext: "背景", fieldstate: "目前狀態", fieldresult: "產出", fieldblockedReason: "卡住原因",
|
|
@@ -161,7 +161,7 @@ register("tasks", {
|
|
|
161
161
|
"err.dep_own_main": "子任務不能相依自己的主任務 {0}", "err.dep_own_sub": "主任務不能相依自己的子任務 {0}",
|
|
162
162
|
"err.dep_cycle": "相依會形成循環,大家會互相等待:{0}", "err.conflict": "{0} 已經被改過(最後由 {1} 修改)",
|
|
163
163
|
"err.signed_in_only": "看板只接受已登入網頁的修改", "err.unavailable": "看板目前無法使用", "err.not_over_public_link": "公開連結只能看看板,不能修改",
|
|
164
|
-
"err.assignee_board_off": "{0} 關閉了任務看板,讀不到也動不了卡片。請先替 {0}
|
|
164
|
+
"err.assignee_board_off": "{0} 關閉了任務看板,讀不到也動不了卡片。請先替 {0} 開啟(設定 → 該 Agent → 網頁儀表板權限),或改在聊天中交辦",
|
|
165
165
|
"err.watcher_unknown": "「{0}」不是 fleet 裡的 Agent", "err.watcher_board_off": "{0} 關閉了任務看板,讀不到也動不了卡片,通知送過去它也沒辦法處理",
|
|
166
166
|
"err.watchers_max": "{0} 最多只能有 {1} 個關注者", "err.watch_not_board": "{0} 不是任務板上的卡片,只有任務板上的卡片可以關注",
|
|
167
167
|
"note.review_waiting": "{0}「{1}」的子任務都完成了,等你確認",
|
package/dist/ui/fleet-usage.js
CHANGED
|
@@ -50,23 +50,23 @@ register("fusage", {
|
|
|
50
50
|
},
|
|
51
51
|
"zh-TW": {
|
|
52
52
|
range: "期間", today: "今天", r7d: "7 天", month: "本月", all: "全部", custom: "自訂", from: "從", to: "到", apply: "套用",
|
|
53
|
-
group: "分組", g_instance: "Agent", g_backend: "Backend", g_model: "模型", g_profile: "
|
|
53
|
+
group: "分組", g_instance: "Agent", g_backend: "Backend", g_model: "模型", g_profile: "憑證設定檔", g_team: "Team(依目前設定)",
|
|
54
54
|
csv: "下載 CSV", basis: "依牌價換算的 API 等值({0})——不是實際花費。", basisMore: "訂閱方案不按 token 計費。",
|
|
55
55
|
amount: "API 等值", input: "輸入", output: "輸出", reasoning: "推理", read: "快取讀取", write: "快取寫入", total: "token 總計", requests: "請求數", messages: "訊息數",
|
|
56
|
-
notPriced: "未定價", partial: "部分", noTeam: "
|
|
56
|
+
notPriced: "未定價", partial: "部分", noTeam: "(不屬於任何團隊)", unknown: "未知",
|
|
57
57
|
t_not_priced: "未定價:{0}", t_partial: "這一列有部分模型沒有價格", t_write_unreported: "Codex/Muse 不回報快取寫入",
|
|
58
58
|
t_cost_reported: "金額為 CLI 自行回報", t_estimated: "依文字長度估算(Kiro 不記錄 token 數)", t_reasoning_none: "這個 CLI 不回報",
|
|
59
|
-
sourceNote: "部分時段在 AgEnD
|
|
59
|
+
sourceNote: "部分時段在 AgEnD 記錄後端與設定檔之前就已讀取。", profileUnrecorded: "未記錄設定檔",
|
|
60
60
|
l_partial: "◐ 部分定價", l_cost_reported: "† 金額由 CLI 回報", l_estimated: "≈ 估算值",
|
|
61
61
|
speed: "速度", speedUnit: "{0} token/秒", speedCoverage: "{1} 個請求中有 {0} 個可計時", speedSpread: "p10–p90:{0}–{1} token/秒",
|
|
62
|
-
speedNone: "
|
|
62
|
+
speedNone: "對話紀錄沒有計時資訊", speedByModel: "各模型速度",
|
|
63
63
|
speedBasis: "輸出 token ÷ 模型本身的回應時間(不含工具執行時間);方法參考 tokdash。",
|
|
64
64
|
|
|
65
65
|
f_includes_estimates: "含估算值(Kiro)", estimatedPart: "其中估算:{0}",
|
|
66
66
|
scanning: "掃描中——總數可能還會增加。", updated: "更新於 {0} · 每 10 分鐘讀取一次", since: "自 {0} 起收集", notYet: "尚未收集",
|
|
67
67
|
refresh: "重新整理",
|
|
68
|
-
notMeasured: "未量測", nm_credit_billed: "Kiro
|
|
69
|
-
shared: "與 {0}
|
|
68
|
+
notMeasured: "未量測", nm_credit_billed: "Kiro 以點數計費,不記錄 token", nm_unsupported: "AgEnD 目前還讀不到這個 CLI 的用量", nm_no_data: "尚未讀到任何資料",
|
|
69
|
+
shared: "與 {0} 共用工作目錄,無法分辨各自的對話紀錄",
|
|
70
70
|
empty: "還沒有任何紀錄", emptyHint: "用量從 Claude Code、Codex、Grok、Muse、OpenCode 與 Antigravity 讀取,Kiro 則為估算,自 fleet 啟動起計。",
|
|
71
71
|
blocked: "公開連結上不提供", blockedHint: "只有在設定 → 網頁儀表板裡開啟「透過公開連結提供用量報告」時,公開連結才會提供用量;這個設定要在執行 AgEnD 的那台電腦上、直接開啟的儀表板裡變更。",
|
|
72
72
|
openSettings: "在那台電腦上開啟設定 → 網頁儀表板",
|
|
@@ -43,7 +43,7 @@ register("hubOverview", {
|
|
|
43
43
|
qPerDay: "每天的提問數", qRange_today: "今天", qRange_7d: "7 天", qHint: "每問一個 Agent 算一次。", qToday: "今天",
|
|
44
44
|
aTime: "回答時間", aMed: "一般(中位數)", aSlow: "最慢的十分之一", aWait: "正在等回答", aWaitOld: "目前等最久",
|
|
45
45
|
notEnough: "回答數還不夠", none: "—",
|
|
46
|
-
fTitle: "沒有得到回答", fRate: "
|
|
46
|
+
fTitle: "沒有得到回答", fRate: "佔全部提問的 {0}%", fOff: "Agent 的 Fleet 沒有連接", fTime: "逾時沒有回答",
|
|
47
47
|
fPerm: "權限先到期", fBusy: "Agent 停止或拒絕", fUnknown: "其他或原因不明",
|
|
48
48
|
topTitle: "最常被問的 Agent", topAgent: "Agent", topAsk: "提問數", topMed: "一般回答時間", topFail: "沒有回答",
|
|
49
49
|
topNone: "這段期間還沒有人問過 Agent。", topShared: "總共分享了 {0} 個 Agent。",
|
|
@@ -69,7 +69,7 @@ register("hubChat", {
|
|
|
69
69
|
ownerSees: "你的問題會出現在 {0} 的 fleet 聊天裡,標示你的 Hub 身分。",
|
|
70
70
|
agentShares: "它和其他有權限的人共用同一段對話,可能記得別人問過的事。別放不想讓別人知道的內容。",
|
|
71
71
|
adminTitle: "Hub 管理員", adminSees: "看不到內容。",
|
|
72
|
-
notHere: "這裡沒有", notHereText: "{0}
|
|
72
|
+
notHere: "這裡沒有", notHereText: "{0} 的檔案與變更、終端機畫面(檢視)、工具進度:只有 {1} 在自己的 fleet 看得到。",
|
|
73
73
|
oneToOne: "一個聊天室只有你和這個 Agent。",
|
|
74
74
|
menu: "選單", mine: "我的 Agent", mineHint: "誰可以提問、到什麼時候", admin: "管理", adminHint: "連接 Fleet",
|
|
75
75
|
back: "對話",
|
|
@@ -4,7 +4,7 @@ register("hubMyAgents", {
|
|
|
4
4
|
offlineShort:"Offline · last seen {0}", knownShared:"{0} shared", oldCountOne:"1 Fleet needs an update to share agents from here.", oldCount:"{0} Fleets need an update to share agents from here.", namesMore:"{0} and {1} more", lead:"The agents you can share on this Hub, and who may ask each one.", refresh:"Refresh", refreshing:"Checking…", fleet:"Fleet", connected:"Connected", offline:"This Fleet is offline. Shown as last seen at {0}.", count:"{0} of {1} shared", select:"Select all", general:"Your Fleet's General. It can manage this Fleet.", classic:"ClassicBot room", classicHint:"Hub questions and answers are not posted in its Discord or Telegram room, and the room's chat is not copied to the Hub. It is one agent with one memory: it may use what it learned in the room when it answers here.",
|
|
5
5
|
old:"Update this Fleet to share agents from here.", update:"Update this Fleet", updateHint:"On that computer, open Settings → Hub and check its connection and version.", off:"Sharing from the Hub page is turned off in this Fleet's Settings → Hub.", denied:"Your Hub administrator hasn't allowed you to share agents.", unknown:"The Hub could not check whether sharing is allowed. Refresh to check.", remote:"This kind of agent can't answer Hub questions yet.", unavailable:"This agent cannot answer Hub questions right now.", limit:"This Fleet already shares 64 agents, the most allowed.", suspended:"This Fleet is paused on this Hub.", revoked:"This Fleet was removed from this Hub.",
|
|
6
6
|
lapsed:"Its backend or folder changed since you shared it, so Hub questions are refused until you share it again. The people who may ask it stay.", shareAgain:"Share again", needsReshare:"Needs re-share", kept:"(kept)",
|
|
7
|
-
shared:"Shared", nobody:"nobody may ask yet", setWho:"Choose who may ask", pictureDiscLarge:"Its avatar is too large for the Hub (limit 64 KB). On your Fleet, pick a smaller picture, or a PNG that AgEnD can shrink, in this agent's View → Edit profile → Avatar.", picturePortraitLarge:"Its identity-card portrait is too large for the Hub (limit 512 KB, including its avatar). On your Fleet, pick a smaller picture, or a PNG that AgEnD can shrink, in this agent's View → Edit profile → Identity card → Portrait.", peopleOne:"1 person may ask", people:"{0} people may ask", subjects:"{0} people, groups or teams may ask", paused:"Paused", sharing:"Sharing…", stopping:"Stopping…", uncertain:"Not confirmed yet: this Fleet hasn't answered. Refresh to check.", refused:"Not shared: {0}", changed:"This list changed. It has been refreshed; tick again.",
|
|
7
|
+
shared:"Shared", nobody:"nobody may ask yet", setWho:"Choose who may ask", pictureDiscLarge:"Its avatar is too large for the Hub (limit 64 KB). On your Fleet, pick a smaller picture, or a PNG that AgEnD can shrink, in this agent's View → Edit profile → Avatar.", picturePortraitLarge:"Its identity-card portrait is too large for the Hub (limit 512 KB, including its avatar). On your Fleet, pick a smaller picture, or a PNG that AgEnD can shrink, in this agent's View → Edit profile → Identity card → Portrait.", pictureCharacterLarge:"Its own character from your office's skin pack is too large for the Hub (limit 512 KB with its avatar and portrait), so room offices draw it as the plain figure. In that pack, give it a smaller set: fewer or smaller frames.", peopleOne:"1 person may ask", people:"{0} people may ask", subjects:"{0} people, groups or teams may ask", paused:"Paused", sharing:"Sharing…", stopping:"Stopping…", uncertain:"Not confirmed yet: this Fleet hasn't answered. Refresh to check.", refused:"Not shared: {0}", changed:"This list changed. It has been refreshed; tick again.",
|
|
8
8
|
shareOne:"Share 1 agent", stopOne:"Stop sharing 1 agent", stopTitleOne:"Stop sharing 1 agent?", accessTitleOne:"1 agent is shared. Who may ask it?", share:"Share {0} agents", stop:"Stop sharing {0} agents", mixed:"Share {0} · Stop sharing {1}", apply:"Apply changes", cancel:"Cancel", stopTitle:"Stop sharing {0} agents?", stopBody:"People will no longer be able to ask: {0}. Their lists of who may ask are cleared.", stopHint:"To keep the lists and only stop answers for now, pause sharing instead.", stopGo:"Stop sharing", pause:"Pause instead", pauseOne:"Pause sharing", later:"Decide later", accessTitle:"{0} agents are shared. Who may ask them?", accessLead:"Nobody can ask them until you choose.", same:"The same people for all {0}", each:"Choose for each agent", choose:"Choose who may ask", previousMixed:"Use the list it had before", previous:"Use the list it had before ({0} people)", used:"The previous list is saved.", saved:"Saved", saveFailed:"Could not save access for {0}. Check the current agent and try again.", personal:"On my own computer", details:"Open {0}",
|
|
9
9
|
empty:"You don't have an agent on this Hub yet.", already:"You can already ask other people's agents: open Chats, or @mention an agent in a room.", emptyLead:"To have an agent of your own that colleagues can ask:", personalOff:"Personal agents are turned off on this Hub. Ask your Hub administrator.", fleetLead:"If you run AgEnD, share the agents in it.", connectDenied:"Ask your Hub administrator to let you connect a Fleet.", apps:"Your own Claude Code or Codex can also use this Hub for you. That is for asking and posting as you. Colleagues can't ask it.", appsLink:"My AI apps", failed:"The list could not be read. Refresh to try again.",
|
|
10
10
|
},
|
|
@@ -12,7 +12,7 @@ register("hubMyAgents", {
|
|
|
12
12
|
offlineShort:"離線 · 最後上線 {0}", knownShared:"已分享 {0}", oldCountOne:"有 1 個 Fleet 需要更新,才能從這裡分享 Agent。", oldCount:"有 {0} 個 Fleet 需要更新,才能從這裡分享 Agent。", namesMore:"{0} 等 {1} 個", lead:"可以分享到這個 Hub 的 Agent,以及誰可以向它們提問。", refresh:"重新整理", refreshing:"確認中…", fleet:"Fleet", connected:"已連接", offline:"這個 Fleet 目前離線,顯示的是 {0} 的狀態。", count:"已分享 {0} / {1}", select:"全選", general:"你的 Fleet 的 General,可以管理這個 Fleet。", classic:"ClassicBot 房間", classicHint:"Hub 的提問與回答不會貼到它的 Discord 或 Telegram 房間,房間的聊天也不會複製到 Hub。但它是同一個 Agent、同一份記憶:在這裡回答時,可能用到它在房間裡得知的內容。",
|
|
13
13
|
old:"請更新這個 Fleet,才能從這裡分享 Agent。", update:"更新這個 Fleet", updateHint:"請到那台電腦的「設定 → Hub」,確認連接狀態與版本。", off:"這個 Fleet 的「設定 → Hub」關閉了從 Hub 頁面分享。", denied:"Hub 管理員還沒有允許你分享 Agent。", unknown:"Hub 目前無法確認是否允許分享,請重新整理確認。", remote:"這種 Agent 還不能回答 Hub 的提問。", unavailable:"這個 Agent 目前無法回答 Hub 的提問。", limit:"這個 Fleet 已經分享 64 個 Agent,達到上限。", suspended:"這個 Fleet 在這個 Hub 已暫停。", revoked:"這個 Fleet 已從這個 Hub 移除。",
|
|
14
14
|
lapsed:"分享之後它的後端或資料夾換了,重新分享之前 Hub 的提問都會被拒絕。可以提問的人會保留。", shareAgain:"重新分享", needsReshare:"需要重新分享", kept:"(會保留)",
|
|
15
|
-
shared:"分享中", nobody:"還沒有人可以問", setWho:"設定誰可以問", pictureDiscLarge:"它的頭像太大,Hub 無法顯示(上限 64 KB)。請在你的 Fleet 上,於這個 Agent 的「檢視 → 編輯個人資料 → 頭像」換一張較小的圖片,或改用 AgEnD 能自動縮小的 PNG。", picturePortraitLarge:"它的身分卡肖像太大,Hub 無法顯示(上限 512 KB,含頭像)。請在你的 Fleet 上,於這個 Agent 的「檢視 → 編輯個人資料 → 身分卡 → 肖像」換一張較小的圖片,或改用 AgEnD 能自動縮小的 PNG。", peopleOne:"1 人可以提問", people:"{0} 人可以提問", subjects:"{0} 個人員、群組或團隊可以提問", paused:"已暫停", sharing:"分享中…", stopping:"停止中…", uncertain:"還沒有確認:這個 Fleet 尚未回應,請重新整理確認。", refused:"沒有分享:{0}", changed:"清單已有變動並重新整理,請重新勾選。",
|
|
15
|
+
shared:"分享中", nobody:"還沒有人可以問", setWho:"設定誰可以問", pictureDiscLarge:"它的頭像太大,Hub 無法顯示(上限 64 KB)。請在你的 Fleet 上,於這個 Agent 的「檢視 → 編輯個人資料 → 頭像」換一張較小的圖片,或改用 AgEnD 能自動縮小的 PNG。", picturePortraitLarge:"它的身分卡肖像太大,Hub 無法顯示(上限 512 KB,含頭像)。請在你的 Fleet 上,於這個 Agent 的「檢視 → 編輯個人資料 → 身分卡 → 肖像」換一張較小的圖片,或改用 AgEnD 能自動縮小的 PNG。", pictureCharacterLarge:"它在你辦公室外觀包裡的專屬角色太大,Hub 無法顯示(上限 512 KB,含頭像與肖像),房間辦公室會改用一般人物。請在那個外觀包裡給它較小的角色:較少或較小的影格。", peopleOne:"1 人可以提問", people:"{0} 人可以提問", subjects:"{0} 個人員、群組或團隊可以提問", paused:"已暫停", sharing:"分享中…", stopping:"停止中…", uncertain:"還沒有確認:這個 Fleet 尚未回應,請重新整理確認。", refused:"沒有分享:{0}", changed:"清單已有變動並重新整理,請重新勾選。",
|
|
16
16
|
shareOne:"分享 1 個 Agent", stopOne:"停止分享 1 個 Agent", stopTitleOne:"要停止分享 1 個 Agent 嗎?", accessTitleOne:"已分享 1 個 Agent。誰可以問它?", share:"分享 {0} 個 Agent", stop:"停止分享 {0} 個 Agent", mixed:"分享 {0} 個 · 停止分享 {1} 個", apply:"套用變更", cancel:"取消", stopTitle:"要停止分享 {0} 個 Agent 嗎?", stopBody:"同仁將無法再問:{0}。這些 Agent 的「可以提問的人」名單會被清除。", stopHint:"如果只是暫時不回答、想保留名單,請改用「暫停分享」。", stopGo:"停止分享", pause:"改為暫停", pauseOne:"暫停分享", later:"稍後再決定", accessTitle:"已分享 {0} 個 Agent。誰可以問它們?", accessLead:"在你選擇之前,沒有人可以問它們。", same:"{0} 個都用同一份名單", each:"每個 Agent 分開選", choose:"選擇誰可以提問", previousMixed:"沿用之前的名單", previous:"沿用之前的名單({0} 人)", used:"已儲存之前的名單。", saved:"已儲存", saveFailed:"無法儲存 {0} 的提問權限,請確認目前的 Agent 後再試。", personal:"在我的電腦上", details:"開啟 {0}",
|
|
17
17
|
empty:"你在這個 Hub 還沒有自己的 Agent。", already:"你現在就可以問別人的 Agent:到「對話」,或在房間裡 @ 一個 Agent。", emptyLead:"想要有自己的 Agent 讓同仁提問:", personalOff:"這個 Hub 還沒有開啟個人 Agent,請洽 Hub 管理員。", fleetLead:"如果你有在使用 AgEnD,可以分享裡面的 Agent。", connectDenied:"請 Hub 管理員允許你連接 Fleet。", apps:"你自己的 Claude Code 或 Codex 也可以替你使用這個 Hub,用來提問和發言;同仁不能問它。", appsLink:"我的 AI App", failed:"無法讀取清單,請重新整理再試。",
|
|
18
18
|
}
|
package/dist/ui/hub-my-agents.js
CHANGED
|
@@ -140,7 +140,7 @@ export function HubMyAgents({ client, scope, shared = [], policy = false, person
|
|
|
140
140
|
: html`<small class="note">${ms(row.current.state !== "published" ? "paused" : "shared")} · ${summary(row.current)}</small>`) : null}
|
|
141
141
|
${row.shared && row.current && fleet.picturesTooLarge?.[row.current.id]?.length
|
|
142
142
|
// M-3533 R2b (Lumen): a picture its Fleet shows but the Hub cannot take says so here, to its owner alone.
|
|
143
|
-
? fleet.picturesTooLarge[row.current.id].map(slot => html`<small class="note hub-agent-picture-large" data-picture-large=${slot}>${ms(slot === "disc" ? "pictureDiscLarge" : "picturePortraitLarge")}</small>`) : null}
|
|
143
|
+
? fleet.picturesTooLarge[row.current.id].map(slot => html`<small class="note hub-agent-picture-large" data-picture-large=${slot}>${ms(slot === "disc" ? "pictureDiscLarge" : slot === "character" ? "pictureCharacterLarge" : "picturePortraitLarge")}</small>`) : null}
|
|
144
144
|
${row.shared && row.exposure?.lapsed === true && row.instance ? html`<small class="note hub-agent-lapsed" role="status">${ms("lapsed")}</small>
|
|
145
145
|
<button type="button" class="btn btn-sm hub-agent-share-again" data-share-again=${row.instance} disabled=${busy || !!waiting.length} onClick=${() => shareAgain(row, fleet)}>${ms("shareAgain")}</button>` : null}
|
|
146
146
|
${status ? html`<small class=${status.state === "refused" ? "err" : "note"} role="status">${status.state === "uncertain" ? ms("uncertain") : status.state === "refused" ? status.code === "stale-list" ? ms("changed") : ms("refused", ms(({ "not-allowed": "denied", "switched-off": "off", "limit": "limit", "not-shareable": "unavailable" })[status.code] || "unavailable")) : ms(status.instance ? "sharing" : "stopping")}</small>` : null}</span>
|
|
@@ -9,7 +9,7 @@ import { lang } from "/assets/app-i18n.js";
|
|
|
9
9
|
import { createLease } from "/assets/app-ctx.js";
|
|
10
10
|
import { Skeleton, ErrorState } from "/assets/ui-states.js";
|
|
11
11
|
import { hroom } from "./hub-room-strings.js";
|
|
12
|
-
import { agentPictureSrc, presenceView } from "./hub-room-presence.js";
|
|
12
|
+
import { agentCharacterSrc, agentPictureSrc, presenceView } from "./hub-room-presence.js";
|
|
13
13
|
|
|
14
14
|
/** How often a shown office is read again (the share page's POLL_MS). */
|
|
15
15
|
export const ROOM_OFFICE_POLL_MS = 5000;
|
|
@@ -33,6 +33,73 @@ const safeKey = (name) => (RESERVED(name) ? `\u2060${name}` : name);
|
|
|
33
33
|
const clip = (text, n) => { const c = [...text]; return c.length > n ? `${c.slice(0, n - 1).join("")}…` : text; };
|
|
34
34
|
const STORAGE_PREFIX = "agend_hub_room_office:";
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* M-3533 R2c: an agent's own character in a room office is fitted into the built-in figure's box (fleet-office-skin.js
|
|
38
|
+
* charBox: 48 × 66), kept in proportion, never larger — one scale for everyone in the room (Lumen's choice, B, over the
|
|
39
|
+
* pack's own scale: at 64 × 96 a robot stood twice a figure's height and crossed its area's edge and name). Its feet stay
|
|
40
|
+
* on the seat, as a figure's. Drawn unsmoothed, as the Fleet office draws every strip.
|
|
41
|
+
*/
|
|
42
|
+
export const CHARACTER_FIT = { w: 48, h: 66 };
|
|
43
|
+
/**
|
|
44
|
+
* An agent's character as the drawing takes it (a checked pack's strips, fleet-office-pack.js), its pictures at `src(pose,
|
|
45
|
+
* hash)`, each fitted into CHARACTER_FIT; null when it has none or a strip is not a well-formed one.
|
|
46
|
+
*/
|
|
47
|
+
export function characterSet(character, src) {
|
|
48
|
+
if (!character || typeof character !== "object") return null;
|
|
49
|
+
const out = {};
|
|
50
|
+
for (const [pose, st] of Object.entries(character)) {
|
|
51
|
+
const url = st && src(pose, st.sha256);
|
|
52
|
+
const nums = st && ["frames", "w", "h", "fps", "ax", "ay", "dw", "dh"].every((k) => typeof st[k] === "number" && Number.isFinite(st[k]));
|
|
53
|
+
if (!url || !nums || !(st.frames >= 1 && st.dw > 0 && st.dh > 0)) return null;
|
|
54
|
+
const k = Math.min(1, CHARACTER_FIT.w / st.dw, CHARACTER_FIT.h / st.dh);
|
|
55
|
+
out[pose] = { src: url, frames: st.frames, w: st.w, h: st.h, fps: st.fps, ax: st.ax, ay: st.ay, dw: st.dw * k, dh: st.dh * k,
|
|
56
|
+
...(Array.isArray(st.durations) ? { durations: st.durations } : {}), ...(st.once === true ? { once: true } : {}), ...(typeof st.loopFrom === "number" ? { loopFrom: st.loopFrom } : {}) };
|
|
57
|
+
}
|
|
58
|
+
return Object.keys(out).length ? out : null;
|
|
59
|
+
}
|
|
60
|
+
/** A picture loaded for the drawing (an Image once it has loaded; null if it fails). */
|
|
61
|
+
const loadImage = (url) => new Promise((resolve) => {
|
|
62
|
+
if (typeof Image !== "function") { resolve(null); return; }
|
|
63
|
+
const im = new Image();
|
|
64
|
+
im.onload = () => resolve(im); im.onerror = () => resolve(null);
|
|
65
|
+
im.src = url;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* M-3533 R2c: the room's agents' own characters, each drawn only once all its pictures have loaded (an agent is drawn wholly
|
|
70
|
+
* with its set or wholly as the figure). `instances` the drawing's (named), `load` an image loader (tests).
|
|
71
|
+
*/
|
|
72
|
+
export function useCharacters(roomId, instances, load = loadImage) {
|
|
73
|
+
const [images, setImages] = useState(() => new Map());
|
|
74
|
+
const wanted = useMemo(() => {
|
|
75
|
+
const sets = new Map();
|
|
76
|
+
for (const i of Array.isArray(instances) ? instances : []) {
|
|
77
|
+
const set = i && i.member ? characterSet(i.character, (pose, hash) => agentCharacterSrc(roomId, i.member, pose, hash)) : null;
|
|
78
|
+
if (set) sets.set(i.name, set);
|
|
79
|
+
}
|
|
80
|
+
return sets;
|
|
81
|
+
}, [roomId, instances]);
|
|
82
|
+
const urls = useMemo(() => [...new Set([...wanted.values()].flatMap((set) => Object.values(set).map((st) => st.src)))].sort(), [wanted]);
|
|
83
|
+
useEffect(() => {
|
|
84
|
+
let live = true;
|
|
85
|
+
const missing = urls.filter((u) => !images.has(u));
|
|
86
|
+
for (const u of missing) load(u).then((im) => { if (live) setImages((m) => new Map(m).set(u, im)); });
|
|
87
|
+
return () => { live = false; };
|
|
88
|
+
}, [urls.join("\n")]);
|
|
89
|
+
// Each read of the room makes new objects: the drawing gets a new skin only when the characters themselves change.
|
|
90
|
+
const sig = JSON.stringify([...wanted]);
|
|
91
|
+
return useMemo(() => {
|
|
92
|
+
const sets = Object.create(null), ready = new Map();
|
|
93
|
+
for (const [name, set] of wanted) {
|
|
94
|
+
const strips = Object.values(set);
|
|
95
|
+
if (!strips.every((st) => images.get(st.src))) continue;
|
|
96
|
+
sets[name] = set;
|
|
97
|
+
for (const st of strips) ready.set(st.src, images.get(st.src));
|
|
98
|
+
}
|
|
99
|
+
return Object.keys(sets).length ? { sets, images: ready } : null;
|
|
100
|
+
}, [sig, images]);
|
|
101
|
+
}
|
|
102
|
+
|
|
36
103
|
/** The Office drawing, loaded once on first use (the Hub serves it; a fleet page has it already). */
|
|
37
104
|
let drawing = null;
|
|
38
105
|
export const loadDrawing = () => (drawing ??= Promise.all([import("./fleet-office.js"), import("./fleet-org.js")])
|
|
@@ -175,6 +242,7 @@ export function RoomOffice({ client, roomId, members, onMention = null, onOpenCh
|
|
|
175
242
|
}, [lease, attempt]);
|
|
176
243
|
const shown = useMemo(() => (d ? named(d, members) : null), [d, members]);
|
|
177
244
|
holder.d = shown;
|
|
245
|
+
const characters = useCharacters(roomId, shown?.instances);
|
|
178
246
|
const view = useMemo(() => (kit && shown ? kit.buildOrgView(shown.org, officeApp(shown)) : null), [kit, shown]);
|
|
179
247
|
const memberOf = (name) => {
|
|
180
248
|
const id = shown?.instances.find((i) => i.name === name)?.member;
|
|
@@ -198,6 +266,6 @@ export function RoomOffice({ client, roomId, members, onMention = null, onOpenCh
|
|
|
198
266
|
...(onOpenChat && m.canAsk === true ? [{ label: hroom("chatOneToOneShort"), title: hroom("chatOneToOne"), run: () => onOpenChat(m) }] : [])];
|
|
199
267
|
return acts.length > 1 ? acts : acts[0] || null; } : null}
|
|
200
268
|
cardPhoto=${(name) => { const i = shown.instances.find((x) => x.name === name); return i?.member ? agentPictureSrc(roomId, i.member, "portrait", i.picture?.portrait) : null; }}
|
|
201
|
-
foldBar=${true} more=${more} onMore=${onMore} officesKey=${`${shown.offices?.offices?.[0]?.skin ?? ""}\n${shown.offices?.offices?.[0]?.members?.join("\n") ?? ""}`} />
|
|
269
|
+
foldBar=${true} more=${more} onMore=${onMore} characters=${characters} officesKey=${`${shown.offices?.offices?.[0]?.skin ?? ""}\n${shown.offices?.offices?.[0]?.members?.join("\n") ?? ""}`} />
|
|
202
270
|
</div>`;
|
|
203
271
|
}
|
|
@@ -133,3 +133,8 @@ export function agentPictureSrc(roomId, exposureId, slot, hash) {
|
|
|
133
133
|
return roomId && exposureId && typeof hash === "string" && /^[a-f0-9]{64}$/.test(hash)
|
|
134
134
|
? `/hub/v1/rooms/${encodeURIComponent(roomId)}/agents/${encodeURIComponent(exposureId)}/picture/${slot}?v=${hash}` : null;
|
|
135
135
|
}
|
|
136
|
+
/** M-3533 R2c: one pose of an agent's own character in this room (its strip's picture), as agentPictureSrc; null when none. */
|
|
137
|
+
export function agentCharacterSrc(roomId, exposureId, pose, hash) {
|
|
138
|
+
return roomId && exposureId && typeof pose === "string" && /^[A-Za-z]{1,16}$/.test(pose) && typeof hash === "string" && /^[a-f0-9]{64}$/.test(hash)
|
|
139
|
+
? `/hub/v1/rooms/${encodeURIComponent(roomId)}/agents/${encodeURIComponent(exposureId)}/character/${pose}?v=${hash}` : null;
|
|
140
|
+
}
|
package/dist/ui/panel-fleet.js
CHANGED
|
@@ -77,9 +77,9 @@ register("fleet", {
|
|
|
77
77
|
hostMemory_top: "最大:{0}", hostMemory_ownerFleet: "fleet 本身", hostMemory_ownerTmux: "tmux", hostMemory_ownerOther: "不屬於任何 Agent",
|
|
78
78
|
title: "Fleet", tasks: "任務", schedules: "排程", teams: "團隊", org: "組織圖", cache: "快取", usage: "用量", "host-health": "主機狀態",
|
|
79
79
|
docs: "文件", docsNewTab: "文件(在新分頁開啟)",
|
|
80
|
-
newSchedule: "新增排程", newTeam: "
|
|
80
|
+
newSchedule: "新增排程", newTeam: "新增團隊",
|
|
81
81
|
noSchedules: "還沒有排程", noSchedulesHint: "用 cron 自動執行例行工作。",
|
|
82
|
-
noTeams: "
|
|
82
|
+
noTeams: "還沒有團隊", noTeamsHint: "把 Agent 分組一起工作。", countSchedules: "{0} 個排程", countTeams: "{0} 個團隊", countSchedule: "1 個排程", countTeam: "1 個團隊",
|
|
83
83
|
delete: "刪除", on: "開", off: "關", cancel: "取消", create: "建立", creating: "建立中…", save: "儲存變更",
|
|
84
84
|
taskDesc: "說明", cron: "Cron 表示式", message: "訊息", target: "目標 Agent", label: "標籤", teamName: "Team 名稱", members: "成員",
|
|
85
85
|
schedOnce: "一次 · {0}", schedNext: "下次 {0}", schedRetrying: "重試中", schedDisabled: "已停用", schedSilent: "靜默", schedTz: "時區:{0}",
|
|
@@ -89,9 +89,9 @@ register("fleet", {
|
|
|
89
89
|
cronEveryMinute: "每分鐘", cronEveryMinutes: "每 {0} 分鐘", cronEveryHours: "每 {0} 小時", cronDaily: "每天 {0}",
|
|
90
90
|
cronWeekdays: "每週一到五 {0}", cronDays: "每週{0} {1}", cronMonthly: "每月 {0} 日 {1}", dayNames: "日,一,二,三,四,五,六", dayJoin: "、",
|
|
91
91
|
scheduleFieldsRequired: "必須填寫 Cron、訊息與目標 Agent", teamFieldsRequired: "必須填寫名稱並選擇至少一名成員",
|
|
92
|
-
deleteSchedule: "確定刪除此排程嗎?", deleteTeam: "
|
|
93
|
-
teamCreated: "Team 已建立", teamDeleted: "Team 已刪除", teamUpdated: "Team 已更新", edit: "編輯", editTeam: "
|
|
94
|
-
teamNoRename: "
|
|
92
|
+
deleteSchedule: "確定刪除此排程嗎?", deleteTeam: "確定刪除團隊「{0}」嗎?", scheduleCreated: "排程已建立", scheduleDeleted: "排程已刪除",
|
|
93
|
+
teamCreated: "Team 已建立", teamDeleted: "Team 已刪除", teamUpdated: "Team 已更新", edit: "編輯", editTeam: "編輯團隊",
|
|
94
|
+
teamNoRename: "不支援重新命名:請建立新的團隊,再刪除這個。",
|
|
95
95
|
backend: "Backend",
|
|
96
96
|
newInstance: "新增 Agent", directory: "目錄", directoryHint: "可留空——留空會自動建立工作區", topic: "名稱", topicHint: "預設取自目錄名稱",
|
|
97
97
|
topicRequired: "目錄留空時必須填寫名稱", description: "說明", descriptionHint: "這個 Agent 做什麼", model: "模型", modelHint: "例如 sonnet、opus、gpt-5",
|
package/dist/ui/panel-log.js
CHANGED
|
@@ -63,8 +63,8 @@ register("log", {
|
|
|
63
63
|
"zh-TW": {
|
|
64
64
|
offTitle: "紀錄未開啟",
|
|
65
65
|
offBody: "開啟後可逐步看到每個 agent 的工作:收到的要求、回覆、每次工具呼叫的參數與結果、錯誤,以及 fleet 事件。只在這個分頁開著時讀取 agent 自己的對話紀錄,機密值會遮蔽。",
|
|
66
|
-
enable: "開啟紀錄", enabling: "等待 fleet
|
|
67
|
-
enableFailed: "紀錄沒有開啟:{0}", offPublic: "fleet
|
|
66
|
+
enable: "開啟紀錄", enabling: "等待 fleet 管理員確認,確認卡片上有說明確認方式…", enabled: "紀錄已開啟。",
|
|
67
|
+
enableFailed: "紀錄沒有開啟:{0}", offPublic: "fleet 管理員可以在「設定 → 網頁儀表板」開啟。",
|
|
68
68
|
unsupported: "{0} 沒有 AgEnD 讀得到的對話紀錄,所以這裡只顯示 fleet 事件。「檢視」可以看它的畫面。",
|
|
69
69
|
kiroWhy: "只有在 AgEnD 能證明 kiro 目前所在的對話時,才會顯示它自己的步驟。{0}目前先顯示 fleet 事件。",
|
|
70
70
|
kiro_not_running: "它沒有在執行。",
|
|
@@ -88,7 +88,7 @@ register("log", {
|
|
|
88
88
|
ev_backend_unreachable: "連不到 CLI", ev_startup_backend_unreachable: "啟動時連不到 CLI", ev_backend_launch_warning: "啟動警告",
|
|
89
89
|
ev_clear_action: "對話已清除", ev_normal_exit_action: "已結束", ev_reply_drop_detected: "有回覆遺失",
|
|
90
90
|
ev_reply_drop_recovered: "遺失的回覆已補回", ev_reply_drop_unrecovered: "遺失的回覆沒有補回",
|
|
91
|
-
ev_supervision_ended: "監督結束", ev_tmux_server_crash: "tmux 當掉", ev_malformed_tool_call: "格式錯誤的工具呼叫", ev_health_check_error: "健康檢查錯誤", ev_context_lost: "
|
|
91
|
+
ev_supervision_ended: "監督結束", ev_tmux_server_crash: "tmux 當掉", ev_malformed_tool_call: "格式錯誤的工具呼叫", ev_health_check_error: "健康檢查錯誤", ev_context_lost: "改用全新對話:上下文遺失", ev_working_state: "工作狀態紀錄", ev_kiro_reconcile: "Kiro 對話接續處理",
|
|
92
92
|
},
|
|
93
93
|
});
|
|
94
94
|
/** Why a kiro Log shows fleet events only (kiro-log-gate.ts): each is worded above. */
|
|
@@ -77,7 +77,7 @@ register("machines", {
|
|
|
77
77
|
machines:"已連接的電腦", cli:"CLI", version:"Runtime 版本", platform:"平台",
|
|
78
78
|
switches:"這個 Fleet 可以使用", switchesNote:"開啟時,和其他存取設定一樣需要 Fleet 管理員確認;關閉不需 Fleet 管理員確認,你在這裡確認後就會立即生效。",
|
|
79
79
|
windowsCli:"使用這台電腦 Windows 上的 CLI", windowsCliHelp:"Agent 可以使用這台電腦 Windows 上安裝的 CLI(例如 Codex 或 Claude Code),沿用你在 Windows 的登入。需要 Windows Node.js。",
|
|
80
|
-
remoteRuntime:"允許其他 Windows 電腦配對", remoteRuntimeHelp:"這台電腦仍是你的 Fleet。另一台 Windows
|
|
80
|
+
remoteRuntime:"允許其他 Windows 電腦配對", remoteRuntimeHelp:"這台電腦仍是你的 Fleet。另一台 Windows 電腦只執行一個小執行程式,不是 Fleet;你在這裡核准後,Agent 就能使用那台電腦的 CLI 與檔案。那台電腦必須能用 HTTPS 位址連到這個 Fleet,做法見下方說明。",
|
|
81
81
|
remoteRuntimeDocs:"完整說明", setByEnv:"由環境變數設定({0}={1})。若要變更,請從 AgEnD 的環境移除它並重新啟動 AgEnD。",
|
|
82
82
|
switchPending:"等待 Fleet 管理員確認,確認後就會開啟。", switchFailed:"無法變更此設定:{0}", switchesUnavailable:"這些開關只能在這個 Fleet 自己的儀表板上變更。",
|
|
83
83
|
windowsCliOffAsk:"要關閉這台電腦的 Windows CLI 嗎?這台電腦上進行中的 Windows Agent 回合會停止,這些 Agent 會保持停止,直到你再次開啟。",
|
|
@@ -195,7 +195,7 @@ register("machines", {
|
|
|
195
195
|
});
|
|
196
196
|
register("machines", {
|
|
197
197
|
en: { profilesTitle:"Claude accounts", profileDefault:"Default", profilesNone:"No Claude accounts reported yet.", profilesHow:"To add one, run agend-runtime login claude-code NAME on that computer, then choose Detect again in CLI diagnostics.", profilesOld:"Update the Runtime on that computer to choose a Claude account for an agent.", profilesList:"Claude accounts on {0}", profileSignedIn:"Signed in", profileSignedOut:"Not signed in", profileUnchecked:"Not checked", capability_credentialProfiles:"Claude accounts (credential profiles)" },
|
|
198
|
-
"zh-TW": { profilesTitle:"Claude 帳號", profileDefault:"預設", profilesNone:"尚未回報任何 Claude 帳號。", profilesHow:"要新增,請在那台電腦執行 agend-runtime login claude-code 名稱,再在「CLI 診斷」按「重新偵測」。", profilesOld:"請更新那台電腦上的 Runtime,才能為 Agent 選擇 Claude 帳號。", profilesList:"{0} 上的 Claude 帳號", profileSignedIn:"已登入", profileSignedOut:"尚未登入", profileUnchecked:"未確認", capability_credentialProfiles:"Claude
|
|
198
|
+
"zh-TW": { profilesTitle:"Claude 帳號", profileDefault:"預設", profilesNone:"尚未回報任何 Claude 帳號。", profilesHow:"要新增,請在那台電腦執行 agend-runtime login claude-code 名稱,再在「CLI 診斷」按「重新偵測」。", profilesOld:"請更新那台電腦上的 Runtime,才能為 Agent 選擇 Claude 帳號。", profilesList:"{0} 上的 Claude 帳號", profileSignedIn:"已登入", profileSignedOut:"尚未登入", profileUnchecked:"未確認", capability_credentialProfiles:"Claude 帳號(帳號設定檔)" },
|
|
199
199
|
});
|
|
200
200
|
function CredentialProfiles({ machine }) {
|
|
201
201
|
const view = credentialProfileView(machine);
|
|
@@ -83,7 +83,7 @@ register("runtimeInstall", {
|
|
|
83
83
|
doneLatest: "{0} is now {1}, the latest release the vendor serves (not audited by AgEnD).", cardLabelUpdateLatest: "Update {0} on {1} to the latest release (not audited by AgEnD)" },
|
|
84
84
|
"zh-TW": { updateLatest: "更新到最新版(未經盤點)",
|
|
85
85
|
latestInfo: "已安裝 {0}。AgEnD 會安裝 {1},這是它稽核過的版本。按「更新」會更新到廠商釋出的最新版,這個版本 AgEnD 尚未稽核:這個 CLI 會自己更新,無法指定版本。",
|
|
86
|
-
askUpdateLatest: "要在 {1} 把 {0} 更新到廠商的「最新版」嗎?這個版本 AgEnD
|
|
86
|
+
askUpdateLatest: "要在 {1} 把 {0} 更新到廠商的「最新版」嗎?這個版本 AgEnD 尚未稽核。那台電腦會下載廠商自己的資訊清單指定的版本(不執行廠商的更新程式),比對檔案雜湊與發行者的 Windows 數位簽章,並放在 Runtime 自己的資料夾。任何一項不符就不會改變任何東西。那台電腦會留下更新紀錄。",
|
|
87
87
|
doneLatest: "{0} 現在是 {1},廠商釋出的最新版(未經 AgEnD 盤點)。", cardLabelUpdateLatest: "在 {1} 上把 {0} 更新到最新版(未經 AgEnD 盤點)" },
|
|
88
88
|
});
|
|
89
89
|
|