Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Owner-only pages: no reusable secret in any address bar
milind-soni8128be149dd4
diff --git a/server/pages/owner-links.test.ts b/server/pages/owner-links.test.tsindex 0bdcb03f03..e724f1ef96 100644--- a/server/pages/owner-links.test.ts+++ b/server/pages/owner-links.test.ts@@ -4,22 +4,27 @@ import { tmpdir } from "node:os";import { join } from "node:path";import { afterEach, beforeEach, describe, expect, it } from "vitest";import { PublishedPageFiles } from "./owner-files.ts";-import { createOwnerPageLinks } from "./owner-links.ts";+import { createOwnerPageLinks, OWNER_PAGE_COOKIE } from "./owner-links.ts";const PAGE = "abcdefghijklmnopqrstuvwxyz";+const STABLE = `/api/published-pages/${PAGE}/`;let dir: string;let files: PublishedPageFiles;beforeEach(() => {dir = mkdtempSync(join(tmpdir(), "omb-owner-links-"));files = new PublishedPageFiles(join(dir, "owner-pages"));- files.save(PAGE, [{ path: "index.html", data: Buffer.from("<!doctype html><h1>Traffic</h1>") }, { path: "data.csv", data: Buffer.from("a,1") }]);+ files.save(PAGE, [+ { path: "index.html", data: Buffer.from("<!doctype html><h1>Traffic</h1><a href=\"more/notes.html\">notes</a>") },+ { path: "data.csv", data: Buffer.from("a,1") },+ { path: "more/notes.html", data: Buffer.from("<p>notes</p>") },+ ]);});afterEach(() => rmSync(dir, { recursive: true, force: true }));-function request(headers: Record<string, string> = {}): IncomingMessage {- // SAFETY: the route reads only headers.- return { headers } as unknown as IncomingMessage;+function request(url = "/", headers: Record<string, string> = {}): IncomingMessage {+ // SAFETY: the routes read only the URL and headers.+ return { url, headers } as unknown as IncomingMessage;}function response() {@@ -31,58 +36,140 @@ function response() {return { res, sent };}-const linksFor = (options: { ownerPage?: boolean; now?: () => number } = {}) =>- createOwnerPageLinks({ files, ownerPage: () => options.ownerPage ?? true, ...(options.now ? { now: options.now } : {}) });+const OWNER = { key: "session:s1", allowed: () => true };+const linksFor = (options: { ownerPage?: () => boolean; now?: () => number } = {}) =>+ createOwnerPageLinks({ files, ownerPage: options.ownerPage ?? (() => true), pageOrigin: () => "https://cloud.example.test",+ ...(options.now ? { now: options.now } : {}) });++/** The stable link answered for a signed-in owner, as the route does after the sign-in gate. */+function page(links: ReturnType<typeof linksFor>, target = STABLE, viewer = OWNER, method = "GET") {+ const out = response();+ const url = new URL(target, "https://cloud.example.test");+ const rest = url.pathname.slice(`/api/published-pages/${PAGE}`.length);+ links.servePage(request(target, { host: "cloud.example.test", "x-forwarded-proto": "https" }), out.res, method, PAGE, rest === "" ? undefined : rest, url.search, viewer);+ return out.sent;+}++/** A request ahead of the sign-in gate: true when the links answered it. */+function early(links: ReturnType<typeof linksFor>, target: string, headers: Record<string, string> = {}, method = "GET") {+ const out = response();+ const handled = links.serve(request(target, headers), out.res, new URL(target, "http://x").pathname, method);+ return { handled, ...out.sent };+}++const baseOf = (html: unknown) => /<base href="([^"]+)">/.exec(String(html))?.[1];++describe("an owner-only page's stable link", () => {+ it("serves the page itself at its link, sandboxed and uncached, with its relative URLs on a token folder no address bar shows", () => {+ const sent = page(linksFor());+ expect(sent).toMatchObject({ status: 200, headers: { "content-type": "text/html; charset=utf-8", "cache-control": "private, no-store",+ "x-content-type-options": "nosniff", "referrer-policy": "no-referrer" } });+ expect(sent.headers).not.toHaveProperty("access-control-allow-origin");+ expect(String(sent.headers!["content-security-policy"])).toContain("sandbox allow-scripts");+ expect(String(sent.headers!["content-security-policy"])).toContain("https://cloud.example.test");+ expect(baseOf(sent.body)).toMatch(/^\/api\/owner-page-files\/[A-Za-z0-9_-]{43}\/$/);+ expect(String(sent.body)).toContain("<h1>Traffic</h1>");+ expect(String(sent.body)).not.toContain("<!doctype html><h1>");+ expect(baseOf(page(linksFor(), `${STABLE}more/notes.html`).body)).toMatch(/\/more\/$/);+ });++ it("moves a link without its trailing slash to the folder its files are relative to, keeping the query string", () => {+ expect(page(linksFor(), `/api/published-pages/${PAGE}?period=2026-11`)).toMatchObject({ status: 308,+ headers: { location: `${STABLE}?period=2026-11` } });+ });++ it("refuses a path a page cannot hold, and a missing file", () => {+ expect(page(linksFor(), `${STABLE}..%2Fsecret.txt`)).toMatchObject({ status: 400 });+ expect(page(linksFor(), `${STABLE}missing.css`)).toMatchObject({ status: 404 });+ });+});describe("an owner-only page's token folder", () => {- it("serves its index and files with a sandboxed policy and no cache, to GET and HEAD", () => {- const links = linksFor(), folder = links.folder(PAGE, { key: "session:s1", allowed: () => true });- const index = response();- expect(links.serve(request({ host: "cloud.example.test", "x-forwarded-proto": "https" }), index.res, folder, "GET")).toBe(true);- expect(index.sent).toMatchObject({ status: 200, headers: { "content-type": "text/html; charset=utf-8", "cache-control": "private, no-store",- "x-content-type-options": "nosniff", "referrer-policy": "no-referrer", "access-control-allow-origin": "*" } });- expect(String(index.sent.headers!["content-security-policy"])).toContain("sandbox allow-scripts");- expect(String(index.sent.headers!["content-security-policy"])).toContain("https://cloud.example.test");- expect(String(index.sent.body)).toBe("<!doctype html><h1>Traffic</h1>");- const csv = response();- links.serve(request(), csv.res, `${folder}data.csv`, "HEAD");- expect(csv.sent).toMatchObject({ status: 200, headers: { "content-type": "text/csv; charset=utf-8" } });- expect(csv.sent.body).toBeUndefined();+ it("serves the page's files to its own sandbox only: the null origin may read them, no other origin is named", () => {+ const links = linksFor(), folder = baseOf(page(links).body)!;+ const sandbox = early(links, `${folder}data.csv`, { origin: "null", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors" });+ expect(sandbox).toMatchObject({ handled: true, status: 200, headers: { "content-type": "text/csv; charset=utf-8", "access-control-allow-origin": "null", vary: "origin" } });+ expect(String(sandbox.body)).toBe("a,1");+ const site = early(links, `${folder}data.csv`, { origin: "https://evil.example" });+ expect(site.headers).not.toHaveProperty("access-control-allow-origin");+ expect(Object.values(site.headers!)).not.toContain("*");+ });++ it("sends a token URL opened as a page back to the stable link, so the token never stays in an address bar", () => {+ const links = linksFor(), folder = baseOf(page(links).body)!;+ expect(early(links, `${folder}more/notes.html?x=1`, { "sec-fetch-mode": "navigate", "sec-fetch-dest": "document" }))+ .toMatchObject({ handled: true, status: 303, headers: { location: `${STABLE}more/notes.html?x=1` } });});it("refuses a token whose page is gone, whose viewer may no longer see it, or that was never minted", () => {- let allowed = true, pageExists = true;- const links = createOwnerPageLinks({ files, ownerPage: () => pageExists });- const folder = links.folder(PAGE, { key: "session:s1", allowed: () => allowed });+ let allowed = true, owner = true;+ const links = linksFor({ ownerPage: () => owner });+ const folder = baseOf(page(links, STABLE, { key: "session:s1", allowed: () => allowed }).body)!;allowed = false;- const refused = response();- links.serve(request(), refused.res, folder, "GET");- expect(refused.sent).toMatchObject({ status: 404 });+ expect(early(links, `${folder}data.csv`)).toMatchObject({ status: 404 });allowed = true;- const unknown = response();- links.serve(request(), unknown.res, "/api/owner-page-files/not-a-token/index.html", "GET");- expect(unknown.sent).toMatchObject({ status: 404 });- pageExists = false;- const gone = response();- links.serve(request(), gone.res, folder, "GET");- expect(gone.sent).toMatchObject({ status: 404 });- pageExists = true;- const traversal = response();- links.serve(request(), traversal.res, `${folder}../secret.txt`, "GET");- expect(traversal.sent).toMatchObject({ status: 400 });+ expect(early(links, "/api/owner-page-files/not-a-token/index.html")).toMatchObject({ status: 404 });+ owner = false;+ expect(early(links, `${folder}data.csv`)).toMatchObject({ status: 404 });+ owner = true;+ expect(early(links, `${folder}..%2Fsecret.txt`)).toMatchObject({ status: 400 });});- it("gives one viewer the same folder while it is in use, another viewer its own, and forgets both after a day unused", () => {+ it("gives one viewer the same folder while it is in use, another its own, and forgets them after a day unused", () => {let now = 1_000;const links = linksFor({ now: () => now });- const viewer = { key: "session:s1", allowed: () => true };- const first = links.folder(PAGE, viewer);- expect(links.folder(PAGE, viewer)).toBe(first);- const other = links.folder(PAGE, { key: "session:s2", allowed: () => true });- expect(other).not.toBe(first);+ const first = baseOf(page(links).body);+ expect(baseOf(page(links).body)).toBe(first);+ expect(baseOf(page(links, STABLE, { key: "session:s2", allowed: () => true }).body)).not.toBe(first);now += 24 * 60 * 60_000 + 1;- const answer = response();- links.serve(request(), answer.res, first, "GET");- expect(answer.sent).toEqual({ status: 404, headers: expect.any(Object), body: "Not found." });+ expect(early(links, `${first}data.csv`)).toMatchObject({ status: 404, body: "Not found." });+ });+});++describe("opening an owner-only page in a browser that is not signed in", () => {+ const codeOf = (url: string) => new URL(url).searchParams.get("code")!;++ it("spends a one-time code for a page cookie, and moves the browser to the link without the code", () => {+ const links = linksFor();+ const url = links.openUrl(PAGE, OWNER);+ expect(url).toMatch(new RegExp(`^https://cloud\\.example\\.test${STABLE}\\?code=[A-Za-z0-9_-]{43}$`));+ const spent = early(links, `${STABLE}?code=${codeOf(url)}&period=2026-11`, { host: "cloud.example.test", "x-forwarded-proto": "https" });+ expect(spent).toMatchObject({ handled: true, status: 303, headers: { location: `${STABLE}?period=2026-11` } });+ const cookie = String(spent.headers!["set-cookie"]);+ expect(cookie).toMatch(new RegExp(`^${OWNER_PAGE_COOKIE}=[A-Za-z0-9_-]{43}; Path=${STABLE}; HttpOnly; SameSite=Lax; Max-Age=86400; Secure$`));+ const again = early(links, `${STABLE}?code=${codeOf(url)}`);+ expect(again).toMatchObject({ handled: true, status: 404 });++ const held = cookie.split(";")[0]!;+ const opened = early(links, STABLE, { cookie: `other=1; ${held}`, host: "cloud.example.test" });+ expect(opened).toMatchObject({ handled: true, status: 200 });+ expect(baseOf(opened.body)).toMatch(/^\/api\/owner-page-files\//);+ });++ it("leaves the gate to answer a browser with no code and no cookie, or a cookie for nothing", () => {+ const links = linksFor();+ expect(early(links, STABLE).handled).toBe(false);+ expect(early(links, STABLE, { cookie: `${OWNER_PAGE_COOKIE}=${"a".repeat(43)}` }).handled).toBe(false);+ });++ it("expires an unspent code after two minutes, and a cookie when the session that asked for it ends", () => {+ let now = 1_000, live = true;+ const links = linksFor({ now: () => now });+ const stale = links.openUrl(PAGE, OWNER);+ now += 2 * 60_000 + 1;+ expect(early(links, `${STABLE}?code=${codeOf(stale)}`)).toMatchObject({ handled: true, status: 404 });+ const fresh = links.openUrl(PAGE, { key: "session:s1", allowed: () => live });+ const cookie = String(early(links, `${STABLE}?code=${codeOf(fresh)}`).headers!["set-cookie"]).split(";")[0]!;+ expect(early(links, STABLE, { cookie }).handled).toBe(true);+ live = false;+ expect(early(links, STABLE, { cookie }).handled).toBe(false);+ });++ it("stops answering a cookie once the page is no longer owner-only", () => {+ let owner = true;+ const links = linksFor({ ownerPage: () => owner });+ const cookie = String(early(links, `${STABLE}?code=${codeOf(links.openUrl(PAGE, OWNER))}`).headers!["set-cookie"]).split(";")[0]!;+ owner = false;+ expect(early(links, STABLE, { cookie }).handled).toBe(false);});});diff --git a/server/pages/owner-links.ts b/server/pages/owner-links.tsindex 84e4a366aa..b52a5f8dc3 100644--- a/server/pages/owner-links.ts+++ b/server/pages/owner-links.ts@@ -1,10 +1,18 @@-// The URL an owner-only page loads from inside its sandboxed frame. Its sandbox gives the page an opaque origin, which-// sends no session cookie with the page's own files, so the open page's files carry a token instead: minted only for an-// owner who opened the page's stable link, for that page and that viewer, and dropped after a day unused. A token is-// therefore a bearer for one page; the stable link itself never carries one.+// How an owner-only page opens. No reusable secret ever sits in an address bar:+// - The page's address is its stable link, /api/published-pages/<id>/. It answers only the owner: a request the sign-in+// gate vouches for (an admin session, or this computer's own app), or a browser holding the page's own cookie.+// - That cookie comes from a one-time code. The owner's app asks for one (POST .../open) and opens the stable link with+// `?code=` in a browser; the code is spent on first use, two minutes at most, and the answer moves the browser to the+// link without it. The cookie is HttpOnly, scoped to that page's path, and answers only while the page is still+// owner-only and the session that asked for it is still signed in.+// - The page runs in an opaque-origin sandbox, which sends no cookie with its own files, so its relative URLs resolve to+// a token folder (/api/owner-page-files/<token>/) through a <base> written ahead of the page. That token lives only in+// the page's markup: opening a token URL as a page moves the browser back to the stable link, and the files answer+// cross-origin reads only to the sandbox's own (null) origin.import { randomBytes } from "node:crypto";import type { IncomingMessage, ServerResponse } from "node:http";import { extname } from "node:path";+import { stripDocumentPreamble } from "../../shared/app-frame/document.ts";import { BOT_HTML_CSP } from "../../shared/app-frame/csp.ts";import { PAGE_FILE_TYPES } from "../../shared/published-page.ts";import { pageFilePath } from "../page-files.ts";@@ -12,9 +20,14 @@ import { requestOrigin } from "../request-auth.ts";import type { PublishedPageFiles } from "./owner-files.ts";export const OWNER_PAGE_FILES_PREFIX = "/api/owner-page-files/";+export const OWNER_PAGE_PREFIX = "/api/published-pages/";+export const OWNER_PAGE_COOKIE = "omb_owner_page";+const OWNER_PAGE_PATH = /^\/api\/published-pages\/([a-z0-9]{20,63})(\/.*)?$/;const TOKEN = /^[A-Za-z0-9_-]{43}$/;const DAY_MS = 24 * 60 * 60_000;+const CODE_MS = 2 * 60_000;const MAX_TOKENS = 2_000;+const MAX_CODES = 200;/** An owner-only page opened directly: its own files load, inline code runs, and it stays in an opaque origin, so it can* reach neither the app's cookies nor its API. */@@ -25,84 +38,192 @@ export function ownerPageCsp(origin: string): string {}).join("; ").concat("; sandbox allow-scripts allow-forms allow-modals allow-downloads allow-top-navigation-by-user-activation");}-/** Who a token was minted for: `key` names them, and `allowed()` is asked again on every file. */+/** Who a page was opened for: `key` names them, and `allowed()` is asked again on every request. */export interface OwnerPageViewer {key: string;allowed(): boolean;}+type Grant = { pageId: string; viewer: string; allowed: () => boolean; used: number };++function cookieValue(req: IncomingMessage, name: string): string | undefined {+ const header = req.headers.cookie;+ if (!header) return undefined;+ for (const part of header.split(";")) {+ const at = part.indexOf("=");+ if (at > 0 && part.slice(0, at).trim() === name) return part.slice(at + 1).trim();+ }+ return undefined;+}++const escapeAttribute = (value: string) => value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");+export function createOwnerPageLinks(deps: {files: Pick<PublishedPageFiles, "read">;/** True while the page is still an owner-only page this server keeps. */ownerPage(pageId: string): boolean;+ /** The address this server answers at, for the link an open code is sent with; a path alone when null. */+ pageOrigin?(): string | null;now?(): number;}) {const now = deps.now ?? Date.now;- const tokens = new Map<string, { pageId: string; viewer: string; allowed?: () => boolean; used: number }>();+ /** Token folders the page's files load from, and the page cookies; both keyed by a random 32-byte token. */+ const folders = new Map<string, Grant>(), cookies = new Map<string, Grant>(), codes = new Map<string, Grant>();const byViewer = new Map<string, string>();const keyOf = (pageId: string, viewer: string) => `${pageId}\n${viewer}`;- const forget = (token: string) => {- const known = tokens.get(token);- tokens.delete(token);- if (known) byViewer.delete(keyOf(known.pageId, known.viewer));+ const token = () => randomBytes(32).toString("base64url");+ const live = (grant: Grant | undefined, pageId: string | undefined, ttl: number): grant is Grant =>+ Boolean(grant) && grant!.pageId === (pageId ?? grant!.pageId) && now() - grant!.used <= ttl && grant!.allowed() && deps.ownerPage(grant!.pageId);+ const sweep = (map: Map<string, Grant>, ttl: number, max: number) => {+ const at = now();+ for (const [key, grant] of map) if (at - grant.used > ttl) {+ map.delete(key);+ if (map === folders) byViewer.delete(keyOf(grant.pageId, grant.viewer));+ }+ while (map.size >= max) {+ const oldest = map.keys().next().value!;+ const grant = map.get(oldest)!;+ map.delete(oldest);+ if (map === folders) byViewer.delete(keyOf(grant.pageId, grant.viewer));+ }};- const answer = (res: ServerResponse, status: number, text: string) => {- res.writeHead(status, { "content-type": "text/plain; charset=utf-8", "cache-control": "private, no-store", "x-content-type-options": "nosniff" });+ const answer = (res: ServerResponse, status: number, text: string, headers: Record<string, string> = {}) => {+ res.writeHead(status, { "content-type": "text/plain; charset=utf-8", "cache-control": "private, no-store", "x-content-type-options": "nosniff", ...headers });res.end(text);};+ const redirect = (res: ServerResponse, status: number, location: string, headers: Record<string, string> = {}) => {+ res.writeHead(status, { location, "cache-control": "private, no-store", "referrer-policy": "no-referrer", ...headers });+ res.end();+ };++ /** The token folder this viewer's copy of the page loads its files from; the same token while it is in use. */+ function folder(pageId: string, viewer: OwnerPageViewer): string {+ const existing = byViewer.get(keyOf(pageId, viewer.key));+ const known = existing ? folders.get(existing) : undefined;+ if (existing && known) {+ known.used = now();+ known.allowed = viewer.allowed;+ return `${OWNER_PAGE_FILES_PREFIX}${existing}/`;+ }+ sweep(folders, DAY_MS, MAX_TOKENS);+ const minted = token();+ folders.set(minted, { pageId, viewer: viewer.key, allowed: viewer.allowed, used: now() });+ byViewer.set(keyOf(pageId, viewer.key), minted);+ return `${OWNER_PAGE_FILES_PREFIX}${minted}/`;+ }++ /** One file of the page at its stable link. An HTML file's relative URLs resolve to the viewer's token folder. */+ function servePage(req: IncomingMessage, res: ServerResponse, method: string, pageId: string, rest: string | undefined, search: string, viewer: OwnerPageViewer): void {+ const base = `${OWNER_PAGE_PREFIX}${pageId}`;+ if (rest === undefined) return redirect(res, 308, `${base}/${search}`);+ const raw = rest.slice(1);+ const file = pageFilePath(raw === "" || raw.endsWith("/") ? `${raw}index.html` : raw);+ if (file === null) return answer(res, 400, "Not a file of this page.");+ const body = deps.files.read(pageId, file);+ if (!body) return answer(res, 404, "Not found.");+ const extension = extname(file).slice(1).toLowerCase();+ const headers = {+ "content-security-policy": ownerPageCsp(requestOrigin(req) ?? "http://127.0.0.1"),+ "x-content-type-options": "nosniff",+ "referrer-policy": "no-referrer",+ "cache-control": "private, no-store",+ };+ let sent = body;+ if (extension === "html" || extension === "htm") {+ const dir = file.includes("/") ? `${file.slice(0, file.lastIndexOf("/")).split("/").map(encodeURIComponent).join("/")}/` : "";+ sent = Buffer.from(`<!DOCTYPE html><base href="${escapeAttribute(`${folder(pageId, viewer)}${dir}`)}">${stripDocumentPreamble(body.toString("utf8"))}`);+ }+ res.writeHead(200, { ...headers, "content-type": PAGE_FILE_TYPES[extension] ?? "application/octet-stream", "content-length": String(sent.byteLength) });+ res.end(method === "HEAD" ? undefined : sent);+ }return {- /** The folder URL this viewer's copy of the page loads from; the same token while it is in use. */- folder(pageId: string, viewer: OwnerPageViewer): string {- const at = now();- for (const [token, known] of tokens) if (at - known.used > DAY_MS) forget(token);- const existing = byViewer.get(keyOf(pageId, viewer.key));- if (existing) {- tokens.set(existing, { pageId, viewer: viewer.key, allowed: viewer.allowed, used: at });- return `${OWNER_PAGE_FILES_PREFIX}${existing}/`;- }- while (tokens.size >= MAX_TOKENS) forget(tokens.keys().next().value!);- const token = randomBytes(32).toString("base64url");- tokens.set(token, { pageId, viewer: viewer.key, allowed: viewer.allowed, used: at });- byViewer.set(keyOf(pageId, viewer.key), token);- return `${OWNER_PAGE_FILES_PREFIX}${token}/`;+ folder,+ servePage,++ /** A one-time code that opens the page in a browser: spent on first use, and good for two minutes. */+ openUrl(pageId: string, viewer: OwnerPageViewer): string {+ sweep(codes, CODE_MS, MAX_CODES);+ const code = token();+ codes.set(code, { pageId, viewer: viewer.key, allowed: viewer.allowed, used: now() });+ return `${(deps.pageOrigin?.() ?? "").replace(/\/+$/, "")}${OWNER_PAGE_PREFIX}${pageId}/?code=${code}`;},- /** True when the request was this route's. */+ /** Ahead of the sign-in gate: the token folders, a code being spent, and the stable link for a browser holding the+ * page's cookie. False leaves the request to the gate and the route (a signed-in owner). */serve(req: IncomingMessage, res: ServerResponse, path: string, method: string): boolean {- if (!path.startsWith(OWNER_PAGE_FILES_PREFIX)) return false;- const rest = path.slice(OWNER_PAGE_FILES_PREFIX.length), slash = rest.indexOf("/");- const token = slash === -1 ? rest : rest.slice(0, slash);- if (method !== "GET" && method !== "HEAD") {- answer(res, 405, "Read only.");- return true;- }- const target = TOKEN.test(token) ? tokens.get(token) : undefined;- if (!target || now() - target.used > DAY_MS || slash === -1 || (target.allowed && !target.allowed()) || !deps.ownerPage(target.pageId)) {- answer(res, 404, "Not found.");- return true;- }- target.used = now();- const file = pageFilePath(rest.slice(slash + 1));- if (file === null) {- answer(res, 400, "Not a file of this page.");+ const search = (() => { const at = req.url?.indexOf("?") ?? -1; return at >= 0 ? req.url!.slice(at) : ""; })();+ if (path.startsWith(OWNER_PAGE_FILES_PREFIX)) {+ const rest = path.slice(OWNER_PAGE_FILES_PREFIX.length), slash = rest.indexOf("/");+ const key = slash === -1 ? rest : rest.slice(0, slash);+ if (method !== "GET" && method !== "HEAD") {+ answer(res, 405, "Read only.");+ return true;+ }+ const grant = TOKEN.test(key) ? folders.get(key) : undefined;+ if (!live(grant, undefined, DAY_MS) || slash === -1) {+ answer(res, 404, "Not found.");+ return true;+ }+ // Opened as a page (a link the page followed, or a pasted URL): back to the stable link, which asks who it is.+ if (req.headers["sec-fetch-mode"] === "navigate" && req.headers["sec-fetch-dest"] === "document") {+ redirect(res, 303, `${OWNER_PAGE_PREFIX}${grant.pageId}/${rest.slice(slash + 1)}${search}`);+ return true;+ }+ grant.used = now();+ const file = pageFilePath(rest.slice(slash + 1));+ if (file === null) {+ answer(res, 400, "Not a file of this page.");+ return true;+ }+ const body = deps.files.read(grant.pageId, file);+ if (!body) {+ answer(res, 404, "Not found.");+ return true;+ }+ // Only the page's own sandbox (an opaque, "null" origin) may read a file across origins, never any site.+ const sandboxed = req.headers.origin === "null";+ res.writeHead(200, {+ "content-type": PAGE_FILE_TYPES[extname(file).slice(1).toLowerCase()] ?? "application/octet-stream",+ "content-length": String(body.byteLength),+ "content-security-policy": ownerPageCsp(requestOrigin(req) ?? "http://127.0.0.1"),+ "x-content-type-options": "nosniff",+ "referrer-policy": "no-referrer",+ "cache-control": "private, no-store",+ vary: "origin",+ ...(sandboxed ? { "access-control-allow-origin": "null" } : {}),+ });+ res.end(method === "HEAD" ? undefined : body);return true;}- const body = deps.files.read(target.pageId, file);- if (!body) {- answer(res, 404, "Not found.");+ const page = OWNER_PAGE_PATH.exec(path);+ if (!page || (method !== "GET" && method !== "HEAD") || !deps.ownerPage(page[1]!)) return false;+ const pageId = page[1]!;+ const params = new URLSearchParams(search);+ const code = params.get("code");+ if (code !== null) {+ const grant = codes.get(code);+ codes.delete(code);+ if (!live(grant, pageId, CODE_MS)) {+ answer(res, 404, "This link has expired. Open the page again from the app.");+ return true;+ }+ sweep(cookies, DAY_MS, MAX_TOKENS);+ const cookie = token();+ cookies.set(cookie, { ...grant, used: now() });+ params.delete("code");+ const rest = params.toString();+ const secure = requestOrigin(req)?.startsWith("https://") === true;+ redirect(res, 303, `${OWNER_PAGE_PREFIX}${pageId}${page[2] ?? "/"}${rest ? `?${rest}` : ""}`, {+ "set-cookie": [`${OWNER_PAGE_COOKIE}=${cookie}`, `Path=${OWNER_PAGE_PREFIX}${pageId}/`, "HttpOnly", "SameSite=Lax", `Max-Age=${DAY_MS / 1000}`, ...(secure ? ["Secure"] : [])].join("; "),+ });return true;}- res.writeHead(200, {- "content-type": PAGE_FILE_TYPES[extname(file).slice(1).toLowerCase()] ?? "application/octet-stream",- "content-length": String(body.byteLength),- "content-security-policy": ownerPageCsp(requestOrigin(req) ?? "http://127.0.0.1"),- "x-content-type-options": "nosniff",- "referrer-policy": "no-referrer",- "cache-control": "private, no-store",- "access-control-allow-origin": "*",- });- res.end(method === "HEAD" ? undefined : body);+ const held = cookieValue(req, OWNER_PAGE_COOKIE);+ const grant = held && TOKEN.test(held) ? cookies.get(held) : undefined;+ if (!live(grant, pageId, DAY_MS)) return false;+ grant.used = now();+ servePage(req, res, method, pageId, page[2], search, { key: `cookie:${held}`, allowed: () => live(cookies.get(held!), pageId, DAY_MS) });return true;},};diff --git a/server/pages/service.ts b/server/pages/service.tsindex 2daf7cbec6..0f9b5df415 100644--- a/server/pages/service.ts+++ b/server/pages/service.ts@@ -38,7 +38,7 @@ export function createPublishedPages(options: {}) {const store = new PagesStore(options.dataDir);const files = new PublishedPageFiles(join(options.dataDir, "owner-pages"));- const links = createOwnerPageLinks({ files, ownerPage: (pageId) => store.get(pageId)?.visibility === "owner" });+ const links = createOwnerPageLinks({ files, ownerPage: (pageId) => store.get(pageId)?.visibility === "owner", ...(options.pageOrigin ? { pageOrigin: options.pageOrigin } : {}) });const client = createPagesClient({ access: () => pagesAccess(options.cloudHome), notOffered: () => pagesNotOffered(options.cloudHome),selfHosted: options.selfHosted === true,...(options.fetch ? { fetch: options.fetch } : {}) });@@ -66,7 +66,7 @@ export function createPublishedPages(options: {return {store, files, publisher, internal: createPagesInternalRoutes(publisher),routes: createPublishedPageRoutes(publisher, appPages, {- folder: links.folder, ownerOnly: (pageId) => store.get(pageId)?.visibility === "owner", ...(options.sessionLive ? { sessionLive: options.sessionLive } : {}) }),+ servePage: links.servePage, openUrl: links.openUrl, ownerOnly: (pageId) => store.get(pageId)?.visibility === "owner", ...(options.sessionLive ? { sessionLive: options.sessionLive } : {}) }),serveFile: (req: IncomingMessage, res: ServerResponse, path: string, method: string) => links.serve(req, res, path, method),receive: applyIncludedPagesMessage,/** publish_page's card as the page itself, inline; null when it can't be shown so (the caller posts the link). */diff --git a/server/published-pages.e2e.test.ts b/server/published-pages.e2e.test.tsindex 6b0a0881d3..0e57990872 100644--- a/server/published-pages.e2e.test.ts+++ b/server/published-pages.e2e.test.ts@@ -115,7 +115,7 @@ it("publishes a bot's page to a link shown inline, keeps the link and the card o.toEqual([["app", "[App] Bake sale\nBake sale, Saturday", "unpublished"]]);}, 120_000);-it("keeps an owner-only page on this server, opens its stable link through a token folder, and never asks the Worker", async () => {+it("keeps an owner-only page on this server, serves its stable link to the owner alone, opens it elsewhere only through a one-time code, and never asks the Worker", async () => {const cli = (...args: string[]) => runControlOmb(args, { env: { OPENMAUSBOT_URL: fixture.info.url } }) as Promise<any>;const api = async (path: string, init: RequestInit = {}) => (await fetch(`${fixture.info.url}${path}`, { ...init, headers: { "content-type": "application/json" } })).json() as Promise<any>;const bot = (await cli("new-bot", "--name", "Private publisher")).bot;@@ -137,20 +137,35 @@ it("keeps an owner-only page on this server, opens its stable link through a tokconst link = new URL(card.url);expect(link.pathname).toMatch(new RegExp(`^/api/published-pages/${card.pageId}/$`));- // The owner's own request is moved to the token folder; the token alone opens the page and its files.- const redirect = await fetch(`${fixture.info.url}${link.pathname}`, { redirect: "manual" });- expect(redirect.status).toBe(303);- const folder = redirect.headers.get("location")!;- expect(folder).toMatch(/^\/api\/owner-page-files\/[A-Za-z0-9_-]{43}\/$/);- const opened = await realFetch(new URL(folder, fixture.info.url));+ // The owner's own request gets the page at its link; its files load from a token folder named only in its markup.+ const opened = await fetch(`${fixture.info.url}${link.pathname}`, { redirect: "manual" });expect(opened.status).toBe(200);- expect(await opened.text()).toContain("<h1>Traffic</h1>");- const csv = await realFetch(new URL(`${folder}data.csv`, fixture.info.url));+ expect(opened.headers.get("access-control-allow-origin")).toBeNull();+ const html = await opened.text();+ expect(html).toContain("<h1>Traffic</h1>");+ const folder = /<base href="([^"]+)">/.exec(html)![1]!;+ expect(folder).toMatch(/^\/api\/owner-page-files\/[A-Za-z0-9_-]{43}\/$/);+ const csv = await realFetch(new URL(`${folder}data.csv`, fixture.info.url), { headers: { origin: "null" } });expect(csv.status).toBe(200);+ expect(csv.headers.get("access-control-allow-origin")).toBe("null");expect(await csv.text()).toBe("day,hits\nmon,3\n");+ // A browser that is not signed in opens it through a one-time code, spent for a cookie scoped to the page.+ const { url: once } = await api(`/api/published-pages/${card.pageId}/open`, { method: "POST", body: "{}" });+ const spent = await realFetch(new URL(once), { redirect: "manual" });+ expect(spent.status).toBe(303);+ expect(spent.headers.get("location")).toBe(link.pathname);+ const cookie = spent.headers.get("set-cookie")!.split(";")[0]!;+ expect((await realFetch(new URL(once), { redirect: "manual" })).status).toBe(404);+ const browser = await realFetch(new URL(link.pathname, fixture.info.url), { headers: { cookie, "sec-fetch-site": "none", "sec-fetch-dest": "document", "sec-fetch-mode": "navigate" } });+ expect(browser.status).toBe(200);+ expect(await browser.text()).toContain("<h1>Traffic</h1>");+ const stranger = await realFetch(new URL(link.pathname, fixture.info.url), { headers: { "sec-fetch-site": "none", "sec-fetch-dest": "document", "sec-fetch-mode": "navigate" } });+ expect(stranger.status).not.toBe(200);+expect(await api(`/api/published-pages/${card.pageId}/unpublish`, { method: "POST", body: "{}" })).toMatchObject({ ok: true, card: { state: "unpublished", visibility: "owner" } });- expect((await realFetch(new URL(folder, fixture.info.url))).status).toBe(404);+ expect((await realFetch(new URL(`${folder}data.csv`, fixture.info.url))).status).toBe(404);+ expect((await realFetch(new URL(link.pathname, fixture.info.url), { headers: { cookie } })).status).not.toBe(200);}, 120_000);it.each([false, true])("keeps an Unpublish card when Stop aborts an upload whose Worker committed: %s", async (committed) => {diff --git a/server/routes/published-pages.test.ts b/server/routes/published-pages.test.tsindex 7ddc074968..736e609837 100644--- a/server/routes/published-pages.test.ts+++ b/server/routes/published-pages.test.ts@@ -99,43 +99,52 @@ describe("an owner-only page's stable link", () => {const OWNER = { kind: "session", scopes: ["admin", "client"], via: "bearer", session: { id: "s1" } } as unknown as RequestAuth;const MEMBER = { kind: "session", scopes: ["client"], via: "bearer", session: { id: "s2" } } as unknown as RequestAuth;- function ownerPage(only = true, sessionLive?: (id: string) => boolean): OwnerPages {- return { ownerOnly: () => only, sessionLive, folder: (pageId, viewer) => `/api/owner-page-files/${pageId}-${viewer.key}/` };+ function ownerPage(only = true, sessionLive?: (id: string) => boolean) {+ const served: unknown[][] = [];+ const pages: OwnerPages & { served: unknown[][] } = { served, ownerOnly: () => only, sessionLive,+ servePage: (_req, _res, method, pageId, rest, search, viewer) => { served.push([method, pageId, rest, search, viewer.key, viewer.allowed()]); },+ openUrl: (pageId, viewer) => `https://cloud.example.test/api/published-pages/${pageId}/?code=for-${viewer.key}` };+ return pages;}function serve(ownerPages: OwnerPages | undefined, target = `/api/published-pages/${PAGE}/`, method = "GET", auth: RequestAuth = OWNER) {- const sent: { status?: number; body?: any; headers?: Record<string, string>; written?: unknown; out?: typeof PASS | void } = {};- const res = {- headersSent: false, writableEnded: false,- writeHead: (status: number, headers: Record<string, string>) => { sent.status = status; sent.headers = headers; },- end: (body?: unknown) => { sent.written = body; },- };+ const sent: { status?: number; body?: any; out?: typeof PASS | void } = {};const url = new URL(target, "https://cloud.example.test");- return createPublishedPageRoutes(fakePublisher(), undefined, ownerPages)({ req: {} as never, res: res as never,+ return createPublishedPageRoutes(fakePublisher(), undefined, ownerPages)({ req: {} as never, res: {} as never,url, path: url.pathname, method, auth,json: ((_res: unknown, status: number, body: unknown) => { sent.status = status; sent.body = body; }) as never,readBody: async () => ({}) } as RouteContext).then((out) => Object.assign(sent, { out }));}- it("moves the owner to the token folder the page loads from, at any file of it, keeping the query string", async () => {- expect(await serve(ownerPage())).toMatchObject({ status: 303, headers: { location: `/api/owner-page-files/${PAGE}-session:s1/`,- "cache-control": "private, no-store" } });- expect(await serve(ownerPage(), `/api/published-pages/${PAGE}/data.csv`, "HEAD", HOME)).toMatchObject({ status: 303,- headers: { location: `/api/owner-page-files/${PAGE}-loopback/data.csv` } });- expect(await serve(ownerPage(), `/api/published-pages/${PAGE}/data.csv?period=2026-11`, "GET", HOME)).toMatchObject({ status: 303,- headers: { location: `/api/owner-page-files/${PAGE}-loopback/data.csv?period=2026-11` } });+ it("serves the owner any file of the page at its link, keeping the query string, never through a redirect", async () => {+ const pages = ownerPage();+ await serve(pages);+ await serve(pages, `/api/published-pages/${PAGE}/data.csv?period=2026-11`, "HEAD", HOME);+ await serve(pages, `/api/published-pages/${PAGE}`);+ expect(pages.served).toEqual([+ ["GET", PAGE, "/", "", "session:s1", true],+ ["HEAD", PAGE, "/data.csv", "?period=2026-11", "loopback", true],+ ["GET", PAGE, undefined, "", "session:s1", true],+ ]);+ });++ it("ties what it serves to the session that asked, so a signed-out session's copy stops", async () => {+ const pages = ownerPage(true, () => false);+ await serve(pages);+ expect(pages.served[0]?.[5]).toBe(false);+ });++ it("gives the owner a one-time link to open the page in a browser, and nobody else", async () => {+ expect(await serve(ownerPage(), `/api/published-pages/${PAGE}/open`, "POST")).toMatchObject({ status: 200,+ body: { url: `https://cloud.example.test/api/published-pages/${PAGE}/?code=for-session:s1` } });+ expect(await serve(ownerPage(), `/api/published-pages/${PAGE}/open`, "POST", MEMBER)).toMatchObject({ status: 404 });});it("refuses a viewer who is not the owner, and any page that is not owner-only", async () => {expect(await serve(ownerPage(), undefined, "GET", MEMBER)).toMatchObject({ status: 404, body: { error: "Not found." } });expect(await serve(ownerPage(), undefined, "GET", { kind: "loopback", scopes: ["client"], trust: "service" })).toMatchObject({ status: 404 });expect((await serve(ownerPage(false))).out).toBe(PASS);+ expect((await serve(ownerPage(false), `/api/published-pages/${PAGE}/open`, "POST")).out).toBe(PASS);expect((await serve(undefined)).out).toBe(PASS);});-- it("moves a page opened without its trailing slash to the folder its files are relative to, keeping the query string", async () => {- expect(await serve(ownerPage(), `/api/published-pages/${PAGE}`)).toMatchObject({ status: 308, headers: { location: `/api/published-pages/${PAGE}/` } });- expect(await serve(ownerPage(), `/api/published-pages/${PAGE}?period=2026-11`)).toMatchObject({ status: 308,- headers: { location: `/api/published-pages/${PAGE}/?period=2026-11` } });- });});diff --git a/server/routes/published-pages.ts b/server/routes/published-pages.tsindex 26f8d78350..b98e52c0a0 100644--- a/server/routes/published-pages.ts+++ b/server/routes/published-pages.ts@@ -3,7 +3,7 @@//// The internal handler runs inside index.ts's /api/internal/ block, after the capability bearer is checked: the bot and// its conversation come from the capability, never the body, and only the bot's own folders are read.-import type { ServerResponse } from "node:http";+import type { IncomingMessage, ServerResponse } from "node:http";import { z } from "zod";import type { PublishedPageCard } from "../../shared/published-page.ts";import type { PublishablePage } from "../chat-apps.ts";@@ -90,18 +90,20 @@ export interface AppPages {export const appPageSource = (threadId: string, messageId: string) => `app:${threadId}/${messageId}`;export interface OwnerPages {- /** The token folder the page loads from for this viewer (pages/owner-links.ts). */- folder(pageId: string, viewer: OwnerPageViewer): string;+ /** Answers one file of the page at its stable link for this viewer (pages/owner-links.ts). */+ servePage(req: IncomingMessage, res: ServerResponse, method: string, pageId: string, rest: string | undefined, search: string, viewer: OwnerPageViewer): void;+ /** The stable link with a one-time code that opens it once in a browser (pages/owner-links.ts). */+ openUrl(pageId: string, viewer: OwnerPageViewer): string;/** True for a page this server keeps for the owner alone (`owner-pages.json`); never for a public page. */ownerOnly(pageId: string): boolean;/** True while the session that opened the page is still signed in; absent trusts the token's own lifetime. */sessionLive?(sessionId: string): boolean;}-/** GET /api/published-pages/<pageId>/: an owner-only page's stable link, which moves a viewer the owner's own sign-in- * vouches for to the token folder the sandboxed page loads from. Anonymous requests never reach it: the sign-in gate- * answers first. POST /api/published-pages/<pageId>/unpublish: the card's Unpublish. POST .../messages/<id>/app/publish: a- * page card's Share. All admin-scope routes, so only the owner's own app. */+/** GET /api/published-pages/<pageId>/: an owner-only page's stable link, for a viewer the owner's own sign-in vouches for+ * (a browser holding the page's cookie is answered ahead of the gate). POST /api/published-pages/<pageId>/open: a one-time+ * link that opens it in a browser. POST /api/published-pages/<pageId>/unpublish: the card's Unpublish. POST+ * .../messages/<id>/app/publish: a page card's Share. All admin-scope routes, so only the owner's own app. */export function createPublishedPageRoutes(publisher: PagePublisher, apps?: AppPages, ownerPages?: OwnerPages): RouteHandler {return async ({ req, res, url, path, method, auth, json, readBody }) => {const match = UNPUBLISH_ROUTE.exec(path);@@ -109,27 +111,20 @@ export function createPublishedPageRoutes(publisher: PagePublisher, apps?: AppPaconst outcome = await publisher.unpublish({ pageId: match[1] });return void json(res, outcome.status, outcome.status === 200 ? { ok: true, card: outcome.card } : { error: outcome.text });}- if ((method === "GET" || method === "HEAD") && ownerPages) {- const page = OWNER_PAGE_ROUTE.exec(path);- if (page && ownerPages.ownerOnly(page[1]!)) {- // Security: a member, a guest and a service-trust bot shell read this as a page that does not exist.- if (!ownerOrAdmin(auth)) return void json(res, 404, { error: "Not found." });- if (page[2] === undefined) {- res.writeHead(308, { location: `${path}/${url.search}`, "cache-control": "private, no-store" });- res.end();- return;- }- // Its sandbox sends no cookie with the page's own files, so it loads from a token folder minted for this viewer.- const viewer: OwnerPageViewer = { key: auth.kind === "session" ? `session:${auth.session.id}` : auth.kind,- allowed: () => auth.kind !== "session" || (ownerPages.sessionLive?.(auth.session.id) ?? true) };- res.writeHead(303, { location: `${ownerPages.folder(page[1]!, viewer)}${page[2].slice(1)}${url.search}`, "cache-control": "private, no-store" });- res.end();- return;- }+ const page = ownerPages ? OWNER_PAGE_ROUTE.exec(path) : null;+ const open = page && method === "POST" && page[2] === "/open";+ if (ownerPages && page && (open || method === "GET" || method === "HEAD") && ownerPages.ownerOnly(page[1]!)) {+ // Security: a member, a guest and a service-trust bot shell read this as a page that does not exist.+ if (!ownerOrAdmin(auth)) return void json(res, 404, { error: "Not found." });+ // A grant lasts only while the session that asked for it is signed in; this computer's own app has none to end.+ const viewer: OwnerPageViewer = { key: auth.kind === "session" ? `session:${auth.session.id}` : auth.kind,+ allowed: () => auth.kind !== "session" || (ownerPages.sessionLive?.(auth.session.id) ?? true) };+ if (open) return void json(res, 200, { url: ownerPages.openUrl(page[1]!, viewer) });+ return ownerPages.servePage(req, res, method, page[1]!, page[2], url.search, viewer);}- const page = apps ? APP_PUBLISH_ROUTE.exec(path) : null;- if (!apps || !page || method !== "POST") return PASS;- const [, threadId, messageId] = page as unknown as [string, string, string];+ const appPage = apps ? APP_PUBLISH_ROUTE.exec(path) : null;+ if (!apps || !appPage || method !== "POST") return PASS;+ const [, threadId, messageId] = appPage as unknown as [string, string, string];const bot = apps.botOf(threadId);if (!bot) return void json(res, 404, userError("serverError.page.roomOrClosed"));const body = appPublishBody.safeParse(await readBody(req, 4_096) ?? {});diff --git a/src/components/PublishedPageCard.tsx b/src/components/PublishedPageCard.tsxindex e3349b16f5..8a2e5c4cb0 100644--- a/src/components/PublishedPageCard.tsx+++ b/src/components/PublishedPageCard.tsx@@ -8,6 +8,7 @@ import { usePageOpener } from "@/lib/page-open";import { t } from "@/lib/i18n";import { api, useStore, type Message } from "@/state/store";import { ASK_CHIP, ASK_CHIP_IDLE, ASK_PRIMARY_BUTTON } from "./AskCard";+import { openOwnerPage } from "./app/app-api";const usageLine = (card: Card) => card.usage ? t("chat.page.usage", { pages: card.usage.pages, limit: card.usage.limit }) : null;@@ -37,6 +38,7 @@ export function PublishedPageCard({ message }: { message: Message }) {finally { setBusy(false); }};const usage = usageLine(card), owner = card.visibility === "owner";+ const open = () => (owner && card.pageId ? void openOwnerPage(card.pageId, card.url!) : openPage(card.url!));return (<div data-published-page={card.pageId ?? "limit"} className="w-full max-w-md overflow-hidden rounded-xl border border-hairline/40 bg-panel px-3 py-2.5 text-sm"><div className="flex min-w-0 items-center gap-2">@@ -47,14 +49,14 @@ export function PublishedPageCard({ message }: { message: Message }) {</div>{card.state === "live" && card.url && <>{card.uncertain && <p role="status" className="mt-1 text-[13px] text-ink-secondary">{t("chat.page.uncertain")}</p>}- <a href={card.url} dir="ltr" onClick={(event) => { event.preventDefault(); openPage(card.url!); }}+ <a href={card.url} dir="ltr" onClick={(event) => { event.preventDefault(); open(); }}className="mt-1 block truncate text-[13px] text-accent-text hover:underline">{card.url}</a><div className="mt-2 flex flex-wrap gap-1.5"><button type="button" onClick={copy} className={cn(ASK_CHIP, ASK_CHIP_IDLE)}>{copied === "copied" ? <Check size={14} /> : <Copy size={14} />}{t(copied === "copied" ? "chat.page.copied" : "chat.page.copyLink")}</button>- <button type="button" onClick={() => openPage(card.url!)} className={cn(ASK_CHIP, ASK_CHIP_IDLE)}>+ <button type="button" onClick={open} className={cn(ASK_CHIP, ASK_CHIP_IDLE)}><ArrowUpRight size={14} />{t("chat.page.open")}</button><button type="button" onClick={() => void unpublish()} disabled={busy} className={cn(ASK_CHIP, ASK_CHIP_IDLE)}>diff --git a/src/components/app/PageTools.tsx b/src/components/app/PageTools.tsxindex ff027804bb..8145bbdaa8 100644--- a/src/components/app/PageTools.tsx+++ b/src/components/app/PageTools.tsx@@ -16,7 +16,7 @@ import type { AppDocument, AppPayload } from "../../../shared/app";import { marksMessage, pointMessage, readPointEvent } from "../../../shared/app-frame/point";import type { PublishedPageCard, PublishedPageVisibility } from "../../../shared/published-page";import { canonicalDownloadFilename } from "../AttachmentPreview";-import { appDownloadPath, publishAppPage, unpublishPage } from "./app-api";+import { appDownloadPath, openOwnerPage, publishAppPage, unpublishPage } from "./app-api";import { AppFrame, type AppFrameHandle } from "./AppFrame";import type { AppSelection } from "./app-frame-host";import { ASK_CHIP, ASK_CHIP_IDLE, ASK_CHIP_PICKED, ASK_PRIMARY_BUTTON } from "../AskCard";@@ -87,7 +87,7 @@ export function usePageShare(threadId: string, messageId: string, published: PubsetAgain(false);};const toggleVisibility = () => setVisibility((current) => (current === "owner" ? "public" : "owner"));- return { share, url: live?.url, visibility, again, unpublished: published?.state === "unpublished", run, unpublish, toggleVisibility };+ return { share, url: live?.url, pageId: live?.pageId, visibility, again, unpublished: published?.state === "unpublished", run, unpublish, toggleVisibility };}/** On a phone the OS share sheet (Save to Files, Share); elsewhere a download, which Electron turns into its save dialog. */@@ -264,7 +264,7 @@ export function PageToolbar({ version, point, share, save, ready, fullScreen, roaria-label={t("chat.preview.save")} title={t("chat.preview.save")}>{save.busy ? <Loader2 size={15} className="animate-spin" /> : <Download size={15} />}</button>- <button type="button" className={TOOL} disabled={!share.url} onClick={() => share.url && void openExternalLink(share.url)}+ <button type="button" className={TOOL} disabled={!share.url} onClick={() => share.url && void (owner && share.pageId ? openOwnerPage(share.pageId, share.url) : openExternalLink(share.url))}aria-label={t("chat.preview.openTab")} title={share.url ? t("chat.preview.openTab") : t("chat.preview.openTabNeedsLink")}><ArrowUpRight size={15} /></button>@@ -291,7 +291,7 @@ export function PageNotes({ version, point, share, save, room, className }: Pick<div key="link" data-page-link className="flex min-w-0 flex-wrap items-center gap-2 rounded-2xl bg-inset px-3 py-2 text-[13px]">{owner ? <Lock size={14} className="shrink-0 text-ink-tertiary" aria-hidden="true" /> : <Globe size={14} className="shrink-0 text-ink-tertiary" aria-hidden="true" />}<span className="shrink-0 font-medium text-ink">{share.again ? t("chat.preview.updatedLink") : t(owner ? "chat.page.ownerPublished" : "chat.preview.published")}</span>- <a href={share.url} dir="ltr" onClick={(event) => { event.preventDefault(); void openExternalLink(share.url!); }}+ <a href={share.url} dir="ltr" onClick={(event) => { event.preventDefault(); void (owner && share.pageId ? openOwnerPage(share.pageId, share.url!) : openExternalLink(share.url!)); }}className="min-w-0 flex-1 truncate text-accent-text hover:underline">{share.url}</a><button type="button" onClick={copy} className={cn(ASK_CHIP, ASK_CHIP_IDLE)}>{copied === "copied" ? <Check size={14} /> : <Copy size={14} />}{t(copied === "copied" ? "chat.page.copied" : "chat.page.copyLink")}diff --git a/src/components/app/app-api.ts b/src/components/app/app-api.tsindex f1c33317d0..bca1baabc2 100644--- a/src/components/app/app-api.ts+++ b/src/components/app/app-api.ts@@ -1,3 +1,4 @@+import { openExternalLink } from "@/lib/app-links";import { t } from "@/lib/i18n";import { api, ApiError } from "@/state/store";import type { AppBlockedReason, AppDocument } from "../../../shared/app";@@ -144,3 +145,12 @@ export async function unpublishPage(pageId: string): Promise<boolean> {return false;}}++/** Opens an owner-only page. A browser signed in to this server opens its link as it is; the desktop app's system browser+ * is not signed in, so it gets a one-time link that lets that browser in for this page alone. */+export async function openOwnerPage(pageId: string, url: string): Promise<void> {+ if (!window.ogb?.openExternal) return openExternalLink(url);+ let once = url;+ try { once = (await api<{ url: string }>(`/api/published-pages/${encodeURIComponent(pageId)}/open`, { method: "POST", body: "{}" })).url; } catch { /* the plain link still opens where the owner is signed in */ }+ await openExternalLink(once);+}diff --git a/src/locales/de.json b/src/locales/de.jsonindex 8096d929eb..ca208ebe6a 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -2630,6 +2630,11 @@"chat.page.freeLimit": "Du hast deine {limit} kostenlosen Seiten aufgebraucht. MausBot Cloud gibt dir mehr, und Seiten ohne das Badge.","chat.page.planLimit": "Du hast alle {limit} Seiten deines {plan}-Tarifs genutzt. Nimm eine Seite offline, um Platz zu schaffen.","chat.page.morePages": "Mehr Seiten holen",+ "chat.page.ownerOnly": "Nur du",+ "chat.page.anyoneLink": "Alle mit dem Link",+ "chat.page.ownerPublished": "Für dich veröffentlicht",+ "chat.page.makeOwnerHint": "Nur du kannst sie öffnen",+ "chat.page.makePublicHint": "Alle mit dem Link können sie öffnen","chat.preview.older": "Frühere Version","chat.preview.newer": "Spätere Version","chat.preview.version": "v{n}",@@ -4567,5 +4572,6 @@"githubSignIn.tokenPlaceholder": "github_pat_…","approval.status.teammateSkills": "Team-Skills geändert","approval.applied.skill.teammates": "{name} hat Skills im Team geändert: {title}",- "skills.request.reviewTeammates": "Prüfe jede Änderung, bevor du sie anwendest"+ "skills.request.reviewTeammates": "Prüfe jede Änderung, bevor du sie anwendest",+ "publishedApps.access.owner": "Nur du"}diff --git a/src/locales/es.json b/src/locales/es.jsonindex 9a7287ba41..49d7f0e819 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -5462,6 +5462,11 @@"chat.page.freeLimit": "Ya usaste tus {limit} páginas gratis. MausBot Cloud te da más, y páginas sin la insignia.","chat.page.planLimit": "Ya usaste las {limit} páginas de tu plan {plan}. Deja de publicar una para hacer sitio.","chat.page.morePages": "Conseguir más páginas",+ "chat.page.ownerOnly": "Solo tú",+ "chat.page.anyoneLink": "Cualquiera con el enlace",+ "chat.page.ownerPublished": "Publicada para ti",+ "chat.page.makeOwnerHint": "Solo tú puedes abrirla",+ "chat.page.makePublicHint": "Cualquiera con el enlace puede abrirla","chat.preview.older": "Versión anterior","chat.preview.newer": "Versión posterior","chat.preview.version": "v{n}",@@ -6756,5 +6761,6 @@"server.github.card.description": "Conecta GitHub para que {bot} pueda subir su trabajo a tus repositorios.","server.github.card.connectInApps": "Conecta GitHub desde esta tarjeta en la app de tu ordenador o en Apps.","githubSignIn.title": "Inicio de sesión en GitHub",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "Solo tú"}diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex 5d468a7fca..1ba161b10e 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -2456,6 +2456,11 @@"chat.page.freeLimit": "Vous avez utilisé vos {limit} pages gratuites. MausBot Cloud vous en donne plus, et des pages sans le badge.","chat.page.planLimit": "Vous avez utilisé les {limit} pages de votre forfait {plan}. Retirez une page pour faire de la place.","chat.page.morePages": "Obtenir plus de pages",+ "chat.page.ownerOnly": "Vous seul",+ "chat.page.anyoneLink": "Toute personne disposant du lien",+ "chat.page.ownerPublished": "Publiée pour vous",+ "chat.page.makeOwnerHint": "Vous seul pouvez l’ouvrir",+ "chat.page.makePublicHint": "Toute personne disposant du lien peut l’ouvrir","chat.preview.older": "Version précédente","chat.preview.newer": "Version suivante","chat.preview.version": "v{n}",@@ -4167,5 +4172,6 @@"server.github.card.description": "Connectez GitHub pour que {bot} puisse pousser son travail vers vos dépôts.","server.github.card.connectInApps": "Connectez GitHub depuis cette carte dans l'app de votre ordinateur, ou dans Apps.","githubSignIn.title": "Connexion à GitHub",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "Vous seul"}diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex ea15287a86..713ed69fae 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -2454,6 +2454,11 @@"chat.page.freeLimit": "आपने अपने {limit} मुफ़्त पेज इस्तेमाल कर लिए हैं। MausBot Cloud में और पेज मिलते हैं, और बिना बैज वाले पेज भी।","chat.page.planLimit": "आपने अपने {plan} प्लान के सभी {limit} पेज इस्तेमाल कर लिए हैं। जगह बनाने के लिए कोई पेज हटाएं।","chat.page.morePages": "और पेज पाएं",+ "chat.page.ownerOnly": "केवल आप",+ "chat.page.anyoneLink": "लिंक वाला कोई भी",+ "chat.page.ownerPublished": "आपके लिए प्रकाशित",+ "chat.page.makeOwnerHint": "इसे केवल आप खोल सकते हैं",+ "chat.page.makePublicHint": "लिंक वाला कोई भी इसे खोल सकता है","chat.preview.older": "पिछला वर्शन","chat.preview.newer": "अगला वर्शन","chat.preview.version": "v{n}",@@ -4019,5 +4024,6 @@"server.github.card.description": "GitHub कनेक्ट करें ताकि {bot} अपना काम आपकी रिपॉज़िटरी में पुश कर सके।","server.github.card.connectInApps": "अपने कंप्यूटर के ऐप में इस कार्ड से, या Apps में, GitHub कनेक्ट करें।","githubSignIn.title": "GitHub साइन-इन",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "केवल आप"}diff --git a/src/locales/it.json b/src/locales/it.jsonindex 0d290b0ae9..497b886277 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -7384,6 +7384,7 @@"publishedApps.access.public": "Pubblico","publishedApps.access.netlifyTeam": "Solo il tuo team Netlify","publishedApps.access.link": "Chiunque abbia il link",+ "publishedApps.access.owner": "Solo tu","publishedApps.card.preview": "Anteprima","publishedApps.card.previewOf": "Anteprima di {name}","publishedApps.card.ask": "Chiedi a {bot} di modificarla",@@ -8223,6 +8224,11 @@"chat.page.freeLimit": "Hai usato le tue {limit} pagine gratuite. MausBot Cloud te ne dà altre, e pagine senza il contrassegno.","chat.page.planLimit": "Hai usato tutte le {limit} pagine del piano {plan}. Annulla la pubblicazione di una pagina per fare spazio.","chat.page.morePages": "Ottieni altre pagine",+ "chat.page.ownerOnly": "Solo tu",+ "chat.page.anyoneLink": "Chiunque abbia il link",+ "chat.page.ownerPublished": "Pubblicata per te",+ "chat.page.makeOwnerHint": "Solo tu puoi aprirla",+ "chat.page.makePublicHint": "Chiunque abbia il link può aprirla","chat.preview.older": "Versione precedente","chat.preview.newer": "Versione successiva","chat.preview.version": "V{n}",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex dd20356aa0..cb12049194 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -7009,6 +7009,11 @@"chat.page.freeLimit": "無料の{limit}ページを使い切りました。MausBot Cloudならもっと作れて、バッジも付きません。","chat.page.planLimit": "{plan}プランの{limit}ページをすべて使いました。空きを作るには、どれかのページの公開を停止してください。","chat.page.morePages": "ページを増やす",+ "chat.page.ownerOnly": "自分のみ",+ "chat.page.anyoneLink": "リンクを知っている全員",+ "chat.page.ownerPublished": "あなた専用に公開しました",+ "chat.page.makeOwnerHint": "自分だけが開けます",+ "chat.page.makePublicHint": "リンクを知っている全員が開けます","chat.preview.older": "前のバージョン","chat.preview.newer": "次のバージョン","chat.preview.version": "v{n}",@@ -8291,5 +8296,6 @@"server.github.card.description": "GitHub に接続すると、{bot} が作業をあなたのリポジトリにプッシュできます。","server.github.card.connectInApps": "コンピューターのアプリのこのカード、またはアプリ画面から GitHub に接続してください。","githubSignIn.title": "GitHub サインイン",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "自分のみ"}diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex c644de388e..74b710d7d9 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -6751,6 +6751,11 @@"chat.page.freeLimit": "무료 페이지 {limit}개를 모두 썼어요. MausBot Cloud에서는 더 많은 페이지를, 배지 없이 쓸 수 있어요.","chat.page.planLimit": "{plan} 요금제의 페이지 {limit}개를 모두 썼어요. 자리를 만들려면 페이지 하나의 게시를 취소하세요.","chat.page.morePages": "페이지 더 받기",+ "chat.page.ownerOnly": "나만",+ "chat.page.anyoneLink": "링크가 있는 모든 사용자",+ "chat.page.ownerPublished": "나에게만 게시됨",+ "chat.page.makeOwnerHint": "나만 열 수 있어요",+ "chat.page.makePublicHint": "링크가 있는 누구나 열 수 있어요","chat.preview.older": "이전 버전","chat.preview.newer": "이후 버전","chat.preview.version": "v{n}",@@ -7983,5 +7988,6 @@"server.github.card.description": "GitHub를 연결하면 {bot}이(가) 작업을 내 저장소로 푸시할 수 있습니다.","server.github.card.connectInApps": "컴퓨터의 앱에서 이 카드로, 또는 앱 화면에서 GitHub를 연결하세요.","githubSignIn.title": "GitHub 로그인",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "나만"}diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex ab87218523..c9fffd1e49 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -6191,6 +6191,11 @@"chat.page.freeLimit": "Wykorzystano bezpłatne strony: {limit}. MausBot Cloud oferuje ich więcej oraz strony bez plakietki.","chat.page.planLimit": "Wykorzystano limit stron w planie {plan}: {limit}. Anuluj publikację strony, aby zwolnić miejsce.","chat.page.morePages": "Uzyskaj więcej stron",+ "chat.page.ownerOnly": "Tylko ty",+ "chat.page.anyoneLink": "Każdy, kto ma link",+ "chat.page.ownerPublished": "Opublikowano dla ciebie",+ "chat.page.makeOwnerHint": "Tylko ty możesz ją otworzyć",+ "chat.page.makePublicHint": "Każdy, kto ma link, może ją otworzyć","chat.preview.older": "Wcześniejsza wersja","chat.preview.newer": "Późniejsza wersja","chat.preview.version": "v{n}",@@ -7452,5 +7457,6 @@"server.github.card.description": "Połącz z GitHubem, aby {bot} mógł wysyłać swoją pracę do Twoich repozytoriów.","server.github.card.connectInApps": "Połącz z GitHubem przez tę kartę w aplikacji na komputerze albo w Aplikacjach.","githubSignIn.title": "Logowanie do GitHuba",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "Tylko ty"}diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex 9fecfafd7e..e89c71675f 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -6281,6 +6281,11 @@"chat.page.freeLimit": "Вы использовали свои {limit} бесплатных страниц. MausBot Cloud даёт больше — и страницы без значка.","chat.page.planLimit": "Вы использовали все {limit} страниц на тарифе {plan}. Отмените публикацию одной из страниц, чтобы освободить место.","chat.page.morePages": "Получить больше страниц",+ "chat.page.ownerOnly": "Только вы",+ "chat.page.anyoneLink": "Все, у кого есть ссылка",+ "chat.page.ownerPublished": "Опубликовано для вас",+ "chat.page.makeOwnerHint": "Открыть можете только вы",+ "chat.page.makePublicHint": "Открыть может любой, у кого есть ссылка","chat.preview.older": "Ранняя версия","chat.preview.newer": "Поздняя версия","chat.preview.version": "v{n}",@@ -7506,5 +7511,6 @@"server.github.card.description": "Подключите GitHub, чтобы {bot} мог отправлять работу в ваши репозитории.","server.github.card.connectInApps": "Подключите GitHub через эту карточку в приложении на компьютере или в разделе «Приложения».","githubSignIn.title": "Вход в GitHub",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "Только вы"}diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.jsonindex 3b37d4b585..d68435c58a 100644--- a/src/locales/source-hashes.json+++ b/src/locales/source-hashes.json@@ -4570,7 +4570,13 @@"approval.status.teammateSkills": "b830163e051fe1a5a3e4d90cc7ea09da116ea95efa75360c6cf175e25de95aeb","approval.applied.skill.teammates": "a9f337ca8c48f80ae0f963dd024d2b721c2ee9bfa40667f427a15f2c64d3a913","skills.request.reviewTeammates": "5a034d3c78251df4a06bd944b7ed73f154e6af862400ba2cf3e386555092f62d",- "activity.tool.team.chatFolders": "ded60e33908ec003aa872cce839ed85df0f9c38c3983ace7a55a7f9ac3348520"+ "activity.tool.team.chatFolders": "ded60e33908ec003aa872cce839ed85df0f9c38c3983ace7a55a7f9ac3348520",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"es": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -11330,7 +11336,13 @@"template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c","template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4","notifications.clearAll": "29a390f9237e3c84e5641785eca25199620e53f7b6f4b9d843b23dcb5c12904f",- "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7"+ "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"fr": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",@@ -15501,7 +15513,13 @@"engineSetup.device.interrupted": "da5805469e95823d3a7a5fcac7e3e892cf7e6ae3152fe9b5759d9291e2d81e46","template.download": "d6eafe82359100423c93c5ce53c352c1b51ca1e699215fcec3f5c5dd9bf12d24","template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c",- "template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4"+ "template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"hi": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",@@ -19524,7 +19542,13 @@"engineSetup.device.interrupted": "da5805469e95823d3a7a5fcac7e3e892cf7e6ae3152fe9b5759d9291e2d81e46","template.download": "d6eafe82359100423c93c5ce53c352c1b51ca1e699215fcec3f5c5dd9bf12d24","template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c",- "template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4"+ "template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"ja": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -27819,7 +27843,13 @@"template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c","template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4","notifications.clearAll": "29a390f9237e3c84e5641785eca25199620e53f7b6f4b9d843b23dcb5c12904f",- "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7"+ "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"pt-br": {"voice.gemini.keyPlaceholder": "8c87ba2043a4a89d63c90cae8a6dafd5cbd193652e923b97988e381a74773e10",@@ -40196,7 +40226,13 @@"shortcuts.start-fresh": "19bcf7e74e775b74c257dd8df98d7ed9976ab58d0cf5fcae3bda1821658e2458","activity.tool.team.chatFolders": "ded60e33908ec003aa872cce839ed85df0f9c38c3983ace7a55a7f9ac3348520","serverError.seats.full": "638e90bb33590eb7754e4a04d944473c204e7b0e5da32cfb6ca5943def4b2291",- "settings.browser.proxySavedPlaceholder": "a42b501dbb0473824c0fd9108a5d7b03d8bb5f50094bb7e2df8e210d2273af04"+ "settings.browser.proxySavedPlaceholder": "a42b501dbb0473824c0fd9108a5d7b03d8bb5f50094bb7e2df8e210d2273af04",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"zh": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",@@ -52454,7 +52490,13 @@"skills.request.reviewTeammates": "5a034d3c78251df4a06bd944b7ed73f154e6af862400ba2cf3e386555092f62d","pdf.loadFailed": "eef5c75e51b549988545e553e967b7f02e3c2934c30b7362a809bf4be1e8c17e","pdf.refused": "b0f00fb1eb32e4d292d1d587fccbd01e488e4aabf4b345e27c219a87cdd4f9be",- "activity.tool.team.chatFolders": "ded60e33908ec003aa872cce839ed85df0f9c38c3983ace7a55a7f9ac3348520"+ "activity.tool.team.chatFolders": "ded60e33908ec003aa872cce839ed85df0f9c38c3983ace7a55a7f9ac3348520",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"zh-tw": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -63040,7 +63082,13 @@"approval.applied.skill.teammates": "a9f337ca8c48f80ae0f963dd024d2b721c2ee9bfa40667f427a15f2c64d3a913","skills.request.reviewTeammates": "5a034d3c78251df4a06bd944b7ed73f154e6af862400ba2cf3e386555092f62d","pdf.loadFailed": "eef5c75e51b549988545e553e967b7f02e3c2934c30b7362a809bf4be1e8c17e",- "pdf.refused": "b0f00fb1eb32e4d292d1d587fccbd01e488e4aabf4b345e27c219a87cdd4f9be"+ "pdf.refused": "b0f00fb1eb32e4d292d1d587fccbd01e488e4aabf4b345e27c219a87cdd4f9be",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"uk": {"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",@@ -67480,7 +67528,13 @@"engineSetup.device.interrupted": "da5805469e95823d3a7a5fcac7e3e892cf7e6ae3152fe9b5759d9291e2d81e46","template.download": "d6eafe82359100423c93c5ce53c352c1b51ca1e699215fcec3f5c5dd9bf12d24","template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c",- "template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4"+ "template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"vi": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -73916,7 +73970,13 @@"chat.export.title": "e166050a638bc66455f7246a251eeb2b2d68f1e2f4cd39b2a80bc24c7ed5e985","shortcuts.start-fresh": "19bcf7e74e775b74c257dd8df98d7ed9976ab58d0cf5fcae3bda1821658e2458","notifications.clearAll": "29a390f9237e3c84e5641785eca25199620e53f7b6f4b9d843b23dcb5c12904f",- "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7"+ "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"tr": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -80171,7 +80231,13 @@"template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c","template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4","notifications.clearAll": "29a390f9237e3c84e5641785eca25199620e53f7b6f4b9d843b23dcb5c12904f",- "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7"+ "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"pl": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -87627,7 +87693,13 @@"template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c","template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4","notifications.clearAll": "29a390f9237e3c84e5641785eca25199620e53f7b6f4b9d843b23dcb5c12904f",- "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7"+ "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"ru": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -95137,7 +95209,13 @@"template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c","template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4","notifications.clearAll": "29a390f9237e3c84e5641785eca25199620e53f7b6f4b9d843b23dcb5c12904f",- "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7"+ "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"it": {"whop.description": "1a07cf04ef17029448d3781415cbac16d54e66b821907a40d94e0e6349710e70",@@ -107061,7 +107139,13 @@"skills.request.reviewTeammates": "5a034d3c78251df4a06bd944b7ed73f154e6af862400ba2cf3e386555092f62d","pdf.loadFailed": "eef5c75e51b549988545e553e967b7f02e3c2934c30b7362a809bf4be1e8c17e","pdf.refused": "b0f00fb1eb32e4d292d1d587fccbd01e488e4aabf4b345e27c219a87cdd4f9be",- "activity.tool.team.chatFolders": "ded60e33908ec003aa872cce839ed85df0f9c38c3983ace7a55a7f9ac3348520"+ "activity.tool.team.chatFolders": "ded60e33908ec003aa872cce839ed85df0f9c38c3983ace7a55a7f9ac3348520",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"},"ko": {"connectedWorkspaces.localTitle": "7d6deafeab011d734c3fdd1bfd6f69544fbb746a004019269bdb48544b01164b",@@ -115048,7 +115132,13 @@"template.downloaded": "1f2ca7d9063727ab20c06007004dcd44786ed6889b203ee46efcb96cc378747c","template.publishTitle": "56ea0de7c3d4152a8c309e55cb0d90b41e97b1de3e326d39dfb792f030b141d4","notifications.clearAll": "29a390f9237e3c84e5641785eca25199620e53f7b6f4b9d843b23dcb5c12904f",- "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7"+ "notifications.cleared": "1465a1fea515a237e70954fa3b274d32af2b09194f7ad06ec230bd5f56773ba7",+ "publishedApps.access.owner": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.ownerOnly": "c080649df65782fc6bd7940a523aaea2823a58e19ae6d84cf47939ba306d29e5",+ "chat.page.anyoneLink": "5b7f701785be58f468f02335ce1cf992f11bd06d5be6ca4d926375207e360c82",+ "chat.page.ownerPublished": "e19c4f6b48e09466763fa2cf8531b3d5ac153dddc568366e2abcb56b473cdb09",+ "chat.page.makeOwnerHint": "3fa8258e1455bf1b782a4d5747ff70d9e80e8d431f5c993e52cefa7ed14cb5d9",+ "chat.page.makePublicHint": "c398844aa187a6e9fbfe0c3dfe74abff41cda2310dbd68fc3bb833b4ce98e592"}}}diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex 4f42fdbbab..f95d798103 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -4809,6 +4809,11 @@"chat.page.freeLimit": "{limit} ücretsiz sayfanızı kullandınız. MausBot Cloud size daha fazlasını verir, üstelik rozetsiz sayfalar.","chat.page.planLimit": "{plan} planınızdaki {limit} sayfanın hepsini kullandınız. Yer açmak için bir sayfayı yayından kaldırın.","chat.page.morePages": "Daha fazla sayfa alın",+ "chat.page.ownerOnly": "Yalnızca sen",+ "chat.page.anyoneLink": "Bağlantıya sahip herkes",+ "chat.page.ownerPublished": "Senin için yayımlandı",+ "chat.page.makeOwnerHint": "Yalnızca sen açabilirsin",+ "chat.page.makePublicHint": "Bağlantıya sahip herkes açabilir","chat.preview.older": "Önceki sürüm","chat.preview.newer": "Sonraki sürüm","chat.preview.version": "v{n}",@@ -6251,5 +6256,6 @@"server.github.card.description": "{bot} işini depolarınıza gönderebilsin diye GitHub'ı bağlayın.","server.github.card.connectInApps": "GitHub'ı bilgisayarınızdaki uygulamada bu karttan ya da Uygulamalar'dan bağlayın.","githubSignIn.title": "GitHub oturumu",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "Yalnızca sen"}diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex caa7b7ed7d..9e1f1984c0 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -2920,6 +2920,11 @@"chat.page.freeLimit": "Ви використали свої {limit} безкоштовних сторінок. MausBot Cloud дає більше, і сторінки без значка.","chat.page.planLimit": "Ви використали всі {limit} сторінок плану {plan}. Зніміть одну сторінку з публікації, щоб звільнити місце.","chat.page.morePages": "Отримати більше сторінок",+ "chat.page.ownerOnly": "Лише ви",+ "chat.page.anyoneLink": "Усі, хто має посилання",+ "chat.page.ownerPublished": "Опубліковано для вас",+ "chat.page.makeOwnerHint": "Відкрити можете лише ви",+ "chat.page.makePublicHint": "Відкрити може будь-хто з посиланням","chat.preview.older": "Попередня версія","chat.preview.newer": "Наступна версія","chat.preview.version": "v{n}",@@ -4436,5 +4441,6 @@"server.github.card.description": "Підключіть GitHub, щоб {bot} міг надсилати роботу у ваші репозиторії.","server.github.card.connectInApps": "Підключіть GitHub через цю картку в застосунку на комп'ютері або в розділі «Застосунки».","githubSignIn.title": "Вхід у GitHub",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "Лише ви"}diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 0835b40bca..af82e335df 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -4809,6 +4809,11 @@"chat.page.freeLimit": "Bạn đã dùng hết {limit} trang miễn phí. MausBot Cloud cho bạn thêm trang, và trang không có huy hiệu.","chat.page.planLimit": "Bạn đã dùng hết {limit} trang của gói {plan}. Gỡ một trang xuống để có chỗ.","chat.page.morePages": "Thêm trang",+ "chat.page.ownerOnly": "Chỉ bạn",+ "chat.page.anyoneLink": "Bất kỳ ai có liên kết",+ "chat.page.ownerPublished": "Đã xuất bản cho bạn",+ "chat.page.makeOwnerHint": "Chỉ bạn mở được",+ "chat.page.makePublicHint": "Bất kỳ ai có liên kết đều mở được","chat.preview.older": "Phiên bản trước","chat.preview.newer": "Phiên bản sau","chat.preview.version": "v{n}",@@ -6432,5 +6437,6 @@"server.github.card.connectInApps": "Kết nối GitHub từ thẻ này trong ứng dụng trên máy tính, hoặc trong Ứng dụng.","githubSignIn.title": "Đăng nhập GitHub","githubSignIn.tokenPlaceholder": "github_pat_…",- "shortcuts.start-fresh": "Bắt đầu lại cuộc trò chuyện này (giữ nguyên tin nhắn)"+ "shortcuts.start-fresh": "Bắt đầu lại cuộc trò chuyện này (giữ nguyên tin nhắn)",+ "publishedApps.access.owner": "Chỉ bạn"}diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 5dfa1e0448..55d81f8133 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -7230,6 +7230,11 @@"chat.page.freeLimit": "你已用完 {limit} 個免費頁面。MausBot Cloud 能給你更多頁面,而且頁面不帶標記。","chat.page.planLimit": "你已用完 {plan} 方案的全部 {limit} 個頁面。取消發佈一個頁面就能騰出空間。","chat.page.morePages": "取得更多頁面",+ "chat.page.ownerOnly": "僅限你自己",+ "chat.page.anyoneLink": "任何擁有連結的人",+ "chat.page.ownerPublished": "已為你發布",+ "chat.page.makeOwnerHint": "只有你能開啟",+ "chat.page.makePublicHint": "任何擁有連結的人都能開啟","chat.preview.older": "上一個版本","chat.preview.newer": "下一個版本","chat.preview.version": "v{n}",@@ -10582,5 +10587,6 @@"server.github.card.description": "連線 GitHub 後,{bot} 就能把工作推送到你的儲存庫。","server.github.card.connectInApps": "請在電腦上的應用程式中透過此卡片連線 GitHub,或在「應用程式」中連線。","githubSignIn.title": "GitHub 登入",- "githubSignIn.tokenPlaceholder": "github_pat_…"+ "githubSignIn.tokenPlaceholder": "github_pat_…",+ "publishedApps.access.owner": "僅限你自己"}diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex d7f8f2e1bc..1b279b5b2f 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -7364,6 +7364,7 @@"publishedApps.access.public": "公开","publishedApps.access.netlifyTeam": "仅你的 Netlify 团队","publishedApps.access.link": "任何有链接的人",+ "publishedApps.access.owner": "仅你自己","publishedApps.card.preview": "预览","publishedApps.card.previewOf": "预览 {name}","publishedApps.card.ask": "让 {bot} 更改它",@@ -8158,6 +8159,11 @@"chat.page.freeLimit": "你已用完 {limit} 个免费页面。MausBot Cloud 能给你更多页面,而且页面不带标记。","chat.page.planLimit": "你已用完 {plan} 方案的全部 {limit} 个页面。取消发布一个页面即可腾出空间。","chat.page.morePages": "获取更多页面",+ "chat.page.ownerOnly": "仅你自己",+ "chat.page.anyoneLink": "任何拥有链接的人",+ "chat.page.ownerPublished": "已为你发布",+ "chat.page.makeOwnerHint": "只有你能打开",+ "chat.page.makePublicHint": "任何拥有链接的人都能打开","chat.preview.older": "上一个版本","chat.preview.newer": "下一个版本","chat.preview.version": "v{n}",