@songsid/agend 2.4.0-alpha.1 → 2.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/dist/agent-whats-new.js +2 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/auth-api.js +3 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.js +4 -0
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +1 -1
- package/dist/backend-availability.js +28 -1
- package/dist/backend-availability.js.map +1 -1
- package/dist/browser-backend-signins.d.ts +7 -1
- package/dist/browser-backend-signins.js +8 -4
- package/dist/browser-backend-signins.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-tools.js +1 -1
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/config-validator.js +47 -7
- package/dist/config-validator.js.map +1 -1
- package/dist/daemon.d.ts +3 -0
- package/dist/daemon.js +4 -0
- package/dist/daemon.js.map +1 -1
- package/dist/fleet-manager.d.ts +33 -4
- package/dist/fleet-manager.js +143 -61
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +19 -0
- package/dist/hub/audit/index.js +12 -5
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/catalog.d.ts +6 -0
- package/dist/hub/catalog.js +14 -4
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +2 -0
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +2 -0
- package/dist/hub/compose/member.js +11 -2
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.js +2 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/enrolment-code.d.ts +126 -0
- package/dist/hub/enrolment-code.js +266 -0
- package/dist/hub/enrolment-code.js.map +1 -0
- package/dist/hub/group-policy/admin-impact.js +4 -2
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/admin-inventory.js +6 -6
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +16 -2
- package/dist/hub/group-policy/authorization.js +69 -5
- package/dist/hub/group-policy/authorization.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.js +3 -3
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +40 -1
- package/dist/hub/group-policy/resources.js +51 -13
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/group-policy/store.d.ts +6 -0
- package/dist/hub/group-policy/store.js +49 -4
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/http/compose.js +30 -6
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/init/text.js +2 -2
- package/dist/hub/init/text.js.map +1 -1
- package/dist/hub/init/web.d.ts +7 -0
- package/dist/hub/init/web.js +6 -1
- package/dist/hub/init/web.js.map +1 -1
- package/dist/hub/join/local.d.ts +27 -0
- package/dist/hub/join/local.js +70 -5
- package/dist/hub/join/local.js.map +1 -1
- package/dist/hub/join/receipt.d.ts +1 -0
- package/dist/hub/join/receipt.js +1 -1
- package/dist/hub/join/receipt.js.map +1 -1
- package/dist/hub/join/service.d.ts +92 -6
- package/dist/hub/join/service.js +199 -28
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/join/store.d.ts +2 -1
- package/dist/hub/join/store.js +7 -7
- package/dist/hub/join/store.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +3 -2
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +12 -2
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-notices.js +8 -6
- package/dist/hub/member/pairing-notices.js.map +1 -1
- package/dist/hub/pairing-notices.d.ts +5 -2
- package/dist/hub/pairing-notices.js +38 -13
- package/dist/hub/pairing-notices.js.map +1 -1
- package/dist/hub/pairing.d.ts +7 -2
- package/dist/hub/protocol.d.ts +47 -0
- package/dist/hub/protocol.js +3 -1
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/server.js +15 -1
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/types.d.ts +12 -4
- package/dist/hub-pairing-summary.js +1 -1
- package/dist/hub-pairing-summary.js.map +1 -1
- package/dist/instance-config-impact.js +4 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.js +4 -0
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +6 -2
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +62 -6
- package/dist/log-service.js +135 -28
- package/dist/log-service.js.map +1 -1
- package/dist/log-steps-agy-grok.d.ts +74 -0
- package/dist/log-steps-agy-grok.js +440 -0
- package/dist/log-steps-agy-grok.js.map +1 -0
- package/dist/log-steps.d.ts +62 -3
- package/dist/log-steps.js +188 -22
- package/dist/log-steps.js.map +1 -1
- package/dist/log-transcript-paths.d.ts +29 -0
- package/dist/log-transcript-paths.js +109 -0
- package/dist/log-transcript-paths.js.map +1 -0
- package/dist/login-controller.d.ts +17 -3
- package/dist/login-controller.js +57 -5
- package/dist/login-controller.js.map +1 -1
- package/dist/login-window-lock.d.ts +20 -8
- package/dist/login-window-lock.js +35 -16
- package/dist/login-window-lock.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -0
- package/dist/outbound-handlers.js +49 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/profile-signins.d.ts +2 -0
- package/dist/profile-signins.js +1 -1
- package/dist/profile-signins.js.map +1 -1
- package/dist/settings-api.d.ts +34 -0
- package/dist/settings-api.js +184 -6
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +38 -1
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +14 -0
- package/dist/settings-effect.js.map +1 -1
- package/dist/tool-progress.d.ts +7 -0
- package/dist/tool-progress.js +21 -9
- package/dist/tool-progress.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/ui/accounts-view.js +14 -4
- package/dist/ui/agent-details-settings.js +2 -2
- package/dist/ui/agent-page-strings.js +2 -2
- package/dist/ui/backend-signin.js +47 -14
- package/dist/ui/chat-activity-groups.js +225 -0
- package/dist/ui/chat-activity.js +355 -0
- package/dist/ui/chat-popout-header.js +35 -0
- package/dist/ui/chat-popout-transport.js +80 -0
- package/dist/ui/chat-popout.js +63 -0
- package/dist/ui/chat-quote.js +3 -1
- package/dist/ui/chat-store.js +45 -4
- package/dist/ui/chat-workspace-gestures.js +177 -0
- package/dist/ui/chat-workspace-navigation.js +34 -10
- package/dist/ui/chat-workspace.js +96 -32
- package/dist/ui/host-install.js +2 -2
- package/dist/ui/hub-agent-copy.js +7 -7
- package/dist/ui/hub-chat-strings.js +3 -3
- package/dist/ui/hub-client.js +77 -17
- package/dist/ui/hub-company-join-strings.js +12 -10
- package/dist/ui/hub-company-join.js +52 -39
- package/dist/ui/hub-confirm-place.js +44 -0
- package/dist/ui/hub-directory-editor-strings.js +3 -3
- package/dist/ui/hub-directory-notice-strings.js +1 -1
- package/dist/ui/hub-enrolment-code-strings.js +44 -0
- package/dist/ui/hub-enrolment-code.js +159 -0
- package/dist/ui/hub-group-search.js +82 -0
- package/dist/ui/hub-group-strings.js +8 -8
- package/dist/ui/hub-join-approval.js +31 -0
- package/dist/ui/hub-join-code-input.js +66 -0
- package/dist/ui/hub-join-queue.js +62 -0
- package/dist/ui/hub-join-steps.js +231 -0
- package/dist/ui/hub-joincode-flow-strings.js +22 -0
- package/dist/ui/hub-owner-strings.js +9 -9
- package/dist/ui/hub-pairing-progress-strings.js +1 -1
- package/dist/ui/hub-quick-pairing.js +8 -4
- package/dist/ui/hub-quick-strings.js +11 -11
- package/dist/ui/hub-share-refused.js +17 -0
- package/dist/ui/hub-strings.js +61 -61
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/hub-welcome.js +26 -5
- package/dist/ui/image-annotate.js +283 -0
- package/dist/ui/image-lightbox.js +26 -6
- package/dist/ui/log-row.js +327 -0
- package/dist/ui/panel-chat.js +151 -12
- package/dist/ui/panel-details.js +14 -6
- package/dist/ui/panel-hub.js +42 -13
- package/dist/ui/panel-log.js +9 -154
- package/dist/ui/panel-settings.js +48 -11
- package/dist/ui/search-dialog.js +1 -0
- package/dist/ui/settings-access-overview.js +1 -1
- package/dist/ui/settings-hub-browser-certificate.js +3 -3
- package/dist/ui/settings-hub-company-join.js +41 -30
- package/dist/ui/settings-hub-connection.js +8 -5
- package/dist/ui/settings-hub-membership.js +3 -3
- package/dist/ui/settings-hub-section.js +1 -1
- package/dist/ui/settings-hub-setup-strings.js +6 -6
- package/dist/ui/settings-hub-setup.js +44 -6
- package/dist/ui/settings-hub.js +35 -10
- package/dist/ui/settings-layout.js +6 -4
- package/dist/ui/settings-public-session-strings.js +37 -0
- package/dist/ui/settings-registry.js +4 -0
- package/dist/ui/settings-strings.js +2 -2
- package/dist/ui/shared/app-shell.js +16 -10
- package/dist/ui/shared/app.css +195 -30
- package/dist/ui/shared/app.js +8 -1
- package/dist/ui/shared/chat-render.js +11 -2
- package/dist/ui/shared/chat-thread.js +20 -3
- package/dist/ui/shared/chat-work-bar.css +7 -0
- package/dist/ui/shared/chat-workspace-model.js +39 -9
- package/dist/ui/shared/hub-owner.css +8 -0
- package/dist/ui/shared/identity-color.js +9 -3
- package/dist/ui/shared/image-annotate.css +45 -0
- package/dist/ui/shared/instance-nav.js +59 -22
- package/dist/ui/shared/pane-geometry.js +29 -0
- package/dist/ui/shared/signin.js +2 -2
- package/dist/ui/shared/tokens.css +14 -0
- package/dist/ui/shared/ui-menu.js +22 -7
- package/dist/ui/signin.html +1 -1
- package/dist/ui/structured-signin.js +11 -4
- package/dist/web-api.d.ts +1 -0
- package/dist/web-api.js +34 -4
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +9 -3
- package/dist/web-backend-login.js +7 -4
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-chat-history.d.ts +11 -0
- package/dist/web-chat-history.js +9 -1
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-guest-access.js +2 -2
- package/dist/web-guest-access.js.map +1 -1
- package/dist/web-session.d.ts +31 -3
- package/dist/web-session.js +25 -4
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +8 -2
- package/dist/web-settings-patch.js +22 -10
- package/dist/web-settings-patch.js.map +1 -1
- package/package.json +1 -1
|
@@ -29,6 +29,7 @@ import "./settings-strings.js";
|
|
|
29
29
|
import "./settings-shared-strings.js"; // see settings-shared.js: the words Shared agent settings added, which an older settings-strings.js in an open tab lacks
|
|
30
30
|
import "./agent-page-strings.js"; // the confirmation text of the MCP proxy reply
|
|
31
31
|
import "./settings-restart-strings.js"; // S-92: the restart words for a fleet with no chat connection (a file of its own: an open tab may hold an old settings-strings.js)
|
|
32
|
+
import "./settings-public-session-strings.js"; // #3708: the public link's session limits (a file of its own: an open tab may hold the older string files)
|
|
32
33
|
import "./settings-access-strings.js"; // the words Access & security added (settings.webLoginQr…): an older settings-strings.js from a tab that visited Fleet first lacks them (#3061)
|
|
33
34
|
import { UpdatePillMark, UpdateSection } from "./settings-update.js";
|
|
34
35
|
import { api, attach, confirmedWrite, newKey } from "./settings-confirm.js";
|
|
@@ -43,7 +44,7 @@ import {
|
|
|
43
44
|
AgentDialog, BackendSelect, BotDialog, ChipList, ClassicDialog, DefaultMark, Feedback, Impact, InEffect, Inherited, Label,
|
|
44
45
|
NewBotDialog, Override, Select, ask, impactText, inAgentDefaults, valueText,
|
|
45
46
|
} from "./settings-dialogs.js";
|
|
46
|
-
import { SharedAgentSettings, sharedNotes } from "./settings-shared.js";
|
|
47
|
+
import { InfoTip, SharedAgentSettings, sharedNotes } from "./settings-shared.js";
|
|
47
48
|
import { QuotaNoticeSettings, quotaNoticeText } from "./settings-quota-notice.js";
|
|
48
49
|
import { SetupWizard } from "./settings-wizard.js";
|
|
49
50
|
import { CreateInstanceDialog } from "./panel-fleet.js";
|
|
@@ -1266,6 +1267,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1266
1267
|
const { schema } = ctx;
|
|
1267
1268
|
const [accessTab, setAccessTab] = useSettingsTabs("access", "overview");
|
|
1268
1269
|
const web = ctx.fleet.web || {}, local = (web.session && web.session.local) || {}, term = ctx.fleet.web_terminal || {};
|
|
1270
|
+
const plSession = (web.session && web.session.public_link) || {}; // #3708
|
|
1269
1271
|
// Over the public link the fields read only; the Guests and Web authority cards are not offered (the server never
|
|
1270
1272
|
// serves their reads there).
|
|
1271
1273
|
const overPublicLink = globalThis.document?.body?.dataset?.publicLink === "1";
|
|
@@ -1273,34 +1275,38 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1273
1275
|
notify: noticeMode(web.notify_login),
|
|
1274
1276
|
echo: web.echo_to_channel ?? true,
|
|
1275
1277
|
log: web.log_tab === true, // #1218: off by default
|
|
1278
|
+
thinking: web.log_thinking === true, // AGEND-197: off by default
|
|
1276
1279
|
usagePub: web.usage_report_on_public_link === true, // #2122: off by default
|
|
1277
1280
|
levels: web.office_levels !== false, // #2661: on by default
|
|
1278
1281
|
cdn: web.preview_cdn === true, // #2911 (7): off by default
|
|
1279
1282
|
loginQr: web.login_qr === true, // #3061 (P2b): off by default
|
|
1280
1283
|
pub: { allow_public: (web.public_link && web.public_link.allow_public) ?? true, ttl_minutes: (web.public_link && web.public_link.ttl_minutes) ?? 120, protocol: (web.public_link && web.public_link.protocol) ?? "http2", hostname: (web.public_link && web.public_link.hostname) ?? "", tunnel_token_env: (web.public_link && web.public_link.tunnel_token_env) ?? "", origin_port: (web.public_link && web.public_link.origin_port) ?? 19282, auto_open: (web.public_link && web.public_link.auto_open) ?? false },
|
|
1281
1284
|
session: { absolute_hours: local.absolute_hours ?? null, idle_hours: local.idle_hours ?? null },
|
|
1285
|
+
plSession: { absolute_hours: plSession.absolute_hours ?? null, idle_minutes: plSession.idle_minutes ?? null },
|
|
1282
1286
|
terminal: { enabled: term.enabled ?? null, ttl_minutes: term.ttl_minutes ?? null },
|
|
1283
1287
|
}), []);
|
|
1284
1288
|
const text = (v) => (v === null || v === undefined ? "" : String(v));
|
|
1285
1289
|
/** #2347: a field's row class: `s-dirty` while it differs from what is saved (the draft may come from before). */
|
|
1286
|
-
const savedForm = useMemo(() => ({ notify: String(original.notify), echo: original.echo, log: original.log, usagePub: original.usagePub, levels: original.levels, cdn: original.cdn, loginQr: original.loginQr, pub: original.pub.allow_public,
|
|
1290
|
+
const savedForm = useMemo(() => ({ notify: String(original.notify), echo: original.echo, log: original.log, thinking: original.thinking, usagePub: original.usagePub, levels: original.levels, cdn: original.cdn, loginQr: original.loginQr, pub: original.pub.allow_public,
|
|
1287
1291
|
ttl: String(original.pub.ttl_minutes), protocol: original.pub.protocol, hostname: original.pub.hostname, originPort: String(original.pub.origin_port),
|
|
1288
|
-
abs: text(original.session.absolute_hours), idle: text(original.session.idle_hours),
|
|
1292
|
+
abs: text(original.session.absolute_hours), idle: text(original.session.idle_hours),
|
|
1293
|
+
plAbs: text(original.plSession.absolute_hours), plIdle: text(original.plSession.idle_minutes), termOn: original.terminal.enabled !== false,
|
|
1289
1294
|
termTtl: text(original.terminal.ttl_minutes), autoOpen: original.pub.auto_open }), []);
|
|
1290
1295
|
const [f, setF] = useDraft(ctx, "web", () => savedForm, () => {
|
|
1291
1296
|
// Settings sections share one draft. Reopening Web must show it as well as preserve it in the Apply bar, so a
|
|
1292
1297
|
// subsequent field edit keeps earlier edits. The original disk values remain the diff/confirmation baseline.
|
|
1293
1298
|
const request = staged.get("web")?.request;
|
|
1294
1299
|
const pending = request?.method === "PUT" && request.url === "/api/settings/fleet/web" ? request.body || {} : {};
|
|
1295
|
-
const pub = pending.public_link || {}, session = pending.session?.local || {}, terminal = pending.web_terminal || {};
|
|
1300
|
+
const pub = pending.public_link || {}, session = pending.session?.local || {}, plPending = pending.session?.public_link || {}, terminal = pending.web_terminal || {};
|
|
1296
1301
|
const pick = (obj, key, fallback) => Object.prototype.hasOwnProperty.call(obj, key) ? obj[key] : fallback;
|
|
1297
1302
|
return {
|
|
1298
1303
|
notify: String(pick(pending, "notify_login", original.notify)),
|
|
1299
|
-
echo: pick(pending, "echo_to_channel", original.echo), log: pick(pending, "log_tab", original.log), usagePub: pick(pending, "usage_report_on_public_link", original.usagePub),
|
|
1304
|
+
echo: pick(pending, "echo_to_channel", original.echo), log: pick(pending, "log_tab", original.log), thinking: pick(pending, "log_thinking", original.thinking), usagePub: pick(pending, "usage_report_on_public_link", original.usagePub),
|
|
1300
1305
|
levels: pick(pending, "office_levels", original.levels), cdn: pick(pending, "preview_cdn", original.cdn), loginQr: pick(pending, "login_qr", original.loginQr),
|
|
1301
1306
|
pub: pick(pub, "allow_public", original.pub.allow_public), ttl: String(pick(pub, "ttl_minutes", original.pub.ttl_minutes)), protocol: pick(pub, "protocol", original.pub.protocol),
|
|
1302
1307
|
hostname: pick(pub, "hostname", original.pub.hostname), originPort: String(pick(pub, "origin_port", original.pub.origin_port)), autoOpen: pick(pub, "auto_open", original.pub.auto_open),
|
|
1303
1308
|
abs: text(pick(session, "absolute_hours", original.session.absolute_hours)), idle: text(pick(session, "idle_hours", original.session.idle_hours)),
|
|
1309
|
+
plAbs: text(pick(plPending, "absolute_hours", original.plSession.absolute_hours)), plIdle: text(pick(plPending, "idle_minutes", original.plSession.idle_minutes)),
|
|
1304
1310
|
termOn: pick(terminal, "enabled", original.terminal.enabled) !== false, termTtl: text(pick(terminal, "ttl_minutes", original.terminal.ttl_minutes)),
|
|
1305
1311
|
};
|
|
1306
1312
|
});
|
|
@@ -1314,6 +1320,13 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1314
1320
|
const abs = value(f.abs) ?? 48, idle = value(f.idle) ?? Math.min(48, abs);
|
|
1315
1321
|
// Named mode: a hostname is typed (the server judges the merged result the same way).
|
|
1316
1322
|
const named = String(f.hostname || "").trim() !== "";
|
|
1323
|
+
// #3708: the public link's own limits (PUBLIC_LINK_SESSION_BOUNDS): idle 5–1440 min, absolute 1–168 h, idle ≤ absolute.
|
|
1324
|
+
// What applies (publicLinkSessionPolicy): a quick tunnel caps them at 8 h / 30 min, and an admin's never outlasts the
|
|
1325
|
+
// local limits above (a guest's follows the guest settings).
|
|
1326
|
+
const outOf = (v, lo, hi) => { const n = value(v); return n !== null && (!Number.isFinite(n) || n < lo || n > hi); };
|
|
1327
|
+
const plAbsAsked = value(f.plAbs) ?? 8, plIdleAsked = value(f.plIdle) ?? Math.min(30, plAbsAsked * 60);
|
|
1328
|
+
const plAbsQuick = named ? plAbsAsked : Math.min(plAbsAsked, 8), plIdleQuick = named ? plIdleAsked : Math.min(plIdleAsked, 30);
|
|
1329
|
+
const plAbsNow = Math.min(plAbsQuick, abs), plIdleNow = Math.min(plIdleQuick, plAbsNow * 60, idle * 60);
|
|
1317
1330
|
const errors = {
|
|
1318
1331
|
hostname: f.hostname && !/^(?:https:\/\/)?[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+\/?$/.test(f.hostname) ? "namedHostnameInvalid" : "",
|
|
1319
1332
|
originPort: !Number.isInteger(Number(f.originPort)) || Number(f.originPort) < 1024 || Number(f.originPort) > 65535 ? "namedPortInvalid" : "",
|
|
@@ -1323,6 +1336,8 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1323
1336
|
autoOpen: f.autoOpen && !named ? "publicAutoOpenNeedsHostname" : "",
|
|
1324
1337
|
abs: hours(f.abs),
|
|
1325
1338
|
idle: hours(f.idle) || (!hours(f.abs) && idle > abs ? "sessionIdleOver" : ""),
|
|
1339
|
+
plAbs: outOf(f.plAbs, 1, 168) ? "publicSessionAbsoluteRange" : "",
|
|
1340
|
+
plIdle: outOf(f.plIdle, 5, 1440) ? "publicSessionIdleRange" : !outOf(f.plAbs, 1, 168) && value(f.plIdle) !== null && plIdleAsked > plAbsAsked * 60 ? "publicSessionIdleOver" : "",
|
|
1326
1341
|
termTtl: value(f.termTtl) !== null && (!Number.isInteger(value(f.termTtl)) || value(f.termTtl) < 1 || value(f.termTtl) > 20) ? "webTerminalTtlRange" : "",
|
|
1327
1342
|
};
|
|
1328
1343
|
const ready = !overPublicLink && !Object.values(errors).some(Boolean);
|
|
@@ -1331,6 +1346,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1331
1346
|
if (overPublicLink) return;
|
|
1332
1347
|
if (!ready) {
|
|
1333
1348
|
const at = { hostname: "#publicWebHostname", originPort: "#publicWebOriginPort", ttl: "#publicWebTtl", abs: "#webSessionAbsolute", idle: "#webSessionIdle",
|
|
1349
|
+
plAbs: "#webPublicSessionAbsolute", plIdle: "#webPublicSessionIdle",
|
|
1334
1350
|
termTtl: "#webTerminalTtl" }[Object.keys(errors).find((k) => errors[k])];
|
|
1335
1351
|
syncStage(ctx, "web", { label: tn("webSettingsLabel"), invalid: tn(Object.values(errors).find(Boolean)), section: "access", target: at });
|
|
1336
1352
|
return;
|
|
@@ -1341,6 +1357,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1341
1357
|
: f.hostname ? original.pub.tunnel_token_env || "AGEND_CLOUDFLARE_TUNNEL_TOKEN" : "";
|
|
1342
1358
|
const publicPatch = changedFields({ allow_public: f.pub, ttl_minutes: Number(f.ttl), protocol: f.protocol, hostname: f.hostname, tunnel_token_env: tokenEnv, origin_port: Number(f.originPort), auto_open: f.autoOpen }, original.pub);
|
|
1343
1359
|
const sessionPatch = changedFields({ absolute_hours: value(f.abs), idle_hours: value(f.idle) }, original.session);
|
|
1360
|
+
const plSessionPatch = changedFields({ absolute_hours: value(f.plAbs), idle_minutes: value(f.plIdle) }, original.plSession);
|
|
1344
1361
|
// The checkbox shows the default (on) for an unset key: only a real toggle is written; on again = back to the default.
|
|
1345
1362
|
const terminalPatch = changedFields({ enabled: f.termOn === (original.terminal.enabled !== false) ? original.terminal.enabled : f.termOn ? null : false,
|
|
1346
1363
|
ttl_minutes: value(f.termTtl) }, original.terminal);
|
|
@@ -1348,24 +1365,29 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1348
1365
|
...(noticeMode(f.notify) !== original.notify ? { notify_login: noticeMode(f.notify) } : {}),
|
|
1349
1366
|
...(f.echo !== original.echo ? { echo_to_channel: f.echo } : {}),
|
|
1350
1367
|
...(f.log !== original.log ? { log_tab: f.log } : {}),
|
|
1368
|
+
...(f.thinking !== original.thinking ? { log_thinking: f.thinking } : {}),
|
|
1351
1369
|
...(f.usagePub !== original.usagePub ? { usage_report_on_public_link: f.usagePub } : {}),
|
|
1352
1370
|
...(f.levels !== original.levels ? { office_levels: f.levels } : {}),
|
|
1353
1371
|
...(f.cdn !== original.cdn ? { preview_cdn: f.cdn } : {}),
|
|
1354
1372
|
...(f.loginQr !== original.loginQr ? { login_qr: f.loginQr } : {}),
|
|
1355
1373
|
...(Object.keys(publicPatch).length ? { public_link: publicPatch } : {}),
|
|
1356
|
-
...(Object.keys(sessionPatch).length ? { session: {
|
|
1374
|
+
...(Object.keys(sessionPatch).length || Object.keys(plSessionPatch).length ? { session: {
|
|
1375
|
+
...(Object.keys(sessionPatch).length ? { local: sessionPatch } : {}),
|
|
1376
|
+
...(Object.keys(plSessionPatch).length ? { public_link: plSessionPatch } : {}) } } : {}),
|
|
1357
1377
|
...(Object.keys(terminalPatch).length ? { web_terminal: terminalPatch } : {}),
|
|
1358
1378
|
};
|
|
1359
1379
|
const fields = [
|
|
1360
1380
|
...(body.notify_login !== undefined ? ["web.notify_login"] : []),
|
|
1361
1381
|
...(body.echo_to_channel !== undefined ? ["web.echo_to_channel"] : []),
|
|
1362
1382
|
...(body.log_tab !== undefined ? ["web.log_tab"] : []),
|
|
1383
|
+
...(body.log_thinking !== undefined ? ["web.log_thinking"] : []),
|
|
1363
1384
|
...(body.usage_report_on_public_link !== undefined ? ["web.usage_report_on_public_link"] : []),
|
|
1364
1385
|
...(body.office_levels !== undefined ? ["web.office_levels"] : []),
|
|
1365
1386
|
...(body.preview_cdn !== undefined ? ["web.preview_cdn"] : []),
|
|
1366
1387
|
...(body.login_qr !== undefined ? ["web.login_qr"] : []),
|
|
1367
1388
|
...Object.keys(publicPatch).map((k) => `web.public_link.${k}`),
|
|
1368
1389
|
...Object.keys(sessionPatch).map((k) => `web.session.local.${k}`),
|
|
1390
|
+
...Object.keys(plSessionPatch).map((k) => `web.session.public_link.${k}`),
|
|
1369
1391
|
...Object.keys(terminalPatch).map((k) => `web_terminal.${k}`),
|
|
1370
1392
|
];
|
|
1371
1393
|
if (fields.length) {
|
|
@@ -1408,12 +1430,12 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1408
1430
|
{ id: "guests", label: layoutText("accessGuests") },
|
|
1409
1431
|
{ id: "sharing", label: layoutText("accessSharing") },
|
|
1410
1432
|
];
|
|
1411
|
-
const toggleRow = (key, id, label, hint, impact) => html`<div class=${fc("s-setting-row", key)}>
|
|
1433
|
+
const toggleRow = (key, id, label, hint, impact, disabled = false, disclosure = true) => html`<div class=${fc("s-setting-row", key)}>
|
|
1412
1434
|
<div class="s-setting-copy"><label for=${id}>${part === "dashboard" ? layoutText(`revDashboard_${key}`) : tn(label)}<${Impact} schema=${schema} field=${impact} /></label>
|
|
1413
1435
|
<p class="note" id=${`${id}-hint`}>${part === "dashboard" ? layoutText(`revDashboardHint_${key}`) : tn(hint)}</p>
|
|
1414
|
-
${part === "dashboard" ? html`<details class="s-setting-details"><summary>${layoutText("revDetails")}</summary><p class="note"><strong>${tn(label)}</strong> ${tn(hint)}</p></details>` : null}
|
|
1436
|
+
${part === "dashboard" && disclosure ? html`<details class="s-setting-details"><summary>${layoutText("revDetails")}</summary><p class="note"><strong>${tn(label)}</strong> ${tn(hint)}</p></details>` : null}
|
|
1415
1437
|
</div>
|
|
1416
|
-
<input class="s-ui-toggle" id=${id} type="checkbox" checked=${f[key]} aria-describedby=${`${id}-hint`} onChange=${(e) => set(key)(e.target.checked)} />
|
|
1438
|
+
<input class="s-ui-toggle" id=${id} type="checkbox" checked=${f[key]} disabled=${disabled} aria-describedby=${`${id}-hint`} onChange=${(e) => set(key)(e.target.checked)} />
|
|
1417
1439
|
</div>`;
|
|
1418
1440
|
const configured = (path) => { const [top, key] = path.split("."); return (top === "web" ? web : term)[key] !== undefined; };
|
|
1419
1441
|
return html`<div class=${`form s-web s-part-${part}`}>
|
|
@@ -1440,11 +1462,25 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1440
1462
|
class=${errors.idle ? "invalid" : ""} value=${f.idle} onInput=${(e) => set("idle")(e.target.value)} /><${Feedback} error=${errors.idle} />
|
|
1441
1463
|
${value(f.idle) === null && !errors.abs ? html`<${InEffect} text=${tn("hoursValue", idle)} why=${idle < 48 ? tn("cappedBySession") : null} />` : null}</div>
|
|
1442
1464
|
</div>
|
|
1443
|
-
<p class="note s-session-ceiling">${
|
|
1465
|
+
<p class="note s-session-ceiling">${tn("publicSessionLimitNote")}</p>
|
|
1466
|
+
${/* #3708: the public link's own limits — longer than 8 h / 30 min only with a fixed hostname (a named tunnel). */ ""}
|
|
1467
|
+
<div class="s-public-session" id="webPublicSession">
|
|
1468
|
+
<div class="s-lab"><h4>${tn("publicSessionTitle")}</h4><${InfoTip} text=${tn("publicSessionTip")} name=${tn("publicSessionTitle")} /></div>
|
|
1469
|
+
<div class="grid2">
|
|
1470
|
+
<div class=${fc("field", "plAbs")}><label for="webPublicSessionAbsolute">${tn("publicSessionAbsolute")}<${Impact} schema=${schema} field="web.session.public_link.absolute_hours" /></label><input id="webPublicSessionAbsolute" type="number" min="1" max="168" step="any"
|
|
1471
|
+
class=${errors.plAbs ? "invalid" : ""} value=${f.plAbs} onInput=${(e) => set("plAbs")(e.target.value)} /><${Feedback} error=${errors.plAbs} />
|
|
1472
|
+
${!errors.plAbs && !errors.abs && (value(f.plAbs) === null || plAbsNow < plAbsAsked) ? html`<${InEffect} text=${tn("hoursValue", plAbsNow)} why=${plAbsNow < plAbsAsked ? (plAbsQuick < plAbsAsked ? tn("publicSessionQuick") : tn("cappedBySession")) : null} />` : null}</div>
|
|
1473
|
+
<div class=${fc("field", "plIdle")}><label for="webPublicSessionIdle">${tn("publicSessionIdle")}<${Impact} schema=${schema} field="web.session.public_link.idle_minutes" /></label><input id="webPublicSessionIdle" type="number" min="5" max="1440" step="any"
|
|
1474
|
+
class=${errors.plIdle ? "invalid" : ""} value=${f.plIdle} onInput=${(e) => set("plIdle")(e.target.value)} /><${Feedback} error=${errors.plIdle} />
|
|
1475
|
+
${!errors.plIdle && !errors.plAbs && !errors.abs && !errors.idle && (value(f.plIdle) === null || plIdleNow < plIdleAsked) ? html`<${InEffect} text=${tn("minutesValue", Math.round(plIdleNow))} why=${plIdleNow < plIdleAsked ? (plIdleQuick < plIdleAsked ? tn("publicSessionQuick") : tn("cappedBySession")) : null} />` : null}</div>
|
|
1476
|
+
</div>
|
|
1477
|
+
${!named ? html`<p class="note s-public-session-quick" id="webPublicSessionQuick">${tn("publicSessionNeedsHostname")}</p>` : null}
|
|
1478
|
+
<p class="note">${tn("publicSessionCeiling")}</p>
|
|
1479
|
+
</div>
|
|
1444
1480
|
${/* Refs #3061 (P2b): the QR code on a new device's sign-in page (a web-only fleet's "Sign in with another device"). */ ""}
|
|
1445
1481
|
<label class=${fc("check", "loginQr")}><input id="webLoginQr" type="checkbox" checked=${f.loginQr} aria-describedby="webLoginQr-hint" onChange=${(e) => set("loginQr")(e.target.checked)} /><span>${tn("webLoginQr")}</span><${Impact} schema=${schema} field="web.login_qr" /></label>
|
|
1446
1482
|
<p class="note" id="webLoginQr-hint">${tn("webLoginQrHint")}</p>
|
|
1447
|
-
<details class="s-setting-details"><summary>${layoutText("revSessionDetails")}</summary><p class="note">${tn("
|
|
1483
|
+
<details class="s-setting-details"><summary>${layoutText("revSessionDetails")}</summary><p class="note">${tn("publicSessionHint")}</p><p class="note">${tn("webNotifyLoginHint")}</p></details>
|
|
1448
1484
|
</section>`)}
|
|
1449
1485
|
${!overPublicLink ? html`<${WebAuthorityCard} ctx=${ctx} staged=${staged} />` : null}
|
|
1450
1486
|
${/* A tab whose shell is from before Settings → Hub (its app-route.js has no "hub"): the Hub cards stay here. */ ""}
|
|
@@ -1496,6 +1532,7 @@ function WebSection({ ctx, staged, part = "all" }) {
|
|
|
1496
1532
|
</section>`) : null}
|
|
1497
1533
|
${has("dashboard") ? lock(html`<section class="card s-dashboard-features"><h3>${layoutText("dashboardFeatures")}</h3>
|
|
1498
1534
|
${toggleRow("log", "webLogTab", "webLogTab", "webLogTabHint", "web.log_tab")}
|
|
1535
|
+
${toggleRow("thinking", "webLogThinking", "webLogThinking", "webLogThinkingHint", "web.log_thinking", false, false)}
|
|
1499
1536
|
${toggleRow("usagePub", "webUsagePublic", "webUsagePublic", "webUsagePublicHint", "web.usage_report_on_public_link")}
|
|
1500
1537
|
${toggleRow("levels", "webOfficeLevels", "webOfficeLevels", "webOfficeLevelsHint", "web.office_levels")}
|
|
1501
1538
|
${toggleRow("cdn", "webPreviewCdn", "webPreviewCdn", "webPreviewCdnHint", "web.preview_cdn")}
|
package/dist/ui/search-dialog.js
CHANGED
|
@@ -17,6 +17,7 @@ import { goToSetting, searchSettings, settingLabel } from "./settings-registry.j
|
|
|
17
17
|
import "./settings-strings.js";
|
|
18
18
|
import "./settings-shared-strings.js"; // the "where" of a result is settings.sec_<section>; sec_agent-defaults is one of these words
|
|
19
19
|
import "./settings-revoke-strings.js"; // a result shows its label: settings.vaRevokeOthers is one of these words (PR #3553 review)
|
|
20
|
+
import "./settings-public-session-strings.js"; // #3708: a result shows its label (settings.publicSession…)
|
|
20
21
|
import "./settings-access-strings.js"; // a result shows its label: settings.webLoginQr is one of these words (#3061)
|
|
21
22
|
|
|
22
23
|
register("search", {
|
|
@@ -52,7 +52,7 @@ register("accessov", {
|
|
|
52
52
|
on: "開啟", goOwner: "擁有者驗證設定", twoStepNone: "未設定時,其他裝置上的變更以「立即套用」確認。",
|
|
53
53
|
otherTitle: "其他連線", otherLead: "到各自的頁面中斷或移除。",
|
|
54
54
|
hub: "Hub", hubHint: "你的團隊 Hub,以及在那裡分享的 Agent", windows: "Windows 電腦", windowsHint: "連上這裡、用來執行 Agent 的 Windows 電腦",
|
|
55
|
-
accounts: "AI 帳號", accountsHint: "Agent 使用的 Claude、Codex 等帳號", hubOn: "
|
|
55
|
+
accounts: "AI 帳號", accountsHint: "Agent 使用的 Claude、Codex 等帳號", hubOn: "已連接", paired: "已連上 {0} 台",
|
|
56
56
|
},
|
|
57
57
|
});
|
|
58
58
|
const to = (k, ...a) => t(`accessov.${k}`, ...a);
|
|
@@ -8,7 +8,7 @@ register("hubBrowserCertificate", {
|
|
|
8
8
|
title: "Hub browser certificate", fingerprint: "SHA-256 fingerprint", expires: "Expires", generate: "Generate self-signed certificate",
|
|
9
9
|
import: "Import a certificate and private key", certificateFile: "Certificate file", keyFile: "Private key file",
|
|
10
10
|
hint: "File paths are relative to the AgEnD home on the Hub computer. Both files and their parent directories must be private to its owner. The certificate must cover the Hub web address.",
|
|
11
|
-
boundary: "This changes browser HTTPS only. Member
|
|
11
|
+
boundary: "This changes browser HTTPS only. Member connections and their transport certificate stay the same.",
|
|
12
12
|
prepare: "Prepare replacement", replace: "Confirm replacement", saved: "Browser certificate replaced. New connections use it.",
|
|
13
13
|
restart: "The replacement is saved. Restart the Hub to activate it.",
|
|
14
14
|
selfSigned: "Self-signed certificate: browsers will warn unless you trust it separately. Confirm the fingerprint before trusting it.",
|
|
@@ -20,8 +20,8 @@ register("hubBrowserCertificate", {
|
|
|
20
20
|
title: "Hub 瀏覽器憑證", fingerprint: "SHA-256 指紋", expires: "到期時間", generate: "產生新的自簽憑證",
|
|
21
21
|
import: "匯入憑證與私鑰", certificateFile: "憑證檔案", keyFile: "私鑰檔案",
|
|
22
22
|
hint: "檔案路徑相對於 Hub 電腦上的 AgEnD 主目錄。兩個檔案及其上層目錄都必須僅供擁有者存取;憑證必須涵蓋 Hub 網址。",
|
|
23
|
-
boundary: "這只會變更瀏覽器 HTTPS
|
|
24
|
-
prepare: "準備替換憑證", replace: "確認替換", saved: "
|
|
23
|
+
boundary: "這只會變更瀏覽器 HTTPS;成員連接及其傳輸憑證保持不變。",
|
|
24
|
+
prepare: "準備替換憑證", replace: "確認替換", saved: "已替換瀏覽器憑證;新的網路連線會使用新憑證。",
|
|
25
25
|
restart: "已儲存替換憑證,請重新啟動 Hub 以套用。",
|
|
26
26
|
selfSigned: "自簽憑證:除非另外設定信任,否則瀏覽器會顯示警告。請先核對指紋再信任。",
|
|
27
27
|
failed: "無法準備或儲存憑證。請檢查私有檔案路徑、私鑰是否相符、網址主機名稱與到期時間;產生憑證需要安裝 OpenSSL。請重新整理後再試。",
|
|
@@ -5,39 +5,41 @@ import { appStore, useStore } from "/assets/app-store.js";
|
|
|
5
5
|
import { Skeleton, ErrorState } from "/assets/ui-states.js";
|
|
6
6
|
import { api, confirmedWrite, confirmWithCode } from "./settings-confirm.js";
|
|
7
7
|
import { hj, joinError, joinResponseCode } from "./hub-company-join-strings.js";
|
|
8
|
-
import { j1,
|
|
8
|
+
import { j1, probeMessage, waitingMessage, reasonMessage, leftOf } from "./hub-join-one-strings.js";
|
|
9
|
+
import { confirmPlace, pendingView } from "./hub-confirm-place.js";
|
|
10
|
+
import { classifyJoinInput, fromHandoffText, jc } from "./hub-join-code-input.js";
|
|
9
11
|
// Own words: a new panel must also work with a cached older company-join dictionary.
|
|
10
12
|
register("companyJoinWait", {
|
|
11
13
|
"en": {
|
|
12
14
|
startHint: "Paste the Hub link first.", nameHint: "Enter a Fleet name to continue.",
|
|
13
|
-
getLink: "
|
|
15
|
+
getLink: "Enter the Hub address (for example hub.example.com), or paste the link your Hub administrator gave you.",
|
|
14
16
|
connecting: "Opening Hub sign-in…", codeNeeded: "Your authenticator code is required.", target: "Hub: {0}",
|
|
15
17
|
codeLead: "You enabled authenticator codes for remote changes. Enter your own 6-digit code here to continue to Hub sign-in.",
|
|
16
18
|
codeLabel: "Your 6-digit authenticator code", codeGo: "Continue", codeWrong: "That code was not accepted. Try a current code.",
|
|
17
19
|
codeBusy: "Too many attempts. Wait and try again.", codeUnavailable: "This request cannot be verified now. Check the same connection again.",
|
|
18
20
|
codeInOriginal: "Enter your authenticator code here if requested. This tab continues automatically.",
|
|
19
|
-
checking: "Checking this connection’s status
|
|
20
|
-
pending: "
|
|
21
|
-
pendingNext: "
|
|
22
|
-
localWithdrawn: "
|
|
23
|
-
reviewConfirmation: "
|
|
24
|
-
localExpired: "The
|
|
21
|
+
checking: "Checking this connection’s status…",
|
|
22
|
+
pending: "First confirm on the confirm card that it's really you connecting this Fleet. The Hub sign-in opens after that.",
|
|
23
|
+
pendingNext: "Once you confirm, this connection continues here.",
|
|
24
|
+
localWithdrawn: "The confirmation was withdrawn. The Hub sign-in did not start.",
|
|
25
|
+
reviewConfirmation: "Go to the confirm card",
|
|
26
|
+
localExpired: "The wait for the confirmation has ended without a verified connection result. Check this request before starting another connection.",
|
|
25
27
|
leaveWait: "Returning to Settings does not withdraw a submitted confirmation. Use Withdraw on its confirmation card to cancel it.",
|
|
26
28
|
},
|
|
27
29
|
"zh-TW": {
|
|
28
30
|
startHint: "請先貼上 Hub 連結。", nameHint: "請填入 Fleet 名稱以繼續。",
|
|
29
|
-
getLink: "
|
|
31
|
+
getLink: "請輸入 Hub 位址(例如 hub.example.com),或貼上 Hub 管理員給你的連結。",
|
|
30
32
|
connecting: "正在開啟 Hub 登入頁面…", codeNeeded: "請輸入你的驗證碼以繼續。", target: "Hub:{0}",
|
|
31
33
|
codeLead: "你已啟用遠端變更的驗證碼保護。請在這裡輸入你自己的 6 位數驗證碼,繼續前往 Hub 登入。",
|
|
32
34
|
codeLabel: "你的 6 位數驗證碼", codeGo: "繼續", codeWrong: "驗證碼未通過,請輸入目前的驗證碼。",
|
|
33
35
|
codeBusy: "嘗試次數過多,請稍候再試。", codeUnavailable: "目前無法驗證這次請求,請再次檢查同一個連接。",
|
|
34
36
|
codeInOriginal: "若你的帳號要求驗證碼,請在這裡輸入。這個分頁會自動繼續。",
|
|
35
|
-
checking: "
|
|
36
|
-
pending: "
|
|
37
|
-
pendingNext: "
|
|
38
|
-
localWithdrawn: "
|
|
39
|
-
reviewConfirmation: "
|
|
40
|
-
localExpired: "
|
|
37
|
+
checking: "正在確認這次連接的狀態…",
|
|
38
|
+
pending: "請先在確認卡上確認是你本人要連接這個 Fleet;之後才會開啟 Hub 登入。",
|
|
39
|
+
pendingNext: "確認後,這次連接會在這裡繼續。",
|
|
40
|
+
localWithdrawn: "已撤回確認,尚未開始 Hub 登入。",
|
|
41
|
+
reviewConfirmation: "前往確認卡",
|
|
42
|
+
localExpired: "等候確認的時間已到,目前仍未確認這次連接的結果。請先檢查這次請求,再開始其他連接。",
|
|
41
43
|
leaveWait: "返回設定不會撤回已送出的確認;若要取消,請在該確認卡按「撤回」。",
|
|
42
44
|
},
|
|
43
45
|
});
|
|
@@ -47,7 +49,8 @@ const LOCAL_WAIT_MS = 5 * 60_000; // matches the Settings confirmation ceiling;
|
|
|
47
49
|
export const companyJoinEmbedV1 = true;
|
|
48
50
|
export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded = false, onPairingCode } = {}) {
|
|
49
51
|
const notified = useRef(null), submittedTarget = useRef(""), submittedHandoff = useRef(null);
|
|
50
|
-
const
|
|
52
|
+
const shellState = useStore(appStore);
|
|
53
|
+
const { hubJoinChanges = [] } = shellState;
|
|
51
54
|
const waiting = (() => { try { return new URLSearchParams(location.search).get("joinWait"); } catch { return null; } })();
|
|
52
55
|
const consentWait = (() => { try { return new URLSearchParams(location.search).get("joinConsent") === "1"; } catch { return false; } })();
|
|
53
56
|
const [code, setCode] = useState(""), [codeBusy, setCodeBusy] = useState(false), [codeError, setCodeError] = useState(null);
|
|
@@ -66,7 +69,8 @@ export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded =
|
|
|
66
69
|
// #3675 r2: every look is bound to the address it was asked for and to its generation; only the newest answer for the
|
|
67
70
|
// address in the input counts. A forced look (after a replaced identity) retires any look still running.
|
|
68
71
|
const probeSeq = useRef(0), inflight = useRef(""), current = useRef("");
|
|
69
|
-
|
|
72
|
+
// M-2988 round 2: the join code — the administrator's copied text, and a code typed alone — read here (hub-join-code-input.js).
|
|
73
|
+
const kind = classifyJoinInput(form.address);
|
|
70
74
|
current.current = kind.kind === "address" ? kind.address : "";
|
|
71
75
|
const host = (() => { try { return new URL(kind.address).host; } catch { return ""; } })();
|
|
72
76
|
const runProbe = async (target = current.current, force = false) => {
|
|
@@ -108,7 +112,10 @@ export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded =
|
|
|
108
112
|
request.finally(() => { if (reading.current === request) reading.current = null; });
|
|
109
113
|
return request;
|
|
110
114
|
};
|
|
111
|
-
|
|
115
|
+
// alpha.2 findings 3/4: an attempt that blocks this one (refused, held, or another session's) is shown even in a waiting
|
|
116
|
+
// tab whose own handoff never started, instead of "Opening Hub sign-in…" until the deadline.
|
|
117
|
+
const blocking = !!view && (view.foreign === true || view.state === "held");
|
|
118
|
+
const unmatched = !!waiting && view?.handoffId !== waiting && !blocking;
|
|
112
119
|
useEffect(() => { live.current = true; read(); return () => { live.current = false; token.current++; }; }, []);
|
|
113
120
|
useEffect(() => {
|
|
114
121
|
if (!pending && !unmatched) { setTimedOut(false); return; }
|
|
@@ -172,7 +179,7 @@ export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded =
|
|
|
172
179
|
if (!live.current || gen !== token.current) return;
|
|
173
180
|
if (!result.ok || !result.body?.operation) { await read();
|
|
174
181
|
if (result.confirmed?.state === "rejected" && result.confirmed.outcome?.reason_code === "withdrawn") { setError(null); setNotice(jw("localWithdrawn")); return; }
|
|
175
|
-
const code = joinResponseCode(result); setError(result.confirmed?.state === "expired" ? jw("localExpired") : joinError(code)); setIdentityChanged(code === "identity-changed"); return; }
|
|
182
|
+
const code = joinResponseCode(result); setError(result.confirmed?.state === "expired" ? jw("localExpired") : code === "conflict" ? jc("blocked") : joinError(code)); setIdentityChanged(code === "identity-changed"); return; }
|
|
176
183
|
const operation = result.body.operation; setView(operation); setError(null);
|
|
177
184
|
|
|
178
185
|
} catch { if (live.current && gen === token.current) setError(hj("unknown")); }
|
|
@@ -196,7 +203,7 @@ export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded =
|
|
|
196
203
|
const options = { body: { operationId: view.operationId }, label: hj("title") };
|
|
197
204
|
const result = step === "resume" ? await confirmedWrite(root + "/resume", options) : await api(root + "/cancel", { method: "POST", body: JSON.stringify(options.body) });
|
|
198
205
|
if (!live.current || gen !== token.current) return;
|
|
199
|
-
if (result.ok) setView(result.body.operation); else setError(joinError(joinResponseCode(result)));
|
|
206
|
+
if (result.ok) setView(result.body.operation); else { setError(joinError(joinResponseCode(result))); await read(); }
|
|
200
207
|
} catch { if (live.current && gen === token.current) setError(hj("unknown")); }
|
|
201
208
|
finally { if (live.current && gen === token.current) setBusy(false); }
|
|
202
209
|
};
|
|
@@ -211,14 +218,16 @@ export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded =
|
|
|
211
218
|
finally { if (live.current && gen === token.current) setCodeBusy(false); }
|
|
212
219
|
};
|
|
213
220
|
const fleetLabel = (form.label.trim() || probe?.suggestedLabel || hj("defaultFleet")).slice(0, 120);
|
|
214
|
-
const problem = kind.kind === "error" ? j1(kind.error) : probe && !probe.none && probe.address === kind.address ? probeMessage(probe, host) : null;
|
|
221
|
+
const problem = kind.kind === "error" ? kind.error === "codeOnly" ? jc("codeOnly", kind.code) : j1(kind.error) : probe && !probe.none && probe.address === kind.address ? probeMessage(probe, host) : null;
|
|
215
222
|
// Start once the probe for exactly this address has answered without a problem. A probe that could not answer at all
|
|
216
223
|
// (no reason: a network error, an older server) does not block Start: Start makes the same checks itself.
|
|
217
224
|
const ready = kind.kind === "address" && !problem && !probing && probe?.address === kind.address;
|
|
218
225
|
const target = (() => { try { return pending?.target || (view && (!waiting || view.handoffId === waiting) ? view.hubOrigin : "") || (waiting ? new URLSearchParams(location.hash.slice(1)).get("target") || "" : new URL(kind.address).origin); } catch { return ""; } })();
|
|
219
226
|
const inlineWait = consentWait || pending?.inline;
|
|
220
227
|
const retired = embedded && !bound && view?.state === "saved" && view.outcomeKnown;
|
|
221
|
-
const canStart = !pending?.inline && !waiting && (retired || view === null || view && ["ended", "cancelled"].includes(view.state) && !view.issued && view.outcomeKnown);
|
|
228
|
+
const canStart = !pending?.inline && !waiting && (retired || view === null || view && ["ended", "cancelled", "held"].includes(view.state) && !view.issued && view.outcomeKnown);
|
|
229
|
+
// (alpha.2 finding 3: under a held attempt that issued nothing, a new Start is offered — the Fleet retires the held one
|
|
230
|
+
// first, only when the Hub confirms it can't issue; otherwise the Start is refused and says so.)
|
|
222
231
|
// The existing connection card owns ready status, sharing and disconnect. Do not duplicate it after handoff.
|
|
223
232
|
if (!waiting && bound && view === null || !retired && view?.state === "saved" && (memberEnabled || view.link === "online") && onSaved) return null;
|
|
224
233
|
const Frame = embedded ? "div" : "section";
|
|
@@ -238,7 +247,7 @@ export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded =
|
|
|
238
247
|
${timedOut ? html`<button type="button" class="btn" onClick=${read}>${hj("retry")}</button>` : null}
|
|
239
248
|
</div>` : null}
|
|
240
249
|
${(pending || unmatched) && !inlineWait ? html`<div role="status" class="company-local-wait">
|
|
241
|
-
<p class="note">${
|
|
250
|
+
<p class="note">${timedOut ? jw("localExpired") : !pending && (view === undefined || error) ? jw("checking") : pending ? confirmPlace("join", pendingView(shellState, pending.id)) : jw("pending")}</p>
|
|
242
251
|
<p class="note">${jw("pendingNext")}</p>
|
|
243
252
|
<div class="field-row"><button type="button" class="btn btn-sm btn-primary" onClick=${reviewConfirmation}>${jw("reviewConfirmation")}</button>
|
|
244
253
|
${timedOut ? html`<button type="button" class="btn btn-sm" onClick=${read}>${hj("retry")}</button>` : null}
|
|
@@ -247,23 +256,25 @@ export function CompanyJoinSettings({ onSaved, memberEnabled = false, embedded =
|
|
|
247
256
|
</div>` : null}
|
|
248
257
|
${canStart ? html`<form class="form hub-join-one" onSubmit=${start}>
|
|
249
258
|
<label class="field" for="hubCompanyAddress"><span>${j1("input")}</span><input id="hubCompanyAddress" type="text" value=${form.address} placeholder=${j1("placeholder")} autocomplete="off" spellcheck=${false} autocapitalize="off"
|
|
250
|
-
aria-describedby="hubCompanyLine" aria-invalid=${problem ? "true" : undefined} onInput=${e => setForm(f => ({ ...f, address: e.target.value }))}
|
|
259
|
+
aria-describedby="hubCompanyLine" aria-invalid=${problem ? "true" : undefined} onInput=${e => setForm(f => ({ ...f, address: e.target.value }))}
|
|
260
|
+
onPaste=${e => { const n = fromHandoffText(e.clipboardData?.getData("text")); if (n) { e.preventDefault(); setForm(f => ({ ...f, address: n })); } }} onBlur=${() => runProbe()} /></label>
|
|
251
261
|
<p class="note hub-join-line" id="hubCompanyLine" role=${problem ? "alert" : "status"}>${problem ? problem
|
|
252
262
|
: kind.kind === "pairing" ? j1("otherPairing")
|
|
253
263
|
: probing ? j1("probing")
|
|
254
|
-
: probe?.ok && probe.address === kind.address ? html`${j1("found", probe.hubName || host, fleetLabel)} ${!renaming ? html`<button type="button" class="btn btn-ghost btn-sm hub-join-rename" onClick=${() => setRenaming(true)}>${j1("rename")}</button>` : null}`
|
|
255
|
-
: !form.address.trim() ?
|
|
264
|
+
: probe?.ok && probe.address === kind.address ? html`${j1("found", probe.hubName || host, fleetLabel)}${kind.code ? ` ${jc("included")}` : ""} ${!renaming ? html`<button type="button" class="btn btn-ghost btn-sm hub-join-rename" onClick=${() => setRenaming(true)}>${j1("rename")}</button>` : null}`
|
|
265
|
+
: !form.address.trim() ? jc("hint") : null}</p>
|
|
256
266
|
${renaming ? html`<label class="field" for="hubCompanyFleetName"><span>${j1("label")}</span><input id="hubCompanyFleetName" value=${form.label} maxlength="120" placeholder=${probe?.suggestedLabel || hj("defaultFleet")} onInput=${e => setForm(f => ({ ...f, label: e.target.value }))} /></label>` : null}
|
|
257
267
|
<div class="field-row"><button class="btn btn-primary" type="submit" disabled=${busy || !ready}>${j1("go")}</button></div>
|
|
258
268
|
${identityChanged || probe?.identity === "changed" && probe.address === kind.address ? html`<p class="note">${hj("repairLead")}</p><button class="btn btn-sm" type="button" disabled=${busy || kind.kind !== "address"} onClick=${repair}>${hj("repair")}</button>` : null}
|
|
259
269
|
</form>` : null}
|
|
260
|
-
${view && !retired && (!waiting || view.handoffId === waiting) ? html`<div role="status"><strong>${hj(view.state === "saved" ? view.link === "online" ? "saved" : "joining" : view.state === "awaiting-sign-in" ? "awaiting" : view.state === "cancelled" ? "cancelled" : view.state === "held" || view.state === "ended" ? "held" : "joining")}</strong>
|
|
270
|
+
${view && !retired && (!waiting || view.handoffId === waiting || blocking) ? html`<div role="status" class=${view.foreign ? "hub-join-foreign" : undefined}><strong>${hj(view.state === "saved" ? view.link === "online" ? "saved" : "joining" : view.state === "awaiting-sign-in" ? "awaiting" : view.state === "cancelled" ? "cancelled" : view.state === "held" || view.state === "ended" ? "held" : "joining")}</strong>
|
|
261
271
|
${view.state === "awaiting-sign-in" ? html`<p class="note hub-join-opened">${j1("opened", probe?.ok && probe.hubName || (() => { try { return new URL(view.hubOrigin).host; } catch { return view.hubOrigin || ""; } })())}${Number.isFinite(view.expiresAt) ? html` <span class="hub-join-left">${j1("left", leftOf(view.expiresAt, now))}</span>` : null}</p>` : null}
|
|
262
272
|
${view.state === "awaiting-sign-in" && waitingMessage(view.waiting) ? html`<p class="note" role="alert">${waitingMessage(view.waiting)}</p>` : null}
|
|
263
|
-
${view.state === "saved" ? html`<p class="note">${hj(view.link === "online" ? "fleetDone" : "offline")}</p>` : view.reason && view.reason !== "cancelled" ? html`<p class="note">${reasonMessage(view) || joinError(view.reason)}</p>` : null}
|
|
273
|
+
${view.state === "saved" ? html`<p class="note">${hj(view.link === "online" ? "fleetDone" : "offline")}</p>` : view.reason && view.reason !== "cancelled" ? html`<p class="note">${view.reason === "code-denied" ? jc("codeDenied") : reasonMessage(view) || joinError(view.reason)}</p>` : null}
|
|
274
|
+
${view.foreign ? html`<p class="note">${jc(view.state === "held" ? "foreignHeld" : "foreignBusy", Number.isFinite(view.expiresAt) ? leftOf(view.expiresAt, now) : "")}</p>` : null}
|
|
264
275
|
${view.issued && view.state !== "saved" ? html`<p class="note">${hj("issued")}</p>` : null}
|
|
265
|
-
<div class="field-row">${view.state === "awaiting-sign-in" ? html`<a class="btn btn-sm" href=${root + "/bridge?operationId=" + encodeURIComponent(view.operationId)} target="_blank" rel="noopener">${j1("reopen")}</a>` : null}${view.state === "held" && !["authority", "expired"].includes(view.reason) ? html`<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => action("resume")}>${hj("resume")}</button>` : null}
|
|
266
|
-
${!["saved", "cancelled", "ended"].includes(view.state) ? html`<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => action("cancel")}>${view.state === "awaiting-sign-in" ? j1("cancel") : hj("stop")}</button>` : null}
|
|
276
|
+
<div class="field-row">${view.state === "awaiting-sign-in" && !view.foreign ? html`<a class="btn btn-sm" href=${root + "/bridge?operationId=" + encodeURIComponent(view.operationId)} target="_blank" rel="noopener">${j1("reopen")}</a>` : null}${view.state === "held" && !["authority", "expired", "denied", "code-denied"].includes(view.reason) ? html`<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => action("resume")}>${hj("resume")}</button>` : null}
|
|
277
|
+
${!["saved", "cancelled", "ended"].includes(view.state) && (!view.foreign || view.state === "held") ? html`<button type="button" class="btn btn-sm" disabled=${busy} onClick=${() => action("cancel")}>${view.state === "awaiting-sign-in" ? j1("cancel") : hj("stop")}</button>` : null}
|
|
267
278
|
${view.hubOrigin ? html`<a class="btn btn-sm" href=${view.hubOrigin + "/ui/hub"} target="_blank" rel="noopener noreferrer">${hj("inspect")}</a>` : null}</div>
|
|
268
279
|
</div>` : null}
|
|
269
280
|
</${Frame}>`;
|
|
@@ -8,27 +8,29 @@ import { j1 } from "./hub-join-one-strings.js";
|
|
|
8
8
|
import { joinError, joinResponseCode } from "./hub-company-join-strings.js";
|
|
9
9
|
register("hubConnection", {
|
|
10
10
|
en: {
|
|
11
|
+
rights: "Whether you can share agents or chat depends on what your Hub administrator allows; the Hub's home page shows yours.",
|
|
11
12
|
title: "Hub connection", unconnected: "Not connected", connected: "Connected", paused: "Paused", connecting: "Connecting…", attention: "Connection needs attention",
|
|
12
13
|
hub: "Hub", fleet: "Fleet", thisFleet: "This Fleet", open: "Open Hub", pause: "Pause connection", resume: "Resume connection",
|
|
13
|
-
connectedHint: "This Fleet can use the Hub.
|
|
14
|
+
connectedHint: "This Fleet can use the Hub. Connecting does not share any Agent: each one appears on the Hub only after you share it.",
|
|
14
15
|
pausedHint: "New Hub work and answer delivery are stopped. The saved connection and existing conversations are kept.",
|
|
15
16
|
connectingHint: "The connection is saved. Waiting for the Hub link before reporting Connected.",
|
|
16
17
|
advanced: "Connect with a pairing code (Advanced)", manualHint: "Use this for a Hub with a pairing code. The main sign-in flow enables membership when it succeeds.",
|
|
17
18
|
enabled: "Allow this Fleet to use a Hub", pair: "Connect with pairing code", settings: "Connection settings", disconnect: "Revoke connection",
|
|
18
19
|
pausedSettings: "Resume the connection to use its existing connection settings or revoke it.",
|
|
19
|
-
pending: "Waiting for
|
|
20
|
+
pending: "Waiting for your confirmation…", review: "Go to the confirm card", retry: "Check again",
|
|
20
21
|
failed: "The connection settings could not be verified. Check again before making another change.", unavailable: "Connection settings could not be read. Check again.",
|
|
21
22
|
},
|
|
22
23
|
"zh-TW": {
|
|
24
|
+
rights: "連接後能不能分享 Agent、和 Agent 對話,由 Hub 管理員設定;Hub 首頁會顯示你目前的權限。",
|
|
23
25
|
title: "Hub 連接", unconnected: "尚未連接", connected: "已連接", paused: "已暫停", connecting: "正在連接…", attention: "連接需要處理",
|
|
24
26
|
hub: "Hub", fleet: "Fleet", thisFleet: "這個 Fleet", open: "開啟 Hub", pause: "暫停連接", resume: "恢復連接",
|
|
25
|
-
connectedHint: "這個 Fleet 已可使用 Hub
|
|
27
|
+
connectedHint: "這個 Fleet 已可使用 Hub。連接不會自動分享 Agent:每個 Agent 都要你自己分享才會出現在 Hub。",
|
|
26
28
|
pausedHint: "已停止新的 Hub 工作與回答傳送;連接資料和既有對話仍保留。",
|
|
27
|
-
connectingHint: "
|
|
29
|
+
connectingHint: "連接資料已儲存,正在等待與 Hub 的網路連線;尚未顯示為已連接。",
|
|
28
30
|
advanced: "使用配對碼連接(進階)", manualHint: "供使用配對碼的 Hub 使用。上方登入流程成功後會自動啟用成員功能。",
|
|
29
31
|
enabled: "允許這個 Fleet 使用 Hub", pair: "以配對碼連接", settings: "連接設定", disconnect: "撤銷連接",
|
|
30
32
|
pausedSettings: "恢復連接後,可使用既有連接設定或撤銷連接。",
|
|
31
|
-
pending: "
|
|
33
|
+
pending: "等待你的確認…", review: "前往確認卡", retry: "再次檢查",
|
|
32
34
|
failed: "無法確認連接設定。請再次檢查,再嘗試其他變更。", unavailable: "無法讀取連接設定,請再次檢查。",
|
|
33
35
|
},
|
|
34
36
|
});
|
|
@@ -154,6 +156,7 @@ export function HubConnectionSettings({ onMode } = {}) {
|
|
|
154
156
|
${!view && !error ? html`<${Skeleton} variant="form" lines=${4} />` : null}
|
|
155
157
|
${cardError ? html`<p class="note" role="alert">${cardError}</p>` : null}${cardNotice ? html`<p class="note" role="status">${cardNotice}</p>` : null}
|
|
156
158
|
${paired ? html`<div class="grid2 hub-connection-summary"><div class="field"><span>${hc("hub")}</span><strong>${hubName}</strong></div><div class="field"><span>${hc("fleet")}</span><strong>${display?.label || hc("thisFleet")}</strong></div></div>${owner}
|
|
159
|
+
<p class="note hub-rights-line">${hc("rights")}</p>
|
|
157
160
|
<p class="note">${hc(paused ? "pausedHint" : online ? "connectedHint" : "connectingHint")}</p>
|
|
158
161
|
<div class="field-row">${!paused && safeOrigin(p) ? html`<a class="btn btn-primary" href=${safeOrigin(p)} target="_blank" rel="noopener noreferrer">${hc("open")}</a>` : null}
|
|
159
162
|
<button type="button" class=${`btn ${paused ? "btn-primary" : "btn-ghost"}`} disabled=${busy || !!error} onClick=${() => change(paused)}>${hc(paused ? "resume" : "pause")}</button>${removeLink}</div>${removeAsk}
|
|
@@ -7,7 +7,7 @@ import { api, confirmedWrite } from "./settings-confirm.js";
|
|
|
7
7
|
register("hubMembership", {
|
|
8
8
|
en: {
|
|
9
9
|
title: "Hub membership", enabled: "Allow this fleet to connect to a Hub",
|
|
10
|
-
hint: "Off by default. Enabling does not
|
|
10
|
+
hint: "Off by default. Enabling does not connect a Hub or share an agent; choose those separately below.",
|
|
11
11
|
off: "Turning this off stops new Hub work and answer disclosure. Existing agent conversations remain.",
|
|
12
12
|
loading: "Reading membership settings…", pending: "Waiting for owner confirmation…",
|
|
13
13
|
failed: "The membership change could not be verified. Check again before trying another change.",
|
|
@@ -15,8 +15,8 @@ register("hubMembership", {
|
|
|
15
15
|
retry: "Check again",
|
|
16
16
|
},
|
|
17
17
|
"zh-TW": {
|
|
18
|
-
title: "Hub 成員功能", enabled: "允許這個 Fleet
|
|
19
|
-
hint: "
|
|
18
|
+
title: "Hub 成員功能", enabled: "允許這個 Fleet 連接 Hub",
|
|
19
|
+
hint: "預設關閉。啟用不會自動連接 Hub 或分享 Agent;請在下方另外選擇。",
|
|
20
20
|
off: "關閉後會停止新的 Hub 工作與回答傳送,既有 Agent 對話會保留。",
|
|
21
21
|
loading: "正在讀取成員設定…", pending: "等待擁有者確認…",
|
|
22
22
|
failed: "無法確認成員設定是否已變更。請再次檢查,再嘗試其他變更。",
|
|
@@ -12,7 +12,7 @@ register("settingsHubSection", {
|
|
|
12
12
|
},
|
|
13
13
|
"zh-TW": {
|
|
14
14
|
publicLink: "Hub 設定只在這個 Fleet 自己的儀表板上提供,公開連結上沒有。",
|
|
15
|
-
relatedTitle: "Hub", relatedHint: "將這個 Fleet
|
|
15
|
+
relatedTitle: "Hub", relatedHint: "將這個 Fleet 連接到團隊 Hub,並選擇要分享的 Agent。",
|
|
16
16
|
groupsTitle: "群組權限", groupsHint: "讓指定目錄群組的成員與 Agent 對話、分享 Agent 或連接自己的 Fleet。在 Hub 上以管理員身分登入後設定。",
|
|
17
17
|
groupsOpen: "在 Hub 上開啟", experimental: "實驗性", setupLink: "設定 Hub",
|
|
18
18
|
},
|
|
@@ -3,7 +3,7 @@ import { register, t } from "/assets/app-i18n.js";
|
|
|
3
3
|
register("hubSetup", {
|
|
4
4
|
en: {
|
|
5
5
|
provided: "Provided (not shown)", title: "Set up a Hub", hint: "Run a team Hub on this computer. Your directory checks sign-ins; the administrator you choose claims administration when they first sign in.",
|
|
6
|
-
start: "Set up on this computer", local: "
|
|
6
|
+
start: "Set up on this computer", local: "To set up a Hub, go to the computer running AgEnD, run agend web in a terminal there, and set it up on the page it opens.",
|
|
7
7
|
unsupported: "This page and server don't support the same setup flow. Reload to continue.",
|
|
8
8
|
initialized: "A Hub is already set up. Reload Settings to see its controls.", incomplete: "An earlier setup did not finish. Keep its existing files and finish it with the CLI fallback before starting another setup.",
|
|
9
9
|
hub: "Hub and addresses", directory: "Directory connection", administrator: "Administrator and retention", review: "Review and create",
|
|
@@ -29,16 +29,16 @@ register("hubSetup", {
|
|
|
29
29
|
invalid: "Check the addresses, ports and required fields. Use LDAPS for the directory and valid PEM certificates.",
|
|
30
30
|
directoryError: "The directory connection or administrator could not be verified. Check the service account, CA and sign-in name, then try again.",
|
|
31
31
|
network: "A listener address is unavailable or a port is in use. Choose addresses on this computer and free, distinct ports.", trust: "Check and confirm every CA fingerprint before continuing.",
|
|
32
|
-
expired: "This review expired. Go back and test again.", stale: "Settings changed during setup. Reload and start again.", denied: "
|
|
32
|
+
expired: "This review expired. Go back and test again.", stale: "Settings changed during setup. Reload and start again.", denied: "Only this computer's own sign-in can set up a Hub. On the computer running AgEnD, run agend web in a terminal and set it up on the page it opens.",
|
|
33
33
|
busy: "Another setup check is still running. Wait a moment and try again.", unavailable: "Setup could not finish. Check Settings before trying again.",
|
|
34
34
|
uncertain: "The result could not be confirmed. Reload Settings to check whether the Hub was created before trying again.", caInvalid: "Use one to four PEM CA certificates, with no other text.",
|
|
35
35
|
},
|
|
36
36
|
"zh-TW": {
|
|
37
37
|
provided: "已提供(不顯示)", title: "設定 Hub", hint: "在這台電腦執行團隊 Hub。目錄會驗證登入;你指定的管理員第一次登入時,才會取得管理權限。",
|
|
38
|
-
start: "在這台電腦設定", local: "
|
|
38
|
+
start: "在這台電腦設定", local: "要設定 Hub,請到執行 AgEnD 的那台電腦,在終端機執行 agend web,再用它開啟的頁面設定。",
|
|
39
39
|
unsupported: "這個網頁和伺服器的設定流程版本不同。請重新整理後繼續。",
|
|
40
40
|
initialized: "Hub 已設定。請重新整理設定頁以查看控制項。", incomplete: "先前的設定尚未完成。請保留現有檔案,用 CLI 備援流程完成後,再開始新的設定。",
|
|
41
|
-
hub: "Hub
|
|
41
|
+
hub: "Hub 與成員傳輸位址", directory: "目錄連線", administrator: "管理員與保留天數", review: "檢查並建立",
|
|
42
42
|
name: "Hub 名稱(選填)", nameHint: "留白時只顯示 AgEnD Hub。",
|
|
43
43
|
webOrigin: "Hub 瀏覽器位址", memberOrigin: "成員傳輸位址", addressHint: "請輸入使用者或 Fleet 連得到的 HTTPS 位址,包含連接埠。",
|
|
44
44
|
webHost: "瀏覽器介面位址", webPort: "瀏覽器連接埠", memberHost: "成員介面位址", memberPort: "成員連接埠",
|
|
@@ -51,7 +51,7 @@ register("hubSetup", {
|
|
|
51
51
|
baseDn: "人員搜尋範圍(DN)", bindDn: "服務帳號(繫結 DN)", bindPassword: "服務密碼(只寫入)", secretHint: "只用來查詢目錄。密碼與私鑰不會回傳,也不會存入瀏覽器儲存空間。",
|
|
52
52
|
ca: "目錄 CA", system: "使用電腦已信任的 CA", paste: "貼上 CA 憑證", fetch: "從目錄取得", caPem: "CA 憑證(PEM)",
|
|
53
53
|
inspect: "檢查伺服器憑證", inspectHint: "檢查不會傳送帳號或密碼。取得 CA 前,請先和目錄管理員核對指紋。",
|
|
54
|
-
leaf: "伺服器憑證 SHA-256", fetchConfirm: "指紋相符,取得 CA", stop: "停止:指紋不符", caConfirm: "我已和目錄管理員核對這些 CA 指紋。", caHint: "
|
|
54
|
+
leaf: "伺服器憑證 SHA-256", fetchConfirm: "指紋相符,取得 CA", stop: "停止:指紋不符", caConfirm: "我已和目錄管理員核對這些 CA 指紋。", caHint: "這些是 CA 憑證的指紋。伺服器會再次驗證 CA 憑證後才使用帳密。",
|
|
55
55
|
advanced: "進階目錄選項", loginAttribute: "登入屬性(選填)", userFilter: "使用者篩選條件(選填)", timeoutMs: "目錄逾時(毫秒)",
|
|
56
56
|
administratorLogin: "第一位管理員的目錄登入名稱", adminHint: "我們會查詢目前不可變的目錄身分,這裡不需要個人密碼。設定完成後,請由本人登入 Hub。",
|
|
57
57
|
contentDays: "對話內容保留天數", eventDays: "稽核事件保留天數", next: "繼續", back: "返回", cancel: "取消設定", test: "測試連線並檢查", testing: "正在檢查目錄與監聽位址…",
|
|
@@ -61,7 +61,7 @@ register("hubSetup", {
|
|
|
61
61
|
invalid: "請檢查位址、連接埠與必填欄位。目錄必須使用 LDAPS,憑證必須是有效的 PEM。",
|
|
62
62
|
directoryError: "無法驗證目錄連線或管理員。請檢查服務帳號、CA 與登入名稱後再試。",
|
|
63
63
|
network: "監聽位址無法使用,或連接埠已被占用。請使用這台電腦上的位址及可用、不同的連接埠。", trust: "請核對並確認每一張 CA 憑證的指紋後繼續。",
|
|
64
|
-
expired: "這次檢查已到期。請返回並重新測試。", stale: "設定過程中其他設定已變更。請重新整理後再開始。", denied: "
|
|
64
|
+
expired: "這次檢查已到期。請返回並重新測試。", stale: "設定過程中其他設定已變更。請重新整理後再開始。", denied: "只有這台電腦自己的登入能設定 Hub。請到執行 AgEnD 的那台電腦,在終端機執行 agend web,再用它開啟的頁面設定。",
|
|
65
65
|
busy: "另一項設定檢查仍在執行。請稍候再試。", unavailable: "設定未能完成。再次嘗試前,請先檢查設定頁。",
|
|
66
66
|
uncertain: "無法確認結果。請先重新整理設定頁,確認 Hub 是否已建立,再嘗試一次。", caInvalid: "請使用一到四張 PEM CA 憑證,不要包含其他文字。",
|
|
67
67
|
},
|