@songsid/agend 2.4.0-beta.2 → 2.4.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli.js +1 -1
- package/dist/agent-token-header.d.ts +1 -1
- package/dist/agent-token-header.js +1 -1
- package/dist/backend/antigravity.js +10 -2
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/credential-profile.js +1 -1
- package/dist/backend/credential-profile.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +1 -1
- package/dist/daemon.d.ts +1 -1
- package/dist/daemon.js +1 -1
- package/dist/event-log.d.ts +1 -1
- package/dist/event-log.js +1 -1
- package/dist/fleet-manager.d.ts +2 -2
- package/dist/fleet-manager.js +2 -2
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +10 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +10 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +10 -0
- package/dist/hub/member/room-ask.js +4 -2
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/representative.js +1 -1
- package/dist/hub/representative.js.map +1 -1
- package/dist/locale.js +2 -0
- package/dist/locale.js.map +1 -1
- package/dist/ui/hub-room-composer.js +12 -6
- package/dist/ui/hub-room-strings.js +1 -1
- package/dist/ui/hub-room-thread.js +5 -2
- package/dist/ui/panel-chat.js +91 -11
- package/dist/ui/shared/app-shell.js +18 -3
- package/dist/ui/shared/app.css +13 -0
- package/dist/ui/shared/chat-composer.js +6 -3
- package/dist/ui/shared/chat-work-bar.css +36 -0
- package/dist/ui/shared/hub-chat.css +10 -1
- package/dist/ui/shared/model-picker.css +4 -3
- package/dist/ui/shared/view-strings.js +2 -0
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +1 -1
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/providers.js +4 -4
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +1 -1
- package/dist/view-api.js +1 -1
- package/dist/view-api.js.map +1 -1
- package/package.json +1 -1
|
@@ -277,8 +277,11 @@ export function HubRoomPage({ roomId, listed = null, Thread, client, meId = "",
|
|
|
277
277
|
<${Thread} store=${store} name=${title} panelKey=${`hub-room:${roomId}`} threadRef=${threadRef} extra=${extra}
|
|
278
278
|
emptyView=${room.assistant ? html`<div class="hub-assistant-empty"><${Empty} icon="bot" title=${hroom("hubAssistant")} hint=${hroom("hubAssistantEmpty")} /></div>`
|
|
279
279
|
: group ? html`<p class="note">${hroom("composerHint")}</p>` : null} />
|
|
280
|
-
${
|
|
281
|
-
|
|
280
|
+
${/* M-3117: under the thread, the Fleet chat's dock — its column, its padding, the working line and the box in it. */ ""}
|
|
281
|
+
<div class="dock hub-dock" data-trust="composer"><div class="dock-col">
|
|
282
|
+
${working ? html`<${WorkBarView} kind="working" label=${working.text} elapsed="" elapsedTitle="" />` : null}
|
|
283
|
+
<${RoomComposer} store=${store} detail=${detail} reply=${reply} onReply=${setReply} closed=${store.closed()} inputRef=${input} insertRef=${insert} />
|
|
284
|
+
</div></div>
|
|
282
285
|
</section>
|
|
283
286
|
${showRail ? html`<${RailFrame} trust="hub-context" label=${hroom("members")} title=${hroom("members")} closeLabel=${hroom("cancel")} onClose=${() => setRail(false)}>${panel}</${RailFrame}>` : null}
|
|
284
287
|
${!wide && sheet && panel && group ? html`<${Dialog} title=${hroom("members")} label=${hroom("members")} onClose=${() => setSheet(false)}><div class="hub-rail-sheet">${panel}</div></${Dialog}>` : null}
|
package/dist/ui/panel-chat.js
CHANGED
|
@@ -11,13 +11,13 @@ import { GeneralLocation } from "./general-location.js";
|
|
|
11
11
|
import { html, Fragment, useEffect, useLayoutEffect, useRef, useState } from "/assets/app-html.js";
|
|
12
12
|
import { lang, register, t } from "/assets/app-i18n.js";
|
|
13
13
|
import { appStore, createStore, guestPage, guestTrusted, useStore } from "/assets/app-store.js";
|
|
14
|
-
import { ComposerAuth } from "/assets/web-authorize.js";
|
|
14
|
+
import { ComposerAuth, useWebAuthorization } from "/assets/web-authorize.js";
|
|
15
15
|
import { useLease } from "/assets/app-ctx.js";
|
|
16
16
|
import * as paneContext from "/assets/app-ctx.js";
|
|
17
17
|
import { backendLabel, modelText, namesOf, namesStore, navStore as instanceNavStore, supportsInstanceFeature } from "/assets/instance-nav.js";
|
|
18
18
|
import { machineName } from "/assets/machine-name.js";
|
|
19
|
-
import { PanelHeader, onPanelKey, setTitle, statusClass, statusLabel, openDrawer, requestNewInstance } from "/assets/app-shell.js";
|
|
20
|
-
import { detailsPath, textLinkSegments, sectionPath } from "/assets/app-route.js";
|
|
19
|
+
import { PanelHeader, onPanelKey, setTitle, statusClass, statusLabel, openDrawer, requestNewInstance, needsCount } from "/assets/app-shell.js";
|
|
20
|
+
import { detailsPath, textLinkSegments, sectionPath, NEEDS_PATH, fleetEntryPath, settingsPath } from "/assets/app-route.js";
|
|
21
21
|
import { InstanceSwitch } from "/assets/instance-switch.js";
|
|
22
22
|
import { HeaderTools } from "/assets/header-tools.js";
|
|
23
23
|
import { navigate, navStore } from "/assets/app-nav.js";
|
|
@@ -94,6 +94,51 @@ function CardMenu({ card, ownerKey }) {
|
|
|
94
94
|
];
|
|
95
95
|
return html`<${Menu} items=${items} label=${t("card.menu")} icon="idcard" cls="chat-card-menu" active=${prefs.open} ownerKey=${ownerKey} />`;
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
// M-3115 (phone v2): kept beside its caller — a retained chat dictionary has no such words.
|
|
99
|
+
register("chatPhone", {
|
|
100
|
+
en: { goTo: "Go to", thisChat: "This chat", verifiedUntil: "Verified · speaks as you until {0}", needsToast: "{0} needs you", ctxHide: "Hide this for now" },
|
|
101
|
+
"zh-TW": { goTo: "前往", thisChat: "這個對話", verifiedUntil: "已驗證 · 以你的身分發言到 {0}", needsToast: "{0} 正在等你回應", ctxHide: "這次先不提醒" },
|
|
102
|
+
});
|
|
103
|
+
const untilClock = (ms) => { try { return new Date(ms).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }); } catch { return ""; } };
|
|
104
|
+
/** A Needs-you item's identity: its nonce, else its id, else what it says. */
|
|
105
|
+
const needKey = (item) => String(item?.nonce || item?.id || JSON.stringify(item || null));
|
|
106
|
+
/**
|
|
107
|
+
* The chat's ⋯ (M-3115): on a phone, where an agent's pages have no bottom tabs, it starts with 「前往」 — Needs you (its
|
|
108
|
+
* count), Fleet, Settings — then this chat's items, and ends with 「✓ 已驗證」 (the line under the composer no longer
|
|
109
|
+
* says it). A Needs-you item that arrives meanwhile, for another agent, is a short toast. A desk's ⋯ is unchanged.
|
|
110
|
+
*/
|
|
111
|
+
function ChatMoreMenu({ items, name }) {
|
|
112
|
+
const app = useStore(appStore);
|
|
113
|
+
const auth = useWebAuthorization();
|
|
114
|
+
const seen = useRef(null);
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
// What Needs you held when last heard, and whether it had loaded then: the first load (or a reconnect's) is not news.
|
|
117
|
+
const snap = (a) => ({ keys: new Set([...(a.needs || [])].map(needKey)), loaded: a.needsLoaded === true });
|
|
118
|
+
seen.current = snap(appStore.get());
|
|
119
|
+
return appStore.subscribe((a) => {
|
|
120
|
+
const before = seen.current;
|
|
121
|
+
seen.current = snap(a);
|
|
122
|
+
if (!before?.loaded || !seen.current.loaded || !narrowScreen()) return;
|
|
123
|
+
const fresh = (a.needs || []).find((it) => !before.keys.has(needKey(it)) && it.instance && it.instance !== name);
|
|
124
|
+
if (fresh) toast(t("chatPhone.needsToast", fresh.instance));
|
|
125
|
+
});
|
|
126
|
+
}, [name]);
|
|
127
|
+
if (!narrowScreen()) return html`<${Menu} items=${items} label=${t("app.more")} />`;
|
|
128
|
+
const waiting = needsCount(app);
|
|
129
|
+
const route = navStore.get().route;
|
|
130
|
+
const verified = auth.st?.state === "verified";
|
|
131
|
+
const all = [
|
|
132
|
+
{ key: "goHead", heading: true, label: t("chatPhone.goTo") },
|
|
133
|
+
{ key: "goNeeds", label: waiting ? `${t("app.needsTab")} · ${waiting}` : t("app.needsTab"), icon: "inbox", onSelect: () => navigate(NEEDS_PATH) },
|
|
134
|
+
{ key: "goFleet", label: t("app.fleet"), icon: "fleet", onSelect: () => navigate(fleetEntryPath(route)) },
|
|
135
|
+
{ key: "goSettings", label: t("app.settings"), icon: "settings", onSelect: () => navigate(settingsPath()) },
|
|
136
|
+
{ key: "chatHead", heading: true, label: t("chatPhone.thisChat") },
|
|
137
|
+
...items,
|
|
138
|
+
...(verified ? [{ key: "verified", label: `✓ ${t("webauth.verifiedShort")}`, title: t("chatPhone.verifiedUntil", untilClock(auth.st.until)), icon: "check", disabled: true, onSelect: () => {} }] : []),
|
|
139
|
+
];
|
|
140
|
+
return html`<${Menu} items=${all} label=${t("app.more")} />`;
|
|
141
|
+
}
|
|
97
142
|
import "/assets/chat-strings.js";
|
|
98
143
|
import { confirmedWrite, selfConfirmed } from "./settings-confirm.js";
|
|
99
144
|
import { createChatStore } from "./chat-store.js";
|
|
@@ -566,7 +611,7 @@ function ChatView({ name, inst, lease, navKey, exec, awaiting }) {
|
|
|
566
611
|
<${PanelHeader} title=${inst.runtime === "windows" ? inst.display_name || name : headerName(namesOf(inst || { name }, names.primary))} sub=${sub}
|
|
567
612
|
pageControls=${{ CardMenu, card, navKey, usage: supportsInstanceFeature(inst,"usage") }} pageActions=${[
|
|
568
613
|
...items]}
|
|
569
|
-
nav=${guest ? (guestTrusted() ? html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" guest=${true} />` : null) : html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" />`}><${CardMenu} card=${card} /><${HeaderTools} navKey=${navKey} usage=${supportsInstanceFeature(inst,"usage")} />${guest ? null : html`<${
|
|
614
|
+
nav=${guest ? (guestTrusted() ? html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" guest=${true} />` : null) : html`<${InstanceSwitch} name=${name} instance=${inst} current="chat" />`}><${CardMenu} card=${card} /><${HeaderTools} navKey=${navKey} usage=${supportsInstanceFeature(inst,"usage")} />${guest ? null : html`<${ChatMoreMenu} items=${items} name=${name} />`}</${PanelHeader}>
|
|
570
615
|
<${ChatCard} key=${name} name=${name} card=${card} />
|
|
571
616
|
<${AgentWidget} slot="chat_header" widget=${widgetFor(name, "chat_header")} binds=${instanceBinds(inst, exec, awaiting)} />
|
|
572
617
|
<div class="chat-split" ref=${split}>
|
|
@@ -832,8 +877,10 @@ function Thread({ name, label = name, th, bindings }) {
|
|
|
832
877
|
<div class="thread-host" ref=${host}></div>
|
|
833
878
|
${empty === "hidden" ? html`<${Empty} icon="chat" title=${t("chat.guestAllHidden")} hint=${t("chat.guestAllHiddenHint")} />`
|
|
834
879
|
: empty ? html`<${Empty} icon="chat" title=${t("chat.noMessages")} />` : null}
|
|
835
|
-
</div><div class="jump-dock">${jump.show ? html`<button data-trust="thread-control" type="button" class="jump-latest" onClick=${() => th.current && th.current.jumpLatest()}
|
|
836
|
-
|
|
880
|
+
</div><div class="jump-dock">${jump.show ? html`<button data-trust="thread-control" type="button" class="jump-latest" onClick=${() => th.current && th.current.jumpLatest()}
|
|
881
|
+
aria-label=${jump.unseen > 0 ? t("chat.newBelow", jump.unseen) : t("chat.jumpLatest")}>
|
|
882
|
+
<${Icon} name="down" size=${16} /><span class="jump-text">${jump.unseen > 0 ? t("chat.newBelow", jump.unseen) : t("chat.jumpLatest")}</span>${
|
|
883
|
+
/* The user (before 2.4.0-beta.3): no unread counts for now — a phone's round button has no badge. */ ""}</button>` : null}</div>
|
|
837
884
|
</${Fragment}>`;
|
|
838
885
|
}
|
|
839
886
|
|
|
@@ -922,15 +969,25 @@ function CommandCard({ name, lease }) {
|
|
|
922
969
|
}
|
|
923
970
|
|
|
924
971
|
/** #1269 quick actions: Compact and Clear… once the instance's context is 70% used (from the status it already has). */
|
|
972
|
+
/** M-3115 (phone v2): a phone's context hint put away (✕) for this agent, for this tab's session. */
|
|
973
|
+
const CTX_HINT_KEY = (name) => `agend_ctx_hint_hidden:${name}`;
|
|
974
|
+
const ctxHintHidden = (name) => { try { return sessionStorage.getItem(CTX_HINT_KEY(name)) === "1"; } catch { return false; } };
|
|
925
975
|
function QuickActions({ name, inst, lease }) {
|
|
976
|
+
const [, rerender] = useState(0);
|
|
926
977
|
const pct = inst && typeof inst.context_pct === "number" ? Math.round(inst.context_pct) : null;
|
|
927
978
|
if (pct == null || pct < 70) return null;
|
|
979
|
+
// M-3115: on a phone, one thin line in the status line's place (while the agent is idle) — the words, 壓縮 / 清空… as
|
|
980
|
+
// text, and ✕ that puts it away for this session (the ring by the box still shows the %). A desk is unchanged.
|
|
981
|
+
const line = narrowScreen() && !guestPage();
|
|
982
|
+
if (line && ctxHintHidden(name)) return null;
|
|
928
983
|
const busy = !!(store.state.commands[name] && store.state.commands[name].busy);
|
|
929
984
|
const run = (command) => store.runCommand(name, command, "", { alive: () => lease.current() });
|
|
930
|
-
|
|
985
|
+
const hide = () => { try { sessionStorage.setItem(CTX_HINT_KEY(name), "1"); } catch { /* this render only */ } rerender((n) => n + 1); };
|
|
986
|
+
return html`<div class=${`quick-actions${line ? " qa-line" : ""}`} role="group" aria-label=${t("chat.chipContext", pct)}>
|
|
931
987
|
<span class="qa-ctx">${t("chat.chipContext", pct)}</span>
|
|
932
988
|
<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => run("compact")}>${t("chat.chipCompact")}</button>
|
|
933
989
|
<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => run("clear")}>${t("chat.chipClear")}</button>
|
|
990
|
+
${line ? html`<button type="button" class="btn btn-sm qa-dismiss" title=${t("chatPhone.ctxHide")} aria-label=${t("chatPhone.ctxHide")} onClick=${hide}><${Icon} name="close" size=${12} /></button>` : null}
|
|
934
991
|
</div>`;
|
|
935
992
|
}
|
|
936
993
|
|
|
@@ -998,6 +1055,10 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
998
1055
|
const files = s.pendingFiles[name] || [];
|
|
999
1056
|
const reply = s.replies[name]; // #2272: the message this one will reply to
|
|
1000
1057
|
const content = !!value.trim() || files.length > 0;
|
|
1058
|
+
// M-3115 (phone v2): one row — the box, the context ring and the model picker beside it — and, while the agent works
|
|
1059
|
+
// with nothing typed, Send is Stop (typed: Send again, and Stop is the status line's).
|
|
1060
|
+
const phone = narrowScreen() && !guestPage();
|
|
1061
|
+
const stopNow = phone && busy && !content;
|
|
1001
1062
|
// A file waiting: what goes is a message with its file, never a command (no palette, no command line). #2855: a guest's
|
|
1002
1063
|
// palette offers only what it may run on this agent — the table's "anyone" commands (its status frame's `commands`).
|
|
1003
1064
|
const guest = guestPage();
|
|
@@ -1066,9 +1127,6 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1066
1127
|
return html`<div class="composer-box" ref=${bindings.box}>
|
|
1067
1128
|
${machineUnavailable ? html`<p class="note runtime-machine-unavailable" role="status">${t(inst.machine_status === "revoked" ? "chat.machineRevokedHint" : "chat.machineUnavailable",machineName(inst.machine_id,inst.machine_name))}</p>` : null}
|
|
1068
1129
|
${inst?.native_busy && !busy && !inst?.native_blocked ? html`<p class="note" role="status">${t("chat.nativeBusy")}</p>` : null}
|
|
1069
|
-
${!guestPage() && supportsInstanceFeature(inst,"commands") ? html`<div class="model-entry-row" role="group" aria-label=${mw("model")}>
|
|
1070
|
-
<button type="button" class="btn btn-sm" onClick=${() => inst?.runtime === "windows" ? navigate(sectionPath("agents")) : store.runCommand(name, "backend", "", { alive: () => lease.current() })}>${backendLabel(inst?.backend)} ▾</button>
|
|
1071
|
-
<button type="button" class="btn btn-sm" onClick=${() => store.runCommand(name, "model", "", { alive: () => lease.current() })}>${modelLabel(inst?.model || modelText(inst || {}))} ▾</button></div>` : null}
|
|
1072
1130
|
${palette ? html`<ul data-trust="palette" class="cmd-palette" id=${paletteId} role="listbox" aria-label=${t("chat.cmdCommands")}>
|
|
1073
1131
|
${palette.length ? palette.map((c) => html`<li key=${c.name} id=${optId(c)} role="option" aria-selected=${c === pick ? "true" : "false"}
|
|
1074
1132
|
class=${c === pick ? "on" : ""} onMouseDown=${(e) => { e.preventDefault(); complete(c); }}>
|
|
@@ -1085,10 +1143,32 @@ function Composer({ name, inst, label = name, lease, busy, bindings, ids = {}, f
|
|
|
1085
1143
|
onKeyDown=${onKeyDown} onPaste=${onPaste} controls=${palette ? paletteId : undefined} expanded=${!!palette} activeDescendant=${pick ? optId(pick) : undefined}
|
|
1086
1144
|
attach=${attachmentsSupported ? { title: t("chat.attachTitle"), onFiles: (list) => store.addFiles(name, list) } : null}
|
|
1087
1145
|
stop=${HIDDEN_STOP}
|
|
1088
|
-
|
|
1146
|
+
tools=${phone ? html`<${ComposerTools} name=${name} inst=${inst} lease=${lease} />` : null}
|
|
1147
|
+
send=${stopNow ? { hidden: false, stop: true, disabled: !!s.cancelling[name], label: t("chat.stopReply"), title: t("chat.stopReplyTitle"), onClick: () => store.cancelReply(name) }
|
|
1148
|
+
: { hidden: false, disabled: !content || sendingBlocked, label: t("chat.send"), onClick: submit }} />
|
|
1089
1149
|
</div>`;
|
|
1090
1150
|
}
|
|
1091
1151
|
|
|
1152
|
+
/**
|
|
1153
|
+
* M-3115 (phone v2): beside the box — the context's ring (from 50%; amber from 70%: /ctx, its use, model and effort) and
|
|
1154
|
+
* one picker for the model and its effort (/model: a phone's list opens each model's efforts) that shows the model (its
|
|
1155
|
+
* name says the effort too; the row leaves the box its room). The backend stays in
|
|
1156
|
+
* Details. The ring's fill is painted through the CSSOM (no inline style attribute under the page's CSP).
|
|
1157
|
+
*/
|
|
1158
|
+
function ComposerTools({ name, inst, lease }) {
|
|
1159
|
+
const run = (command) => store.runCommand(name, command, "", { alive: () => lease.current() });
|
|
1160
|
+
const pct = inst?.context_pct == null ? null : Math.round(inst.context_pct);
|
|
1161
|
+
const effort = supportsInstanceFeature(inst, "effort") && effortChip(inst) ? effortWord(effortChip(inst)) : null;
|
|
1162
|
+
const model = modelLabel(inst?.model || modelText(inst || {}));
|
|
1163
|
+
const pickLabel = effort ? `${model} · ${effort}` : model;
|
|
1164
|
+
return html`<span class="composer-tools">
|
|
1165
|
+
${pct != null && pct >= 50 ? html`<button type="button" class=${`ctx-ring${pct >= 70 ? " warn" : ""}`} ref=${(el) => el?.style?.setProperty("--pct", String(pct))}
|
|
1166
|
+
title=${t("chat.chipContext", pct)} aria-label=${t("chat.chipContext", pct)} onClick=${() => run("ctx")}><span class="ctx-dial" aria-hidden="true"><span class="ctx-pct">${pct}</span></span></button>` : null}
|
|
1167
|
+
${supportsInstanceFeature(inst, "commands") ? html`<button type="button" class="composer-pick" title=${t("chat.chipModel", pickLabel)} aria-label=${t("chat.chipModel", pickLabel)}
|
|
1168
|
+
onClick=${() => (inst?.runtime === "windows" ? navigate(sectionPath("agents")) : run("model"))}><b>${model}</b><span class="chev" aria-hidden="true">⌄</span></button>` : null}
|
|
1169
|
+
</span>`;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1092
1172
|
function FileChip({ f, i, name, bindings }) {
|
|
1093
1173
|
const img = useRef(null);
|
|
1094
1174
|
const isImage = /^image\//.test(f.type) && typeof URL.createObjectURL === "function";
|
|
@@ -539,8 +539,19 @@ function PrefsPopover() {
|
|
|
539
539
|
* The header every panel shows: ☰ (phone, or a collapsed sidebar), its title and status, then its actions. `nav`
|
|
540
540
|
* (#1523 N2): an instance page's view switch — beside the title on a wide screen, a row of tabs under it on a phone.
|
|
541
541
|
*/
|
|
542
|
+
// M-3115 (phone v2): inside an agent's pages a phone has no bottom tabs; the header's first button goes back to the
|
|
543
|
+
// agents (the drawer) and carries what Needs you counts. Kept beside its caller: a retained dictionary has no such word.
|
|
544
|
+
register("phoneNav", {
|
|
545
|
+
en: { back: "Back to your agents", backCount: "Back to your agents · {0} waiting" },
|
|
546
|
+
"zh-TW": { back: "回到 Agent 清單", backCount: "回到 Agent 清單 · {0} 件待處理" },
|
|
547
|
+
});
|
|
548
|
+
/** What Needs you counts: its items and the agents' proposals (the tab's badge, the sidebar's). */
|
|
549
|
+
export function needsCount(app) { return (app.needs || []).length + (app.proposals || []).length; }
|
|
550
|
+
|
|
542
551
|
export function PanelHeader({ title, sub, children, headingRef, nav, notice, pageControls, pageActions }) {
|
|
543
552
|
const shell = useStore(shellStore);
|
|
553
|
+
const { route } = useStore(navStore), app = useStore(appStore);
|
|
554
|
+
const agent = !!openInstanceOf(route) && !guestPage(), waiting = agent ? needsCount(app) : 0;
|
|
544
555
|
const admin = useCanCreate();
|
|
545
556
|
const canCreate = admin && !!newInstanceOpener;
|
|
546
557
|
const pane = paneContext.usePane?.();
|
|
@@ -549,8 +560,10 @@ export function PanelHeader({ title, sub, children, headingRef, nav, notice, pag
|
|
|
549
560
|
if (pane?.Header) return html`<${pane.Header} title=${title} sub=${sub} headingRef=${headingRef} nav=${nav} notice=${notice}
|
|
550
561
|
pageControls=${pageControls} pageActions=${pageActions} />`;
|
|
551
562
|
return html`<header data-trust="header" class=${`panel-head${shell.collapsed ? " collapsed" : ""}`}>
|
|
552
|
-
<button type="button" id="sbOpen" class
|
|
553
|
-
aria-label=${narrow() ? t("
|
|
563
|
+
<button type="button" id="sbOpen" class=${`icon-btn sb-open${agent ? " sb-back" : ""}`} onClick=${() => (narrow() ? openDrawer() : toggleSidebar())}
|
|
564
|
+
aria-label=${narrow() ? agent ? (waiting ? t("phoneNav.backCount", waiting) : t("phoneNav.back")) : t("app.openMenu") : t("app.expand")}
|
|
565
|
+
title=${narrow() ? agent ? t("phoneNav.back") : t("app.openMenu") : t("app.expand")} aria-controls="sidebar" aria-expanded=${shell.drawer ? "true" : "false"}><${Icon} name="menu" cls="ic-menu" />${agent
|
|
566
|
+
? html`<${Icon} name="back" cls="ic-back" />${waiting ? html`<span class="sb-badge" aria-hidden="true">${waiting > 99 ? "99+" : waiting}</span>` : null}` : null}</button>
|
|
554
567
|
${canCreate && shell.collapsed ? html`<button type="button" class="icon-btn sb-new" onClick=${requestNewInstance} aria-label=${t("app.newAgent")} title=${t("app.newAgent")}><${Icon} name="plus" /></button>` : null}
|
|
555
568
|
${searchOffered(admin) ? html`<button type="button" class="icon-btn sb-search" onClick=${() => openSearch()} aria-label=${t("app.search")} title=${t("app.searchTitle", searchShortcut())}><${Icon} name="search" /></button>` : null}
|
|
556
569
|
<div class="panel-title"><h1 ref=${headingRef} tabindex="-1">${title}</h1>${sub ? html`<div class="panel-sub">${sub}</div>` : null}</div>
|
|
@@ -1286,7 +1299,9 @@ export function Shell({ panels, onNewInstance, viewOnly = false }) {
|
|
|
1286
1299
|
// AgEnD Hub P1 (S3b): a Hub workspace has none of the fleet's lines, rails, tabs or bars (their endpoints are the fleet's).
|
|
1287
1300
|
const hub = hubMarks().hub;
|
|
1288
1301
|
const popout = shell.popout === true && !!openInstanceOf(nav.route);
|
|
1289
|
-
|
|
1302
|
+
// M-3115: an agent's own pages (its chat, View, Log, Details) — a phone shows them without the bottom tabs.
|
|
1303
|
+
const inAgent = !!openInstanceOf(nav.route) && !guest;
|
|
1304
|
+
const cls = ["shell", popout ? "chat-popout" : "", shell.collapsed ? "sb-collapsed" : "", shell.drawer ? "sb-open" : "", shell.keyboard ? "kb-open" : "", guest ? "guest" : "", inAgent ? "in-agent" : ""].filter(Boolean).join(" ");
|
|
1290
1305
|
return html`<div ref=${root} class=${cls}>
|
|
1291
1306
|
<a data-trust="navigation" class="skip" href="#main">${t("app.skip")}</a>
|
|
1292
1307
|
${popout ? null : html`<${Sidebar} route=${nav.route} onNewInstance=${onNewInstance} viewOnly=${viewOnly} />`}
|
package/dist/ui/shared/app.css
CHANGED
|
@@ -286,6 +286,7 @@ html:has(.shell), html:has(.shell) body { overflow: hidden; }
|
|
|
286
286
|
padding: max(var(--s-1), env(safe-area-inset-top)) max(var(--s-3), env(safe-area-inset-right)) var(--s-1) max(var(--s-3), env(safe-area-inset-left));
|
|
287
287
|
}
|
|
288
288
|
.panel-head .sb-open { display: none; }
|
|
289
|
+
.sb-open .ic-back, .sb-open .sb-badge { display: none; } /* M-3115: the phone's ‹ (below); elsewhere ☰ only */
|
|
289
290
|
.sb-collapsed .panel-head .sb-open { display: inline-flex; }
|
|
290
291
|
/* #2074: a collapsed sidebar's "New agent", beside its ☰ (a phone opens the drawer, which has the row). */
|
|
291
292
|
.panel-head .sb-new { margin-left: calc(-1 * var(--s-1)); }
|
|
@@ -1225,6 +1226,7 @@ img.amb-p { object-fit: contain; }
|
|
|
1225
1226
|
hiding it 48 px from the bottom took that room away under a reader still scrolling — the wheel's last step was cut
|
|
1226
1227
|
short, or the view clamped back. Its dock is sticky and 0 px tall; the pill floats above it. */
|
|
1227
1228
|
.jump-dock { position: sticky; bottom: 0; height: 0; z-index: 5; }
|
|
1229
|
+
.jump-count { display: none; } /* No unread count on 最新 (the user, before beta.3); a tab on an older panel-chat.js still draws one: hidden */
|
|
1228
1230
|
.jump-latest {
|
|
1229
1231
|
position: absolute; bottom: var(--s-3); left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-1);
|
|
1230
1232
|
background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-full); box-shadow: var(--shadow-2);
|
|
@@ -1487,6 +1489,17 @@ img.amb-p { object-fit: contain; }
|
|
|
1487
1489
|
padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
|
|
1488
1490
|
}
|
|
1489
1491
|
.kb-open .tabs { display: none; }
|
|
1492
|
+
/* M-3115 (phone v2): inside an agent's pages there are no bottom tabs — the header's first button (‹, with what Needs
|
|
1493
|
+
you counts) goes back to the agents, and ⋯ reaches Needs you, Fleet and Settings. The lists keep the tabs. */
|
|
1494
|
+
.in-agent .tabs { display: none; }
|
|
1495
|
+
.in-agent .main { padding-bottom: 0; }
|
|
1496
|
+
.sb-back .ic-menu { display: none; }
|
|
1497
|
+
.sb-back .ic-back { display: inline-block; }
|
|
1498
|
+
.sb-back { position: relative; }
|
|
1499
|
+
.sb-back .sb-badge { display: block; position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full); background: var(--danger-fill); color: var(--on-danger); font-size: var(--fs-xs); line-height: 16px; text-align: center; font-weight: var(--fw-semibold); }
|
|
1500
|
+
/* ✓ Verified moved into ⋯: a line under the composer that would say only that is not drawn (Not verified, waiting for
|
|
1501
|
+
Confirm, and what pressing Authorize answered still are). */
|
|
1502
|
+
.composer-row:has(.webauth-row[data-state="verified"]):not(:has(.webauth-notice, .guest-note)) { display: none; }
|
|
1490
1503
|
/* #2478: with the keyboard up the line under the composer goes too — the box sits on the keyboard; back on blur. */
|
|
1491
1504
|
.kb-open .composer-row { display: none; }
|
|
1492
1505
|
/* M-2733: on a phone the line under the composer was flush with the box's rounded edge, 4px under it and on the tab
|
|
@@ -21,7 +21,7 @@ export const touchScreen = () => typeof matchMedia === "function" && matchMedia(
|
|
|
21
21
|
* `send`: { hidden, disabled, label, onClick } — keep it shown (disabled when there is nothing to send) so the box keeps one width. `controls` / `expanded` / `activeDescendant`: the box's palette ARIA.
|
|
22
22
|
*/
|
|
23
23
|
export function ComposerInput({ inputRef, value, placeholder, onValue, onKeyDown, onPaste, attach = null, stop, send,
|
|
24
|
-
controls, expanded = false, activeDescendant, ids = {} }) {
|
|
24
|
+
controls, expanded = false, activeDescendant, ids = {}, tools = null }) {
|
|
25
25
|
const own = useRef(null), input = inputRef || own, fileIn = useRef(null);
|
|
26
26
|
const composing = useRef(false);
|
|
27
27
|
// A render while composing (another part of the page changed) gives the box what it holds, so it never writes it.
|
|
@@ -50,9 +50,12 @@ export function ComposerInput({ inputRef, value, placeholder, onValue, onKeyDown
|
|
|
50
50
|
aria-activedescendant=${activeDescendant} onInput=${onInput} onKeyDown=${onKeyDown} onPaste=${onPaste}
|
|
51
51
|
oncompositionstart=${onCompositionStart} oncompositionend=${onCompositionEnd} onBlur=${onCompositionEnd}
|
|
52
52
|
placeholder=" "></textarea><span class="composer-ph" aria-hidden="true">${placeholder}</span></span>
|
|
53
|
-
|
|
53
|
+
${/* M-3115 (phone v2): what the row holds beside the box (the Fleet chat's context ring and model picker); none elsewhere. */ ""}
|
|
54
|
+
${tools || null}
|
|
55
|
+
${/* M-3115: `send.stop` — the button stops the reply instead (a phone's empty box while the agent works). */ ""}
|
|
56
|
+
<button id=${ids.sendBtn || "sendBtn"} type="button" class=${`btn btn-primary btn-send${send.stop ? " is-stop" : ""}`} hidden=${send.hidden} disabled=${send.disabled}
|
|
54
57
|
onMouseDown=${(e) => e.preventDefault()}
|
|
55
|
-
aria-label=${send.label} title=${send.label} onClick=${send.onClick}><${Icon} name
|
|
58
|
+
aria-label=${send.label} title=${send.title || send.label} onClick=${send.onClick}><${Icon} name=${send.stop ? "stop" : "send"} size=${16} /><span class="send-label">${send.label}</span></button>
|
|
56
59
|
</div>`;
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -10,3 +10,39 @@
|
|
|
10
10
|
.work-bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
11
11
|
.work-bar .elapsed, .work-bar .pulse { flex: none; }
|
|
12
12
|
@media (max-width: 899px), (pointer: coarse) { .work-bar { block-size: var(--tap, 44px); min-block-size: var(--tap, 44px); max-block-size: var(--tap, 44px); } }
|
|
13
|
+
/* M-3115 (phone v2): in a phone's chat the working bar is one thin status line ("● 調度中… 0:01"), and Stop is Send's
|
|
14
|
+
while the box is empty (panel-chat.js). With something typed Send sends again, and Stop is this line's small 「停止」 —
|
|
15
|
+
a 44 px tap target drawn as text. */
|
|
16
|
+
@media (max-width: 899px) {
|
|
17
|
+
.p-chat .work-bar { block-size: 22px; min-block-size: 22px; max-block-size: 22px; overflow: visible; }
|
|
18
|
+
.p-chat .dock:has(.composer-field textarea:placeholder-shown) .work-bar .btn-stop { display: none; }
|
|
19
|
+
.p-chat .work-bar .btn-stop { min-height: var(--tap); min-width: var(--tap); height: var(--tap); margin-block: calc((22px - var(--tap)) / 2); padding: 0 var(--s-2); border: 0; background: none; color: var(--accent); font-weight: var(--fw-semibold); }
|
|
20
|
+
.p-chat .work-bar .btn-stop .icon { display: none; }
|
|
21
|
+
/* M-3115 PR 2: one composer row — the box, then the context's ring (from 50%) and the model · effort picker, then Send
|
|
22
|
+
(Stop while the agent works with nothing typed). Each is a full tap target; the ring is drawn smaller inside. */
|
|
23
|
+
.composer-tools { display: inline-flex; align-items: center; flex: none; min-width: 0; }
|
|
24
|
+
.ctx-ring { --pct: 0; flex: none; display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--text-3); }
|
|
25
|
+
.ctx-dial { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-full); background: conic-gradient(currentColor calc(var(--pct) * 1%), var(--border) 0); }
|
|
26
|
+
.ctx-dial::before { content: ""; position: absolute; inset: 3px; border-radius: var(--r-full); background: var(--surface); }
|
|
27
|
+
.ctx-pct { position: relative; font-size: var(--fs-xs); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; transform: scale(0.8); }
|
|
28
|
+
.ctx-ring.warn { color: var(--warn); }
|
|
29
|
+
.ctx-ring.warn .ctx-pct { font-weight: var(--fw-semibold); }
|
|
30
|
+
.composer-pick { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); max-width: 24vw; padding: 0 var(--s-2); border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }
|
|
31
|
+
.composer-pick b { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: var(--fw-semibold); }
|
|
32
|
+
.composer-pick .pick-effort { flex: none; }
|
|
33
|
+
.composer-pick .chev { flex: none; color: var(--text-3); }
|
|
34
|
+
/* M-3115 PR 3: past 70% the context hint is one thin line in the status line's place — the idle strip gives way to it,
|
|
35
|
+
and while the agent works the working line has the place (the ring by the box still says the %). 22 px either way;
|
|
36
|
+
its words are links, each a full tap target drawn as text. */
|
|
37
|
+
.p-chat .quick-actions.qa-line { height: 22px; margin: 0; padding: 0 var(--s-1); flex-wrap: nowrap; gap: var(--s-1); color: var(--warn); white-space: nowrap; overflow: visible; }
|
|
38
|
+
.p-chat .qa-line .qa-ctx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
39
|
+
.p-chat .qa-line .btn { min-height: var(--tap); min-width: var(--tap); height: var(--tap); margin-block: calc((22px - var(--tap)) / 2); padding: 0 var(--s-1); border: 0; background: none; color: var(--accent); font-weight: var(--fw-semibold); }
|
|
40
|
+
.p-chat .qa-line .qa-dismiss { margin-left: auto; color: var(--text-3); }
|
|
41
|
+
.p-chat .dock:has(.qa-line) .work-bar.idle { display: none; }
|
|
42
|
+
.p-chat .dock:has(.work-bar:not(.idle)) .qa-line { display: none; }
|
|
43
|
+
/* (These live here, not in app.css: a tab on an older app.css links this file fresh, and the row must not crush the box.) */
|
|
44
|
+
/* Send is Stop while the box is empty and the agent works: one size in both, a full tap target (the box keeps one
|
|
45
|
+
width). Here, not in app.css: a tab on an older app.css links this file fresh. */
|
|
46
|
+
.p-chat .composer .btn-send { width: var(--tap); min-width: var(--tap); min-height: var(--tap); }
|
|
47
|
+
.p-chat .work-bar .btn-stop .stop-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap; }
|
|
48
|
+
}
|
|
@@ -30,6 +30,15 @@
|
|
|
30
30
|
.hub-room-at { flex: none; color: var(--accent); font-weight: var(--fw-semibold); font-size: var(--fs-xs); }
|
|
31
31
|
.inst-line2 > .nav-count { flex: none; height: 18px; min-width: 18px; line-height: 18px; }
|
|
32
32
|
.hub-room-archived .inst-name { color: var(--text-3); }
|
|
33
|
+
/* M-3117: on a phone the Fleet chat's box has a hairline (model-picker.css, which the Hub does not load): the Hub's too. */
|
|
34
|
+
@media (max-width: 899px) {
|
|
35
|
+
.hub-dock .composer-box { border: 1px solid var(--border); }
|
|
36
|
+
/* …and its Send is a full tap target (chat-work-bar.css, linked by the Fleet chat only). */
|
|
37
|
+
.hub-dock .composer .btn-send { width: var(--tap); min-width: var(--tap); min-height: var(--tap); }
|
|
38
|
+
}
|
|
39
|
+
/* Spec §4: the room's hint (messages without an @agent reach only people) stays under the box on a phone too, where the
|
|
40
|
+
Fleet chat's own keyboard hint (.hint) is hidden. */
|
|
41
|
+
.hub-room-page .composer-row .hub-room-hint { display: inline; white-space: normal; }
|
|
33
42
|
/* The room composer's fixed hint and @all bar wrap without leaving a lone word on the last line. */
|
|
34
43
|
.hub-room-hint, .hub-room-allbar { text-wrap: pretty; }
|
|
35
44
|
/* A question's folded answers: a left-aligned link under the last one shown (Lumen), not a centred line. */
|
|
@@ -70,7 +79,7 @@
|
|
|
70
79
|
/* S-150: the phone's back to the list is a full tap target, as the header's other buttons are. */
|
|
71
80
|
@media (max-width: 899px), (pointer: coarse) { .hub-chat-head .hub-back { min-width: var(--tap); min-height: var(--tap); } }
|
|
72
81
|
.hub-scroller { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; }
|
|
73
|
-
|
|
82
|
+
/* M-3117: the thread is the Fleet chat's (.thread in app.css: its column, padding and a phone's tighter one) — no Hub copy. */
|
|
74
83
|
.hub-room-empty { padding: var(--s-6) var(--s-4); }
|
|
75
84
|
.hub-banner { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); font-size: var(--fs-sm); background: var(--surface); color: var(--text-2); }
|
|
76
85
|
.hub-banner.danger { background: var(--danger-bg, var(--surface)); color: var(--danger); }
|
|
@@ -26,8 +26,9 @@
|
|
|
26
26
|
.cmd-card.cmd-model .cmd-choice > .btn:first-child { flex: 1; min-width: 0; justify-content: flex-start; text-align: start; }
|
|
27
27
|
.cmd-card.cmd-model .cmd-effort-go { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-2); white-space: nowrap; }
|
|
28
28
|
.cmd-card .cmd-sub { display: flex; margin-bottom: var(--s-1); }
|
|
29
|
-
/*
|
|
30
|
-
|
|
29
|
+
/* M-3115 (phone v2): 最新 is a small round button floating at the thread's bottom right, with its own shadow — not a
|
|
30
|
+
row of its own across the screen. Its words are its name; no count on it (the user: no unread counts for now). */
|
|
31
31
|
.p-chat .jump-dock:empty { display: none; }
|
|
32
|
-
.p-chat .jump-latest {
|
|
32
|
+
.p-chat .jump-latest { left: auto; right: var(--s-3); transform: none; width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; justify-content: center; }
|
|
33
|
+
.p-chat .jump-latest .jump-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
33
34
|
}
|
|
@@ -123,6 +123,7 @@ register("view", {
|
|
|
123
123
|
"usage.value.disabled": "Disabled",
|
|
124
124
|
"usage.value.cap": "{0} cap",
|
|
125
125
|
"usage.value.unlimited": "♾️ Unlimited",
|
|
126
|
+
"usage.hint.q_developer_monthly_limit": "Not measurable · monthly limit 10,000 requests",
|
|
126
127
|
"usage.note.binding": "binding",
|
|
127
128
|
"usage.note.binding_severity": "binding · {0}",
|
|
128
129
|
"usage.note.busiest_model": "busiest of {0} model",
|
|
@@ -397,6 +398,7 @@ register("view", {
|
|
|
397
398
|
"usage.value.disabled": "已停用",
|
|
398
399
|
"usage.value.cap": "上限 {0}",
|
|
399
400
|
"usage.value.unlimited": "♾️ 無限",
|
|
401
|
+
"usage.hint.q_developer_monthly_limit": "無法量測 · 每月上限 10,000 次請求",
|
|
400
402
|
"usage.note.binding": "生效",
|
|
401
403
|
"usage.note.binding_severity": "生效 · {0}",
|
|
402
404
|
"usage.note.busiest_model": "{0} 個模型中用量最高者",
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Keep this list explicit: the parity test rejects a key missing from either
|
|
4
4
|
* locale surface before a mixed-language release can ship.
|
|
5
5
|
*/
|
|
6
|
-
export declare const USAGE_I18N_KEYS: readonly ["usage.title", "usage.title_plain", "usage.empty_active", "usage.not_logged_in", "usage.default_login", "usage.no_agents", "usage.error_fallback", "usage.no_data", "usage.reset.in", "usage.reset.soon", "usage.duration.days_hours", "usage.duration.hours_minutes", "usage.duration.minutes", "usage.metric.session", "usage.metric.weekly", "usage.metric.monthly", "usage.metric.days_window", "usage.metric.named", "usage.metric.named_session", "usage.metric.named_weekly", "usage.metric.named_monthly", "usage.metric.named_days", "usage.metric.extra_usage", "usage.metric.rate_limit_resets", "usage.ticket_expiry", "usage.metric.credits", "usage.metric.weekly_limit", "usage.metric.pay_as_you_go", "usage.metric.bonus_credits", "usage.metric.overage_charges", "usage.metric.pay_per_use", "usage.unit.available", "usage.unit.credits", "usage.metric.usage_monthly", "usage.note.used_limit_unit", "usage.note.bonus_codes", "usage.value.disabled", "usage.value.cap", "usage.value.unlimited", "usage.note.binding", "usage.note.binding_severity", "usage.note.busiest_model", "usage.note.busiest_models", "usage.metric.agy_claude_others", "usage.metric.agy_claude_others_session", "usage.metric.agy_claude_others_weekly", "usage.hint.statusline_now", "usage.hint.statusline_minutes", "usage.hint.claude_api_key", "usage.hint.login_claude", "usage.hint.login_agy", "usage.hint.no_quota", "usage.hint.login_codex", "usage.hint.codex_no_oauth", "usage.hint.login_grok", "usage.hint.grok_no_login", "usage.hint.login_kiro", "usage.hint.kiro_signed_out", "usage.hint.claude_profile_signed_out", "usage.hint.claude_profile_signed_out_chat", "usage.hint.token_refreshing", "usage.hint.subscription_no_credit", "usage.hint.no_quota_account", "usage.error.unreachable", "usage.error.token_rejected", "usage.error.rate_limited", "usage.error.rate_limited_transient", "usage.stale_rate_limited", "usage.stale.expired", "usage.stale.transient", "usage.stale.error", "usage.metric.reset_since", "usage.error.http", "usage.error.billing_http", "usage.error.invalid_response", "usage.error.invalid_billing_response", "usage.error.invalid_kiro_response", "usage.error.claude_token_expired", "usage.error.codex_token_expired", "usage.error.grok_expired", "usage.error.grok_response_changed", "usage.error.agy_cap", "usage.error.agy_no_refresh", "usage.error.agy_token_expired", "usage.error.agy_login_expired", "usage.error.agy_refresh_empty", "usage.error.grok_auth_readonly", "usage.error.grok_no_refresh", "usage.error.grok_refresh_unreachable", "usage.error.grok_invalid_refresh", "usage.error.grok_persist", "usage.capacity.line", "usage.capacity.line_tokens", "usage.capacity.not_enough", "usage.capacity.only_agend", "usage.capacity.mixed", "usage.capacity.best_fit_api", "usage.capacity.best_fit_output", "usage.capacity.best_fit_all"];
|
|
6
|
+
export declare const USAGE_I18N_KEYS: readonly ["usage.title", "usage.title_plain", "usage.empty_active", "usage.not_logged_in", "usage.default_login", "usage.no_agents", "usage.error_fallback", "usage.no_data", "usage.reset.in", "usage.reset.soon", "usage.duration.days_hours", "usage.duration.hours_minutes", "usage.duration.minutes", "usage.metric.session", "usage.metric.weekly", "usage.metric.monthly", "usage.metric.days_window", "usage.metric.named", "usage.metric.named_session", "usage.metric.named_weekly", "usage.metric.named_monthly", "usage.metric.named_days", "usage.metric.extra_usage", "usage.metric.rate_limit_resets", "usage.ticket_expiry", "usage.metric.credits", "usage.metric.weekly_limit", "usage.metric.pay_as_you_go", "usage.metric.bonus_credits", "usage.metric.overage_charges", "usage.metric.pay_per_use", "usage.unit.available", "usage.unit.credits", "usage.metric.usage_monthly", "usage.note.used_limit_unit", "usage.note.bonus_codes", "usage.value.disabled", "usage.value.cap", "usage.value.unlimited", "usage.hint.q_developer_monthly_limit", "usage.note.binding", "usage.note.binding_severity", "usage.note.busiest_model", "usage.note.busiest_models", "usage.metric.agy_claude_others", "usage.metric.agy_claude_others_session", "usage.metric.agy_claude_others_weekly", "usage.hint.statusline_now", "usage.hint.statusline_minutes", "usage.hint.claude_api_key", "usage.hint.login_claude", "usage.hint.login_agy", "usage.hint.no_quota", "usage.hint.login_codex", "usage.hint.codex_no_oauth", "usage.hint.login_grok", "usage.hint.grok_no_login", "usage.hint.login_kiro", "usage.hint.kiro_signed_out", "usage.hint.claude_profile_signed_out", "usage.hint.claude_profile_signed_out_chat", "usage.hint.token_refreshing", "usage.hint.subscription_no_credit", "usage.hint.no_quota_account", "usage.error.unreachable", "usage.error.token_rejected", "usage.error.rate_limited", "usage.error.rate_limited_transient", "usage.stale_rate_limited", "usage.stale.expired", "usage.stale.transient", "usage.stale.error", "usage.metric.reset_since", "usage.error.http", "usage.error.billing_http", "usage.error.invalid_response", "usage.error.invalid_billing_response", "usage.error.invalid_kiro_response", "usage.error.claude_token_expired", "usage.error.codex_token_expired", "usage.error.grok_expired", "usage.error.grok_response_changed", "usage.error.agy_cap", "usage.error.agy_no_refresh", "usage.error.agy_token_expired", "usage.error.agy_login_expired", "usage.error.agy_refresh_empty", "usage.error.grok_auth_readonly", "usage.error.grok_no_refresh", "usage.error.grok_refresh_unreachable", "usage.error.grok_invalid_refresh", "usage.error.grok_persist", "usage.capacity.line", "usage.capacity.line_tokens", "usage.capacity.not_enough", "usage.capacity.only_agend", "usage.capacity.mixed", "usage.capacity.best_fit_api", "usage.capacity.best_fit_output", "usage.capacity.best_fit_all"];
|
|
7
7
|
export type UsageI18nKey = typeof USAGE_I18N_KEYS[number];
|
package/dist/usage/i18n-keys.js
CHANGED
|
@@ -14,7 +14,7 @@ export const USAGE_I18N_KEYS = [
|
|
|
14
14
|
"usage.metric.pay_as_you_go", "usage.metric.bonus_credits", "usage.metric.overage_charges",
|
|
15
15
|
"usage.metric.pay_per_use", "usage.unit.available", "usage.unit.credits",
|
|
16
16
|
"usage.metric.usage_monthly", "usage.note.used_limit_unit", "usage.note.bonus_codes",
|
|
17
|
-
"usage.value.disabled", "usage.value.cap", "usage.value.unlimited", "usage.note.binding",
|
|
17
|
+
"usage.value.disabled", "usage.value.cap", "usage.value.unlimited", "usage.hint.q_developer_monthly_limit", "usage.note.binding",
|
|
18
18
|
"usage.note.binding_severity", "usage.note.busiest_model", "usage.note.busiest_models",
|
|
19
19
|
"usage.metric.agy_claude_others", "usage.metric.agy_claude_others_session", "usage.metric.agy_claude_others_weekly",
|
|
20
20
|
"usage.hint.statusline_now", "usage.hint.statusline_minutes", "usage.hint.claude_api_key",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n-keys.js","sourceRoot":"","sources":["../../src/usage/i18n-keys.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,iBAAiB;IACzH,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB;IAC7E,2BAA2B,EAAE,8BAA8B,EAAE,wBAAwB;IACrF,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,0BAA0B;IACjG,oBAAoB,EAAE,4BAA4B,EAAE,2BAA2B;IAC/E,4BAA4B,EAAE,yBAAyB,EAAE,0BAA0B;IACnF,gCAAgC,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,2BAA2B;IAC5G,4BAA4B,EAAE,4BAA4B,EAAE,8BAA8B;IAC1F,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB;IACxE,4BAA4B,EAAE,4BAA4B,EAAE,wBAAwB;IACpF,sBAAsB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"i18n-keys.js","sourceRoot":"","sources":["../../src/usage/i18n-keys.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,iBAAiB;IACzH,sBAAsB,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB;IAC7E,2BAA2B,EAAE,8BAA8B,EAAE,wBAAwB;IACrF,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,0BAA0B;IACjG,oBAAoB,EAAE,4BAA4B,EAAE,2BAA2B;IAC/E,4BAA4B,EAAE,yBAAyB,EAAE,0BAA0B;IACnF,gCAAgC,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,2BAA2B;IAC5G,4BAA4B,EAAE,4BAA4B,EAAE,8BAA8B;IAC1F,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB;IACxE,4BAA4B,EAAE,4BAA4B,EAAE,wBAAwB;IACpF,sBAAsB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,sCAAsC,EAAE,oBAAoB;IAChI,6BAA6B,EAAE,0BAA0B,EAAE,2BAA2B;IACtF,gCAAgC,EAAE,wCAAwC,EAAE,uCAAuC;IACnH,2BAA2B,EAAE,+BAA+B,EAAE,2BAA2B;IACzF,yBAAyB,EAAE,sBAAsB,EAAE,qBAAqB;IACxE,wBAAwB,EAAE,2BAA2B,EAAE,uBAAuB;IAC9E,0BAA0B,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,sCAAsC,EAAE,2CAA2C;IACtK,6BAA6B,EAAE,mCAAmC,EAAE,6BAA6B;IACjG,yBAAyB,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,oCAAoC,EAAE,0BAA0B;IACrJ,qBAAqB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,0BAA0B;IAC/F,kBAAkB,EAAE,0BAA0B,EAAE,8BAA8B;IAC9E,sCAAsC,EAAE,mCAAmC;IAC3E,kCAAkC,EAAE,iCAAiC;IACrE,0BAA0B,EAAE,mCAAmC,EAAE,qBAAqB;IACtF,4BAA4B,EAAE,+BAA+B,EAAE,+BAA+B;IAC9F,+BAA+B,EAAE,gCAAgC,EAAE,6BAA6B;IAChG,sCAAsC,EAAE,kCAAkC,EAAE,0BAA0B;IACtG,4CAA4C;IAC5C,qBAAqB,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,sBAAsB;IACrI,6BAA6B,EAAE,gCAAgC,EAAE,6BAA6B;CACtF,CAAC"}
|
package/dist/usage/providers.js
CHANGED
|
@@ -1436,13 +1436,13 @@ export async function fetchKiroUsage(storeHome) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
if (kind === "q-developer-pro") {
|
|
1438
1438
|
// Seat-licensed subscription: GetUsageLimits describes Builder-ID credit
|
|
1439
|
-
// buckets, not this
|
|
1439
|
+
// buckets, not this seat. Its monthly limit is known, but remaining usage
|
|
1440
|
+
// is not measurable through this endpoint; never infer unlimited capacity.
|
|
1440
1441
|
return {
|
|
1441
1442
|
status: "ok",
|
|
1442
1443
|
plan: "Q Developer Pro",
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
hintI18n: i18n("usage.value.unlimited"),
|
|
1444
|
+
hint: "Not measurable · monthly limit 10,000 requests",
|
|
1445
|
+
hintI18n: i18n("usage.hint.q_developer_monthly_limit"),
|
|
1446
1446
|
metrics: [],
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|