From 86038b3f2528b6f8726676abdcc5697ee37ae9ca Mon Sep 17 00:00:00 2001 From: Solstice Date: Tue, 3 Nov 2026 13:41:11 -0500 Subject: [PATCH 01/19] fix(desktop): end a Discord write that is never taken on Linux and macOS Windows already gave a write to Discord 5 seconds before treating the connection as dead. The Unix socket had no timeout, so a Discord that accepted the connection and stopped reading would hold the Discord worker in write_all for good, and nothing would show or clear again until it resumed or died. The socket now has the same 5 second write timeout, and the existing error path drops the connection and retries. The new test fails without the change (the write is still blocked after 15 seconds) and passes with it. A timed out frame can take up to two timeouts, since a partly accepted write returns before the next one waits, so the test runs about 10 seconds. Desktop checks: clippy -D warnings, fmt --check, and 141 tests pass. The Windows code was not touched or built here. --- desktop/src/adapters/discord/mod.rs | 2 ++ desktop/src/platform/unix/discord.rs | 47 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/desktop/src/adapters/discord/mod.rs b/desktop/src/adapters/discord/mod.rs index 3c575f2..36ce109 100644 --- a/desktop/src/adapters/discord/mod.rs +++ b/desktop/src/adapters/discord/mod.rs @@ -14,6 +14,8 @@ //! and right away whenever the Activity changes. Nothing to show, no tries. //! - Discord quitting or restarting ends the connection; the current //! Activity is shown again once Discord is back. +//! - A write Discord doesn't take within 5 seconds (it has stopped reading) +//! ends the connection and is retried like a restart. //! - Discord accepts 5 activity updates per 20 seconds. Faster changes are //! coalesced: only the latest is sent once the window allows. (Rapid //! changes within one Activity rarely get that far: `coalesce` holds them diff --git a/desktop/src/platform/unix/discord.rs b/desktop/src/platform/unix/discord.rs index 2794e99..6e0b412 100644 --- a/desktop/src/platform/unix/discord.rs +++ b/desktop/src/platform/unix/discord.rs @@ -14,11 +14,15 @@ use std::io::{self, Write}; use std::os::unix::fs::{FileTypeExt, MetadataExt}; use std::os::unix::net::UnixStream; use std::path::PathBuf; +use std::time::Duration; use crate::adapters::discord::ipc::{Deliver, Incoming, encode, read_frame}; use super::user; +/// A write to Discord that takes longer than this means it has stopped listening. +const WRITE_TIMEOUT: Duration = Duration::from_secs(5); + /// Where to look for Discord. #[derive(Debug, Clone)] pub struct Endpoints { @@ -126,6 +130,9 @@ pub fn open(endpoints: &Endpoints, deliver: Deliver) -> io::Result { { continue; } + if stream.set_write_timeout(Some(WRITE_TIMEOUT)).is_err() { + continue; + } let mut reader = stream.try_clone()?; std::thread::Builder::new() .name("discord-ipc".into()) @@ -261,4 +268,44 @@ mod tests { "{opened} opened, {refused} refused" ); } + + /// A Discord that accepts the connection and never reads, as a stopped or + /// hung one does: the write that can't finish must fail, so the adapter + /// drops the connection and retries instead of waiting on it for good. + #[test] + fn a_write_to_a_discord_that_stopped_reading_times_out() { + use crate::adapters::discord::ipc::{MAX_FRAME, OP_FRAME}; + use std::os::unix::net::UnixListener; + use std::sync::mpsc; + + let dir = crate::app::config::tests::temp_dir("discord-stalled"); + let listener = UnixListener::bind(dir.join("discord-ipc-0")).unwrap(); + let (release, held) = mpsc::channel::<()>(); + std::thread::spawn(move || { + let _silent = listener.accept(); + let _ = held.recv(); + }); + + let (done, result) = mpsc::channel(); + let endpoints = Endpoints::at(dir.clone()); + std::thread::spawn(move || { + let mut link = open(&endpoints, Box::new(|_| {})).unwrap(); + let frame = vec![b'x'; MAX_FRAME]; + let error = loop { + if let Err(error) = link.send(OP_FRAME, &frame) { + break error; + } + }; + let _ = done.send(error.kind()); + }); + + let ended = result.recv_timeout(WRITE_TIMEOUT * 3); + drop(release); + std::fs::remove_dir_all(dir).ok(); + let kind = ended.expect("the write never gave up on a Discord that stopped reading"); + assert!(matches!( + kind, + io::ErrorKind::WouldBlock | io::ErrorKind::TimedOut + )); + } } From 78b9dece9bc4f37fa79656326b5ac02bd39c9745 Mon Sep 17 00:00:00 2001 From: Solstice Date: Tue, 3 Nov 2026 13:41:11 -0500 Subject: [PATCH 02/19] feat: show each Activity's version on its dashboard page An Activity's page lists its version next to its sites and source. It comes from the Activity's own metadata.json, for Parousia's native Activities and the bundled PreMiD ones alike, through the one draft both adapters fill (versionFrom), so there is a single rule for what counts as a version. Only the manifest carries it: the catalog entry leaves it out, as it does the settings, so the list the dashboard loads doesn't grow. A PreMiD Activity with a version that isn't MAJOR.MINOR.PATCH still builds, without one; a native one still fails the build, as before. Browser checks: typecheck, lint, format:check, and 460 tests pass. A real build against the PreMiD and native sources gave all 1,455 manifests a version and no catalog entry one. --- browser/README.md | 4 ++-- browser/scripts/activities/activities.test.ts | 22 +++++++++++++++++++ .../parousia/websites/T/Tunes/metadata.json | 2 +- .../premid/websites/E/Example/metadata.json | 2 +- .../websites/V/Versioned/v2/metadata.json | 2 +- browser/scripts/activities/metadata.ts | 9 ++++++++ browser/scripts/activities/native.ts | 15 +++++++++---- browser/scripts/activities/premid.ts | 2 ++ browser/src/activities/manifest.test.ts | 1 + browser/src/activities/manifest.ts | 8 ++++++- browser/src/core/activity.ts | 2 ++ browser/src/fullscreen/activity.ts | 2 ++ 12 files changed, 61 insertions(+), 10 deletions(-) diff --git a/browser/README.md b/browser/README.md index 25d5244..29e1692 100644 --- a/browser/README.md +++ b/browser/README.md @@ -120,7 +120,7 @@ Activities come from two repositories, each followed at its `main` branch (`acti - **Native** Activities export `detect(page, settings)` and see the URL and title, plus the page data they declare (`media`, `thumbnails`), read by Parousia's own collector (`src/activities/collector.ts`) on sites the user granted; one that declares page data is off until turned on, which asks for its sites. They're bundled in through a generated module, `parousia:activities`. A problem with one stops the build, and `activities:check` type-checks each against `src/core/api.ts`. - **PreMiD's** are compiled unchanged into `activities/premid/.js` and run on Parousia's `Presence`/`iFrame` (`src/premid/page.ts`). Their `regExp` is the matcher, every `clientId` in their source is kept, their settings map into Parousia's, and their language picker is fixed to English (their strings are translated on PreMiD's own service, which Parousia doesn't call; only their `metadata.json` descriptions are, in the views' languages, as `activities/descriptions/.json`). Ones that need their own npm packages, name no client id, target API version 2, are on PreMiD's DMCA list, or assign page text to `innerHTML` (VLC, TLX Toki, Weverse: `UNSAFE_MARKUP` in `scripts/activities/premid.ts`) are left out, and `activities:check` lists each with its reason. They're only in the extensions, not the userscript. -- **Packaged** as one `catalog.json` (what the dashboard lists and searches), manifests in a file per first letter of the Activity's name (`activities/manifests/.json`, found from an id alone, and without the description and keywords the catalog already holds), and a text host index (`hosts.txt`, searched as text so the popup never builds an object for every site). `src/activities/manifest.ts` has the formats and their readers. +- **Packaged** as one `catalog.json` (what the dashboard lists and searches), manifests in a file per first letter of the Activity's name (`activities/manifests/.json`, found from an id alone, and without the description and keywords the catalog already holds; each carries its Activity's version, from its `metadata.json`, which only that Activity's page shows), and a text host index (`hosts.txt`, searched as text so the popup never builds an object for every site). `src/activities/manifest.ts` has the formats and their readers. `src/activities/host.ts` runs what both kinds need in the active tab's page, and turns what comes back into the page the runtime hands the Activity (see `project/architecture.md`, Activity System Architecture). To build with a local checkout instead of the fetched one, set `PAROUSIA_ACTIVITIES_DIR` or `PREMID_ACTIVITIES_DIR`. @@ -150,4 +150,4 @@ The popup and dashboard are in English, German, French, Japanese, Romanian, Russ `src/fullscreen/` is a larger, standalone presence view opened as its own tab via the popup's expand control (`chrome.tabs.create` to `fullscreen.html`, not a popup). It renders the Activity the same way the popup does, through `src/shared/presence-view.ts`; see `project/architecture.md`'s "Full-Screen Presence View" section. -It's split into pages, one rendered at a time and addressed by the URL hash: **Overview** (`#overview`: the current activity and Parousia Desktop's status and version), **Activities** (`#activities?q=…&filter=…&page=…`: the Activity catalog, searched, filtered, and paged so only one page of cards is ever in the DOM, sized for PreMiD's 1,400+; `#activities/` is one Activity's page, with its switch and settings), and **Settings** (`#settings/`, the same pages as the popup's Settings). On the Activities page, enabled Activities come first and disabled ones after, each by name. The Filter button beside the search offers Enabled, Disabled, Parousia Activities, and PreMiD Activities (choices within a group add up, the two groups narrow each other). "Enable or disable all…" under the search applies to everything the search and filters match, asks a second time, and for enabling warns that the browser will ask for that many sites in one prompt; a decline leaves those Activities off. The logic is in `src/shared/activity-list.ts` and `src/shared/activity-catalog.ts` (`bulkPlan`, `enableAll`, `disableAll`), tested without a DOM, and `bun run activities:verify` drives the page in a real browser. Overview mentions Discord-RPC-Extension's app only until Parousia Desktop is connected; its status stays in Settings > Platforms. Diagnostics aren't in the extension at all; they're Desktop's (its tray and `Parousia-Desktop status`). Desktop only accepts setting changes from a connection it knows is this OS user's; otherwise Settings points to `Parousia-Desktop set` or Desktop's console. +It's split into pages, one rendered at a time and addressed by the URL hash: **Overview** (`#overview`: the current activity and Parousia Desktop's status and version), **Activities** (`#activities?q=…&filter=…&page=…`: the Activity catalog, searched, filtered, and paged so only one page of cards is ever in the DOM, sized for PreMiD's 1,400+; `#activities/` is one Activity's page, with its switch, its version, and its settings), and **Settings** (`#settings/`, the same pages as the popup's Settings). On the Activities page, enabled Activities come first and disabled ones after, each by name. The Filter button beside the search offers Enabled, Disabled, Parousia Activities, and PreMiD Activities (choices within a group add up, the two groups narrow each other). "Enable or disable all…" under the search applies to everything the search and filters match, asks a second time, and for enabling warns that the browser will ask for that many sites in one prompt; a decline leaves those Activities off. The logic is in `src/shared/activity-list.ts` and `src/shared/activity-catalog.ts` (`bulkPlan`, `enableAll`, `disableAll`), tested without a DOM, and `bun run activities:verify` drives the page in a real browser. Overview mentions Discord-RPC-Extension's app only until Parousia Desktop is connected; its status stays in Settings > Platforms. Diagnostics aren't in the extension at all; they're Desktop's (its tray and `Parousia-Desktop status`). Desktop only accepts setting changes from a connection it knows is this OS user's; otherwise Settings points to `Parousia-Desktop set` or Desktop's console. diff --git a/browser/scripts/activities/activities.test.ts b/browser/scripts/activities/activities.test.ts index 1325e28..358fb00 100644 --- a/browser/scripts/activities/activities.test.ts +++ b/browser/scripts/activities/activities.test.ts @@ -6,6 +6,7 @@ import { hostIds, manifestShard, parseCatalog, parseShard } from "../../src/acti import type { ActivityInfo } from "../../src/core/activity"; import { buildActivities, type ActivitiesBuild } from "./build"; import { activityId, folderLetter, websiteFolders } from "./discover"; +import { versionFrom } from "./metadata"; import { discover, linkVariants, websiteKey } from "./pipeline"; import { descriptionFiles, @@ -84,6 +85,7 @@ describe("one pipeline for both sources", () => { id: "tunes", name: "Tunes", description: "What's playing on tunes.example, for tests.", + version: "1.2.3", hosts: ["tunes.example"], source: "parousia", icon: "https://tunes.example/icon.png", @@ -96,6 +98,7 @@ describe("one pipeline for both sources", () => { id: "premid:Example", name: "Example", description: "Example, for tests.", + version: "2.0.5", hosts: ["example.com", "www.example.com"], source: "premid", icon: "https://cdn.example/example.png", @@ -153,6 +156,7 @@ describe("native Activities (parousia-project/activities)", () => { await place("U/Unknown", { ...valid, id: "unknown", permissions: ["tabs"] }); await place("C/Creators", { ...valid, id: "creators", data: ["creatorIcons"] }); await place("I/Icon", { ...valid, id: "icon", icon: "http://site.example/icon.png" }); + await place("V/Version", { ...valid, id: "version", version: "1.0" }); const { native, problems } = await discover("parousia", root); expect(native.map((found) => found.manifest.info.id)).toEqual(["site"]); expect(problems).toEqual([ @@ -160,6 +164,7 @@ describe("native Activities (parousia-project/activities)", () => { 'websites/E/Everywhere: matches: "*://*/*" isn\'t a match pattern for particular sites', "websites/I/Icon: icon must be an https image URL of at most 256 characters", 'websites/U/Unknown: unknown key "permissions"', + "websites/V/Version: version must be MAJOR.MINOR.PATCH", 'websites/W/Wrong Id: id must be "wrong-id", the folder\'s name in lowercase words joined by "-"', "websites/X/Misfiled: it goes in websites/M/", ]); @@ -169,6 +174,17 @@ describe("native Activities (parousia-project/activities)", () => { }); }); +describe("an Activity's version", () => { + test("is MAJOR.MINOR.PATCH from its metadata.json, and anything else is no version", () => { + expect(versionFrom("1.2.3")).toBe("1.2.3"); + expect(versionFrom("10.0.12")).toBe("10.0.12"); + for (const other of ["1.2", "v1.2.3", "1.2.3-beta", "1.2.3.4", " 1.2.3", "", 1.2, null]) { + expect(versionFrom(other)).toBeUndefined(); + } + expect(versionFrom(undefined)).toBeUndefined(); + }); +}); + describe("websites in both sources", () => { test("are linked by folder name, never by a site they happen to share", () => { const info = (id: string, source: "parousia" | "premid", hosts: string[]) => { @@ -404,6 +420,12 @@ describe("the packaged build", () => { expect(full?.keywords).toBeUndefined(); expect(example?.description).toBeDefined(); expect((await shard("tunes"))?.info.data).toEqual(["media", "thumbnails"]); + // Only an Activity's own page shows its version, so the manifest has it and the catalog doesn't. + expect(catalog.activities.some((info) => info.version !== undefined)).toBe(false); + expect(full?.version).toBe("2.0.5"); + expect((await shard("tunes"))?.info.version).toBe("1.2.3"); + // A service with a folder per API version shows the one that runs (v1), not the newest. + expect((await shard("premid:Versioned"))?.info.version).toBe("1.0.0"); // Manifests share a file by first letter, so there's no file per Activity and no index of them. expect(Object.keys((await read("activities/manifests/t.json")) as object).sort()).toEqual([ "premid:Tunes", diff --git a/browser/scripts/activities/fixtures/parousia/websites/T/Tunes/metadata.json b/browser/scripts/activities/fixtures/parousia/websites/T/Tunes/metadata.json index c6bbb8e..03f5561 100644 --- a/browser/scripts/activities/fixtures/parousia/websites/T/Tunes/metadata.json +++ b/browser/scripts/activities/fixtures/parousia/websites/T/Tunes/metadata.json @@ -4,7 +4,7 @@ "id": "tunes", "name": "Tunes", "description": "What's playing on tunes.example, for tests.", - "version": "1.0.0", + "version": "1.2.3", "authors": [{ "name": "Test" }], "icon": "https://tunes.example/icon.png", "matches": ["https://tunes.example/listen*"], diff --git a/browser/scripts/activities/fixtures/premid/websites/E/Example/metadata.json b/browser/scripts/activities/fixtures/premid/websites/E/Example/metadata.json index 02fb5f6..0671552 100644 --- a/browser/scripts/activities/fixtures/premid/websites/E/Example/metadata.json +++ b/browser/scripts/activities/fixtures/premid/websites/E/Example/metadata.json @@ -15,7 +15,7 @@ }, "url": ["example.com", "www.example.com"], "regExp": "^https?[:][/][/](www[.])?example[.]com[/]", - "version": "1.0.0", + "version": "2.0.5", "logo": "https://cdn.example/example.png", "thumbnail": "https://cdn.example/example-thumb.png", "color": "#000000", diff --git a/browser/scripts/activities/fixtures/premid/websites/V/Versioned/v2/metadata.json b/browser/scripts/activities/fixtures/premid/websites/V/Versioned/v2/metadata.json index 4727c8f..8ffb8cb 100644 --- a/browser/scripts/activities/fixtures/premid/websites/V/Versioned/v2/metadata.json +++ b/browser/scripts/activities/fixtures/premid/websites/V/Versioned/v2/metadata.json @@ -11,7 +11,7 @@ }, "url": "versioned.example", "regExp": "^https?[:][/][/]versioned[.]example[/]", - "version": "1.0.0", + "version": "9.9.9", "logo": "https://cdn.example/versioned.png", "thumbnail": "https://cdn.example/versioned-thumb.png", "color": "#000000", diff --git a/browser/scripts/activities/metadata.ts b/browser/scripts/activities/metadata.ts index aebed70..8e116c6 100644 --- a/browser/scripts/activities/metadata.ts +++ b/browser/scripts/activities/metadata.ts @@ -20,6 +20,7 @@ export interface Draft { id: string; name: string; description?: string; + version?: string; hosts: string[]; match: ActivityMatch; icon?: string; @@ -49,6 +50,13 @@ export const LIMITS = { export const SETTING_ID = /^[A-Za-z0-9_-]{1,64}$/; export const CLIENT_ID = /^\d{17,20}$/; +/** An Activity's version, as both sources' metadata.json write it. */ +export const VERSION = /^\d+\.\d+\.\d+$/; + +/** A metadata.json `version` if it's one, so a PreMiD Activity with an odd one still builds, only without it. */ +export const versionFrom = (value: unknown): string | undefined => + typeof value === "string" && VERSION.test(value) ? value : undefined; + /** What's wrong with a setting, by the rules both sources' settings follow, or `null`. */ export function checkSetting(setting: ActivitySetting): string | null { if (!SETTING_ID.test(setting.id)) return "its id isn't 1 to 64 letters, digits, _ or -"; @@ -124,6 +132,7 @@ export function manifestFrom(draft: Draft): ActivityManifest { }; const description = draft.description?.trim().slice(0, LIMITS.description); if (description) info.description = description; + if (draft.version) info.version = draft.version; if (draft.keywords && draft.keywords.length > 0) info.keywords = keywordsFrom(draft.keywords); if (draft.icon) info.icon = draft.icon; if (draft.discordClientId) info.discordClientId = draft.discordClientId; diff --git a/browser/scripts/activities/native.ts b/browser/scripts/activities/native.ts index a13d2ae..ef00e5a 100644 --- a/browser/scripts/activities/native.ts +++ b/browser/scripts/activities/native.ts @@ -4,7 +4,14 @@ import type { ActivitySetting, PageDataKind, SettingValue } from "../../src/core import { compileMatchPattern, patternHost } from "../../src/core/match-pattern"; import type { ActivityManifest } from "../../src/activities/manifest"; import { FOLDER_NAME, activityId, folderLetter, type WebsiteFolder } from "./discover"; -import { CLIENT_ID, LIMITS, checkSetting, manifestFrom, patternOrigin } from "./metadata"; +import { + CLIENT_ID, + LIMITS, + checkSetting, + manifestFrom, + patternOrigin, + versionFrom, +} from "./metadata"; /** * The adapter for native Activities (github.com/parousia-project/activities): @@ -131,9 +138,8 @@ export function parseNativeMetadata( if (!isText(description, LIMITS.description)) { problems.push(`description must be 1 to ${LIMITS.description} characters`); } - if (typeof version !== "string" || !/^\d+\.\d+\.\d+$/.test(version)) { - problems.push("version must be MAJOR.MINOR.PATCH"); - } + const release = versionFrom(version); + if (release === undefined) problems.push("version must be MAJOR.MINOR.PATCH"); if ( !Array.isArray(authors) || authors.length === 0 || @@ -213,6 +219,7 @@ export function parseNativeMetadata( id, name, description, + version: release, hosts: patterns.map(patternHost), match: { patterns }, ...(typeof icon === "string" && { icon }), diff --git a/browser/scripts/activities/premid.ts b/browser/scripts/activities/premid.ts index 16b0aa6..7ad7a20 100644 --- a/browser/scripts/activities/premid.ts +++ b/browser/scripts/activities/premid.ts @@ -17,6 +17,7 @@ import { hostOrigin, keywordsFrom, manifestFrom, + versionFrom, } from "./metadata"; /** @@ -331,6 +332,7 @@ async function readActivity( id: premidId(service), name: service, ...(isObject(description) && isString(description.en) && { description: description.en }), + version: versionFrom(metadata.version), hosts, match: { regExp: pattern }, icon: logo, diff --git a/browser/src/activities/manifest.test.ts b/browser/src/activities/manifest.test.ts index ca08b92..4e99379 100644 --- a/browser/src/activities/manifest.test.ts +++ b/browser/src/activities/manifest.test.ts @@ -207,6 +207,7 @@ describe("one manifest for both sources", () => { test("the catalog lists an Activity without what only its own page needs", () => { const entry = catalogEntry({ ...native.info, + version: "1.2.3", settings: [{ id: "a", title: "A", type: "boolean", default: true }], data: ["media"], origins: ["https://tunes.example/*"], diff --git a/browser/src/activities/manifest.ts b/browser/src/activities/manifest.ts index a9622cd..b77088e 100644 --- a/browser/src/activities/manifest.ts +++ b/browser/src/activities/manifest.ts @@ -143,7 +143,13 @@ export const shardPath = (id: string): string => shardFile(manifestShard(id)); /** An Activity as the catalog lists it: everything but what only its own page needs. */ export function catalogEntry(info: ActivityInfo): ActivityInfo { - const { settings: _settings, data: _data, discordClientId: _discordClientId, ...entry } = info; + const { + settings: _settings, + data: _data, + discordClientId: _discordClientId, + version: _version, + ...entry + } = info; return entry; } diff --git a/browser/src/core/activity.ts b/browser/src/core/activity.ts index ed7be55..34a04a4 100644 --- a/browser/src/core/activity.ts +++ b/browser/src/core/activity.ts @@ -66,6 +66,8 @@ export interface ActivityInfo { /** The sites it recognizes, for display and search, e.g. `youtube.com`. */ hosts: string[]; source: ActivitySource; + /** Its own version, as its metadata.json gives it (`MAJOR.MINOR.PATCH`). Only its page shows it. */ + version?: string; /** More words to find it by: other names, tags. */ keywords?: string[]; /** Its icon: an `https` image URL, shown in the dashboard when it loads. */ diff --git a/browser/src/fullscreen/activity.ts b/browser/src/fullscreen/activity.ts index ae5534a..1f73e8e 100644 --- a/browser/src/fullscreen/activity.ts +++ b/browser/src/fullscreen/activity.ts @@ -194,7 +194,9 @@ export function activityView(context: ViewContext, id: string): View { for (const [term, value] of [ [t("Sites"), activity.hosts.join(", ")], [t("From"), t("{source} Activities", { source: SOURCES[activity.source] })], + [t("Version"), activity.version], ] as const) { + if (!value) continue; const row = el("div"); row.append(el("dt", "", term), el("dd", "", value)); facts.append(row); From 2244f5705fd2c99f713c8d12476a0e166abc5073 Mon Sep 17 00:00:00 2001 From: Solstice Date: Tue, 3 Nov 2026 13:41:11 -0500 Subject: [PATCH 03/19] docs: start the 1.2.0 changelog --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06df090..912fe60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # VERSION 1 +## V1.2.0 - IN DEVELOPMENT + +Version numbers in the manifests, `package.json`, and `desktop/Cargo.toml` change when the release is cut. + +### ✨ New Features + +- **Activity Versions:** Every Activity's page in the dashboard shows its version, taken from its own `metadata.json`: Parousia's native Activities and the bundled PreMiD ones alike. Only each Activity's manifest carries it, so the catalog the dashboard lists and searches doesn't grow. + +### 🛡️ Stability + +- **Discord Connection (Linux and macOS):** A Discord that stops reading its socket no longer holds Desktop's Discord connection forever. A write it doesn't take within 5 seconds ends the connection, and Desktop retries as it does after a Discord restart. Windows already did this. This is a Desktop change, so the release that ships it needs a Desktop version above 1.0.1. + ## [V1.1.0](https://github.com/Abadima/RPC/releases/tag/v1.1.0) - V1 FIRST STABLE RELEASE This release carries the browser extension and userscript **1.1.0** (the Firefox build is **1.1.0.1**) and Parousia Desktop **1.0.1**. It is the first stable release, with everything since the first public beta. From dbb159b318b5782c4718ae5d632c049bfea582a5 Mon Sep 17 00:00:00 2001 From: Solstice Date: Tue, 3 Nov 2026 15:21:51 -0500 Subject: [PATCH 04/19] build(deps): update browser and desktop dependencies to latest --- browser/bun.lock | 102 +++++++++++++++++++++---------------------- browser/package.json | 6 +-- desktop/Cargo.lock | 4 +- 3 files changed, 56 insertions(+), 56 deletions(-) diff --git a/browser/bun.lock b/browser/bun.lock index c4d4cd1..6e135c4 100644 --- a/browser/bun.lock +++ b/browser/bun.lock @@ -7,9 +7,9 @@ "devDependencies": { "@fortawesome/free-solid-svg-icons": "^7.3.1", "@types/bun": "^1.4.4", - "@types/chrome": "^0.3.6", - "oxfmt": "^0.74.0", - "oxlint": "^1.89.0", + "@types/chrome": "^0.3.7", + "oxfmt": "^0.76.0", + "oxlint": "^1.91.0", "playwright-core": "^1.64.1", "web-ext": "^10.8.0", }, @@ -69,81 +69,81 @@ "@mdn/browser-compat-data": ["@mdn/browser-compat-data@8.1.4", "", {}, "sha512-Cgp3OP3u9x57kT1sZPI115SP5H1IyaBhdDPnvnHRYZ1988kW83wuqcIdcMinLJXlMKOL5Y2cufWHzngh5cVtow=="], - "@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.74.0", "", { "os": "android", "cpu": "arm" }, "sha512-xxQwrf5EPI5zxvuCTW8r6tzCTjPQ+h6+HqJ0iRKRy2zS1yBllt/xLVjoIyUc+FnR7g0a5g1SZv2yyDYhTItLbA=="], + "@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.76.0", "", { "os": "android", "cpu": "arm" }, "sha512-z8x4kittQLPsrJWmfoIJyYqs2gNwceGShoUqAJdFRPw3K4kkkKCFHh3Cr4NFRvZb7DPfDS3+JfBjSm3OIyQaJQ=="], - "@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.74.0", "", { "os": "android", "cpu": "arm64" }, "sha512-FJW3sATVvrWbV64al8xofCPZj4500Z/1W0ad7Tg1rcCUyh0EMbuSrsf3jsZS7CEbwQ5fQ0mRhmkc129GFgofSQ=="], + "@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.76.0", "", { "os": "android", "cpu": "arm64" }, "sha512-Zj9fEQhQSKGj8ZTB+X4q4ho4545xWf7qsvJpwREWnBz5BATEFYtStKRgiwYOZvxQ7ORlBEgSj7pmDzuljfV1mQ=="], - "@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.74.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TfmNKBD30dGyMu9GCLiaw2rt/z7fms9LS+5cKcNOyWst0QgAs8oZs6wPxMbVaaDVE0/PCdCosgWM1vbu6f5NUg=="], + "@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.76.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-jZy8GpUXaWpic5JPMAvLmaBz95Sx0naZl6hptBPLOMiYmZYiME7jAt6pv8o/tjQqPNWKb+7jKzZhrYx6UqM5MQ=="], - "@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.74.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-5Usf8+DfC4Q3o/MD8FkN47GrI6y0KbhQ4KhZ2HGzMZcXjcW1AeldwbUn51aKih+1TVuJFF9qkNm6X1nzm6NYng=="], + "@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.76.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-U59+a9lVpoRp9enRhTE9GssL3qB1k09CYagRzTfs3dfknopMYV0x0xHZv7Pls3SNMqHlyHR+ufmY76CYafQoLw=="], - "@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.74.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-eL+1O3gykw1XihbZh2MRAciQvU2988LByrnjhyo/dmNG74X4oZ7XzigRoWPRFLfJCp8hzRkp/LbEhwe7uuT2eA=="], + "@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.76.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-J1R3YJHPdQJ2RQvzMdTVDWyizhihGiRGGAeEZxtGp629j5pcT5ypSLSiBflopD7o7tmiMD+xlNfhIVmjcHKMVQ=="], - "@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.74.0", "", { "os": "linux", "cpu": "arm" }, "sha512-Xt0QtO2hJ4stnul8IL4LJGVLyp0xnc6ccN9fZ30yuubv8FWSRYxWwd1Za62KsEqAfmPSazoS/cLSUUJpja6npA=="], + "@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.76.0", "", { "os": "linux", "cpu": "arm" }, "sha512-x9qTg6zHoqeyzmFVlIjSb9WlhZdoXaayMTeQeDeUEfKA484AgPJz7f9chLjDMONA6wUUX0FJxnVHsYgX5Zv0+g=="], - "@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.74.0", "", { "os": "linux", "cpu": "arm" }, "sha512-/4wYQ0gZl4vUR0QoBTGaay73FmQ1GAjUa9z9101TR2xbGNrg4a+grazlR0yzEOe3/E+PJr5BGfj66MMzm/54vg=="], + "@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.76.0", "", { "os": "linux", "cpu": "arm" }, "sha512-303gbamm7NDllTtkeaX+8F5Da+KcSBr64mqELQEFg9XgnjfLX3YBCHUcOfgIlVTSybesy43eoeKai8oGr0P6UA=="], - "@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.74.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-846bKzF+HJd+JkOFh3rxzmYvSq4Cm+GMT+p+mW7S13ZYo6GAAGv8bL8cAOi/XcdeMqxEJDCIMTVQLVBXHMCdig=="], + "@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.76.0", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-j3UAXzCJoWX9bZLaICj6DfwkI/2fzja9RpiCIbIN+2CQAcKoY+5SH5pQUcECvn32mQm17NSPE9YqTAwYx1seZg=="], - "@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.74.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-nI5FJwZ4Flo6CBdscpwxymZXxO3m3IErQJX55ZS6h+ObfGXu8FostL85L/RWPFaCLnIVE4/WfLw+2q8XvVEeUA=="], + "@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.76.0", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-qFZqWVkEzuxWMtUkCtHxsnohXHnUMBQr/ZIxF0KmlCSt8de/bc1lbpVgpqjb3QxCADQHG/O1s3JcowcBF2sqdw=="], - "@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.74.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-BoQYKuqUdsKAFAkK6DLBvkdv4+t0hppSm79sB0wIcE2o/eOwNj+6Z3OlKY4q3Eta/tlssP65FaS9vHn8TeF7vQ=="], + "@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.76.0", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-ROiAid0UH2GN5lMMX2JTgKlOKx1rN+6a1WxIuBsU3j5A3MuB9U5XkREMW76XBbAImnH45mfOCFcSIwb+drcVYg=="], - "@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.74.0", "", { "os": "linux", "cpu": "none" }, "sha512-FSroRrM12+jCdSQklF9aOxsKpI6wFs4ZCo/1cSYG80RWZS6z4LV+l9tXRMT8lDGu+yohIZBwi9M76FzGPFDE2A=="], + "@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.76.0", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-Oyd/9ObdM2RYkZ7yzF/GyvVdbNgJcRG8BFVwnAVo3ooqzaem4E2p5eTIGB09FecQD+Q5HQEANOTEnIZTO6rBAQ=="], - "@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.74.0", "", { "os": "linux", "cpu": "none" }, "sha512-0VLQD0dhGBLY9Ik/w+otMvD81D0YXi4VDwql65macV+O9UzmSWmUr6CKf+dMtysDeC0PnG3y6kBkRO08BJx52g=="], + "@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.76.0", "", { "os": "linux", "cpu": "none", "libc": "musl" }, "sha512-86DOpmPDR5UzHSOB8y5HlOpYAIBtMx+6L72IyousNx54q1Kz61aykB4ScovFYivZUak+7Ww6tPBUjarluzYKLw=="], - "@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.74.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-6X7BbZNz34+OHM6Oqjf6TRcUyRn6aRcB4VtIDZAF/uQRyeVhg+G2hv6MlMvmnRekVSyTJ/8rG/u8W2dRFW6glg=="], + "@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.76.0", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-u6omjjFooKfnHLBI+3UtBVInAeuEhoM/RAIw/OiFop2QQgOan5zDfqPR6guMaylt68L60kV+by07Ibp87KDjrw=="], - "@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.74.0", "", { "os": "linux", "cpu": "x64" }, "sha512-4kYIQK53yJXrxwxSzx8H2bojlf6/KezLGYLRXzV9QCCkoiCsvBTCid9Bg83dUPTLPa3g9K0730f6MKDbck1+OA=="], + "@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.76.0", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-L0/hW1MdMrgsvuLGp9YEQOYOGj5xPHa8wVRtybdd5av03PV4qSpAq3pyfC7sn7UCA8ynRhMRTAa9Kr9nV4LGZg=="], - "@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.74.0", "", { "os": "linux", "cpu": "x64" }, "sha512-MfWz4wDREjp/JQDmuxtKieix4FHGa1z5rBvB3betdcPwZvf5fqeQrlCm1mmoyuUVQOh9Pt3M61HwN94kJCxw7Q=="], + "@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.76.0", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-JNk/7HaPDJjy5kih3vq6b71Qif3tHx1ZFACGBzeHeNzyKaIpar4eFGya89GR398K2rwX0eEVmEq1npBPlEkkmg=="], - "@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.74.0", "", { "os": "none", "cpu": "arm64" }, "sha512-6rmAApkq5s1kbDjvNI6Nl5A+JqQkLORb2sR941pf5HWsrd01WGKyagK/B4vX9+kh1FfvRkNgEu59FHvVk4H8cQ=="], + "@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.76.0", "", { "os": "none", "cpu": "arm64" }, "sha512-MDLrOQPXDuPKvPUCvpP3hC6kO72dsYxfpYiR08Nf5DiM75M0d8+D26JwT4uHDf0bcflvlGHcd58Hn2HpxkHUUQ=="], - "@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.74.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-+5SpRUnZNGeXTyumHnpHa791tQtt04qZs076WT8eTcGF2OJ631VLnf7S0kQSPuDG+PtJM0phadEB2WAr5n1w9g=="], + "@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.76.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-2CcICDrQKqMAOFuzmts/8Ov5iKb+DW/QrW4MFsl2bnRg86uoiUvtqUkHqNSY19Shegc8pBHiXMSEHDjIg94o0A=="], - "@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.74.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-1Fg+wYBO3Dsti1QX+/6EYHjeQzLC84tLOAqPu/r7ah3UJlUs9C/DB703Ay9Vcg+8VMzqZA2P5VGhzJraVUD4OQ=="], + "@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.76.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-NjZLJg+tQpMWVSyeWBBKCpib7H/uLq84ZzxCvY5eqHzSaItuzCECGA9MBiZwmW8fnkBIfppg49Ib//LSCGAp8Q=="], - "@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.74.0", "", { "os": "win32", "cpu": "x64" }, "sha512-y9jXUgPBm2TZIWbQhMYRRYAQM57+r4fbykgc+j24ICIIZl+pcuoNhnq1CRGm3oFiHnEUnZO00qOtSPGQdJ2ziQ=="], + "@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.76.0", "", { "os": "win32", "cpu": "x64" }, "sha512-0vCMaX/qloc7uaKBDRh+62SBW8EqmhS7c8/al+PxD594ao4lyEWdcoEmVoBgnCNVW07GDpg+9uPV7x6ta9mljw=="], - "@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.89.0", "", { "os": "android", "cpu": "arm" }, "sha512-Pflpba5F3gRAQ12sWglRxvWTHEdAusNDvmi4Y5N1T5SY1AGkM7AixOnET8qkrnLJ/F32qAlNokO6eCknT8tmnw=="], + "@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.91.0", "", { "os": "android", "cpu": "arm" }, "sha512-eOqJUUS1MCqIoUUxMIkuwaqIdKaHr1SXYA0CQI95UUrF8jwQylQH33bBmnqhZfvWXKlRB2Ylx/+Sbk/ctEqzZQ=="], - "@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.89.0", "", { "os": "android", "cpu": "arm64" }, "sha512-dYmyD1x7LaPlb79vZWUcpTShk8dI9z1I+IubtqrBxWNJaDhQdPHwcsvg7q5StTU4xWyd9AwPfLaTYFZY8NZgtQ=="], + "@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.91.0", "", { "os": "android", "cpu": "arm64" }, "sha512-vIJU4lRxK0EhbBt+iR3rkq3pio4I+V5Gshwjei3plNjN+CIq0WxWHzYVI06J9KN8Ar3hyNSFtzJAjVRLZOYpjg=="], - "@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.89.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Z/oxOPiIqiS7fItRdxaaOEC+6GD3OpGi0IxoR0dMefzQHolsKLzScw2DNcu/5gUPok3tv+G9mslvYB5bo3i0qg=="], + "@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.91.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-tLy76MurwAOpQt5QVMkJUgexBSWhB7qdvAYb14bc0xntZS6f55aKicbZoxZ/QlmAbnrdlXeD5+IjwY8EZ9RWTg=="], - "@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.89.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-eAjTkHSjAxrdCPJxO6y5sPQL5pYLKb2kvxZz9UU7tXnOZk9I/HLtkvx9S7GHY883k+AmL/eC7mqFt+w7WCwk0w=="], + "@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.91.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-zPeMmjAqm5vXxbTp/JqYuc9gGSbUuEaeCAkFHB4TCRLTlfJGD//Fkx03YvZHCHZJ7ideLiiLcae+3f2I27qnaA=="], - "@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.89.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-0lNCA9Tl1n1FKpqy2/9ckp0kIuSrtJ/l9bMRgaEhOtM7TsOHshFuwOcvW8oA9teXLMOJT61LjEKWiaHDFGxF/w=="], + "@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.91.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-psOR9+xGMXn0hj4KY5M2kjSQ1n0TCMdYbPOraoV0iQyl7mw2oBBYGUM2+ma40m1YLVrktTBOta4FjrmcOHDhrg=="], - "@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.89.0", "", { "os": "linux", "cpu": "arm" }, "sha512-OTFEvi9W+JczaZD1Caj17SGCoW8H7TE+fvx0D7ATEWa1Lohn91UMxFQ6r145SiGy/yCxeIwptMys/RAM7gSVSQ=="], + "@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.91.0", "", { "os": "linux", "cpu": "arm" }, "sha512-1PNA1j4ETxawvxfz6ueDxWgQgWkXPbv44DWZmC7LR07GqojGFDOwWbosOT6/AYiJr7zMXEhn2dPWMkyFFOFpUQ=="], - "@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.89.0", "", { "os": "linux", "cpu": "arm" }, "sha512-fRxgNHvBLswj6MrhW2uBq5UDhPRQlCbHeq/Nf8yuG9zOxhDsXqX/mi2PX1axgsQxMm88el7HLiJAzglAnflYxw=="], + "@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.91.0", "", { "os": "linux", "cpu": "arm" }, "sha512-jcNePVpca37lTbHmiPMnVbPAAW0rH9kAoDjsDv6vESEX9pzazIR1q5SyYuc1rQzdjHtc2VVCDN9jDh6tHcOHyA=="], - "@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.89.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-v9ENzHvwrQoYSWTtviH1pOYc7R9UovDxVofnck50cNmPihRRTcrg5X0UlRbLOZ7IVtxPOlh2hb7kDO+FpE8SfQ=="], + "@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.91.0", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-TJi78UX6R+9qZ23ZKtzN6adfW83bjY0NXsCRMBRH6H7IizaMXmZbdRAtjedMkx77bT46YQH0csawsY9lwha8MA=="], - "@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.89.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-vfffe8mQ484AzVadlUOFpgL+JDwhvs9hrzxTgQP1FVfi4ZEUUYeffXlzC9dFV7Dgnu5s/KrNKvfmG6HxBd/ISQ=="], + "@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.91.0", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-OowlLroUTzKq5OBvbu6iegch8SJ2DivXFCukzPWURwvcJhMj7/P0CUGH5qrDlxT1Kh48dcxqYqrvE8qK6xTLKQ=="], - "@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.89.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-Buonlp4hVS7RGNP5M7bPpGNQrenyzA2C64JcO/oz9C1c6dGOXJ7VEAnaiAMY7voou0JYyCJdvDVlFQc5DZX3DQ=="], + "@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.91.0", "", { "os": "linux", "cpu": "ppc64", "libc": "glibc" }, "sha512-QF/5Ge8yGpWg5s4awMNHfVKh1WOmk591Qg082i6CHenXYBa+W1E5RwWZXaKUOw4Ko7CCjqg3TfBc0AzhnqblYg=="], - "@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.89.0", "", { "os": "linux", "cpu": "none" }, "sha512-1eVwJJrJ3lYIPT+cm7BcBBZZXY6IQZP/oyonaruTor/MrVyWOpvnwt1oD5CLdsHg5aVBIxXodQSvt+1gK6ck5w=="], + "@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.91.0", "", { "os": "linux", "cpu": "none", "libc": "glibc" }, "sha512-dXlsKlNhzJQX1nageGKnvWe1D7uTng249hQM80CG/YPZ8F/VZHbxVLhImgurdWBOmu86XOemValLjrW6QIOM/Q=="], - "@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.89.0", "", { "os": "linux", "cpu": "none" }, "sha512-fRQQsKUGShdEL5Fl9o9uhj3grkZbeXKLv0icQ5tspUCNYSDy8wzzEcP1WC2bKdTQ0rSszbKlO3iiHORxV22DLg=="], + "@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.91.0", "", { "os": "linux", "cpu": "none", "libc": "musl" }, "sha512-tznkj5VrWNRUfymkaLcJetgMLbP9suL5ob/m7j0Fdbnm5u3Li/Ezo/YcBixiuwdL1sg0oGpyTe86It0J6T+Lxg=="], - "@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.89.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-dEtYjIy6+fHcjKklsmtmMkZRhwHr2UbzjmpvuPtQYSeN9awQ2hx5JLms5Wvri+8P/NZtD8v5hfgHALUql+/Ycg=="], + "@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.91.0", "", { "os": "linux", "cpu": "s390x", "libc": "glibc" }, "sha512-sNvfLiUYQkVsLNUgIW24AEYTHSd2zZ1vAxXssPdjuQHTtCpRvQihYri6d5z5FY7w/QrcnB5+g9E+/sqmZq8tfA=="], - "@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.89.0", "", { "os": "linux", "cpu": "x64" }, "sha512-hqjwIj5KOYM8Wjef/p7IruNi1iByLhSzbMBk62y22P/E8q7Jj0Pp+DeUTKTRYyZYCDtU1wEGlnWOnttHbyNIww=="], + "@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.91.0", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-eA25ETvimhUZ89y5BcunNY7yv7qwG2I7V7dFQAU+mIEqZ57gBCXdIERl0yXOEt43zjsw0yK2gRKTc+twF706wQ=="], - "@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.89.0", "", { "os": "linux", "cpu": "x64" }, "sha512-iAQN3e6o9UgUCcdGwqRx/jYcKbG3HK7ur3rH6lTqVcQeNGZ85AeWIg6cgn/edwFQ0ofEZZItMwkzyCVTahnvEA=="], + "@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.91.0", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-4hZ4Z9K+OkcTpAHDoUTMg/8MModbM0aocrl9KnGzp9h5iKqjrXraEUZorYoVCT7xoK93CAHXgTndxRBrOjH/fA=="], - "@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.89.0", "", { "os": "none", "cpu": "arm64" }, "sha512-MNxjEByz3N/7Q4qFQuPWvc14TpN9LoD3pECEDsJTZbP/wyB7U+hduUXEl7QAbbgVezFwsb9sWtNUO6XVBndOhg=="], + "@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.91.0", "", { "os": "none", "cpu": "arm64" }, "sha512-gtqn4b0kLpGe46Qh7NHiR86wZpd+TLaesO106s7V3RG33r63VB94LW5qPKEDJX64osh3xfjnPFn1M0484bC7wQ=="], - "@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.89.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-xxe+i9wfuFso/VnoL4mfj0UlzE+cfCFiUB06vkXCMyQdgVVmItF5FfAF4tATAktSU6uHruWR+FjqvAT9cHZZzg=="], + "@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.91.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-KQItBdsyHN28U3z/bEek6h9pvG3Uqv564QYO8K1bE/V7YRZgpHlRnfNKVPHkk4sfYKyPzEjCgW80QkImOLvJog=="], - "@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.89.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-saFy07cO94E664glwgLmKLI40HgTL1PY86y4T6+ud4niX4H0Kdqjcmqmjps7mQNdBytV5guGbXDdyQtRfeLbLA=="], + "@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.91.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-XFKqbbsQVmTgw+CyBKuzSZtAa45viom1naFfulKmkTFdDyDaBQaBqEz5J61TI8iwBynU+F8q7qPD+9mplZRhEg=="], - "@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.89.0", "", { "os": "win32", "cpu": "x64" }, "sha512-hLFJ/o0f/dTJh/EW0vmcbREYSQO9tYgfiAAlsOkiLFiJuRRWvYtFELUXN5o2ijpSo/tlO1n+YlWN58tZwPG18A=="], + "@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.91.0", "", { "os": "win32", "cpu": "x64" }, "sha512-DmpK0PthG66Bcz5Y4JqNbzXltzyLQtg3ofYpd25+ejm7kQYUM78VL1uIP/ZFct2781mwUyBX37LatFPCTVp35A=="], "@pinojs/redact": ["@pinojs/redact@0.4.0", "", {}, "sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg=="], @@ -155,9 +155,9 @@ "@types/bun": ["@types/bun@1.4.4", "", { "dependencies": { "bun-types": "1.4.4" } }, "sha512-9wkRDXUXK124pEnAutE6n/l18j+i9GC5IAHK8TmX/2nlySETmky0OU6yL5U8pW1AoKh++AN9auDCr647BfurjQ=="], - "@types/chrome": ["@types/chrome@0.3.6", "", { "dependencies": { "@types/har-format": "*" } }, "sha512-NXCrCBefCHCKMVbkaxfBQqyP766Wg85S2FQhixCCxq7AtjJwoEaja2y5NSqCzpihIi9mPqhaF5RuybTnrdYD2Q=="], + "@types/chrome": ["@types/chrome@0.3.7", "", { "dependencies": { "@types/har-format": "*" } }, "sha512-jWZgbHqWbTL1a5+PoyN0OJutNyejWgyZ5MdcvKo6iJE1TNRtXR3FxsC4WzNl52yZWPidfWC8NV/VUNZf+OFKcA=="], - "@types/estree": ["@types/estree@1.0.9", "", {}, "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg=="], + "@types/estree": ["@types/estree@1.0.10", "", {}, "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g=="], "@types/har-format": ["@types/har-format@1.2.16", "", {}, "sha512-fluxdy7ryD3MV6h8pTfTYpy/xQzCFC7m89nOH9y94cNqJ1mDIDPut7MnRHI3F6qRmh/cT2fUjG1MLdCNb4hE9A=="], @@ -165,7 +165,7 @@ "@types/minimatch": ["@types/minimatch@3.0.5", "", {}, "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ=="], - "@types/node": ["@types/node@26.6.5", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg=="], + "@types/node": ["@types/node@26.6.6", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog=="], "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="], @@ -529,7 +529,7 @@ "natural-compare": ["natural-compare@1.4.0", "", {}, "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw=="], - "node-forge": ["node-forge@1.4.0", "", {}, "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ=="], + "node-forge": ["node-forge@1.4.2", "", {}, "sha512-rRtAR5XLJ8gCKd9du4qrKAsgCG1ObGP4gLeNJMa4vYSeq4bmBMOJk5IHkrviBV0q7uoAJlVd8HEQYQSVUb4FGQ=="], "nth-check": ["nth-check@2.1.1", "", { "dependencies": { "boolbase": "^1.0.0" } }, "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w=="], @@ -539,9 +539,9 @@ "optionator": ["optionator@0.9.4", "", { "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" } }, "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="], - "oxfmt": ["oxfmt@0.74.0", "", { "dependencies": { "tinypool": "2.2.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.74.0", "@oxfmt/binding-android-arm64": "0.74.0", "@oxfmt/binding-darwin-arm64": "0.74.0", "@oxfmt/binding-darwin-x64": "0.74.0", "@oxfmt/binding-freebsd-x64": "0.74.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.74.0", "@oxfmt/binding-linux-arm-musleabihf": "0.74.0", "@oxfmt/binding-linux-arm64-gnu": "0.74.0", "@oxfmt/binding-linux-arm64-musl": "0.74.0", "@oxfmt/binding-linux-ppc64-gnu": "0.74.0", "@oxfmt/binding-linux-riscv64-gnu": "0.74.0", "@oxfmt/binding-linux-riscv64-musl": "0.74.0", "@oxfmt/binding-linux-s390x-gnu": "0.74.0", "@oxfmt/binding-linux-x64-gnu": "0.74.0", "@oxfmt/binding-linux-x64-musl": "0.74.0", "@oxfmt/binding-openharmony-arm64": "0.74.0", "@oxfmt/binding-win32-arm64-msvc": "0.74.0", "@oxfmt/binding-win32-ia32-msvc": "0.74.0", "@oxfmt/binding-win32-x64-msvc": "0.74.0" }, "peerDependencies": { "@astrojs/compiler-rs": "^0.4.0 || ^0.5.0", "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["@astrojs/compiler-rs", "svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-G4OP7FgwGYZR5ttRpCOOfJdyRsSyvtn34vSXnjDq6Oqed5Dufg5mB44mank+51nAdHOKuTJ0lj0mksY7L+N61A=="], + "oxfmt": ["oxfmt@0.76.0", "", { "dependencies": { "tinypool": "2.2.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.76.0", "@oxfmt/binding-android-arm64": "0.76.0", "@oxfmt/binding-darwin-arm64": "0.76.0", "@oxfmt/binding-darwin-x64": "0.76.0", "@oxfmt/binding-freebsd-x64": "0.76.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.76.0", "@oxfmt/binding-linux-arm-musleabihf": "0.76.0", "@oxfmt/binding-linux-arm64-gnu": "0.76.0", "@oxfmt/binding-linux-arm64-musl": "0.76.0", "@oxfmt/binding-linux-ppc64-gnu": "0.76.0", "@oxfmt/binding-linux-riscv64-gnu": "0.76.0", "@oxfmt/binding-linux-riscv64-musl": "0.76.0", "@oxfmt/binding-linux-s390x-gnu": "0.76.0", "@oxfmt/binding-linux-x64-gnu": "0.76.0", "@oxfmt/binding-linux-x64-musl": "0.76.0", "@oxfmt/binding-openharmony-arm64": "0.76.0", "@oxfmt/binding-win32-arm64-msvc": "0.76.0", "@oxfmt/binding-win32-ia32-msvc": "0.76.0", "@oxfmt/binding-win32-x64-msvc": "0.76.0" }, "peerDependencies": { "@astrojs/compiler-rs": "^0.5.0", "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["@astrojs/compiler-rs", "svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-Yo9RIn9lRWTm/U8obHbXUWc39lCpEFXlEggFoPx01zS18OCFi7mAwMmL05+p1AunuJgSkONffWyBHJzpMMCRuQ=="], - "oxlint": ["oxlint@1.89.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.89.0", "@oxlint/binding-android-arm64": "1.89.0", "@oxlint/binding-darwin-arm64": "1.89.0", "@oxlint/binding-darwin-x64": "1.89.0", "@oxlint/binding-freebsd-x64": "1.89.0", "@oxlint/binding-linux-arm-gnueabihf": "1.89.0", "@oxlint/binding-linux-arm-musleabihf": "1.89.0", "@oxlint/binding-linux-arm64-gnu": "1.89.0", "@oxlint/binding-linux-arm64-musl": "1.89.0", "@oxlint/binding-linux-ppc64-gnu": "1.89.0", "@oxlint/binding-linux-riscv64-gnu": "1.89.0", "@oxlint/binding-linux-riscv64-musl": "1.89.0", "@oxlint/binding-linux-s390x-gnu": "1.89.0", "@oxlint/binding-linux-x64-gnu": "1.89.0", "@oxlint/binding-linux-x64-musl": "1.89.0", "@oxlint/binding-openharmony-arm64": "1.89.0", "@oxlint/binding-win32-arm64-msvc": "1.89.0", "@oxlint/binding-win32-ia32-msvc": "1.89.0", "@oxlint/binding-win32-x64-msvc": "1.89.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2003", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-a25hkfo61okGPvJz432fRIPoxlKtNnOVy9w4rzrmGgNm4iVTPwpSQlmdqNWnp6p9QyyPVfAZRgnf5XvSBZFk/A=="], + "oxlint": ["oxlint@1.91.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.91.0", "@oxlint/binding-android-arm64": "1.91.0", "@oxlint/binding-darwin-arm64": "1.91.0", "@oxlint/binding-darwin-x64": "1.91.0", "@oxlint/binding-freebsd-x64": "1.91.0", "@oxlint/binding-linux-arm-gnueabihf": "1.91.0", "@oxlint/binding-linux-arm-musleabihf": "1.91.0", "@oxlint/binding-linux-arm64-gnu": "1.91.0", "@oxlint/binding-linux-arm64-musl": "1.91.0", "@oxlint/binding-linux-ppc64-gnu": "1.91.0", "@oxlint/binding-linux-riscv64-gnu": "1.91.0", "@oxlint/binding-linux-riscv64-musl": "1.91.0", "@oxlint/binding-linux-s390x-gnu": "1.91.0", "@oxlint/binding-linux-x64-gnu": "1.91.0", "@oxlint/binding-linux-x64-musl": "1.91.0", "@oxlint/binding-openharmony-arm64": "1.91.0", "@oxlint/binding-win32-arm64-msvc": "1.91.0", "@oxlint/binding-win32-ia32-msvc": "1.91.0", "@oxlint/binding-win32-x64-msvc": "1.91.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2005", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-vjy/cBZcEFcYh3dbxUoQK+bjc+QaY3ZWo86aJkZ5YAwp/HyiqP7dTdNgbvcIVJafhAH5sZbTqBp4sZcicEZngA=="], "p-limit": ["p-limit@3.1.0", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="], @@ -663,7 +663,7 @@ "supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], - "thread-stream": ["thread-stream@4.2.0", "", { "dependencies": { "real-require": "^1.0.0" } }, "sha512-e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ=="], + "thread-stream": ["thread-stream@4.2.1", "", { "dependencies": { "real-require": "^1.0.0" } }, "sha512-Stg6edJXC/6/xqGwSXwFokrUhChJ18amEjpKH89WrQQ0oVFDF+pUUcTpiwWhFUrE89Vf16FBOlwhaw+lescxMQ=="], "through": ["through@2.3.8", "", {}, "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg=="], @@ -823,10 +823,10 @@ "wrap-ansi/string-width/emoji-regex": ["emoji-regex@10.6.0", "", {}, "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="], - "wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@6.4.0", "", {}, "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw=="], + "wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@6.5.0", "", {}, "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ=="], - "boxen/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.4.0", "", {}, "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw=="], + "boxen/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.5.0", "", {}, "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ=="], - "widest-line/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.4.0", "", {}, "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw=="], + "widest-line/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.5.0", "", {}, "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ=="], } } diff --git a/browser/package.json b/browser/package.json index a6b83f0..d667e24 100644 --- a/browser/package.json +++ b/browser/package.json @@ -37,9 +37,9 @@ "devDependencies": { "@fortawesome/free-solid-svg-icons": "^7.3.1", "@types/bun": "^1.4.4", - "@types/chrome": "^0.3.6", - "oxfmt": "^0.74.0", - "oxlint": "^1.89.0", + "@types/chrome": "^0.3.7", + "oxfmt": "^0.76.0", + "oxlint": "^1.91.0", "playwright-core": "^1.64.1", "web-ext": "^10.8.0" }, diff --git a/desktop/Cargo.lock b/desktop/Cargo.lock index 71b4b85..28a080a 100644 --- a/desktop/Cargo.lock +++ b/desktop/Cargo.lock @@ -168,9 +168,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" [[package]] name = "memchr" From 0217618bd54890cb6dcb33d4472f22ef37faad72 Mon Sep 17 00:00:00 2001 From: Solstice Date: Tue, 3 Nov 2026 15:42:48 -0500 Subject: [PATCH 05/19] ci: fail the browser audit only on high and critical advisories --- .github/workflows/browser-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/browser-ci.yml b/.github/workflows/browser-ci.yml index baeddb3..98369e2 100644 --- a/.github/workflows/browser-ci.yml +++ b/.github/workflows/browser-ci.yml @@ -72,7 +72,6 @@ jobs: run: bun run firefox:verify - name: Audit dependencies - # node-forge (web-ext > adbkit, a development tool that never ships) has no - # patched release yet, so this one advisory is named and the rest still fail. - # Remove the flag once node-forge has a fix. - run: bun audit --ignore GHSA-86w9-cpqp-85rv + # Fails only on high and critical advisories. Low and moderate ones are reported + # but do not fail the build, since many have no fixed release yet. + run: bun audit --audit-level=high From 1a1e262e5ab8ee0eb3279e53ff7db7d29e3c98ab Mon Sep 17 00:00:00 2001 From: Solstice Date: Wed, 4 Nov 2026 00:40:07 -0500 Subject: [PATCH 06/19] docs(desktop): shorter port, pipe, and tray messages; plainer README The port-in-use and Windows pipe messages say what happened and what to do in fewer words, and the no-tray notice is one line. The README's headings render again (they had been bold text inside `**`), and its sentences are shorter. The message test checks the new port-in-use wording. --- desktop/README.md | 78 +++++++++++-------------- desktop/src/main.rs | 6 +- desktop/src/platform/linux/tray/mod.rs | 4 +- desktop/src/platform/windows/control.rs | 2 +- 4 files changed, 39 insertions(+), 51 deletions(-) diff --git a/desktop/README.md b/desktop/README.md index 1987749..bbd7c65 100644 --- a/desktop/README.md +++ b/desktop/README.md @@ -1,10 +1,10 @@ -**# desktop** +# desktop -Parousia Desktop is the native app that receives Presence from the browser and publishes it to Discord. It is written in Rust with no async runtime. +Parousia Desktop is the native app that receives presence from the browser and publishes it to Discord. It's written in Rust, with no async runtime. -See `project/architecture.md` for the Platform Adapter Architecture, Communication Protocol, and Desktop Tray, and `project/threat-model.md` for security details. +See `project/architecture.md` for the Platform Adapter Architecture, the Communication Protocol, and the Desktop Tray. See `project/threat-model.md` for security details. -**## Build and Run** +## Build and Run ```bash cargo build @@ -17,17 +17,17 @@ cargo fmt --check ./target/debug/Parousia-Desktop --headless ``` -On Windows, `cargo test` runs against the real thing: named pipes (the control pipe and a fake Discord, including Discord quitting and restarting), the loopback owner check against the TCP table, the registry, and the process tokens of the running machine. `scripts/verify-windows.ps1` then runs the release build (`cargo build --release`) and drives the real notification-area icon and its menu: a second launch, the CLI from a terminal, the control pipe's access list, the port, Settings > Start at login against the real `Run` key, Quit, and a port something else holds. It never touches your own config, Discord, or port 57179 (stop your own Desktop first); the Browser <-> Desktop link on Windows is `bun run desktop:verify` in `browser/`. +On Windows, `cargo test` runs against the real thing: named pipes (the control pipe, and a fake Discord that quits and restarts), the loopback owner check against the TCP table, the registry, and the process tokens of the running machine. `scripts/verify-windows.ps1` then runs the release build and drives the real notification-area icon and its menu. It covers a second launch, the CLI from a terminal, the control pipe's access list, the port, Settings > Start at login against the real `Run` key, Quit, and a port held by something else. It never touches your own config, your Discord, or port 57179, so stop your own Desktop first. The browser-to-Desktop link on Windows is checked by `bun run desktop:verify` in `browser/`. -Release builds are produced by the `Release` workflow when a `vX.Y.Z` tag is pushed to `main`. They are standalone, stripped, and size-optimized (`opt-level = "z"`, LTO), at about 1 MB. +Release builds come from the `Release` workflow, which runs when a `vX.Y.Z` tag is pushed to `main`. They're standalone, stripped, and size-optimized (`opt-level = "z"`, LTO), at about 1 MB. - **Linux:** x86_64 and aarch64, built for `*-unknown-linux-musl` -- **Windows:** x86_64 and aarch64, built with MSVC, no console window +- **Windows:** x86_64 and aarch64, built with MSVC, with no console window - **macOS:** not available yet -Only one Desktop instance runs per user (a second launch says so and exits). Port `57179` must be available; if something else holds it, Desktop says so and exits. +Only one Desktop runs per user. A second launch says so and exits. Port `57179` must be free. If something else holds it, Desktop says so and exits. -**## Browser Connection** +## Browser Connection Browsers connect to: @@ -38,28 +38,28 @@ ws://127.0.0.1:57179/ws Desktop identifies browser clients by their `Origin`. - The Chrome Web Store build is recognized automatically. -- Development builds and every Firefox install (the Add-ons listing included, since Firefox gives each install its own origin) must be allowed once with `Parousia-Desktop allow `. +- Development builds and every Firefox install must be allowed once with `Parousia-Desktop allow `. Firefox gives each install its own origin, the Add-ons listing included. - Refused extensions can also be allowed from the tray's Diagnostics menu. -- Userscripts are disabled by default and require **Allow userscripts**. +- Userscripts are off by default. Turn them on with **Allow userscripts**. - On Linux and Windows, connections from other OS users are refused before anything is read. -There is no pairing step for browser extensions. +Browser extensions have no pairing step. -**## Discord** +## Discord -Desktop publishes the active browser Presence through the Discord app running on the same computer. +Desktop publishes the active browser presence through the Discord app on the same computer. -It supports Discord installed normally through its local IPC socket (a named pipe on Windows), including Flatpak and Snap installations. Only IPC owned by the current user is used: a socket owned by another user, or a pipe whose server process runs as another user, is never connected to. +It works with Discord installed normally, through its local IPC socket (a named pipe on Windows), including Flatpak and Snap installs. Only IPC owned by the current user is used. A socket owned by another user, or a pipe whose server runs as another user, is never connected to. -When multiple browsers are connected, the most recently changed Activity is shown. When it clears, another connected browser can take over. +When several browsers are connected, the most recently changed Activity is shown. When it clears, another connected browser can take over. -Desktop only connects to Discord while there is something to show. Changes within one Activity (the next video, a new track) show at once, unless something was shown less than 2 seconds before: then only the newest waits for those 2 seconds to pass, so a burst shows its first and its last, and a steady stream is never more than 2 seconds behind. Moving to another Activity, or clearing, always shows at once. Discord's own update limit is kept to on top of that. +Desktop connects to Discord only while there's something to show. Changes within one Activity (the next video, a new track) show at once, unless something was shown less than 2 seconds earlier. Then only the newest change waits for those 2 seconds to pass. A burst shows its first and last changes, and a steady stream is never more than 2 seconds behind. Moving to another Activity, or clearing, always shows at once. Discord's own update limit still applies on top of this. -`PAROUSIA_DISCORD_IPC_DIR` can override the directory used to find Discord's IPC socket on Linux and macOS, and `PAROUSIA_DISCORD_IPC_PIPE` the pipe name (up to its number, default `\\.\pipe\discord-ipc-`) on Windows. Discord quitting or restarting is noticed at once on every platform. +`PAROUSIA_DISCORD_IPC_DIR` overrides the directory of Discord's IPC socket on Linux and macOS. `PAROUSIA_DISCORD_IPC_PIPE` overrides the pipe name on Windows (up to its number, default `\\.\pipe\discord-ipc-`). Discord quitting or restarting is noticed at once on every platform. -**## Commands** +## Commands -These commands communicate with the running Desktop: +These commands talk to the running Desktop: | Command | Description | | ------------------------------------------ | --------------------------------------------------------------------------------- | @@ -71,23 +71,15 @@ These commands communicate with the running Desktop: Add `--json` for machine-readable output. -On Windows the commands talk to the running Desktop over a named pipe that only this user can open, and print into the terminal they were typed in (the release exe has no console window of its own). The tray menu has the same controls. +On Windows, the commands talk to the running Desktop over a named pipe that only this user can open. They print into the terminal they were typed in, since the release exe has no console window of its own. The tray menu has the same controls. -**## Logging** +## Logging Desktop is silent by default and keeps no event history. -Debug logging can be enabled for the current run with: +Debug logging can be turned on for the current run with `Parousia-Desktop --debug`, or from the tray, the `status` interface, or the console. Startup errors are always reported. -```bash -Parousia-Desktop --debug -``` - -or through the tray, `status` interface, or console. - -Startup errors are always reported. - -**## Files** +## Files Configuration is stored in: @@ -99,30 +91,28 @@ Example: ```json { - "allowedOrigins": ["chrome-extension://", "moz-extension://"], - "allowUserscripts": false, - "discordClientId": "" + "allowedOrigins": ["chrome-extension://", "moz-extension://"], + "allowUserscripts": false, + "discordClientId": "" } ``` -All keys are optional. Unknown keys or invalid values cause Desktop to stop at startup rather than silently applying a bad configuration. +All keys are optional. Unknown keys and invalid values stop Desktop at startup, so a bad configuration is never applied silently. -The command socket is stored under `$XDG_RUNTIME_DIR/parousia/desktop.sock` on Linux, or in the data directory when no runtime directory is available, with `desktop.lock` beside it: whichever Desktop holds the lock is the one that runs. On Windows it is the named pipe `\\.\pipe\parousia-desktop-`, whose access list names only you. Browsers never use it. +The command socket is `$XDG_RUNTIME_DIR/parousia/desktop.sock` on Linux, or in the data directory when no runtime directory exists. `desktop.lock` sits beside it, and whichever Desktop holds the lock is the one that runs. On Windows, the socket is the named pipe `\\.\pipe\parousia-desktop-`, whose access list names only you. Browsers never use it. -`PAROUSIA_DATA_DIR` replaces the data directory (the end-to-end checks use it so a test run never touches a real config). +`PAROUSIA_DATA_DIR` replaces the data directory. The end-to-end checks use it, so a test run never touches a real config. -**## Tray** +## Tray The tray is optional. - **Linux:** StatusNotifierItem -- **Windows:** notification-area icon, with Settings > **Start at login** (an entry under your own `Run` key, the one Task Manager's Startup tab lists; Windows starts it with the tray, and nothing else is installed) +- **Windows:** notification-area icon. Settings > **Start at login** adds an entry under your own `Run` key, the one Task Manager's Startup tab lists. Windows then starts Desktop with the tray, and nothing else is installed. - **macOS:** not available yet -The tray provides status, Discord Presence, connected browsers, diagnostics, settings, notifications, and quit controls. - -Desktop continues working without a tray host. The command interface and browser dashboard provide the same functionality. +The tray shows status, Discord presence, connected browsers, diagnostics, settings, and notifications, and it has a quit control. -`--headless` disables the tray. +Desktop works without a tray host. The command interface and the browser dashboard offer the same functions. `--headless` turns the tray off. Tray icons are generated from `assets/brand/parousia-rounded.webp` into `assets/tray-{32,48}.rgba`. diff --git a/desktop/src/main.rs b/desktop/src/main.rs index 1446475..feb0232 100644 --- a/desktop/src/main.rs +++ b/desktop/src/main.rs @@ -111,12 +111,12 @@ fn bind_failure(err: &std::io::Error, holder: platform::Owner) -> String { let address = server::ADDRESS; if err.kind() == std::io::ErrorKind::AddrInUse && holder == platform::Owner::OtherUser { format!( - "port {} is held by a program another user on this computer runs, so Parousia Desktop can't start, and Parousia in your browsers may be sending it what you're doing instead. Find out what's using {address}, or ask an administrator, before using Parousia here.", + "port {} is held by a program run by another user on this computer. Parousia Desktop can't start, and browsers running Parousia may send it what you're doing instead. Find out what's using {address}, or ask an administrator, before using Parousia here.", server::DEFAULT_PORT ) } else if err.kind() == std::io::ErrorKind::AddrInUse { format!( - "port {} is already in use, so Parousia Desktop can't start. Close whatever is using {address} (often another copy of Parousia Desktop that a previous run left behind), then start it again.", + "port {} is already in use, so Parousia Desktop can't start. Close what's using {address} (often an earlier copy of Parousia Desktop), then start it again.", server::DEFAULT_PORT ) } else { @@ -240,7 +240,7 @@ mod tests { ); assert!(message.contains("57179")); assert!(message.contains("already in use")); - assert!(message.contains("Close whatever is using 127.0.0.1:57179")); + assert!(message.contains("Close what's using 127.0.0.1:57179")); } #[test] diff --git a/desktop/src/platform/linux/tray/mod.rs b/desktop/src/platform/linux/tray/mod.rs index f6b0d1b..f013688 100644 --- a/desktop/src/platform/linux/tray/mod.rs +++ b/desktop/src/platform/linux/tray/mod.rs @@ -116,9 +116,7 @@ pub fn run(hub: Arc) -> Exit { && message.reply_serial == register_serial && hub.debug() => { - println!( - "Parousia Desktop: no system tray is running yet; the icon appears when one starts" - ); + println!("Parousia Desktop: no system tray yet. The icon appears when one starts."); } _ => {} } diff --git a/desktop/src/platform/windows/control.rs b/desktop/src/platform/windows/control.rs index 49a10eb..0bf58a8 100644 --- a/desktop/src/platform/windows/control.rs +++ b/desktop/src/platform/windows/control.rs @@ -148,7 +148,7 @@ fn request(name: &str, request: &ControlRequest) -> io::Result if !pipe.server_process_id().is_some_and(is_this_user) { return Err(io::Error::new( io::ErrorKind::PermissionDenied, - "Desktop's pipe is held by a process of another Windows user, so nothing was sent to it", + "Another Windows user's process holds Desktop's pipe, so nothing was sent", )); } let mut io = pipe.io_until(Instant::now() + Duration::from_secs(5)); From f6399da5f2eb305777d9d1b62b43f4c29c959bb3 Mon Sep 17 00:00:00 2001 From: Solstice Date: Wed, 4 Nov 2026 00:40:28 -0500 Subject: [PATCH 07/19] docs: plainer wording across the popup, dashboard, settings, and README Shorter, more direct sentences in the popup, dashboard, settings, and the README: fewer disclaimers and repeated explanations, one term for each thing (Activity for a site's integration, presence for what's shown on Discord), and "declined" for refused access. Every translation follows its English string. The popup's own strings change in the next commit, so their keys stay as they were here. --- README.md | 46 +++--- browser/README.md | 52 +++---- browser/scripts/i18n.test.ts | 2 +- browser/scripts/verify-activities-firefox.mjs | 2 +- browser/scripts/verify-activities.mjs | 22 ++- browser/scripts/verify-malsync-real.mjs | 2 +- browser/src/core/default-activity.ts | 11 +- browser/src/core/site-access.ts | 2 +- browser/src/fullscreen/activities.ts | 17 ++- browser/src/fullscreen/activity.ts | 19 ++- browser/src/fullscreen/default.ts | 32 ++-- browser/src/fullscreen/fullscreen.html | 18 +-- browser/src/locales/de.json | 134 ++++++++--------- browser/src/locales/fr.json | 138 ++++++++--------- browser/src/locales/ja.json | 126 ++++++++-------- browser/src/locales/ro.json | 138 ++++++++--------- browser/src/locales/ru.json | 142 +++++++++--------- browser/src/locales/sv.json | 134 ++++++++--------- browser/src/locales/zh.json | 126 ++++++++-------- browser/src/popup/popup.html | 6 +- browser/src/shared/activity-catalog.ts | 2 +- browser/src/shared/connection-status.ts | 4 +- browser/src/shared/presence-view.ts | 4 +- browser/src/shared/settings-view.ts | 52 +++---- browser/src/shared/update-notice.ts | 4 +- browser/src/shared/views.ts | 4 +- 26 files changed, 614 insertions(+), 625 deletions(-) diff --git a/README.md b/README.md index 6a4544a..03c7484 100644 --- a/README.md +++ b/README.md @@ -18,22 +18,21 @@ ## What is Parousia? -Parousia is an open-source Rich Presence platform that brings your browser activity to your favourite Rich Presence platform, starting with Discord. +Parousia is an open-source Rich Presence platform. It shows what you're doing in your browser on Discord, and on other platforms as they're supported. -Parousia consists of a lightweight browser extension and native desktop application, with no account or sign-in required. +It has two parts: a browser extension and a small native desktop app. No account or sign-in is needed. ## Features -- **Rich Presence** for supported websites and web applications -- **Activities** for native and PreMiD integrations -- **Local-first architecture** with browser-to-desktop communication over loopback -- **No account or sign-in required** -- **No analytics or telemetry** -- **Minimal permissions** with website access requested only when an Activity needs it -- **Discord integration** through the official local RPC interface -- **Cross-platform Desktop** support for Windows and Linux, with macOS planned -- **Developer-friendly Activity API** built with TypeScript -- **Lightweight native Desktop** application written in Rust +- **Rich Presence** for supported websites and web apps +- **Activities** from Parousia and PreMiD +- **Local only**: the browser talks to the desktop app over loopback +- **No account, no analytics, no telemetry** +- **Minimal permissions**: website access is requested only when an Activity needs it +- **Discord** through its official local RPC interface +- **Windows and Linux** desktop support, with macOS planned +- **A TypeScript API** for writing Activities +- **A lightweight desktop app** written in Rust ## Get Parousia @@ -50,27 +49,24 @@ Parousia consists of a lightweight browser extension and native desktop applicat | ---------- | ----------- | ---------------------------------------------------------- | | Windows | Available | [GitHub Releases](https://github.com/Abadima/RPC/releases) | | Linux | Available | [GitHub Releases](https://github.com/Abadima/RPC/releases) | -| macOS | Coming soon | — | +| macOS | Coming soon | Not yet | | Userscript | Available | [GitHub Releases](https://github.com/Abadima/RPC/releases) | -| | ## Activity Ecosystem -Activities are maintained separately from the core Parousia repository and use a shared Activity API. +Activities live in their own repositories and share one API: **[parousia-project/activities](https://github.com/parousia-project/activities)** **[premid/activities](https://github.com/premid/activities)** -Activities are organized by website and can provide their own settings, page data requirements, site access, Discord applications, and Rich Presence details. +Each Activity covers a website. It sets its own settings, page data, site access, Discord application, and Rich Presence details. -Parousia currently includes the native Activity ecosystem alongside a large selection of compatible PreMiD Activities. +Parousia includes the native Activities and a large set of compatible PreMiD Activities. ## Documentation -Full documentation covering installation, configuration, Activities, compatibility, privacy, security, and development is available at: - -**[parousia.abadima.dev](https://parousia.abadima.dev)** (Maintained in **[parousia-project/website](https://github.com/parousia-project/website)**) +Installation, configuration, Activities, compatibility, privacy, security, and development are covered at **[parousia.abadima.dev](https://parousia.abadima.dev)**. The site is built from **[parousia-project/website](https://github.com/parousia-project/website)**. ## Roadmap @@ -86,16 +82,12 @@ See [`project/roadmap.md`](project/roadmap.md) for the current roadmap. ## Contributing -Contributions, issues, and discussions are welcome. - -See [`CONTRIBUTING.md`](.github/CONTRIBUTING.md) to get started. +Issues, discussions, and pull requests are welcome. Start with [`CONTRIBUTING.md`](.github/CONTRIBUTING.md). -Security vulnerabilities should be reported privately according to [`SECURITY.md`](.github/SECURITY.md). +Report security vulnerabilities privately, as [`SECURITY.md`](.github/SECURITY.md) describes. ## License Parousia is licensed under the [Apache License 2.0](LICENSE). -The repository also contains third-party components under their respective licenses, including PreMiD Activities under the Mozilla Public License 2.0, a font under the SIL Open Font License, and icons under CC BY 4.0. - -Each extension release includes `THIRD-PARTY-NOTICES.txt`, and Desktop releases include `parousia-desktop-notices.txt` for statically linked Rust dependencies. +Third-party components keep their own licenses: PreMiD Activities are under the Mozilla Public License 2.0, the font under the SIL Open Font License, and the icons under CC BY 4.0. Each extension release includes `THIRD-PARTY-NOTICES.txt`. Desktop releases include `parousia-desktop-notices.txt`, which lists the statically linked Rust dependencies. diff --git a/browser/README.md b/browser/README.md index 29e1692..2cc16eb 100644 --- a/browser/README.md +++ b/browser/README.md @@ -1,46 +1,46 @@ # browser -Parousia's browser extension, built with [Bun](https://bun.com) + strict TypeScript. +Parousia's browser extension and userscript, built with [Bun](https://bun.com) and strict TypeScript. ## Setup ```bash bun install -bun run activities:fetch # the Activity sources, at the newest commit on each one's main +bun run activities:fetch # Activity sources, at the newest commit on each main branch ``` ## Commands ```bash -bun run build # build all targets into dist/ +bun run build # build every target into dist/ bun run dev # build, then rebuild on change -bun run typecheck # tsc --noEmit -bun run lint # oxlint -bun run format # oxfmt -bun run format:check # oxfmt --check -bun test # bun test - -bun run activities:fetch # move each Activity source to the newest commit on its main now (every build does this itself; a failed fetch keeps the copy it has) -bun run activities:check # check and compile every Activity; list PreMiD ones left out, and why - -bun run firefox:setup # one-time: fetch an isolated automation Firefox build -bun run firefox:lint # web-ext lint against dist/firefox -bun run firefox:verify # lint + actually install & run dist/firefox in real Firefox -bun run chromium:setup # one-time: fetch an isolated automation Chromium build -bun run desktop:verify # the Browser <-> Desktop link, end to end, in automation Chromium (Linux, Windows) -bun run real:verify # the same against installed browsers: Firefox, Flatpak Chromium, Violentmonkey -bun run discord:verify # a real Activity on a real Discord (opt-in, see below) -bun run activities:verify # Activities, the popup, and the dashboard, end to end (Linux, Windows) -bun run activities:firefox # the same features in installed Firefox Developer Edition -bun run languages:verify # every language in the popup and dashboard, Automatic, and a change reaching an open view (automation Chromium) -bun run bench # sizes, memory, CPU, and latency, as JSON -bun run contrast # WCAG 2.2 AA contrast of every theme's tokens, as a table -bun run themes:verify # the themes on every popup and dashboard view, in automation Chromium +bun run typecheck # tsc --noEmit +bun run lint # oxlint +bun run format # oxfmt +bun run format:check # oxfmt --check +bun test # unit tests + +bun run activities:fetch # move each Activity source to the newest commit on its main (builds do this too; a failed fetch keeps the copy it has) +bun run activities:check # check and compile every Activity; list the PreMiD ones left out, and why + +bun run firefox:setup # once: fetch an isolated automation Firefox +bun run firefox:lint # web-ext lint of dist/firefox +bun run firefox:verify # lint, then install and run dist/firefox in real Firefox +bun run chromium:setup # once: fetch an isolated automation Chromium +bun run desktop:verify # the browser-to-Desktop link, end to end, in automation Chromium (Linux, Windows) +bun run real:verify # the same against installed browsers: Firefox, Flatpak Chromium, Violentmonkey +bun run discord:verify # one Activity on a real Discord (opt-in, see below) +bun run activities:verify # Activities, the popup, and the dashboard, end to end (Linux, Windows) +bun run activities:firefox # the same features in an installed Firefox Developer Edition +bun run languages:verify # every language in the popup and dashboard, and a change reaching an open view +bun run bench # sizes, memory, CPU, and latency, as JSON +bun run contrast # WCAG 2.2 AA contrast of each theme's tokens, as a table +bun run themes:verify # each theme on every popup and dashboard view ``` ## Build Targets -`bun run build` produces one folder per target under `dist/`, each a self-contained, minified bundle plus its `manifest.json`: +`bun run build` writes one folder per target under `dist/`. Each is a self-contained, minified bundle with its `manifest.json`: | Target | Output | Distribution | | ------------ | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/browser/scripts/i18n.test.ts b/browser/scripts/i18n.test.ts index a444340..4d28713 100644 --- a/browser/scripts/i18n.test.ts +++ b/browser/scripts/i18n.test.ts @@ -25,7 +25,7 @@ describe("finding the strings", () => { test("the code and the pages hold the strings the dictionaries are checked against", () => { expect(keys.strings.size).toBeGreaterThan(200); - expect(keys.strings.has("Retry Connection")).toBe(true); + expect(keys.strings.has("Retry connection")).toBe(true); expect(keys.strings.has("Settings")).toBe(true); expect(keys.plurals.has("{n} Activities")).toBe(true); // Written with `tn`, so they're plural forms, not plain strings. diff --git a/browser/scripts/verify-activities-firefox.mjs b/browser/scripts/verify-activities-firefox.mjs index afaf265..faeef6b 100644 --- a/browser/scripts/verify-activities-firefox.mjs +++ b/browser/scripts/verify-activities-firefox.mjs @@ -223,7 +223,7 @@ try { ); assert( card.action === "Allow access" && card.current, - "offers to ask again, with no empty Current activity", + "offers to ask again, with no empty Now sharing", ); await firefox.closeTab(popup); log( diff --git a/browser/scripts/verify-activities.mjs b/browser/scripts/verify-activities.mjs index 216c2b8..a342adc 100644 --- a/browser/scripts/verify-activities.mjs +++ b/browser/scripts/verify-activities.mjs @@ -19,10 +19,18 @@ // - Native: an Activity that reads pages is off until turned on, which the // popup does in one click; the collector reads the page's Media Session. // - Settings > Privacy: what Activities may read, for all of them at once. -// - The popup: "Current activity" only while something's shared, "Configure +// - The popup: "Now sharing" only while something's shared, "Configure // activity" for an Activity with settings, and a quiet line otherwise. // - The Default Activity: written in the dashboard, shared where no Activity // is, and gone once it's off. +// - Show media presence, with a tab that really makes sound: the song stays on +// Discord on a site without an Activity, a song skipped in a tab nobody is +// looking at reaches Discord (headless Chromium never hides a tab, so the tab +// switch is played back into the extension's own world: see `setHidden`), +// of two players only the one shared last shows, the song comes back when +// the extension's background is stopped and starts again, +// and the popup beside music (or the Default Activity) still offers the +// site's own Activity. // - The dashboard: switches, icons and their fallback, site access in // Settings only ("all websites" off), and the layout from phone to // ultrawide. @@ -313,7 +321,7 @@ try { `listed once, as the native one (${guideCards})`, ); assert( - (await dashboard.textContent(`[data-activity="${GUIDE_NATIVE}"]`))?.includes("multi"), + (await dashboard.textContent(`[data-activity="${GUIDE_NATIVE}"]`))?.includes("2 sources"), "and marked as in both sources", ); await openDashboard(`#activities/${GUIDE_NATIVE}`); @@ -437,7 +445,7 @@ try { assert(!injected, "its script never ran there"); let popup = await popupFor(jummbox); await popup.locator("#suggestion-view:not([hidden])").waitFor(); - assert(await popup.isHidden("#activity-view"), "the popup hides Current activity"); + assert(await popup.isHidden("#activity-view"), "the popup hides Now sharing"); assert((await popup.textContent("#suggestion-name")) === "Jummbox", "and names the Activity"); assert( (await popup.textContent("#suggestion-note"))?.includes("access to jummb.us"), @@ -523,14 +531,14 @@ try { "native: Tunes is off until the popup turns it on in one click; then the collector reads the page's Media Session, and the site's logo instead of the artwork once thumbnails are off", ); - // --- The popup while sharing: Configure activity --- + // --- The popup while sharing: Configure Activity --- const example = await context.newPage(); await serve(example, "https://example.site", "Docs"); await example.goto(EXAMPLE_PAGE); await shown((a) => a?.details === "Reading Docs", "Example Site, with its default prefix"); popup = await popupFor(example); await popup.locator("#activity-view:not([hidden])").waitFor(); - assert(await popup.isHidden("#suggestion-view"), "the popup shows Current activity alone"); + assert(await popup.isHidden("#suggestion-view"), "the popup shows Now sharing alone"); await popup.click("#configure-button"); const prefix = popup.locator("#configure-view input.text-field"); await prefix.waitFor(); @@ -540,7 +548,7 @@ try { await example.bringToFront(); await shown((a) => a?.details === "Browsing Docs", "the new prefix, set from the popup"); log( - "the popup shows Current activity only while sharing, and changes the Activity's settings in place", + "the popup shows Now sharing only while sharing, and changes the Activity's settings in place", ); // --- The Default Activity --- @@ -738,7 +746,7 @@ try { await bulk("Enable all").click(); const question = (await dashboard.textContent('[data-slot="bulk-body"]')) ?? ""; assert( - question.includes("None of them needs access to a new site"), + question.includes("None needs access to a new site"), `enabling ones whose sites are granted says it will not ask (${question})`, ); await dashboard.locator('[data-slot="bulk-body"] button', { hasText: /^Enable \d/ }).click(); diff --git a/browser/scripts/verify-malsync-real.mjs b/browser/scripts/verify-malsync-real.mjs index 32a515a..d07db69 100644 --- a/browser/scripts/verify-malsync-real.mjs +++ b/browser/scripts/verify-malsync-real.mjs @@ -382,7 +382,7 @@ try { "while Discord-RPC-Extension's route still names the series, which Parousia can't limit", ); t.say( - "Share Media Details off limits Parousia's route; Discord-RPC-Extension's still shows the title", + "Share media details off limits Parousia's route; Discord-RPC-Extension's still shows the title", ); // MAL-Sync's own Discord setting off ends the duplicate; Parousia still gets it. diff --git a/browser/src/core/default-activity.ts b/browser/src/core/default-activity.ts index c9645f5..e6248a5 100644 --- a/browser/src/core/default-activity.ts +++ b/browser/src/core/default-activity.ts @@ -116,19 +116,18 @@ export function defaultActivityProblems( activity: DefaultActivity, ): Partial> { const problems: Partial> = {}; - if (activity.name.trim().length < 2) - problems.name = t("Give it a name of at least 2 characters."); + if (activity.name.trim().length < 2) problems.name = t("Use a name of at least 2 characters."); for (const field of TEXT_FIELDS) { const value = activity[field].trim(); if (field !== "name" && value.length === 1) { - problems[field] = t("Discord leaves out lines under 2 characters."); + problems[field] = t("Discord drops lines shorter than 2 characters."); } } for (const field of IMAGE_FIELDS) { const value = activity[field].trim(); if (value && !isImage(value)) { problems[field] = t( - "Use an https image link, or an asset name from your own Discord Application.", + "Use an https image link, or an asset name from your Discord application.", ); } } @@ -138,10 +137,10 @@ export function defaultActivityProblems( if (!label && !url) continue; if (!label || !url) problems.buttons = t("A button needs both a label and a link."); else if (!isWebUrl(url, ["https:", "http:"])) - problems.buttons = t("Button links start with https:// or http://."); + problems.buttons = t("Button links must start with https:// or http://."); } if (activity.discordClientId && !/^\d{17,20}$/.test(activity.discordClientId)) { - problems.discordClientId = t("A Discord Application ID is 17 to 20 digits."); + problems.discordClientId = t("A Discord application ID is 17 to 20 digits."); } return problems; } diff --git a/browser/src/core/site-access.ts b/browser/src/core/site-access.ts index 12dc3cd..42a999e 100644 --- a/browser/src/core/site-access.ts +++ b/browser/src/core/site-access.ts @@ -11,7 +11,7 @@ import { needsAccess } from "./activity-state"; export const ALL_SITES = "*://*/*"; export interface Grants { - /** "Access your data for all websites" is on. */ + /** "Allow access to all websites" is on. */ all: boolean; /** Each site granted on its own, as origin patterns (`*://www.youtube.com/*`). */ origins: readonly string[]; diff --git a/browser/src/fullscreen/activities.ts b/browser/src/fullscreen/activities.ts index d6a4b2e..f8fa180 100644 --- a/browser/src/fullscreen/activities.ts +++ b/browser/src/fullscreen/activities.ts @@ -166,7 +166,8 @@ export function activitiesView(context: ViewContext, params: URLSearchParams): V pills.append(el("span", "pill pill-warn", t("Access declined"))); } if (info.source === "premid") pills.append(el("span", "pill pill-quiet", "PreMiD")); - if ((info.variants?.length ?? 0) > 1) pills.append(el("span", "pill pill-quiet", t("multi"))); + if ((info.variants?.length ?? 0) > 1) + pills.append(el("span", "pill pill-quiet", t("2 sources"))); link.append(activityIcon(info), text, pills); const toggle = el("input", "switch"); @@ -267,12 +268,12 @@ export function activitiesView(context: ViewContext, params: URLSearchParams): V for (const id of declined) refused.add(id); if (declined.length === 0) return t("Enabled {count}.", { count: count(changed) }); if (changed === 0) { - return t("Nothing was enabled: your browser didn't grant access to their sites."); + return t("Nothing was enabled. Your browser declined access to their sites."); } return tn( declined.length, "Enabled {count}. {n} Activity stayed off because its sites weren't granted.", - "Enabled {count}. {n} Activities stayed off because their sites weren't granted.", + "Enabled {count}. {n} Activities stayed off because access to their sites was declined.", { count: count(changed) }, ); }) @@ -308,8 +309,8 @@ export function activitiesView(context: ViewContext, params: URLSearchParams): V "p", "bulk-scope", arranged.length === 0 - ? t("No Activities match, so there is nothing to change.") - : t("This applies to the {count} matching your search and filters, on every page.", { + ? t("No Activities match, so there's nothing to change.") + : t("This applies to all {count} matching your search and filters, not only this page.", { count: count(arranged.length), }), ); @@ -326,9 +327,9 @@ export function activitiesView(context: ViewContext, params: URLSearchParams): V ? `${tn(readers, "{n} Activity reads pages.", "{n} Activities read pages.")} ${tn( sites, "Your browser will ask for access to {n} site in one prompt, which can be long. Anything you decline stays off.", - "Your browser will ask for access to {n} sites in one prompt, which can be long. Anything you decline stays off.", + "Your browser asks for access to {n} sites in one prompt. Anything you decline stays off.", )}` - : t("None of them needs access to a new site, so your browser won't ask for anything."), + : t("None needs access to a new site, so your browser won't ask."), ), ); const actions = el("div", "bulk-actions"); @@ -363,7 +364,7 @@ export function activitiesView(context: ViewContext, params: URLSearchParams): V ); bulkBody.replaceChildren( el("p", "bulk-question", t("Disable {count}?", { count: count(plan.disable.length) })), - el("p", "bulk-scope", t("Sites only they used are given back to your browser.")), + el("p", "bulk-scope", t("Sites only they use are given back to your browser.")), actions, ); if (moveFocus) cancel.focus(); diff --git a/browser/src/fullscreen/activity.ts b/browser/src/fullscreen/activity.ts index 1f73e8e..8563236 100644 --- a/browser/src/fullscreen/activity.ts +++ b/browser/src/fullscreen/activity.ts @@ -43,15 +43,18 @@ function sitesText(origins: readonly string[]): string { /** What turning it on means, next to its switch. */ function switchNote(info: ActivityInfo): string { if (!needsAccess(info)) { - return t("Reads only the address and title of its pages, so it needs no site access."); + return t("Reads only page addresses and titles, so it needs no site access."); } const sites = sitesText(info.origins ?? []); return info.source === "premid" - ? t("Its own code reads its pages. Turning it on asks your browser for access to {sites}.", { - sites, - }) + ? t( + "Its code reads the pages it runs on. Turning it on asks your browser for access to {sites}.", + { + sites, + }, + ) : t( - "Parousia reads what's playing on its pages. Turning it on asks your browser for access to {sites}.", + "Parousia reads what's playing on those pages. Turning it on asks your browser for access to {sites}.", { sites }, ); } @@ -117,16 +120,16 @@ export function activityView(context: ViewContext, id: string): View { const missing = missingSites(activity, grants); let text = ""; if (refused && status === "off") { - text = t("It stays off: your browser didn't allow access to {sites}.", { + text = t("It stays off: your browser declined access to {sites}.", { sites: sitesText(missing), }); } else if (refused && status === "needs-access") { - text = t("Your browser didn't allow access to {sites}, so it still doesn't run there.", { + text = t("Your browser declined access to {sites}, so it still doesn't run there.", { sites: sitesText(missing), }); } else if (status === "needs-access") { text = t( - "It's on, but can't read {sites}, so it doesn't run there. Access was declined or taken back.", + "It's on, but can't read {sites}, so it doesn't run there. Access was declined or revoked.", { sites: sitesText(missing) }, ); } diff --git a/browser/src/fullscreen/default.ts b/browser/src/fullscreen/default.ts index f3a650e..a552c0f 100644 --- a/browser/src/fullscreen/default.ts +++ b/browser/src/fullscreen/default.ts @@ -74,10 +74,8 @@ export function defaultView(): View { let saved: DefaultActivity = EMPTY_DEFAULT_ACTIVITY; const toggle = switchRow( - t("Show a Default Activity"), - t( - "Shared whenever the tab you're on has no Activity: a site none covers, a browser page, a new tab.", - ), + t("Turn on the Default Activity"), + t("Shared when the tab has no Activity: a site none covers, a browser page, or a new tab."), (on) => void setEnabled(on), "default-on", ); @@ -95,31 +93,21 @@ export function defaultView(): View { largeImage: field( "default-largeImage", t("Large image"), - t("An https image link, or an asset name from your own Discord Application."), + t("An https image link, or an asset name from your Discord application."), image, ), - largeText: field( - "default-largeText", - t("Large image text"), - t("Shown when someone hovers over it."), - text, - ), + largeText: field("default-largeText", t("Large image text"), t("Shown on hover."), text), smallImage: field( "default-smallImage", t("Small image"), t("Shown in the large image's corner."), image, ), - smallText: field( - "default-smallText", - t("Small image text"), - t("Shown when someone hovers over it."), - text, - ), + smallText: field("default-smallText", t("Small image text"), t("Shown on hover."), text), discordClientId: field( "default-discordClientId", - t("Discord Application ID"), - t("Optional: show it as your own Discord Application instead of Parousia."), + t("Discord application ID"), + t("Optional. Show it as your own Discord application instead of Parousia."), 20, ), }; @@ -144,7 +132,7 @@ export function defaultView(): View { const elapsed = switchRow( t("Show elapsed time"), - t("How long it's been shown, counted from when it started."), + t("Counts up from when it started."), () => renderPreview(), "default-elapsed", ); @@ -261,13 +249,13 @@ export function defaultView(): View { event.preventDefault(); const activity = read(); if (!showProblems(activity)) { - status.textContent = t("Not saved: fix what's marked."); + status.textContent = t("Not saved. Fix the marked fields."); return; } void saveDefaultActivity(activity).then((next) => { fill(next); status.textContent = next.enabled - ? t("Saved. It's shown when no Activity is.") + ? t("Saved. It shows when no Activity has anything to share.") : t("Saved. Turn it on above to share it."); }); }); diff --git a/browser/src/fullscreen/fullscreen.html b/browser/src/fullscreen/fullscreen.html index d07571c..a209cd2 100644 --- a/browser/src/fullscreen/fullscreen.html +++ b/browser/src/fullscreen/fullscreen.html @@ -62,7 +62,7 @@

Overview

Get Parousia Desktop - + @@ -75,7 +75,7 @@

Overview

- +
@@ -189,7 +189,7 @@

Activities

    @@ -198,8 +198,7 @@

    Activities

    No Activities in this build yet

    - Until one is added, Parousia recognizes no sites, so nothing about your browsing is - shared. + Until one is added, Parousia recognizes no sites and shares nothing from your browsing.

    @@ -236,7 +235,8 @@